2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2007, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.3devel'
275 PACKAGE_STRING='PostgreSQL 8.3devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.3devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.3devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-dtrace build with DTrace support
869 --enable-depend turn on automatic dependency tracking
870 --enable-cassert enable assertion checks (for debugging)
871 --enable-thread-safety make client libraries thread-safe
872 --enable-thread-safety-force force thread-safety in spite of thread test failure
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
880 --without-docdir do not install the documentation
881 --with-includes=DIRS look for additional header files in DIRS
882 --with-libraries=DIRS look for additional libraries in DIRS
883 --with-libs=DIRS alternative spelling of --with-libraries
884 --with-pgport=PORTNUM change default port number [5432]
885 --with-tcl build Tcl modules (PL/Tcl)
886 --with-tclconfig=DIR tclConfig.sh is in DIR
887 --with-perl build Perl modules (PL/Perl)
888 --with-python build Python modules (PL/Python)
889 --with-krb5 build with Kerberos 5 support
890 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
891 --with-pam build with PAM support
892 --with-ldap build with LDAP support
893 --with-bonjour build with Bonjour support
894 --with-openssl build with OpenSSL support
895 --without-readline do not use GNU Readline nor BSD Libedit for editing
896 --with-libedit-preferred prefer BSD Libedit over GNU Readline
897 --with-libxml build with XML support
898 --without-zlib do not use Zlib
899 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
901 Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
911 location of DocBook stylesheets
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
916 Report bugs to <pgsql-bugs@postgresql.org>.
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 ac_dir_suffix= ac_top_builddir=
936 .) # No --srcdir option. We are building in place.
938 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
954 .) ac_abs_builddir="$ac_dir";;
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1001 $ac_configure --help
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1012 PostgreSQL configure 8.3devel
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1019 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1025 This file contains any messages produced by compilers while
1026 running configure, to aid debugging if configure makes a mistake.
1028 It was created by PostgreSQL $as_me 8.3devel, which was
1029 generated by GNU Autoconf 2.59. Invocation command line was
1040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1052 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 test -z "$as_dir" && as_dir=.
1064 echo "PATH: $as_dir"
1079 # Keep a trace of the command line.
1080 # Strip out --no-create and --no-recursion so they do not pile up.
1081 # Strip out --silent because we don't want to record it for future runs.
1082 # Also quote any args containing shell meta-characters.
1083 # Make two passes to allow for proper duplicate-argument suppression.
1088 ac_must_keep_next=false
1094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1098 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1102 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1104 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1105 if test $ac_must_keep_next = true; then
1106 ac_must_keep_next=false # Got value, back to normal.
1109 *=* | --config-cache | -C | -disable-* | --disable-* \
1110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1112 | -with-* | --with-* | -without-* | --without-* | --x)
1113 case "$ac_configure_args0 " in
1114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1117 -* ) ac_must_keep_next=true ;;
1120 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1121 # Get rid of the leading space.
1127 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1128 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1130 # When interrupted or exit'd, cleanup temporary files, and complete
1131 # config.log. We remove comments because anyway the quotes in there
1132 # would cause problems or look ugly.
1133 # WARNING: Be sure not to use single quotes in there, as some shells,
1134 # such as our DU 5.0 friend, will then `close' the trap.
1135 trap 'exit_status=$?
1136 # Save into config.log some information that might help in debugging.
1141 ## ---------------- ##
1142 ## Cache variables. ##
1143 ## ---------------- ##
1146 # The following way of writing the cache mishandles newlines in values,
1149 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1152 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1164 ## ----------------- ##
1165 ## Output variables. ##
1166 ## ----------------- ##
1169 for ac_var in $ac_subst_vars
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -n "$ac_subst_files"; then
1183 for ac_var in $ac_subst_files
1185 eval ac_val=$`echo $ac_var`
1186 echo "$ac_var='"'"'$ac_val'"'"'"
1191 if test -s confdefs.h; then
1198 sed "/^$/d" confdefs.h | sort
1201 test "$ac_signal" != 0 &&
1202 echo "$as_me: caught signal $ac_signal"
1203 echo "$as_me: exit $exit_status"
1205 rm -f core *.core &&
1206 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1209 for ac_signal in 1 2 13 15; do
1210 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1215 rm -rf conftest* confdefs.h
1216 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1219 # Predefined preprocessor variables.
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 # Let the site file select an alternate cache file if it wants to.
1247 # Prefer explicitly selected file to automatically selected ones.
1248 if test -z "$CONFIG_SITE"; then
1249 if test "x$prefix" != xNONE; then
1250 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1255 for ac_site_file in $CONFIG_SITE; do
1256 if test -r "$ac_site_file"; then
1257 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1258 echo "$as_me: loading site script $ac_site_file" >&6;}
1259 sed 's/^/| /' "$ac_site_file" >&5
1264 if test -r "$cache_file"; then
1265 # Some versions of bash will fail to source /dev/null (special
1266 # files actually), so we avoid doing that.
1267 if test -f "$cache_file"; then
1268 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1269 echo "$as_me: loading cache $cache_file" >&6;}
1271 [\\/]* | ?:[\\/]* ) . $cache_file;;
1272 *) . ./$cache_file;;
1276 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1277 echo "$as_me: creating cache $cache_file" >&6;}
1281 # Check that the precious variables saved in the cache have kept the same
1283 ac_cache_corrupted=false
1284 for ac_var in `(set) 2>&1 |
1285 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1287 eval ac_new_set=\$ac_env_${ac_var}_set
1288 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1289 eval ac_new_val="\$ac_env_${ac_var}_value"
1290 case $ac_old_set,$ac_new_set in
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1296 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1297 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1298 ac_cache_corrupted=: ;;
1301 if test "x$ac_old_val" != "x$ac_new_val"; then
1302 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1303 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1304 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1305 echo "$as_me: former value: $ac_old_val" >&2;}
1306 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1307 echo "$as_me: current value: $ac_new_val" >&2;}
1308 ac_cache_corrupted=:
1311 # Pass precious variables to config.status.
1312 if test "$ac_new_set" = set; then
1314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 *) ac_arg=$ac_var=$ac_new_val ;;
1318 case " $ac_configure_args " in
1319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1320 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 if $ac_cache_corrupted; then
1325 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1326 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1327 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1328 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1329 { (exit 1); exit 1; }; }
1333 ac_cpp='$CPP $CPPFLAGS'
1334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1369 for ac_dir in config $srcdir/config; do
1370 if test -f $ac_dir/install-sh; then
1372 ac_install_sh="$ac_aux_dir/install-sh -c"
1374 elif test -f $ac_dir/install.sh; then
1376 ac_install_sh="$ac_aux_dir/install.sh -c"
1378 elif test -f $ac_dir/shtool; then
1380 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 if test -z "$ac_aux_dir"; then
1385 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1386 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1387 { (exit 1); exit 1; }; }
1389 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394 configure_args=$ac_configure_args
1398 cat >>confdefs.h <<_ACEOF
1399 #define PG_VERSION "$PACKAGE_VERSION"
1403 # Make sure we can run config.sub.
1404 $ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1409 echo "$as_me:$LINENO: checking build system type" >&5
1410 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411 if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 ac_cv_build_alias=$build_alias
1415 test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417 test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428 echo "${ECHO_T}$ac_cv_build" >&6
1430 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 echo "$as_me:$LINENO: checking host system type" >&5
1436 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437 if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 ac_cv_host_alias=$host_alias
1441 test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450 echo "${ECHO_T}$ac_cv_host" >&6
1452 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking which template to use" >&5
1460 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1463 pgac_args="$pgac_args with_template"
1466 # Check whether --with-template or --without-template was given.
1467 if test "${with_template+set}" = set; then
1468 withval="$with_template"
1472 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1473 echo "$as_me: error: argument required for --with-template option" >&2;}
1474 { (exit 1); exit 1; }; }
1477 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1478 echo "$as_me: error: argument required for --with-template option" >&2;}
1479 { (exit 1); exit 1; }; }
1484 list) echo; ls "$srcdir/src/template"; exit;;
1485 *) if test -f "$srcdir/src/template/$with_template" ; then
1488 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1489 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1490 { (exit 1); exit 1; }; }
1499 # --with-template not given
1502 aix*) template=aix ;;
1503 bsdi*) template=bsdi ;;
1504 cygwin*) template=cygwin ;;
1505 darwin*) template=darwin ;;
1506 dgux*) template=dgux ;;
1507 freebsd*) template=freebsd ;;
1508 hpux*) template=hpux ;;
1509 irix*) template=irix ;;
1510 linux*|gnu*|k*bsd*-gnu)
1512 mingw*) template=win32 ;;
1513 netbsd*) template=netbsd ;;
1514 nextstep*) template=nextstep ;;
1515 openbsd*) template=openbsd ;;
1516 osf*) template=osf ;;
1517 sco*) template=sco ;;
1518 solaris*) template=solaris ;;
1519 sunos*) template=sunos4 ;;
1521 case $host_vendor in
1522 univel) template=univel ;;
1524 sysv4*) template=svr4 ;;
1525 sysv5*) template=unixware ;;
1526 ultrix*) template=ultrix4 ;;
1529 if test x"$template" = x"" ; then
1530 { { echo "$as_me:$LINENO: error:
1531 *******************************************************************
1532 PostgreSQL has apparently not been ported to your platform yet.
1533 To try a manual configuration, look into the src/template directory
1534 for a similar platform and use the '--with-template=' option.
1536 Please also contact <pgsql-ports@postgresql.org> to see about
1537 rectifying this. Include the above 'checking host system type...'
1539 *******************************************************************
1541 echo "$as_me: error:
1542 *******************************************************************
1543 PostgreSQL has apparently not been ported to your platform yet.
1544 To try a manual configuration, look into the src/template directory
1545 for a similar platform and use the '--with-template=' option.
1547 Please also contact <pgsql-ports@postgresql.org> to see about
1548 rectifying this. Include the above 'checking host system type...'
1550 *******************************************************************
1552 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $template" >&5
1560 echo "${ECHO_T}$template" >&6
1565 # Initialize default assumption that we do not need separate assembly code
1566 # for TAS (test-and-set). This can be overridden by the template file
1567 # when it's executed.
1574 ## Command line options
1578 # Installation directory for documentation
1581 pgac_args="$pgac_args with_docdir"
1584 # Check whether --with-docdir or --without-docdir was given.
1585 if test "${with_docdir+set}" = set; then
1586 withval="$with_docdir"
1590 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1591 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1592 { (exit 1); exit 1; }; }
1603 docdir='${prefix}/doc'
1610 # Add non-standard directories to the include path
1613 pgac_args="$pgac_args with_includes"
1616 # Check whether --with-includes or --without-includes was given.
1617 if test "${with_includes+set}" = set; then
1618 withval="$with_includes"
1622 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1623 echo "$as_me: error: argument required for --with-includes option" >&2;}
1624 { (exit 1); exit 1; }; }
1627 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1628 echo "$as_me: error: argument required for --with-includes option" >&2;}
1629 { (exit 1); exit 1; }; }
1641 # Add non-standard directories to the library search path
1644 pgac_args="$pgac_args with_libraries"
1647 # Check whether --with-libraries or --without-libraries was given.
1648 if test "${with_libraries+set}" = set; then
1649 withval="$with_libraries"
1653 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1654 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1655 { (exit 1); exit 1; }; }
1658 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1659 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1660 { (exit 1); exit 1; }; }
1663 LIBRARY_DIRS=$withval
1671 pgac_args="$pgac_args with_libs"
1674 # Check whether --with-libs or --without-libs was given.
1675 if test "${with_libs+set}" = set; then
1676 withval="$with_libs"
1680 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1681 echo "$as_me: error: argument required for --with-libs option" >&2;}
1682 { (exit 1); exit 1; }; }
1685 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1686 echo "$as_me: error: argument required for --with-libs option" >&2;}
1687 { (exit 1); exit 1; }; }
1690 LIBRARY_DIRS=$withval
1699 # 64-bit integer date/time storage (--enable-integer-datetimes)
1701 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1702 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1704 pgac_args="$pgac_args enable_integer_datetimes"
1706 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1707 if test "${enable_integer_datetimes+set}" = set; then
1708 enableval="$enable_integer_datetimes"
1713 cat >>confdefs.h <<\_ACEOF
1714 #define USE_INTEGER_DATETIMES 1
1722 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1723 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1724 { (exit 1); exit 1; }; }
1729 enable_integer_datetimes=no
1733 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1734 echo "${ECHO_T}$enable_integer_datetimes" >&6
1740 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1741 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1743 pgac_args="$pgac_args enable_nls"
1745 # Check whether --enable-nls or --disable-nls was given.
1746 if test "${enable_nls+set}" = set; then
1747 enableval="$enable_nls"
1758 WANTED_LANGUAGES=$enableval
1767 if test "$enable_nls" = yes; then
1769 cat >>confdefs.h <<\_ACEOF
1770 #define ENABLE_NLS 1
1775 echo "$as_me:$LINENO: result: $enable_nls" >&5
1776 echo "${ECHO_T}$enable_nls" >&6
1781 # Default port number (--with-pgport), default 5432
1783 echo "$as_me:$LINENO: checking for default port number" >&5
1784 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1786 pgac_args="$pgac_args with_pgport"
1789 # Check whether --with-pgport or --without-pgport was given.
1790 if test "${with_pgport+set}" = set; then
1791 withval="$with_pgport"
1795 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1796 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1797 { (exit 1); exit 1; }; }
1800 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1801 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1802 { (exit 1); exit 1; }; }
1805 default_port=$withval
1813 echo "$as_me:$LINENO: result: $default_port" >&5
1814 echo "${ECHO_T}$default_port" >&6
1815 # Need both of these because some places want an integer and some a string
1817 cat >>confdefs.h <<_ACEOF
1818 #define DEF_PGPORT ${default_port}
1822 cat >>confdefs.h <<_ACEOF
1823 #define DEF_PGPORT_STR "${default_port}"
1829 # Option to disable shared libraries
1832 pgac_args="$pgac_args enable_shared"
1834 # Check whether --enable-shared or --disable-shared was given.
1835 if test "${enable_shared+set}" = set; then
1836 enableval="$enable_shared"
1846 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1847 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1848 { (exit 1); exit 1; }; }
1860 # '-rpath'-like feature can be disabled
1863 pgac_args="$pgac_args enable_rpath"
1865 # Check whether --enable-rpath or --disable-rpath was given.
1866 if test "${enable_rpath+set}" = set; then
1867 enableval="$enable_rpath"
1877 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1878 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1879 { (exit 1); exit 1; }; }
1894 pgac_args="$pgac_args enable_spinlocks"
1896 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1897 if test "${enable_spinlocks+set}" = set; then
1898 enableval="$enable_spinlocks"
1908 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1909 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1910 { (exit 1); exit 1; }; }
1915 enable_spinlocks=yes
1921 # --enable-debug adds -g to compiler flags
1924 pgac_args="$pgac_args enable_debug"
1926 # Check whether --enable-debug or --disable-debug was given.
1927 if test "${enable_debug+set}" = set; then
1928 enableval="$enable_debug"
1938 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1939 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1940 { (exit 1); exit 1; }; }
1955 pgac_args="$pgac_args enable_dtrace"
1957 # Check whether --enable-dtrace or --disable-dtrace was given.
1958 if test "${enable_dtrace+set}" = set; then
1959 enableval="$enable_dtrace"
1964 cat >>confdefs.h <<\_ACEOF
1965 #define ENABLE_DTRACE 1
1968 for ac_prog in dtrace
1970 # Extract the first word of "$ac_prog", so it can be a program name with args.
1971 set dummy $ac_prog; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_DTRACE+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$DTRACE"; then
1978 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_DTRACE="$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 DTRACE=$ac_cv_prog_DTRACE
1997 if test -n "$DTRACE"; then
1998 echo "$as_me:$LINENO: result: $DTRACE" >&5
1999 echo "${ECHO_T}$DTRACE" >&6
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2005 test -n "$DTRACE" && break
2008 if test -z "$DTRACE"; then
2009 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2010 echo "$as_me: error: dtrace not found" >&2;}
2011 { (exit 1); exit 1; }; }
2019 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2020 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2021 { (exit 1); exit 1; }; }
2036 # For historical reasons you can also use --with-CC to specify the C compiler
2037 # to use, although the standard way to do this is to set the CC environment
2040 pgac_args="$pgac_args with_CC"
2043 # Check whether --with-CC or --without-CC was given.
2044 if test "${with_CC+set}" = set; then
2049 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2050 echo "$as_me: error: argument required for --with-CC option" >&2;}
2051 { (exit 1); exit 1; }; }
2054 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2055 echo "$as_me: error: argument required for --with-CC option" >&2;}
2056 { (exit 1); exit 1; }; }
2067 aix) pgac_cc_list="gcc xlc";;
2068 irix) pgac_cc_list="cc";; # no gcc
2069 *) pgac_cc_list="gcc cc";;
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077 if test -n "$ac_tool_prefix"; then
2078 for ac_prog in $pgac_cc_list
2080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2115 test -n "$CC" && break
2118 if test -z "$CC"; then
2120 for ac_prog in $pgac_cc_list
2122 # Extract the first word of "$ac_prog", so it can be a program name with args.
2123 set dummy $ac_prog; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_ac_ct_CC="$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149 if test -n "$ac_ct_CC"; then
2150 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151 echo "${ECHO_T}$ac_ct_CC" >&6
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2157 test -n "$ac_ct_CC" && break
2164 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: no acceptable C compiler found in \$PATH
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2170 # Provide some information about the compiler.
2171 echo "$as_me:$LINENO:" \
2172 "checking for C compiler version" >&5
2173 ac_compiler=`set X $ac_compile; echo $2`
2174 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2175 (eval $ac_compiler --version </dev/null >&5) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }
2179 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2180 (eval $ac_compiler -v </dev/null >&5) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }
2184 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2185 (eval $ac_compiler -V </dev/null >&5) 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2190 cat >conftest.$ac_ext <<_ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2205 ac_clean_files_save=$ac_clean_files
2206 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2207 # Try to create an executable without -o first, disregard a.out.
2208 # It will help us diagnose broken compilers, and finding out an intuition
2210 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2211 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2212 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2213 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2214 (eval $ac_link_default) 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; then
2218 # Find the output, starting from the most likely. This scheme is
2219 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2222 # Be careful to initialize this variable, since it used to be cached.
2223 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225 # b.out is created by i960 compilers.
2226 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2228 test -f "$ac_file" || continue
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2233 # This is the source file.
2236 # We found the default executable, but exeext='' is most
2240 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241 # FIXME: I believe we export ac_cv_exeext for Libtool,
2242 # but it would be cool to find out if it's true. Does anybody
2243 # maintain Libtool? --akim.
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: C compiler cannot create executables
2257 See \`config.log' for more details." >&2;}
2258 { (exit 77); exit 77; }; }
2261 ac_exeext=$ac_cv_exeext
2262 echo "$as_me:$LINENO: result: $ac_file" >&5
2263 echo "${ECHO_T}$ac_file" >&6
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2268 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2269 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2270 # If not cross compiling, check that we can run a simple program.
2271 if test "$cross_compiling" != yes; then
2272 if { ac_try='./$ac_file'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2280 if test "$cross_compiling" = maybe; then
2283 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2284 If you meant to cross compile, use \`--host'.
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2293 echo "$as_me:$LINENO: result: yes" >&5
2294 echo "${ECHO_T}yes" >&6
2296 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2297 ac_clean_files=$ac_clean_files_save
2298 # Check the compiler produces executables we can run. If not, either
2299 # the compiler is broken, or we cross compile.
2300 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2301 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2302 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2303 echo "${ECHO_T}$cross_compiling" >&6
2305 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2306 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2308 (eval $ac_link) 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; then
2312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2314 # work properly (i.e., refer to `conftest.exe'), while it won't with
2316 for ac_file in conftest.exe conftest conftest.*; do
2317 test -f "$ac_file" || continue
2319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest$ac_cv_exeext
2335 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2336 echo "${ECHO_T}$ac_cv_exeext" >&6
2338 rm -f conftest.$ac_ext
2339 EXEEXT=$ac_cv_exeext
2341 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2343 if test "${ac_cv_objext+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2361 rm -f conftest.o conftest.obj
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2388 echo "${ECHO_T}$ac_cv_objext" >&6
2389 OBJEXT=$ac_cv_objext
2391 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2392 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2393 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 cat >conftest.$ac_ext <<_ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_c_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449 GCC=`test $ac_compiler_gnu = yes && echo yes`
2450 ac_test_CFLAGS=${CFLAGS+set}
2451 ac_save_CFLAGS=$CFLAGS
2453 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2455 if test "${ac_cv_prog_cc_g+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 cat >conftest.$ac_ext <<_ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2505 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2506 if test "$ac_test_CFLAGS" = set; then
2507 CFLAGS=$ac_save_CFLAGS
2508 elif test $ac_cv_prog_cc_g = yes; then
2509 if test "$GCC" = yes; then
2515 if test "$GCC" = yes; then
2521 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2522 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2523 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 ac_cv_prog_cc_stdc=no
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 #include <sys/types.h>
2537 #include <sys/stat.h>
2538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2539 struct buf { int x; };
2540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2541 static char *e (p, i)
2547 static char *f (char * (*g) (char **, int), char **p, ...)
2552 s = g (p, va_arg (v,int));
2557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2558 function prototypes and stuff, but not '\xHH' hex character constants.
2559 These don't provoke an error unfortunately, instead are silently treated
2560 as 'x'. The following induces an error, until -std1 is added to get
2561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2562 array size at least. It's necessary to write '\x00'==0 to get something
2563 that's true only with -std1. */
2564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2566 int test (int i, double x);
2567 struct s1 {int (*f) (int a);};
2568 struct s2 {int (*f) (double a);};
2569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2580 # Don't try gcc -ansi; that turns off useful extensions and
2581 # breaks some systems' header files.
2582 # AIX -qlanglvl=ansi
2583 # Ultrix and OSF/1 -std1
2584 # HP-UX 10.20 and later -Ae
2585 # HP-UX older versions -Aa -D_HPUX_SOURCE
2586 # SVR4 -Xc -D__EXTENSIONS__
2587 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2589 CC="$ac_save_CC $ac_arg"
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2594 grep -v '^ *+' conftest.er1 >conftest.err
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 ac_cv_prog_cc_stdc=$ac_arg
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2619 rm -f conftest.err conftest.$ac_objext
2621 rm -f conftest.$ac_ext conftest.$ac_objext
2626 case "x$ac_cv_prog_cc_stdc" in
2628 echo "$as_me:$LINENO: result: none needed" >&5
2629 echo "${ECHO_T}none needed" >&6 ;;
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2633 CC="$CC $ac_cv_prog_cc_stdc" ;;
2636 # Some people use a C++ compiler to compile C. Since we use `exit',
2637 # in C++ we need to declare it. In case someone uses the same compiler
2638 # for both compiling C and C++ we need to have the C++ compiler decide
2639 # the declaration of exit, since it's the most demanding environment.
2640 cat >conftest.$ac_ext <<_ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 for ac_declaration in \
2669 'extern "C" void std::exit (int) throw (); using std::exit;' \
2670 'extern "C" void std::exit (int); using std::exit;' \
2671 'extern "C" void exit (int) throw ();' \
2672 'extern "C" void exit (int);' \
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag"
2701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag"
2746 || test ! -s conftest.err'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767 if test -n "$ac_declaration"; then
2768 echo '#ifdef __cplusplus' >>confdefs.h
2769 echo $ac_declaration >>confdefs.h
2770 echo '#endif' >>confdefs.h
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 . "$srcdir/src/template/$template" || exit
2793 # CFLAGS are selected so:
2794 # If the user specifies something in the environment, that is used.
2795 # else: If the template file set something, that is used.
2796 # else: If the compiler is GCC, then we use -O2.
2797 # else: If the compiler is something else, then we use -0.
2799 if test "$ac_env_CFLAGS_set" = set; then
2800 CFLAGS=$ac_env_CFLAGS_value
2801 elif test "${CFLAGS+set}" = set; then
2802 : # (keep what template set)
2803 elif test "$GCC" = yes; then
2806 # if the user selected debug mode, don't use -O
2807 if test "$enable_debug" != yes; then
2812 # Some versions of GCC support some additional useful warning flags.
2813 # Check whether they are supported, and add them to CFLAGS if so.
2815 if test "$GCC" = yes; then
2817 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2818 # So we have to check if "GCC" is really ICC.
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2830 #ifndef __INTEL_COMPILER
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_c_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 if test "$ICC" = no; then
2869 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2871 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2872 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2873 pgac_save_CFLAGS=$CFLAGS
2874 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2875 cat >conftest.$ac_ext <<_ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913 echo "${ECHO_T}yes" >&6
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 CFLAGS="$pgac_save_CFLAGS"
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2925 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2926 pgac_save_CFLAGS=$CFLAGS
2927 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 echo "$as_me:$LINENO: result: yes" >&5
2966 echo "${ECHO_T}yes" >&6
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 CFLAGS="$pgac_save_CFLAGS"
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 # Intel compiler has a bug/misoptimization in checking for
2979 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
2981 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
2982 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
2983 pgac_save_CFLAGS=$CFLAGS
2984 CFLAGS="$pgac_save_CFLAGS -mp1"
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag"
3010 || test ! -s conftest.err'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 echo "$as_me:$LINENO: result: yes" >&5
3023 echo "${ECHO_T}yes" >&6
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 CFLAGS="$pgac_save_CFLAGS"
3029 echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6
3032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3036 # Disable strict-aliasing rules; needed for gcc 3.3+
3037 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3038 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3039 pgac_save_CFLAGS=$CFLAGS
3040 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 CFLAGS="$pgac_save_CFLAGS"
3085 echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3090 elif test x"${CC}" = x"xlc"; then
3091 # AIX xlc has to have strict aliasing turned off too
3092 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3093 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3094 pgac_save_CFLAGS=$CFLAGS
3095 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113 (eval $ac_compile) 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag"
3121 || test ! -s conftest.err'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 echo "$as_me:$LINENO: result: yes" >&5
3134 echo "${ECHO_T}yes" >&6
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 CFLAGS="$pgac_save_CFLAGS"
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3147 # supply -g if --enable-debug
3148 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3152 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3153 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3155 # We already have this in Makefile.win32, but configure needs it too
3156 if test "$PORTNAME" = "win32"; then
3157 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3160 # Check if the compiler still works with the template settings
3161 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3162 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3178 rm -f conftest.$ac_objext conftest$ac_exeext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180 (eval $ac_link) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest$ac_exeext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3209 echo "$as_me: error: cannot proceed" >&2;}
3210 { (exit 1); exit 1; }; }
3212 rm -f conftest.err conftest.$ac_objext \
3213 conftest$ac_exeext conftest.$ac_ext
3215 # Defend against gcc -ffast-math
3216 if test "$GCC" = yes; then
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3227 #ifdef __FAST_MATH__
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3262 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3263 { (exit 1); exit 1; }; }
3265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3274 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3275 # On Suns, sometimes $CPP names a directory.
3276 if test -n "$CPP" && test -d "$CPP"; then
3279 if test -z "$CPP"; then
3280 if test "${ac_cv_prog_CPP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 # Double quotes because CPP needs to be expanded
3284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3302 # include <limits.h>
3304 # include <assert.h>
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #include <ac_nonexistent.h>
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3374 rm -f conftest.err conftest.$ac_ext
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3391 echo "$as_me:$LINENO: result: $CPP" >&5
3392 echo "${ECHO_T}$CPP" >&6
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3409 # include <limits.h>
3411 # include <assert.h>
3415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3441 rm -f conftest.err conftest.$ac_ext
3443 # OK, works on sane cases. Now check whether non-existent headers
3444 # can be detected and how.
3445 cat >conftest.$ac_ext <<_ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <ac_nonexistent.h>
3453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 if test -z "$ac_cpp_err"; then
3471 # Broken: success on invalid input.
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Passes both tests.
3481 rm -f conftest.err conftest.$ac_ext
3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485 rm -f conftest.err conftest.$ac_ext
3486 if $ac_preproc_ok; then
3489 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 # Create compiler version string
3505 if test x"$GCC" = x"yes" ; then
3506 cc_string="GCC `${CC} --version | sed q`"
3511 cat >>confdefs.h <<_ACEOF
3512 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3518 # Set up TAS assembly code if needed; the template file has now had its
3519 # chance to request this.
3521 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3524 if test "$need_tas" = yes ; then
3533 # Automatic dependency tracking
3536 pgac_args="$pgac_args enable_depend"
3538 # Check whether --enable-depend or --disable-depend was given.
3539 if test "${enable_depend+set}" = set; then
3540 enableval="$enable_depend"
3550 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3551 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3552 { (exit 1); exit 1; }; }
3565 # Enable assert checks
3568 pgac_args="$pgac_args enable_cassert"
3570 # Check whether --enable-cassert or --disable-cassert was given.
3571 if test "${enable_cassert+set}" = set; then
3572 enableval="$enable_cassert"
3577 cat >>confdefs.h <<\_ACEOF
3578 #define USE_ASSERT_CHECKING 1
3586 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3587 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3588 { (exit 1); exit 1; }; }
3600 # Include directories
3603 IFS="${IFS}${PATH_SEPARATOR}"
3604 # SRCH_INC comes from the template file
3605 for dir in $with_includes $SRCH_INC; do
3606 if test -d "$dir"; then
3607 INCLUDES="$INCLUDES -I$dir"
3609 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3610 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3618 # Library directories
3621 IFS="${IFS}${PATH_SEPARATOR}"
3622 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3623 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3624 if test -d "$dir"; then
3625 LIBDIRS="$LIBDIRS -L$dir"
3627 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3628 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3634 # Enable thread-safe client libraries
3636 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3637 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3639 pgac_args="$pgac_args enable_thread_safety"
3641 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3642 if test "${enable_thread_safety+set}" = set; then
3643 enableval="$enable_thread_safety"
3653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3654 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3655 { (exit 1); exit 1; }; }
3660 enable_thread_safety=no
3665 pgac_args="$pgac_args enable_thread_safety_force"
3667 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3668 if test "${enable_thread_safety_force+set}" = set; then
3669 enableval="$enable_thread_safety_force"
3679 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3680 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3681 { (exit 1); exit 1; }; }
3686 enable_thread_safety_force=no
3690 if test "$enable_thread_safety" = yes -o \
3691 "$enable_thread_safety_force" = yes; then
3692 enable_thread_safety="yes" # for 'force'
3694 cat >>confdefs.h <<\_ACEOF
3695 #define ENABLE_THREAD_SAFETY 1
3699 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3700 echo "${ECHO_T}$enable_thread_safety" >&6
3704 # Optionally build Tcl modules (PL/Tcl)
3706 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3707 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3709 pgac_args="$pgac_args with_tcl"
3712 # Check whether --with-tcl or --without-tcl was given.
3713 if test "${with_tcl+set}" = set; then
3724 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3725 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3726 { (exit 1); exit 1; }; }
3735 echo "$as_me:$LINENO: result: $with_tcl" >&5
3736 echo "${ECHO_T}$with_tcl" >&6
3739 # We see if the path to the Tcl/Tk configuration scripts is specified.
3740 # This will override the use of tclsh to find the paths to search.
3743 pgac_args="$pgac_args with_tclconfig"
3746 # Check whether --with-tclconfig or --without-tclconfig was given.
3747 if test "${with_tclconfig+set}" = set; then
3748 withval="$with_tclconfig"
3752 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3753 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3754 { (exit 1); exit 1; }; }
3757 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3758 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3759 { (exit 1); exit 1; }; }
3770 # Optionally build Perl modules (PL/Perl)
3772 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3773 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3775 pgac_args="$pgac_args with_perl"
3778 # Check whether --with-perl or --without-perl was given.
3779 if test "${with_perl+set}" = set; then
3780 withval="$with_perl"
3790 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3791 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3792 { (exit 1); exit 1; }; }
3801 echo "$as_me:$LINENO: result: $with_perl" >&5
3802 echo "${ECHO_T}$with_perl" >&6
3806 # Optionally build Python modules (PL/Python)
3808 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3809 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3811 pgac_args="$pgac_args with_python"
3814 # Check whether --with-python or --without-python was given.
3815 if test "${with_python+set}" = set; then
3816 withval="$with_python"
3826 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3827 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3828 { (exit 1); exit 1; }; }
3837 echo "$as_me:$LINENO: result: $with_python" >&5
3838 echo "${ECHO_T}$with_python" >&6
3844 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3845 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3847 pgac_args="$pgac_args with_krb5"
3850 # Check whether --with-krb5 or --without-krb5 was given.
3851 if test "${with_krb5+set}" = set; then
3852 withval="$with_krb5"
3858 cat >>confdefs.h <<\_ACEOF
3862 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3869 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3870 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3871 { (exit 1); exit 1; }; }
3880 echo "$as_me:$LINENO: result: $with_krb5" >&5
3881 echo "${ECHO_T}$with_krb5" >&6
3889 # Kerberos configuration parameters
3892 pgac_args="$pgac_args with_krb_srvnam"
3895 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3896 if test "${with_krb_srvnam+set}" = set; then
3897 withval="$with_krb_srvnam"
3901 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3902 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3903 { (exit 1); exit 1; }; }
3906 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3907 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3908 { (exit 1); exit 1; }; }
3916 with_krb_srvnam="postgres"
3920 cat >>confdefs.h <<_ACEOF
3921 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3929 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3930 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3932 pgac_args="$pgac_args with_pam"
3935 # Check whether --with-pam or --without-pam was given.
3936 if test "${with_pam+set}" = set; then
3942 cat >>confdefs.h <<\_ACEOF
3951 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3952 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3953 { (exit 1); exit 1; }; }
3962 echo "$as_me:$LINENO: result: $with_pam" >&5
3963 echo "${ECHO_T}$with_pam" >&6
3970 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3971 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3973 pgac_args="$pgac_args with_ldap"
3976 # Check whether --with-ldap or --without-ldap was given.
3977 if test "${with_ldap+set}" = set; then
3978 withval="$with_ldap"
3983 cat >>confdefs.h <<\_ACEOF
3992 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3993 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3994 { (exit 1); exit 1; }; }
4003 echo "$as_me:$LINENO: result: $with_ldap" >&5
4004 echo "${ECHO_T}$with_ldap" >&6
4011 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4012 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4014 pgac_args="$pgac_args with_bonjour"
4017 # Check whether --with-bonjour or --without-bonjour was given.
4018 if test "${with_bonjour+set}" = set; then
4019 withval="$with_bonjour"
4024 cat >>confdefs.h <<\_ACEOF
4025 #define USE_BONJOUR 1
4033 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4034 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4035 { (exit 1); exit 1; }; }
4044 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4045 echo "${ECHO_T}$with_bonjour" >&6
4052 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4053 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4055 pgac_args="$pgac_args with_openssl"
4058 # Check whether --with-openssl or --without-openssl was given.
4059 if test "${with_openssl+set}" = set; then
4060 withval="$with_openssl"
4065 cat >>confdefs.h <<\_ACEOF
4074 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4075 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4076 { (exit 1); exit 1; }; }
4085 echo "$as_me:$LINENO: result: $with_openssl" >&5
4086 echo "${ECHO_T}$with_openssl" >&6
4094 pgac_args="$pgac_args with_readline"
4097 # Check whether --with-readline or --without-readline was given.
4098 if test "${with_readline+set}" = set; then
4099 withval="$with_readline"
4109 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4110 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4111 { (exit 1); exit 1; }; }
4120 # readline on MinGW has problems with backslashes in psql and other bugs.
4121 # This is particularly a problem with non-US code pages.
4122 # Therefore disable its use until we understand the cause. 2004-07-20
4123 if test "$PORTNAME" = "win32"; then
4124 if test "$with_readline" = yes; then
4125 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4126 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4136 pgac_args="$pgac_args with_libedit_preferred"
4139 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4140 if test "${with_libedit_preferred+set}" = set; then
4141 withval="$with_libedit_preferred"
4151 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4152 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4153 { (exit 1); exit 1; }; }
4158 with_libedit_preferred=no
4168 pgac_args="$pgac_args with_libxml"
4171 # Check whether --with-libxml or --without-libxml was given.
4172 if test "${with_libxml+set}" = set; then
4173 withval="$with_libxml"
4178 cat >>confdefs.h <<\_ACEOF
4179 #define USE_LIBXML 1
4187 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4188 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4189 { (exit 1); exit 1; }; }
4204 pgac_args="$pgac_args with_zlib"
4207 # Check whether --with-zlib or --without-zlib was given.
4208 if test "${with_zlib+set}" = set; then
4209 withval="$with_zlib"
4219 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4220 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4221 { (exit 1); exit 1; }; }
4236 # Assume system is ELF if it predefines __ELF__ as 1,
4237 # otherwise believe host_os based default.
4239 freebsd1*|freebsd2*) elf=no;;
4240 freebsd3*|freebsd4*) elf=yes;;
4244 echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246 if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271 $EGREP "yes" >/dev/null 2>&1; then
4274 if test "X$elf" = "Xyes" ; then
4288 CPPFLAGS="$CPPFLAGS $INCLUDES"
4289 LDFLAGS="$LDFLAGS $LIBDIRS"
4291 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4292 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4293 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4294 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4298 for ac_prog in gawk mawk nawk awk
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy $ac_prog; ac_word=$2
4302 echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_AWK+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$AWK"; then
4308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_AWK="$ac_prog"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 if test -n "$AWK"; then
4328 echo "$as_me:$LINENO: result: $AWK" >&5
4329 echo "${ECHO_T}$AWK" >&6
4331 echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 test -n "$AWK" && break
4338 echo "$as_me:$LINENO: checking for flex" >&5
4339 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4340 if test "${pgac_cv_path_flex+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 # Let the user override the test
4344 if test -n "$FLEX"; then
4345 pgac_cv_path_flex=$FLEX
4349 for pgac_dir in $PATH; do
4351 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4354 for pgac_prog in flex lex; do
4355 pgac_candidate="$pgac_dir/$pgac_prog"
4356 if test -f "$pgac_candidate" \
4357 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4359 echo '%%' > conftest.l
4360 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4361 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4362 pgac_broken_flex=$pgac_candidate
4366 pgac_cv_path_flex=$pgac_candidate
4372 rm -f conftest.l lex.yy.c
4373 : ${pgac_cv_path_flex=no}
4377 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4378 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4379 if test x"$pgac_cv_path_flex" = x"no"; then
4380 if test -n "$pgac_broken_flex"; then
4381 { echo "$as_me:$LINENO: WARNING:
4382 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4383 *** should get version 2.5.4 or later." >&5
4384 echo "$as_me: WARNING:
4385 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4386 *** should get version 2.5.4 or later." >&2;}
4389 { echo "$as_me:$LINENO: WARNING:
4390 *** Without Flex you will not be able to build PostgreSQL from CVS or
4391 *** change any of the scanner definition files. You can obtain Flex from
4392 *** a GNU mirror site. (If you are using the official distribution of
4393 *** PostgreSQL then you do not need to worry about this because the Flex
4394 *** output is pre-generated.)" >&5
4395 echo "$as_me: WARNING:
4396 *** Without Flex you will not be able to build PostgreSQL from CVS or
4397 *** change any of the scanner definition files. You can obtain Flex from
4398 *** a GNU mirror site. (If you are using the official distribution of
4399 *** PostgreSQL then you do not need to worry about this because the Flex
4400 *** output is pre-generated.)" >&2;}
4403 if test x"$pgac_cv_path_flex" = x"no"; then
4406 FLEX=$pgac_cv_path_flex
4412 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4413 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4415 if test "$LN_S" = "ln -s"; then
4416 echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4419 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4420 echo "${ECHO_T}no, using $LN_S" >&6
4424 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4425 if test "${with_gnu_ld+set}" = set; then
4426 withval="$with_gnu_ld"
4427 test "$withval" = no || with_gnu_ld=yes
4432 if test "$GCC" = yes; then
4433 # Check if gcc -print-prog-name=ld gives a path.
4434 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4435 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4438 # gcc leaves a trailing carriage return which upsets mingw
4439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4444 # Accept absolute paths.
4445 [\\/]* | [A-Za-z]:[\\/]*)
4446 re_direlt='/[^/][^/]*/\.\./'
4447 # Canonicalize the path of ld
4448 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4449 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4450 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4452 test -z "$LD" && LD="$ac_prog"
4455 # If it fails, then pretend we aren't using GCC.
4459 # If it is relative, then search for the first ld in PATH.
4463 elif test "$with_gnu_ld" = yes; then
4464 echo "$as_me:$LINENO: checking for GNU ld" >&5
4465 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4467 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4468 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4470 if test "${ac_cv_path_LD+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -z "$LD"; then
4474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4475 for ac_dir in $PATH; do
4476 test -z "$ac_dir" && ac_dir=.
4477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4478 ac_cv_path_LD="$ac_dir/$ac_prog"
4479 # Check to see if the program is GNU ld. I'd rather use --version,
4480 # but apparently some GNU ld's only accept -v.
4481 # Break only if it was the GNU/non-GNU ld that we prefer.
4482 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4483 test "$with_gnu_ld" != no && break
4485 test "$with_gnu_ld" != yes && break
4491 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4496 if test -n "$LD"; then
4497 echo "$as_me:$LINENO: result: $LD" >&5
4498 echo "${ECHO_T}$LD" >&6
4500 echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4505 { (exit 1); exit 1; }; }
4506 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4508 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4512 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4513 ac_cv_prog_gnu_ld=yes
4515 ac_cv_prog_gnu_ld=no
4518 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4519 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4520 with_gnu_ld=$ac_cv_prog_gnu_ld
4525 case $host_os in sysv5*)
4526 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4527 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4528 if test "${pgac_cv_prog_ld_R+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 pgac_cv_prog_ld_R=yes
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 pgac_cv_prog_ld_R=no
4577 rm -f conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4579 LDFLAGS=$pgac_save_LDFLAGS
4582 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4583 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4584 ld_R_works=$pgac_cv_prog_ld_R
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_prog_RANLIB+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$RANLIB"; then
4596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 RANLIB=$ac_cv_prog_RANLIB
4615 if test -n "$RANLIB"; then
4616 echo "$as_me:$LINENO: result: $RANLIB" >&5
4617 echo "${ECHO_T}$RANLIB" >&6
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4624 if test -z "$ac_cv_prog_RANLIB"; then
4625 ac_ct_RANLIB=$RANLIB
4626 # Extract the first word of "ranlib", so it can be a program name with args.
4627 set dummy ranlib; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$ac_ct_RANLIB"; then
4634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_ac_ct_RANLIB="ranlib"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4653 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4654 if test -n "$ac_ct_RANLIB"; then
4655 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4656 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4658 echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6
4662 RANLIB=$ac_ct_RANLIB
4664 RANLIB="$ac_cv_prog_RANLIB"
4667 # Extract the first word of "tar", so it can be a program name with args.
4668 set dummy tar; ac_word=$2
4669 echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_path_TAR+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 if test -n "$TAR"; then
4699 echo "$as_me:$LINENO: result: $TAR" >&5
4700 echo "${ECHO_T}$TAR" >&6
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}strip; ac_word=$2
4710 echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4712 if test "${ac_cv_prog_STRIP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 if test -n "$STRIP"; then
4716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 STRIP=$ac_cv_prog_STRIP
4735 if test -n "$STRIP"; then
4736 echo "$as_me:$LINENO: result: $STRIP" >&5
4737 echo "${ECHO_T}$STRIP" >&6
4739 echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6
4744 if test -z "$ac_cv_prog_STRIP"; then
4746 # Extract the first word of "strip", so it can be a program name with args.
4747 set dummy strip; ac_word=$2
4748 echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 if test -n "$ac_ct_STRIP"; then
4754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_ac_ct_STRIP="strip"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4774 if test -n "$ac_ct_STRIP"; then
4775 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4776 echo "${ECHO_T}$ac_ct_STRIP" >&6
4778 echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6
4784 STRIP="$ac_cv_prog_STRIP"
4788 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4789 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4790 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4791 STRIP_STATIC_LIB="$STRIP -x"
4792 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4793 echo "$as_me:$LINENO: result: yes" >&5
4794 echo "${ECHO_T}yes" >&6
4798 echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6
4805 if test -z "$YACC"; then
4806 for ac_prog in 'bison -y'
4808 # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_prog_YACC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 if test -n "$YACC"; then
4816 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_YACC="$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 YACC=$ac_cv_prog_YACC
4835 if test -n "$YACC"; then
4836 echo "$as_me:$LINENO: result: $YACC" >&5
4837 echo "${ECHO_T}$YACC" >&6
4839 echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4843 test -n "$YACC" && break
4847 if test "$YACC"; then
4848 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4849 { echo "$as_me:$LINENO: WARNING:
4850 *** The installed version of Bison is too old to use with PostgreSQL.
4851 *** Bison version 1.875 or later is required." >&5
4852 echo "$as_me: WARNING:
4853 *** The installed version of Bison is too old to use with PostgreSQL.
4854 *** Bison version 1.875 or later is required." >&2;}
4859 if test -z "$YACC"; then
4860 { echo "$as_me:$LINENO: WARNING:
4861 *** Without Bison you will not be able to build PostgreSQL from CVS nor
4862 *** change any of the parser definition files. You can obtain Bison from
4863 *** a GNU mirror site. (If you are using the official distribution of
4864 *** PostgreSQL then you do not need to worry about this, because the Bison
4865 *** output is pre-generated.) To use a different yacc program (possible,
4866 *** but not recommended), set the environment variable YACC before running
4867 *** 'configure'." >&5
4868 echo "$as_me: WARNING:
4869 *** Without Bison you will not be able to build PostgreSQL from CVS nor
4870 *** change any of the parser definition files. You can obtain Bison from
4871 *** a GNU mirror site. (If you are using the official distribution of
4872 *** PostgreSQL then you do not need to worry about this, because the Bison
4873 *** output is pre-generated.) To use a different yacc program (possible,
4874 *** but not recommended), set the environment variable YACC before running
4875 *** 'configure'." >&2;}
4880 # Extract the first word of "perl", so it can be a program name with args.
4881 set dummy perl; ac_word=$2
4882 echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4884 if test "${ac_cv_path_PERL+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 PERL=$ac_cv_path_PERL
4911 if test -n "$PERL"; then
4912 echo "$as_me:$LINENO: result: $PERL" >&5
4913 echo "${ECHO_T}$PERL" >&6
4915 echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4919 if test "$with_perl" = yes; then
4921 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4922 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4923 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4924 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4925 echo "${ECHO_T}$perl_archlibexp" >&6
4926 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4927 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4928 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4929 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4930 echo "${ECHO_T}$perl_privlibexp" >&6
4931 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4932 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4933 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4934 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4935 echo "${ECHO_T}$perl_useshrplib" >&6
4937 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4938 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4939 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4940 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4941 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4942 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4943 echo "${ECHO_T}$perl_embed_ldflags" >&6
4946 if test "$with_python" = yes; then
4947 # Extract the first word of "python", so it can be a program name with args.
4948 set dummy python; ac_word=$2
4949 echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4951 if test "${ac_cv_path_PYTHON+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 PYTHON=$ac_cv_path_PYTHON
4978 if test -n "$PYTHON"; then
4979 echo "$as_me:$LINENO: result: $PYTHON" >&5
4980 echo "${ECHO_T}$PYTHON" >&6
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4986 if test x"$PYTHON" = x""; then
4987 { { echo "$as_me:$LINENO: error: Python not found" >&5
4988 echo "$as_me: error: Python not found" >&2;}
4989 { (exit 1); exit 1; }; }
4993 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4994 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4995 if "${PYTHON}" 2>&- -c 'import distutils'
4997 echo "$as_me:$LINENO: result: yes" >&5
4998 echo "${ECHO_T}yes" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5003 echo "$as_me: error: distutils module not found" >&2;}
5004 { (exit 1); exit 1; }; }
5006 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5007 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5008 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5009 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')"`
5010 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5012 # This should be enough of a message.
5013 echo "$as_me:$LINENO: result: $python_configdir" >&5
5014 echo "${ECHO_T}$python_configdir" >&6
5017 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5018 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5020 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5021 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5022 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5023 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5025 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5027 # New way: use the official shared library
5028 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5029 python_libspec="-L${python_libdir} -l${ldlibrary}"
5031 # Old way: use libpython from python_configdir
5032 python_libdir="${python_configdir}"
5033 python_libspec="-L${python_libdir} -lpython${python_version}"
5036 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5038 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5039 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5042 # threaded python is not supported on bsd's
5043 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5044 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5045 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5046 if test "$pythreads" = "1"; then
5047 echo "$as_me:$LINENO: result: yes" >&5
5048 echo "${ECHO_T}yes" >&6
5051 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5052 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5053 { (exit 1); exit 1; }; }
5057 echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5064 # Supply a numeric version string for use by 3rd party add-ons
5065 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5066 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5068 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5070 cat >>confdefs.h <<_ACEOF
5071 #define PG_VERSION_NUM $PG_VERSION_NUM
5078 ## Most libraries are included only if they demonstrably provide a function
5079 ## we need, but libm is an exception: always include it, because there are
5080 ## too many compilers that play cute optimization games that will break
5081 ## probes for standard functions such as pow().
5085 echo "$as_me:$LINENO: checking for main in -lm" >&5
5086 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5087 if test "${ac_cv_lib_m_main+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 ac_check_lib_save_LIBS=$LIBS
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_m_main=yes
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5137 rm -f conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5139 LIBS=$ac_check_lib_save_LIBS
5141 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5142 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5143 if test $ac_cv_lib_m_main = yes; then
5144 cat >>confdefs.h <<_ACEOF
5152 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5153 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5154 if test "${ac_cv_search_setproctitle+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_func_search_save_LIBS=$LIBS
5158 ac_cv_search_setproctitle=no
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5172 char setproctitle ();
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_search_setproctitle="none required"
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5209 rm -f conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
5211 if test "$ac_cv_search_setproctitle" = no; then
5212 for ac_lib in util; do
5213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5221 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5227 char setproctitle ();
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_search_setproctitle="-l$ac_lib"
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5265 rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_func_search_save_LIBS
5271 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5272 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5273 if test "$ac_cv_search_setproctitle" != no; then
5274 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5278 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5279 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5280 if test "${ac_cv_search_dlopen+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 ac_func_search_save_LIBS=$LIBS
5284 ac_cv_search_dlopen=no
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5292 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag"
5317 || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_search_dlopen="none required"
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5335 rm -f conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
5337 if test "$ac_cv_search_dlopen" = no; then
5338 for ac_lib in dl; do
5339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5347 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5362 rm -f conftest.$ac_objext conftest$ac_exeext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5364 (eval $ac_link) 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag"
5372 || test ! -s conftest.err'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_search_dlopen="-l$ac_lib"
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5391 rm -f conftest.err conftest.$ac_objext \
5392 conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_func_search_save_LIBS
5397 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5398 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5399 if test "$ac_cv_search_dlopen" != no; then
5400 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5404 echo "$as_me:$LINENO: checking for library containing socket" >&5
5405 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5406 if test "${ac_cv_search_socket+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_func_search_save_LIBS=$LIBS
5410 ac_cv_search_socket=no
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5418 /* Override any gcc2 internal prototype to avoid an error. */
5422 /* We use char because int might match the return type of a gcc2
5423 builtin and then its argument prototype would still apply. */
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag"
5443 || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest$ac_exeext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_search_socket="none required"
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5461 rm -f conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5463 if test "$ac_cv_search_socket" = no; then
5464 for ac_lib in socket wsock32; do
5465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5488 rm -f conftest.$ac_objext conftest$ac_exeext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5490 (eval $ac_link) 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -z "$ac_c_werror_flag"
5498 || test ! -s conftest.err'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; } &&
5504 { ac_try='test -s conftest$ac_exeext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_search_socket="-l$ac_lib"
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5517 rm -f conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5521 LIBS=$ac_func_search_save_LIBS
5523 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5524 echo "${ECHO_T}$ac_cv_search_socket" >&6
5525 if test "$ac_cv_search_socket" != no; then
5526 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5530 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5531 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5532 if test "${ac_cv_search_shl_load+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 ac_func_search_save_LIBS=$LIBS
5536 ac_cv_search_shl_load=no
5537 cat >conftest.$ac_ext <<_ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5544 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_search_shl_load="none required"
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5587 rm -f conftest.err conftest.$ac_objext \
5588 conftest$ac_exeext conftest.$ac_ext
5589 if test "$ac_cv_search_shl_load" = no; then
5590 for ac_lib in dld; do
5591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5592 cat >conftest.$ac_ext <<_ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5599 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -z "$ac_c_werror_flag"
5624 || test ! -s conftest.err'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest$ac_exeext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_cv_search_shl_load="-l$ac_lib"
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5643 rm -f conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5647 LIBS=$ac_func_search_save_LIBS
5649 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5650 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5651 if test "$ac_cv_search_shl_load" != no; then
5652 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5656 # We only use libld in port/dynloader/aix.c
5659 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5660 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5661 if test "${ac_cv_search_ldopen+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_func_search_save_LIBS=$LIBS
5665 ac_cv_search_ldopen=no
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag"
5698 || test ! -s conftest.err'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 ac_cv_search_ldopen="none required"
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5716 rm -f conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5718 if test "$ac_cv_search_ldopen" = no; then
5719 for ac_lib in ld; do
5720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_c_werror_flag"
5753 || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_cv_search_ldopen="-l$ac_lib"
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5772 rm -f conftest.err conftest.$ac_objext \
5773 conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_func_search_save_LIBS
5778 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5779 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5780 if test "$ac_cv_search_ldopen" != no; then
5781 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5787 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5788 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5789 if test "${ac_cv_search_getopt_long+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 ac_func_search_save_LIBS=$LIBS
5793 ac_cv_search_getopt_long=no
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5801 /* Override any gcc2 internal prototype to avoid an error. */
5805 /* We use char because int might match the return type of a gcc2
5806 builtin and then its argument prototype would still apply. */
5807 char getopt_long ();
5816 rm -f conftest.$ac_objext conftest$ac_exeext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5818 (eval $ac_link) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1 >conftest.err
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest$ac_exeext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_search_getopt_long="none required"
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5844 rm -f conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
5846 if test "$ac_cv_search_getopt_long" = no; then
5847 for ac_lib in getopt gnugetopt; do
5848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5856 /* Override any gcc2 internal prototype to avoid an error. */
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5862 char getopt_long ();
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5873 (eval $ac_link) 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -z "$ac_c_werror_flag"
5881 || test ! -s conftest.err'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest$ac_exeext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_search_getopt_long="-l$ac_lib"
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5900 rm -f conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5904 LIBS=$ac_func_search_save_LIBS
5906 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5907 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5908 if test "$ac_cv_search_getopt_long" != no; then
5909 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5913 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5914 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5915 if test "${ac_cv_search_crypt+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 ac_func_search_save_LIBS=$LIBS
5919 ac_cv_search_crypt=no
5920 cat >conftest.$ac_ext <<_ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5927 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5944 (eval $ac_link) 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag"
5952 || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 ac_cv_search_crypt="none required"
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5970 rm -f conftest.err conftest.$ac_objext \
5971 conftest$ac_exeext conftest.$ac_ext
5972 if test "$ac_cv_search_crypt" = no; then
5973 for ac_lib in crypt; do
5974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5982 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_search_crypt="-l$ac_lib"
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6026 rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_func_search_save_LIBS
6032 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6033 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6034 if test "$ac_cv_search_crypt" != no; then
6035 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6040 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6041 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6042 if test "${ac_cv_search_fdatasync+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 ac_func_search_save_LIBS=$LIBS
6046 ac_cv_search_fdatasync=no
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6054 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6071 (eval $ac_link) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest$ac_exeext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_search_fdatasync="none required"
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6097 rm -f conftest.err conftest.$ac_objext \
6098 conftest$ac_exeext conftest.$ac_ext
6099 if test "$ac_cv_search_fdatasync" = no; then
6100 for ac_lib in rt posix4; do
6101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6109 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>conftest.er1
6128 grep -v '^ *+' conftest.er1 >conftest.err
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -z "$ac_c_werror_flag"
6134 || test ! -s conftest.err'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try='test -s conftest$ac_exeext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_search_fdatasync="-l$ac_lib"
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6153 rm -f conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6157 LIBS=$ac_func_search_save_LIBS
6159 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6160 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6161 if test "$ac_cv_search_fdatasync" != no; then
6162 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6167 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6168 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6169 if test "${ac_cv_search_shmget+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 ac_func_search_save_LIBS=$LIBS
6173 ac_cv_search_shmget=no
6174 cat >conftest.$ac_ext <<_ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6181 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_search_shmget="none required"
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6224 rm -f conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 if test "$ac_cv_search_shmget" = no; then
6227 for ac_lib in cygipc; do
6228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6251 rm -f conftest.$ac_objext conftest$ac_exeext
6252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6253 (eval $ac_link) 2>conftest.er1
6255 grep -v '^ *+' conftest.er1 >conftest.err
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } &&
6260 { ac_try='test -z "$ac_c_werror_flag"
6261 || test ! -s conftest.err'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_search_shmget="-l$ac_lib"
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6280 rm -f conftest.err conftest.$ac_objext \
6281 conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_func_search_save_LIBS
6286 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6287 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6288 if test "$ac_cv_search_shmget" != no; then
6289 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6294 if test "$with_readline" = yes; then
6297 if test "${pgac_cv_check_readline+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 pgac_cv_check_readline=no
6301 pgac_save_LIBS=$LIBS
6302 if test x"$with_libedit_preferred" != x"yes"
6303 then READLINE_ORDER="-lreadline -ledit"
6304 else READLINE_ORDER="-ledit -lreadline"
6306 for pgac_rllib in $READLINE_ORDER ; do
6307 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6308 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6309 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6310 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6356 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6357 # recognize dependent libraries; assume curses is needed if we didn't
6358 # find any dependency.
6360 netbsd* | openbsd* | irix*)
6361 if test x"$pgac_lib" = x"" ; then
6362 pgac_lib=" -lcurses"
6366 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6374 rm -f conftest.err conftest.$ac_objext \
6375 conftest$ac_exeext conftest.$ac_ext
6377 if test "$pgac_cv_check_readline" != no ; then
6378 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6379 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6382 echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6
6386 LIBS=$pgac_save_LIBS
6390 if test "$pgac_cv_check_readline" != no ; then
6391 LIBS="$pgac_cv_check_readline $LIBS"
6393 cat >>confdefs.h <<\_ACEOF
6394 #define HAVE_LIBREADLINE 1
6400 if test x"$pgac_cv_check_readline" = x"no"; then
6401 { { echo "$as_me:$LINENO: error: readline library not found
6402 If you have readline already installed, see config.log for details on the
6403 failure. It is possible the compiler isn't looking in the proper directory.
6404 Use --without-readline to disable readline support." >&5
6405 echo "$as_me: error: readline library not found
6406 If you have readline already installed, see config.log for details on the
6407 failure. It is possible the compiler isn't looking in the proper directory.
6408 Use --without-readline to disable readline support." >&2;}
6409 { (exit 1); exit 1; }; }
6413 if test "$with_zlib" = yes; then
6415 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6416 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6417 if test "${ac_cv_lib_z_inflate+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 ac_check_lib_save_LIBS=$LIBS
6422 cat >conftest.$ac_ext <<_ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6429 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_lib_z_inflate=yes
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_cv_lib_z_inflate=no
6473 rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6475 LIBS=$ac_check_lib_save_LIBS
6477 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6478 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6479 if test $ac_cv_lib_z_inflate = yes; then
6480 cat >>confdefs.h <<_ACEOF
6487 { { echo "$as_me:$LINENO: error: zlib library not found
6488 If you have zlib already installed, see config.log for details on the
6489 failure. It is possible the compiler isn't looking in the proper directory.
6490 Use --without-zlib to disable zlib support." >&5
6491 echo "$as_me: error: zlib library not found
6492 If you have zlib already installed, see config.log for details on the
6493 failure. It is possible the compiler isn't looking in the proper directory.
6494 Use --without-zlib to disable zlib support." >&2;}
6495 { (exit 1); exit 1; }; }
6500 if test "$enable_spinlocks" = yes; then
6502 cat >>confdefs.h <<\_ACEOF
6503 #define HAVE_SPINLOCKS 1
6507 { echo "$as_me:$LINENO: WARNING:
6508 *** Not using spinlocks will cause poor performance." >&5
6509 echo "$as_me: WARNING:
6510 *** Not using spinlocks will cause poor performance." >&2;}
6513 if test "$with_krb5" = yes ; then
6514 if test "$PORTNAME" != "win32"; then
6515 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6516 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6517 if test "${ac_cv_search_com_err+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 ac_func_search_save_LIBS=$LIBS
6521 ac_cv_search_com_err=no
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6529 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest$ac_exeext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_cv_search_com_err="none required"
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6572 rm -f conftest.err conftest.$ac_objext \
6573 conftest$ac_exeext conftest.$ac_ext
6574 if test "$ac_cv_search_com_err" = no; then
6575 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601 (eval $ac_link) 2>conftest.er1
6603 grep -v '^ *+' conftest.er1 >conftest.err
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest$ac_exeext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_cv_search_com_err="-l$ac_lib"
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6628 rm -f conftest.err conftest.$ac_objext \
6629 conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_func_search_save_LIBS
6634 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6635 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6636 if test "$ac_cv_search_com_err" != no; then
6637 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6640 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6641 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6642 { (exit 1); exit 1; }; }
6645 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6646 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6647 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_func_search_save_LIBS=$LIBS
6651 ac_cv_search_krb5_sendauth=no
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6659 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char krb5_sendauth ();
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676 (eval $ac_link) 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_c_werror_flag"
6684 || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest$ac_exeext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_search_krb5_sendauth="none required"
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6702 rm -f conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6704 if test "$ac_cv_search_krb5_sendauth" = no; then
6705 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6714 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6720 char krb5_sendauth ();
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731 (eval $ac_link) 2>conftest.er1
6733 grep -v '^ *+' conftest.er1 >conftest.err
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_cv_search_krb5_sendauth="-l$ac_lib"
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6758 rm -f conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6762 LIBS=$ac_func_search_save_LIBS
6764 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6765 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6766 if test "$ac_cv_search_krb5_sendauth" != no; then
6767 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6770 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6771 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6772 { (exit 1); exit 1; }; }
6776 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6777 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6778 if test "${ac_cv_search_com_err+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_func_search_save_LIBS=$LIBS
6782 ac_cv_search_com_err=no
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6790 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_search_com_err="none required"
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6833 rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835 if test "$ac_cv_search_com_err" = no; then
6836 for ac_lib in 'comerr32 -lkrb5_32'; do
6837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6845 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_search_com_err="-l$ac_lib"
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6889 rm -f conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6893 LIBS=$ac_func_search_save_LIBS
6895 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6896 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6897 if test "$ac_cv_search_com_err" != no; then
6898 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6901 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6902 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6903 { (exit 1); exit 1; }; }
6909 if test "$with_openssl" = yes ; then
6910 if test "$PORTNAME" != "win32"; then
6912 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6913 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6914 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lcrypto $LIBS"
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6926 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char CRYPTO_new_ex_data ();
6936 CRYPTO_new_ex_data ();
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6970 rm -f conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_check_lib_save_LIBS
6974 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6975 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6976 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_LIBCRYPTO 1
6981 LIBS="-lcrypto $LIBS"
6984 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6985 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6986 { (exit 1); exit 1; }; }
6990 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6991 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6992 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_check_lib_save_LIBS=$LIBS
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */
7010 char SSL_library_init ();
7014 SSL_library_init ();
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>conftest.er1
7023 grep -v '^ *+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try='test -z "$ac_c_werror_flag"
7029 || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest$ac_exeext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_lib_ssl_SSL_library_init=yes
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7046 ac_cv_lib_ssl_SSL_library_init=no
7048 rm -f conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 LIBS=$ac_check_lib_save_LIBS
7052 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7053 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7054 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7055 cat >>confdefs.h <<_ACEOF
7056 #define HAVE_LIBSSL 1
7062 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7063 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7064 { (exit 1); exit 1; }; }
7069 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7070 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7071 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_check_lib_save_LIBS=$LIBS
7075 LIBS="-leay32 $LIBS"
7076 cat >conftest.$ac_ext <<_ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7083 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089 char CRYPTO_new_ex_data ();
7093 CRYPTO_new_ex_data ();
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>conftest.er1
7102 grep -v '^ *+' conftest.er1 >conftest.err
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag"
7108 || test ! -s conftest.err'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; } &&
7114 { ac_try='test -s conftest$ac_exeext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7120 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7127 rm -f conftest.err conftest.$ac_objext \
7128 conftest$ac_exeext conftest.$ac_ext
7129 LIBS=$ac_check_lib_save_LIBS
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7132 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7133 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7134 cat >>confdefs.h <<_ACEOF
7135 #define HAVE_LIBEAY32 1
7138 LIBS="-leay32 $LIBS"
7141 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7142 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7143 { (exit 1); exit 1; }; }
7147 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7148 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7149 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_check_lib_save_LIBS=$LIBS
7153 LIBS="-lssleay32 $LIBS"
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7161 /* Override any gcc2 internal prototype to avoid an error. */
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7167 char SSL_library_init ();
7171 SSL_library_init ();
7176 rm -f conftest.$ac_objext conftest$ac_exeext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7178 (eval $ac_link) 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_lib_ssleay32_SSL_library_init=yes
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_cv_lib_ssleay32_SSL_library_init=no
7205 rm -f conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 LIBS=$ac_check_lib_save_LIBS
7209 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7210 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7211 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7212 cat >>confdefs.h <<_ACEOF
7213 #define HAVE_LIBSSLEAY32 1
7216 LIBS="-lssleay32 $LIBS"
7219 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7220 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7221 { (exit 1); exit 1; }; }
7227 if test "$with_pam" = yes ; then
7229 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7230 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7231 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 ac_check_lib_save_LIBS=$LIBS
7236 cat >conftest.$ac_ext <<_ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7243 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260 (eval $ac_link) 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -z "$ac_c_werror_flag"
7268 || test ! -s conftest.err'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; } &&
7274 { ac_try='test -s conftest$ac_exeext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_lib_pam_pam_start=yes
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_cv_lib_pam_pam_start=no
7287 rm -f conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289 LIBS=$ac_check_lib_save_LIBS
7291 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7292 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7293 if test $ac_cv_lib_pam_pam_start = yes; then
7294 cat >>confdefs.h <<_ACEOF
7295 #define HAVE_LIBPAM 1
7301 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7302 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7303 { (exit 1); exit 1; }; }
7308 if test "$with_libxml" = yes ; then
7310 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7311 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7312 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_check_lib_save_LIBS=$LIBS
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7330 char xmlSaveToBuffer ();
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 ac_cv_lib_xml2_xmlSaveToBuffer=no
7368 rm -f conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7370 LIBS=$ac_check_lib_save_LIBS
7372 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7373 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7374 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7375 cat >>confdefs.h <<_ACEOF
7376 #define HAVE_LIBXML2 1
7382 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7383 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7384 { (exit 1); exit 1; }; }
7394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7396 if test "${ac_cv_header_stdc+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -z "$ac_c_werror_flag"
7428 || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_header_stdc=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_cv_header_stdc=no
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 if test $ac_cv_header_stdc = yes; then
7450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461 $EGREP "memchr" >/dev/null 2>&1; then
7464 ac_cv_header_stdc=no
7470 if test $ac_cv_header_stdc = yes; then
7471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "free" >/dev/null 2>&1; then
7485 ac_cv_header_stdc=no
7491 if test $ac_cv_header_stdc = yes; then
7492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7493 if test "$cross_compiling" = yes; then
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7503 #if ((' ' & 0x0FF) == 0x020)
7504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7507 # define ISLOWER(c) \
7508 (('a' <= (c) && (c) <= 'i') \
7509 || ('j' <= (c) && (c) <= 'r') \
7510 || ('s' <= (c) && (c) <= 'z'))
7511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7519 for (i = 0; i < 256; i++)
7520 if (XOR (islower (i), ISLOWER (i))
7521 || toupper (i) != TOUPPER (i))
7526 rm -f conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7539 echo "$as_me: program exited with status $ac_status" >&5
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_cv_header_stdc=no
7546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7551 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7552 if test $ac_cv_header_stdc = yes; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define STDC_HEADERS 1
7560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7571 inttypes.h stdint.h unistd.h
7573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 $ac_includes_default
7587 #include <$ac_header>
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 eval "$as_ac_Header=yes"
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 eval "$as_ac_Header=no"
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623 cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7658 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/resource.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
7660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662 echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670 # Is the header compilable?
7671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #include <$ac_header>
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag"
7692 || test ! -s conftest.err'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; } &&
7698 { ac_try='test -s conftest.$ac_objext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_header_compiler=yes
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_header_compiler=no
7711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7713 echo "${ECHO_T}$ac_header_compiler" >&6
7715 # Is the header present?
7716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7718 cat >conftest.$ac_ext <<_ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 #include <$ac_header>
7726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7729 grep -v '^ *+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } >/dev/null; then
7734 if test -s conftest.err; then
7735 ac_cpp_err=$ac_c_preproc_warn_flag
7736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7743 if test -z "$ac_cpp_err"; then
7744 ac_header_preproc=yes
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 ac_header_preproc=no
7751 rm -f conftest.err conftest.$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7753 echo "${ECHO_T}$ac_header_preproc" >&6
7755 # So? What about this header?
7756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7762 ac_header_preproc=yes
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7779 ## ---------------------------------------- ##
7780 ## Report this to pgsql-bugs@postgresql.org ##
7781 ## ---------------------------------------- ##
7784 sed "s/^/$as_me: WARNING: /" >&2
7787 echo "$as_me:$LINENO: checking for $ac_header" >&5
7788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 eval "$as_ac_Header=\$ac_header_preproc"
7794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7799 cat >>confdefs.h <<_ACEOF
7800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7808 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7809 # netinet/in.h is included first.
7811 for ac_header in netinet/in.h
7813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7815 echo "$as_me:$LINENO: checking for $ac_header" >&5
7816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7823 # Is the header compilable?
7824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 $ac_includes_default
7833 #include <$ac_header>
7835 rm -f conftest.$ac_objext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837 (eval $ac_compile) 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -z "$ac_c_werror_flag"
7845 || test ! -s conftest.err'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_header_compiler=yes
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 ac_header_compiler=no
7864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7866 echo "${ECHO_T}$ac_header_compiler" >&6
7868 # Is the header present?
7869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7871 cat >conftest.$ac_ext <<_ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 #include <$ac_header>
7879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7882 grep -v '^ *+' conftest.er1 >conftest.err
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } >/dev/null; then
7887 if test -s conftest.err; then
7888 ac_cpp_err=$ac_c_preproc_warn_flag
7889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7896 if test -z "$ac_cpp_err"; then
7897 ac_header_preproc=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_header_preproc=no
7904 rm -f conftest.err conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7906 echo "${ECHO_T}$ac_header_preproc" >&6
7908 # So? What about this header?
7909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7915 ac_header_preproc=yes
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7932 ## ---------------------------------------- ##
7933 ## Report this to pgsql-bugs@postgresql.org ##
7934 ## ---------------------------------------- ##
7937 sed "s/^/$as_me: WARNING: /" >&2
7940 echo "$as_me:$LINENO: checking for $ac_header" >&5
7941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 eval "$as_ac_Header=\$ac_header_preproc"
7947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7952 cat >>confdefs.h <<_ACEOF
7953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7961 for ac_header in netinet/tcp.h
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 echo "$as_me:$LINENO: checking for $ac_header" >&5
7965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 cat >conftest.$ac_ext <<_ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 #ifdef HAVE_NETINET_IN_H
7977 #include <netinet/in.h>
7981 #include <$ac_header>
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 eval "$as_ac_Header=yes"
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 eval "$as_ac_Header=no"
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8017 cat >>confdefs.h <<_ACEOF
8018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8026 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8028 for ac_header in readline/readline.h
8030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8032 echo "$as_me:$LINENO: checking for $ac_header" >&5
8033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8040 # Is the header compilable?
8041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 #include <$ac_header>
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 ac_header_compiler=yes
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_header_compiler=no
8081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8083 echo "${ECHO_T}$ac_header_compiler" >&6
8085 # Is the header present?
8086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <$ac_header>
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } >/dev/null; then
8104 if test -s conftest.err; then
8105 ac_cpp_err=$ac_c_preproc_warn_flag
8106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8113 if test -z "$ac_cpp_err"; then
8114 ac_header_preproc=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_header_preproc=no
8121 rm -f conftest.err conftest.$ac_ext
8122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8123 echo "${ECHO_T}$ac_header_preproc" >&6
8125 # So? What about this header?
8126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8132 ac_header_preproc=yes
8135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8149 ## ---------------------------------------- ##
8150 ## Report this to pgsql-bugs@postgresql.org ##
8151 ## ---------------------------------------- ##
8154 sed "s/^/$as_me: WARNING: /" >&2
8157 echo "$as_me:$LINENO: checking for $ac_header" >&5
8158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 eval "$as_ac_Header=\$ac_header_preproc"
8164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8169 cat >>confdefs.h <<_ACEOF
8170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8175 for ac_header in readline.h
8177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8179 echo "$as_me:$LINENO: checking for $ac_header" >&5
8180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8187 # Is the header compilable?
8188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8190 cat >conftest.$ac_ext <<_ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 #include <$ac_header>
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_header_compiler=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_header_compiler=no
8228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8230 echo "${ECHO_T}$ac_header_compiler" >&6
8232 # Is the header present?
8233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 #include <$ac_header>
8243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1 >conftest.err
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } >/dev/null; then
8251 if test -s conftest.err; then
8252 ac_cpp_err=$ac_c_preproc_warn_flag
8253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8260 if test -z "$ac_cpp_err"; then
8261 ac_header_preproc=yes
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 ac_header_preproc=no
8268 rm -f conftest.err conftest.$ac_ext
8269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8270 echo "${ECHO_T}$ac_header_preproc" >&6
8272 # So? What about this header?
8273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8279 ac_header_preproc=yes
8282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8296 ## ---------------------------------------- ##
8297 ## Report this to pgsql-bugs@postgresql.org ##
8298 ## ---------------------------------------- ##
8301 sed "s/^/$as_me: WARNING: /" >&2
8304 echo "$as_me:$LINENO: checking for $ac_header" >&5
8305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 eval "$as_ac_Header=\$ac_header_preproc"
8311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8316 cat >>confdefs.h <<_ACEOF
8317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8321 { { echo "$as_me:$LINENO: error: readline header not found
8322 If you have readline already installed, see config.log for details on the
8323 failure. It is possible the compiler isn't looking in the proper directory.
8324 Use --without-readline to disable readline support." >&5
8325 echo "$as_me: error: readline header not found
8326 If you have readline already installed, see config.log for details on the
8327 failure. It is possible the compiler isn't looking in the proper directory.
8328 Use --without-readline to disable readline support." >&2;}
8329 { (exit 1); exit 1; }; }
8339 for ac_header in readline/history.h
8341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343 echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8351 # Is the header compilable?
8352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 #include <$ac_header>
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_header_compiler=yes
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 ac_header_compiler=no
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8394 echo "${ECHO_T}$ac_header_compiler" >&6
8396 # Is the header present?
8397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <$ac_header>
8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } >/dev/null; then
8415 if test -s conftest.err; then
8416 ac_cpp_err=$ac_c_preproc_warn_flag
8417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8424 if test -z "$ac_cpp_err"; then
8425 ac_header_preproc=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_header_preproc=no
8432 rm -f conftest.err conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6
8436 # So? What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443 ac_header_preproc=yes
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8460 ## ---------------------------------------- ##
8461 ## Report this to pgsql-bugs@postgresql.org ##
8462 ## ---------------------------------------- ##
8465 sed "s/^/$as_me: WARNING: /" >&2
8468 echo "$as_me:$LINENO: checking for $ac_header" >&5
8469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 eval "$as_ac_Header=\$ac_header_preproc"
8475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480 cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8486 for ac_header in history.h
8488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8490 echo "$as_me:$LINENO: checking for $ac_header" >&5
8491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8498 # Is the header compilable?
8499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507 $ac_includes_default
8508 #include <$ac_header>
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_header_compiler=yes
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 ac_header_compiler=no
8539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8541 echo "${ECHO_T}$ac_header_compiler" >&6
8543 # Is the header present?
8544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 #include <$ac_header>
8554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } >/dev/null; then
8562 if test -s conftest.err; then
8563 ac_cpp_err=$ac_c_preproc_warn_flag
8564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8571 if test -z "$ac_cpp_err"; then
8572 ac_header_preproc=yes
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 ac_header_preproc=no
8579 rm -f conftest.err conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8581 echo "${ECHO_T}$ac_header_preproc" >&6
8583 # So? What about this header?
8584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8590 ac_header_preproc=yes
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8607 ## ---------------------------------------- ##
8608 ## Report this to pgsql-bugs@postgresql.org ##
8609 ## ---------------------------------------- ##
8612 sed "s/^/$as_me: WARNING: /" >&2
8615 echo "$as_me:$LINENO: checking for $ac_header" >&5
8616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 eval "$as_ac_Header=\$ac_header_preproc"
8622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8627 cat >>confdefs.h <<_ACEOF
8628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632 { { echo "$as_me:$LINENO: error: history header not found
8633 If you have readline already installed, see config.log for details on the
8634 failure. It is possible the compiler isn't looking in the proper directory.
8635 Use --without-readline to disable readline support." >&5
8636 echo "$as_me: error: history header not found
8637 If you have readline already installed, see config.log for details on the
8638 failure. It is possible the compiler isn't looking in the proper directory.
8639 Use --without-readline to disable readline support." >&2;}
8640 { (exit 1); exit 1; }; }
8651 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8652 # Some installations of libedit usurp /usr/include/readline/, which seems
8653 # bad practice, since in combined installations readline will have its headers
8654 # there. We might have to resort to AC_EGREP checks to make sure we found
8655 # the proper header...
8657 for ac_header in editline/readline.h
8659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661 echo "$as_me:$LINENO: checking for $ac_header" >&5
8662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8669 # Is the header compilable?
8670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #include <$ac_header>
8681 rm -f conftest.$ac_objext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8683 (eval $ac_compile) 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag"
8691 || test ! -s conftest.err'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; } &&
8697 { ac_try='test -s conftest.$ac_objext'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8703 ac_header_compiler=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 ac_header_compiler=no
8710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8712 echo "${ECHO_T}$ac_header_compiler" >&6
8714 # Is the header present?
8715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 #include <$ac_header>
8725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8728 grep -v '^ *+' conftest.er1 >conftest.err
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } >/dev/null; then
8733 if test -s conftest.err; then
8734 ac_cpp_err=$ac_c_preproc_warn_flag
8735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8742 if test -z "$ac_cpp_err"; then
8743 ac_header_preproc=yes
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_header_preproc=no
8750 rm -f conftest.err conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8752 echo "${ECHO_T}$ac_header_preproc" >&6
8754 # So? What about this header?
8755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8761 ac_header_preproc=yes
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8778 ## ---------------------------------------- ##
8779 ## Report this to pgsql-bugs@postgresql.org ##
8780 ## ---------------------------------------- ##
8783 sed "s/^/$as_me: WARNING: /" >&2
8786 echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 eval "$as_ac_Header=\$ac_header_preproc"
8793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8798 cat >>confdefs.h <<_ACEOF
8799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 for ac_header in readline.h
8806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8808 echo "$as_me:$LINENO: checking for $ac_header" >&5
8809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8816 # Is the header compilable?
8817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825 $ac_includes_default
8826 #include <$ac_header>
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_header_compiler=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_header_compiler=no
8857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8859 echo "${ECHO_T}$ac_header_compiler" >&6
8861 # Is the header present?
8862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 #include <$ac_header>
8872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } >/dev/null; then
8880 if test -s conftest.err; then
8881 ac_cpp_err=$ac_c_preproc_warn_flag
8882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8889 if test -z "$ac_cpp_err"; then
8890 ac_header_preproc=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_header_preproc=no
8897 rm -f conftest.err conftest.$ac_ext
8898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8899 echo "${ECHO_T}$ac_header_preproc" >&6
8901 # So? What about this header?
8902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8908 ac_header_preproc=yes
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8925 ## ---------------------------------------- ##
8926 ## Report this to pgsql-bugs@postgresql.org ##
8927 ## ---------------------------------------- ##
8930 sed "s/^/$as_me: WARNING: /" >&2
8933 echo "$as_me:$LINENO: checking for $ac_header" >&5
8934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 eval "$as_ac_Header=\$ac_header_preproc"
8940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8945 cat >>confdefs.h <<_ACEOF
8946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951 for ac_header in readline/readline.h
8953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8955 echo "$as_me:$LINENO: checking for $ac_header" >&5
8956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8963 # Is the header compilable?
8964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 $ac_includes_default
8973 #include <$ac_header>
8975 rm -f conftest.$ac_objext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8977 (eval $ac_compile) 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
8984 { ac_try='test -z "$ac_c_werror_flag"
8985 || test ! -s conftest.err'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; } &&
8991 { ac_try='test -s conftest.$ac_objext'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_header_compiler=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_header_compiler=no
9004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9006 echo "${ECHO_T}$ac_header_compiler" >&6
9008 # Is the header present?
9009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 #include <$ac_header>
9019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } >/dev/null; then
9027 if test -s conftest.err; then
9028 ac_cpp_err=$ac_c_preproc_warn_flag
9029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9036 if test -z "$ac_cpp_err"; then
9037 ac_header_preproc=yes
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_header_preproc=no
9044 rm -f conftest.err conftest.$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9046 echo "${ECHO_T}$ac_header_preproc" >&6
9048 # So? What about this header?
9049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9055 ac_header_preproc=yes
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9072 ## ---------------------------------------- ##
9073 ## Report this to pgsql-bugs@postgresql.org ##
9074 ## ---------------------------------------- ##
9077 sed "s/^/$as_me: WARNING: /" >&2
9080 echo "$as_me:$LINENO: checking for $ac_header" >&5
9081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 eval "$as_ac_Header=\$ac_header_preproc"
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092 cat >>confdefs.h <<_ACEOF
9093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9097 { { echo "$as_me:$LINENO: error: readline header not found
9098 If you have libedit already installed, see config.log for details on the
9099 failure. It is possible the compiler isn't looking in the proper directory.
9100 Use --without-readline to disable libedit support." >&5
9101 echo "$as_me: error: readline header not found
9102 If you have libedit already installed, see config.log for details on the
9103 failure. It is possible the compiler isn't looking in the proper directory.
9104 Use --without-readline to disable libedit support." >&2;}
9105 { (exit 1); exit 1; }; }
9118 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9119 # not be there at all. Hence, don't complain if not found. We must check
9120 # though, since in yet other versions it is an independent header.
9122 for ac_header in editline/history.h
9124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9134 # Is the header compilable?
9135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 $ac_includes_default
9144 #include <$ac_header>
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>conftest.er1
9150 grep -v '^ *+' conftest.er1 >conftest.err
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -z "$ac_c_werror_flag"
9156 || test ! -s conftest.err'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest.$ac_objext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_header_compiler=yes
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9173 ac_header_compiler=no
9175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9177 echo "${ECHO_T}$ac_header_compiler" >&6
9179 # Is the header present?
9180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 #include <$ac_header>
9190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } >/dev/null; then
9198 if test -s conftest.err; then
9199 ac_cpp_err=$ac_c_preproc_warn_flag
9200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9207 if test -z "$ac_cpp_err"; then
9208 ac_header_preproc=yes
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_header_preproc=no
9215 rm -f conftest.err conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9217 echo "${ECHO_T}$ac_header_preproc" >&6
9219 # So? What about this header?
9220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9226 ac_header_preproc=yes
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9243 ## ---------------------------------------- ##
9244 ## Report this to pgsql-bugs@postgresql.org ##
9245 ## ---------------------------------------- ##
9248 sed "s/^/$as_me: WARNING: /" >&2
9251 echo "$as_me:$LINENO: checking for $ac_header" >&5
9252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 eval "$as_ac_Header=\$ac_header_preproc"
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9263 cat >>confdefs.h <<_ACEOF
9264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9269 for ac_header in history.h
9271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9273 echo "$as_me:$LINENO: checking for $ac_header" >&5
9274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9281 # Is the header compilable?
9282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 $ac_includes_default
9291 #include <$ac_header>
9293 rm -f conftest.$ac_objext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295 (eval $ac_compile) 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag"
9303 || test ! -s conftest.err'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; } &&
9309 { ac_try='test -s conftest.$ac_objext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_header_compiler=yes
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_header_compiler=no
9322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6
9326 # Is the header present?
9327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <$ac_header>
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } >/dev/null; then
9345 if test -s conftest.err; then
9346 ac_cpp_err=$ac_c_preproc_warn_flag
9347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9354 if test -z "$ac_cpp_err"; then
9355 ac_header_preproc=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_header_preproc=no
9362 rm -f conftest.err conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364 echo "${ECHO_T}$ac_header_preproc" >&6
9366 # So? What about this header?
9367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9373 ac_header_preproc=yes
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9390 ## ---------------------------------------- ##
9391 ## Report this to pgsql-bugs@postgresql.org ##
9392 ## ---------------------------------------- ##
9395 sed "s/^/$as_me: WARNING: /" >&2
9398 echo "$as_me:$LINENO: checking for $ac_header" >&5
9399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 eval "$as_ac_Header=\$ac_header_preproc"
9405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9416 for ac_header in readline/history.h
9418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420 echo "$as_me:$LINENO: checking for $ac_header" >&5
9421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9428 # Is the header compilable?
9429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9431 cat >conftest.$ac_ext <<_ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 $ac_includes_default
9438 #include <$ac_header>
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9444 grep -v '^ *+' conftest.er1 >conftest.err
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_header_compiler=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_header_compiler=no
9469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9471 echo "${ECHO_T}$ac_header_compiler" >&6
9473 # Is the header present?
9474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <$ac_header>
9484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } >/dev/null; then
9492 if test -s conftest.err; then
9493 ac_cpp_err=$ac_c_preproc_warn_flag
9494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9501 if test -z "$ac_cpp_err"; then
9502 ac_header_preproc=yes
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_header_preproc=no
9509 rm -f conftest.err conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511 echo "${ECHO_T}$ac_header_preproc" >&6
9513 # So? What about this header?
9514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9520 ac_header_preproc=yes
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9537 ## ---------------------------------------- ##
9538 ## Report this to pgsql-bugs@postgresql.org ##
9539 ## ---------------------------------------- ##
9542 sed "s/^/$as_me: WARNING: /" >&2
9545 echo "$as_me:$LINENO: checking for $ac_header" >&5
9546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 eval "$as_ac_Header=\$ac_header_preproc"
9552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9557 cat >>confdefs.h <<_ACEOF
9558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9575 if test "$with_zlib" = yes; then
9576 if test "${ac_cv_header_zlib_h+set}" = set; then
9577 echo "$as_me:$LINENO: checking for zlib.h" >&5
9578 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9579 if test "${ac_cv_header_zlib_h+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9583 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9585 # Is the header compilable?
9586 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9587 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9597 rm -f conftest.$ac_objext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9599 (eval $ac_compile) 2>conftest.er1
9601 grep -v '^ *+' conftest.er1 >conftest.err
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest.$ac_objext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_header_compiler=yes
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_header_compiler=no
9626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9628 echo "${ECHO_T}$ac_header_compiler" >&6
9630 # Is the header present?
9631 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9632 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } >/dev/null; then
9649 if test -s conftest.err; then
9650 ac_cpp_err=$ac_c_preproc_warn_flag
9651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9658 if test -z "$ac_cpp_err"; then
9659 ac_header_preproc=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_header_preproc=no
9666 rm -f conftest.err conftest.$ac_ext
9667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668 echo "${ECHO_T}$ac_header_preproc" >&6
9670 # So? What about this header?
9671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9673 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9674 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9676 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc=yes
9680 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9681 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9683 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9685 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9687 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9689 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9691 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9694 ## ---------------------------------------- ##
9695 ## Report this to pgsql-bugs@postgresql.org ##
9696 ## ---------------------------------------- ##
9699 sed "s/^/$as_me: WARNING: /" >&2
9702 echo "$as_me:$LINENO: checking for zlib.h" >&5
9703 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9704 if test "${ac_cv_header_zlib_h+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 ac_cv_header_zlib_h=$ac_header_preproc
9709 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9710 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9713 if test $ac_cv_header_zlib_h = yes; then
9716 { { echo "$as_me:$LINENO: error: zlib header not found
9717 If you have zlib already installed, see config.log for details on the
9718 failure. It is possible the compiler isn't looking in the proper directory.
9719 Use --without-zlib to disable zlib support." >&5
9720 echo "$as_me: error: zlib header not found
9721 If you have zlib already installed, see config.log for details on the
9722 failure. It is possible the compiler isn't looking in the proper directory.
9723 Use --without-zlib to disable zlib support." >&2;}
9724 { (exit 1); exit 1; }; }
9730 if test "$with_krb5" = yes ; then
9731 if test "${ac_cv_header_krb5_h+set}" = set; then
9732 echo "$as_me:$LINENO: checking for krb5.h" >&5
9733 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9734 if test "${ac_cv_header_krb5_h+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9738 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9740 # Is the header compilable?
9741 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9742 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 $ac_includes_default
9752 rm -f conftest.$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag"
9762 || test ! -s conftest.err'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try='test -s conftest.$ac_objext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 ac_header_compiler=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_header_compiler=no
9781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9783 echo "${ECHO_T}$ac_header_compiler" >&6
9785 # Is the header present?
9786 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9787 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } >/dev/null; then
9804 if test -s conftest.err; then
9805 ac_cpp_err=$ac_c_preproc_warn_flag
9806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9813 if test -z "$ac_cpp_err"; then
9814 ac_header_preproc=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_preproc=no
9821 rm -f conftest.err conftest.$ac_ext
9822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9823 echo "${ECHO_T}$ac_header_preproc" >&6
9825 # So? What about this header?
9826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9828 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9829 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9831 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9832 ac_header_preproc=yes
9835 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9840 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9842 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9844 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9846 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9849 ## ---------------------------------------- ##
9850 ## Report this to pgsql-bugs@postgresql.org ##
9851 ## ---------------------------------------- ##
9854 sed "s/^/$as_me: WARNING: /" >&2
9857 echo "$as_me:$LINENO: checking for krb5.h" >&5
9858 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9859 if test "${ac_cv_header_krb5_h+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 ac_cv_header_krb5_h=$ac_header_preproc
9864 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9865 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9868 if test $ac_cv_header_krb5_h = yes; then
9871 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9872 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9873 { (exit 1); exit 1; }; }
9879 if test "$with_openssl" = yes ; then
9880 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9881 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9882 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9883 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9887 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9889 # Is the header compilable?
9890 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9891 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 #include <openssl/ssl.h>
9901 rm -f conftest.$ac_objext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9903 (eval $ac_compile) 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_header_compiler=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_header_compiler=no
9930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9932 echo "${ECHO_T}$ac_header_compiler" >&6
9934 # Is the header present?
9935 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9936 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 #include <openssl/ssl.h>
9945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } >/dev/null; then
9953 if test -s conftest.err; then
9954 ac_cpp_err=$ac_c_preproc_warn_flag
9955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9962 if test -z "$ac_cpp_err"; then
9963 ac_header_preproc=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_header_preproc=no
9970 rm -f conftest.err conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9972 echo "${ECHO_T}$ac_header_preproc" >&6
9974 # So? What about this header?
9975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9977 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9978 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9980 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9981 ac_header_preproc=yes
9984 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9985 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9987 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9989 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9991 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9993 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9995 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9998 ## ---------------------------------------- ##
9999 ## Report this to pgsql-bugs@postgresql.org ##
10000 ## ---------------------------------------- ##
10003 sed "s/^/$as_me: WARNING: /" >&2
10006 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10007 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10008 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10013 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10014 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10017 if test $ac_cv_header_openssl_ssl_h = yes; then
10020 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10021 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10022 { (exit 1); exit 1; }; }
10026 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10027 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10028 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10029 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10033 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10035 # Is the header compilable?
10036 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10037 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 $ac_includes_default
10045 #include <openssl/err.h>
10047 rm -f conftest.$ac_objext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag"
10057 || test ! -s conftest.err'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest.$ac_objext'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 ac_header_compiler=yes
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 ac_header_compiler=no
10076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10078 echo "${ECHO_T}$ac_header_compiler" >&6
10080 # Is the header present?
10081 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10082 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 #include <openssl/err.h>
10091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev/null; then
10099 if test -s conftest.err; then
10100 ac_cpp_err=$ac_c_preproc_warn_flag
10101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10108 if test -z "$ac_cpp_err"; then
10109 ac_header_preproc=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_header_preproc=no
10116 rm -f conftest.err conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10118 echo "${ECHO_T}$ac_header_preproc" >&6
10120 # So? What about this header?
10121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10123 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10124 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10126 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10127 ac_header_preproc=yes
10130 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10131 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10133 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10135 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10137 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10139 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10141 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10144 ## ---------------------------------------- ##
10145 ## Report this to pgsql-bugs@postgresql.org ##
10146 ## ---------------------------------------- ##
10149 sed "s/^/$as_me: WARNING: /" >&2
10152 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10153 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10154 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 ac_cv_header_openssl_err_h=$ac_header_preproc
10159 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10160 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10163 if test $ac_cv_header_openssl_err_h = yes; then
10166 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10167 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10168 { (exit 1); exit 1; }; }
10174 if test "$with_pam" = yes ; then
10176 for ac_header in security/pam_appl.h
10178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10180 echo "$as_me:$LINENO: checking for $ac_header" >&5
10181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10188 # Is the header compilable?
10189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 $ac_includes_default
10198 #include <$ac_header>
10200 rm -f conftest.$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_header_compiler=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_compiler=no
10229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231 echo "${ECHO_T}$ac_header_compiler" >&6
10233 # Is the header present?
10234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <$ac_header>
10244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null; then
10252 if test -s conftest.err; then
10253 ac_cpp_err=$ac_c_preproc_warn_flag
10254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10261 if test -z "$ac_cpp_err"; then
10262 ac_header_preproc=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_header_preproc=no
10269 rm -f conftest.err conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10297 ## ---------------------------------------- ##
10298 ## Report this to pgsql-bugs@postgresql.org ##
10299 ## ---------------------------------------- ##
10302 sed "s/^/$as_me: WARNING: /" >&2
10305 echo "$as_me:$LINENO: checking for $ac_header" >&5
10306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 eval "$as_ac_Header=\$ac_header_preproc"
10312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10323 for ac_header in pam/pam_appl.h
10325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10327 echo "$as_me:$LINENO: checking for $ac_header" >&5
10328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10335 # Is the header compilable?
10336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10338 cat >conftest.$ac_ext <<_ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 $ac_includes_default
10345 #include <$ac_header>
10347 rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349 (eval $ac_compile) 2>conftest.er1
10351 grep -v '^ *+' conftest.er1 >conftest.err
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag"
10357 || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest.$ac_objext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_header_compiler=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_header_compiler=no
10376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10378 echo "${ECHO_T}$ac_header_compiler" >&6
10380 # Is the header present?
10381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10383 cat >conftest.$ac_ext <<_ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 #include <$ac_header>
10391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } >/dev/null; then
10399 if test -s conftest.err; then
10400 ac_cpp_err=$ac_c_preproc_warn_flag
10401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10408 if test -z "$ac_cpp_err"; then
10409 ac_header_preproc=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_header_preproc=no
10416 rm -f conftest.err conftest.$ac_ext
10417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418 echo "${ECHO_T}$ac_header_preproc" >&6
10420 # So? What about this header?
10421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10427 ac_header_preproc=yes
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10444 ## ---------------------------------------- ##
10445 ## Report this to pgsql-bugs@postgresql.org ##
10446 ## ---------------------------------------- ##
10449 sed "s/^/$as_me: WARNING: /" >&2
10452 echo "$as_me:$LINENO: checking for $ac_header" >&5
10453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 eval "$as_ac_Header=\$ac_header_preproc"
10459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10464 cat >>confdefs.h <<_ACEOF
10465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10469 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10470 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10471 { (exit 1); exit 1; }; }
10482 if test "$with_libxml" = yes ; then
10483 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10484 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10485 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10486 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10490 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10492 # Is the header compilable?
10493 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
10494 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 #include <libxml/parser.h>
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -z "$ac_c_werror_flag"
10514 || test ! -s conftest.err'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest.$ac_objext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 ac_header_compiler=yes
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 ac_header_compiler=no
10533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10535 echo "${ECHO_T}$ac_header_compiler" >&6
10537 # Is the header present?
10538 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
10539 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #include <libxml/parser.h>
10548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } >/dev/null; then
10556 if test -s conftest.err; then
10557 ac_cpp_err=$ac_c_preproc_warn_flag
10558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10565 if test -z "$ac_cpp_err"; then
10566 ac_header_preproc=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_header_preproc=no
10573 rm -f conftest.err conftest.$ac_ext
10574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10575 echo "${ECHO_T}$ac_header_preproc" >&6
10577 # So? What about this header?
10578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10580 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
10581 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
10583 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
10584 ac_header_preproc=yes
10587 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
10588 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
10590 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
10592 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
10594 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
10596 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
10598 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
10601 ## ---------------------------------------- ##
10602 ## Report this to pgsql-bugs@postgresql.org ##
10603 ## ---------------------------------------- ##
10606 sed "s/^/$as_me: WARNING: /" >&2
10609 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10610 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10611 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 ac_cv_header_libxml_parser_h=$ac_header_preproc
10616 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10617 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10620 if test $ac_cv_header_libxml_parser_h = yes; then
10623 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
10624 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
10625 { (exit 1); exit 1; }; }
10631 if test "$with_ldap" = yes ; then
10632 if test "$PORTNAME" != "win32"; then
10634 for ac_header in ldap.h
10636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638 echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10646 # Is the header compilable?
10647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 $ac_includes_default
10656 #include <$ac_header>
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>conftest.er1
10662 grep -v '^ *+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -z "$ac_c_werror_flag"
10668 || test ! -s conftest.err'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; } &&
10674 { ac_try='test -s conftest.$ac_objext'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }; then
10680 ac_header_compiler=yes
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 ac_header_compiler=no
10687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10689 echo "${ECHO_T}$ac_header_compiler" >&6
10691 # Is the header present?
10692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <$ac_header>
10702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10705 grep -v '^ *+' conftest.er1 >conftest.err
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null; then
10710 if test -s conftest.err; then
10711 ac_cpp_err=$ac_c_preproc_warn_flag
10712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10719 if test -z "$ac_cpp_err"; then
10720 ac_header_preproc=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_header_preproc=no
10727 rm -f conftest.err conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729 echo "${ECHO_T}$ac_header_preproc" >&6
10731 # So? What about this header?
10732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10755 ## ---------------------------------------- ##
10756 ## Report this to pgsql-bugs@postgresql.org ##
10757 ## ---------------------------------------- ##
10760 sed "s/^/$as_me: WARNING: /" >&2
10763 echo "$as_me:$LINENO: checking for $ac_header" >&5
10764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 eval "$as_ac_Header=\$ac_header_preproc"
10770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10775 cat >>confdefs.h <<_ACEOF
10776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10780 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10781 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10782 { (exit 1); exit 1; }; }
10789 for ac_header in winldap.h
10791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10792 echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 #include <windows.h>
10807 #include <$ac_header>
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 eval "$as_ac_Header=yes"
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 eval "$as_ac_Header=no"
10838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10848 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10849 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10850 { (exit 1); exit 1; }; }
10858 if test "$with_bonjour" = yes ; then
10859 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10860 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10861 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10862 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10866 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10868 # Is the header compilable?
10869 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10870 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 $ac_includes_default
10878 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10880 rm -f conftest.$ac_objext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10882 (eval $ac_compile) 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag"
10890 || test ! -s conftest.err'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest.$ac_objext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 ac_header_compiler=yes
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 ac_header_compiler=no
10909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10911 echo "${ECHO_T}$ac_header_compiler" >&6
10913 # Is the header present?
10914 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10915 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } >/dev/null; then
10932 if test -s conftest.err; then
10933 ac_cpp_err=$ac_c_preproc_warn_flag
10934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10941 if test -z "$ac_cpp_err"; then
10942 ac_header_preproc=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_header_preproc=no
10949 rm -f conftest.err conftest.$ac_ext
10950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10951 echo "${ECHO_T}$ac_header_preproc" >&6
10953 # So? What about this header?
10954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10956 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10957 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10959 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10960 ac_header_preproc=yes
10963 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10964 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10966 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10968 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10970 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10972 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10974 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10977 ## ---------------------------------------- ##
10978 ## Report this to pgsql-bugs@postgresql.org ##
10979 ## ---------------------------------------- ##
10982 sed "s/^/$as_me: WARNING: /" >&2
10985 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10986 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10987 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10992 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10993 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10996 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10999 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
11000 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
11001 { (exit 1); exit 1; }; }
11009 ## Types, structures, compiler characteristics
11012 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11013 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11014 if test "${ac_cv_c_const+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 cat >conftest.$ac_ext <<_ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11027 /* FIXME: Include the comments suggested by Paul. */
11028 #ifndef __cplusplus
11029 /* Ultrix mips cc rejects this. */
11030 typedef int charset[2];
11032 /* SunOS 4.1.1 cc rejects this. */
11033 char const *const *ccp;
11035 /* NEC SVR4.0.2 mips cc rejects this. */
11036 struct point {int x, y;};
11037 static struct point const zero = {0,0};
11038 /* AIX XL C 1.02.0.0 rejects this.
11039 It does not let you subtract one const X* pointer from another in
11040 an arm of an if-expression whose if-part is not a constant
11042 const char *g = "string";
11043 ccp = &g + (g ? g-g : 0);
11044 /* HPUX 7.0 cc rejects these. */
11047 ccp = (char const *const *) p;
11048 { /* SCO 3.2v4 cc rejects this. */
11050 char const *s = 0 ? (char *) 0 : (char const *) 0;
11054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11055 int x[] = {25, 17};
11056 const int *foo = &x[0];
11059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11060 typedef const int *iptr;
11064 { /* AIX XL C 1.02.0.0 rejects this saying
11065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11066 struct s { int j; const int *ap[3]; };
11067 struct s *b; b->j = 5;
11069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11070 const int foo = 10;
11078 rm -f conftest.$ac_objext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11080 (eval $ac_compile) 2>conftest.er1
11082 grep -v '^ *+' conftest.er1 >conftest.err
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } &&
11087 { ac_try='test -z "$ac_c_werror_flag"
11088 || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11109 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11110 echo "${ECHO_T}$ac_cv_c_const" >&6
11111 if test $ac_cv_c_const = no; then
11113 cat >>confdefs.h <<\_ACEOF
11120 echo "$as_me:$LINENO: checking for inline" >&5
11121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11122 if test "${ac_cv_c_inline+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 for ac_kw in inline __inline__ __inline; do
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #ifndef __cplusplus
11135 static $ac_kw foo_t static_foo () {return 0; }
11136 $ac_kw int foo () {return 0; }
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag"
11150 || test ! -s conftest.err'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest.$ac_objext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 ac_cv_c_inline=$ac_kw; break
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11173 echo "${ECHO_T}$ac_cv_c_inline" >&6
11174 case $ac_cv_c_inline in
11177 cat >>confdefs.h <<\_ACEOF
11181 *) cat >>confdefs.h <<_ACEOF
11182 #define inline $ac_cv_c_inline
11187 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11188 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11189 if test "${ac_cv_c_stringize+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11200 char *s = x(teststring);
11202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11203 $EGREP "#teststring" >/dev/null 2>&1; then
11204 ac_cv_c_stringize=no
11206 ac_cv_c_stringize=yes
11211 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11212 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11213 if test $ac_cv_c_stringize = yes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_STRINGIZE 1
11221 echo "$as_me:$LINENO: checking for signed types" >&5
11222 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11223 if test "${pgac_cv_c_signed+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11236 signed char c; signed short s; signed int i;
11241 rm -f conftest.$ac_objext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11243 (eval $ac_compile) 2>conftest.er1
11245 grep -v '^ *+' conftest.er1 >conftest.err
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 pgac_cv_c_signed=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 pgac_cv_c_signed=no
11270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11272 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11273 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11274 if test x"$pgac_cv_c_signed" = xno ; then
11276 cat >>confdefs.h <<\_ACEOF
11281 echo "$as_me:$LINENO: checking for working volatile" >&5
11282 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11283 if test "${ac_cv_c_volatile+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_cv_c_volatile=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_cv_c_volatile=no
11332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11335 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11336 if test $ac_cv_c_volatile = no; then
11338 cat >>confdefs.h <<\_ACEOF
11344 echo "$as_me:$LINENO: checking for __func__" >&5
11345 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11346 if test "${pgac_cv_funcname_func_support+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11359 printf("%s\n", __func__);
11364 rm -f conftest.$ac_objext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366 (eval $ac_compile) 2>conftest.er1
11368 grep -v '^ *+' conftest.er1 >conftest.err
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11386 pgac_cv_funcname_func_support=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 pgac_cv_funcname_func_support=no
11393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11395 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11396 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11397 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_FUNCNAME__FUNC 1
11404 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11405 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11406 if test "${pgac_cv_funcname_function_support+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11419 printf("%s\n", __FUNCTION__);
11424 rm -f conftest.$ac_objext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11426 (eval $ac_compile) 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_c_werror_flag"
11434 || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 pgac_cv_funcname_function_support=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 pgac_cv_funcname_function_support=no
11453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11455 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11456 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11457 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11459 cat >>confdefs.h <<\_ACEOF
11460 #define HAVE_FUNCNAME__FUNCTION 1
11465 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11466 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11467 if test "${ac_cv_struct_tm+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <sys/types.h>
11482 struct tm *tp; tp->tm_sec;
11487 rm -f conftest.$ac_objext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_struct_tm=time.h
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_struct_tm=sys/time.h
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11519 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11520 if test $ac_cv_struct_tm = sys/time.h; then
11522 cat >>confdefs.h <<\_ACEOF
11523 #define TM_IN_SYS_TIME 1
11528 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11529 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11530 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <sys/types.h>
11540 #include <$ac_cv_struct_tm>
11546 static struct tm ac_aggr;
11547 if (ac_aggr.tm_zone)
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_member_struct_tm_tm_zone=yes
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <sys/types.h>
11587 #include <$ac_cv_struct_tm>
11593 static struct tm ac_aggr;
11594 if (sizeof ac_aggr.tm_zone)
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag"
11610 || test ! -s conftest.err'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_member_struct_tm_tm_zone=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_cv_member_struct_tm_tm_zone=no
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11634 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11635 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define HAVE_STRUCT_TM_TM_ZONE 1
11644 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11646 cat >>confdefs.h <<\_ACEOF
11647 #define HAVE_TM_ZONE 1
11651 echo "$as_me:$LINENO: checking for tzname" >&5
11652 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11653 if test "${ac_cv_var_tzname+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11663 #ifndef tzname /* For SGI. */
11664 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>conftest.er1
11679 grep -v '^ *+' conftest.er1 >conftest.err
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest$ac_exeext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_var_tzname=yes
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 ac_cv_var_tzname=no
11704 rm -f conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11708 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11709 if test $ac_cv_var_tzname = yes; then
11711 cat >>confdefs.h <<\_ACEOF
11712 #define HAVE_TZNAME 1
11717 echo "$as_me:$LINENO: checking for union semun" >&5
11718 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11719 if test "${ac_cv_type_union_semun+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <sys/types.h>
11729 #include <sys/ipc.h>
11730 #include <sys/sem.h>
11735 if ((union semun *) 0)
11737 if (sizeof (union semun))
11743 rm -f conftest.$ac_objext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag"
11753 || test ! -s conftest.err'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_cv_type_union_semun=yes
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_cv_type_union_semun=no
11772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11774 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11775 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11776 if test $ac_cv_type_union_semun = yes; then
11778 cat >>confdefs.h <<_ACEOF
11779 #define HAVE_UNION_SEMUN 1
11785 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11786 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11787 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <sys/types.h>
11797 #ifdef HAVE_SYS_UN_H
11798 #include <sys/un.h>
11805 if ((struct sockaddr_un *) 0)
11807 if (sizeof (struct sockaddr_un))
11813 rm -f conftest.$ac_objext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815 (eval $ac_compile) 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag"
11823 || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_type_struct_sockaddr_un=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_cv_type_struct_sockaddr_un=no
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11844 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11845 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11846 if test $ac_cv_type_struct_sockaddr_un = yes; then
11848 cat >>confdefs.h <<_ACEOF
11849 #define HAVE_STRUCT_SOCKADDR_UN 1
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_UNIX_SOCKETS 1
11859 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11860 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11861 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 cat >conftest.$ac_ext <<_ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 #include <sys/types.h>
11871 #ifdef HAVE_SYS_SOCKET_H
11872 #include <sys/socket.h>
11879 if ((struct sockaddr_storage *) 0)
11881 if (sizeof (struct sockaddr_storage))
11887 rm -f conftest.$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>conftest.er1
11891 grep -v '^ *+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_type_struct_sockaddr_storage=yes
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_cv_type_struct_sockaddr_storage=no
11916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11919 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11920 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11922 cat >>confdefs.h <<_ACEOF
11923 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11929 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11930 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11931 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 #include <sys/types.h>
11941 #ifdef HAVE_SYS_SOCKET_H
11942 #include <sys/socket.h>
11949 static struct sockaddr_storage ac_aggr;
11950 if (ac_aggr.ss_family)
11956 rm -f conftest.$ac_objext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958 (eval $ac_compile) 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest.$ac_objext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <sys/types.h>
11990 #ifdef HAVE_SYS_SOCKET_H
11991 #include <sys/socket.h>
11998 static struct sockaddr_storage ac_aggr;
11999 if (sizeof ac_aggr.ss_family)
12005 rm -f conftest.$ac_objext
12006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12007 (eval $ac_compile) 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag"
12015 || test ! -s conftest.err'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_cv_member_struct_sockaddr_storage_ss_family=no
12034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
12039 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
12040 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12048 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
12049 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
12050 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 #include <sys/types.h>
12060 #ifdef HAVE_SYS_SOCKET_H
12061 #include <sys/socket.h>
12068 static struct sockaddr_storage ac_aggr;
12069 if (ac_aggr.__ss_family)
12075 rm -f conftest.$ac_objext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12077 (eval $ac_compile) 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag"
12085 || test ! -s conftest.err'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest.$ac_objext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 cat >conftest.$ac_ext <<_ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <sys/types.h>
12109 #ifdef HAVE_SYS_SOCKET_H
12110 #include <sys/socket.h>
12117 static struct sockaddr_storage ac_aggr;
12118 if (sizeof ac_aggr.__ss_family)
12124 rm -f conftest.$ac_objext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_cv_member_struct_sockaddr_storage___ss_family=no
12153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12158 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12159 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12161 cat >>confdefs.h <<_ACEOF
12162 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12167 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12168 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12169 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <sys/types.h>
12179 #ifdef HAVE_SYS_SOCKET_H
12180 #include <sys/socket.h>
12187 static struct sockaddr_storage ac_aggr;
12188 if (ac_aggr.ss_len)
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag"
12204 || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 #include <sys/types.h>
12228 #ifdef HAVE_SYS_SOCKET_H
12229 #include <sys/socket.h>
12236 static struct sockaddr_storage ac_aggr;
12237 if (sizeof ac_aggr.ss_len)
12243 rm -f conftest.$ac_objext
12244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>conftest.er1
12247 grep -v '^ *+' conftest.er1 >conftest.err
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
12252 { ac_try='test -z "$ac_c_werror_flag"
12253 || test ! -s conftest.err'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_cv_member_struct_sockaddr_storage_ss_len=no
12272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12276 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12277 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12278 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12280 cat >>confdefs.h <<_ACEOF
12281 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12286 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12287 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12288 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #include <sys/types.h>
12298 #ifdef HAVE_SYS_SOCKET_H
12299 #include <sys/socket.h>
12306 static struct sockaddr_storage ac_aggr;
12307 if (ac_aggr.__ss_len)
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <sys/types.h>
12347 #ifdef HAVE_SYS_SOCKET_H
12348 #include <sys/socket.h>
12355 static struct sockaddr_storage ac_aggr;
12356 if (sizeof ac_aggr.__ss_len)
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
12371 { ac_try='test -z "$ac_c_werror_flag"
12372 || test ! -s conftest.err'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_cv_member_struct_sockaddr_storage___ss_len=no
12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12396 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12397 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12399 cat >>confdefs.h <<_ACEOF
12400 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12405 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12406 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12407 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 #include <sys/types.h>
12417 #ifdef HAVE_SYS_SOCKET_H
12418 #include <sys/socket.h>
12425 static struct sockaddr ac_aggr;
12426 if (ac_aggr.sa_len)
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434 (eval $ac_compile) 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_c_werror_flag"
12442 || test ! -s conftest.err'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_member_struct_sockaddr_sa_len=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 #include <sys/types.h>
12466 #ifdef HAVE_SYS_SOCKET_H
12467 #include <sys/socket.h>
12474 static struct sockaddr ac_aggr;
12475 if (sizeof ac_aggr.sa_len)
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_member_struct_sockaddr_sa_len=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_member_struct_sockaddr_sa_len=no
12510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12515 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12516 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12525 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12526 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12527 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 cat >conftest.$ac_ext <<_ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12536 #include <sys/types.h>
12537 #include <sys/socket.h>
12544 if ((struct addrinfo *) 0)
12546 if (sizeof (struct addrinfo))
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag"
12562 || test ! -s conftest.err'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_type_struct_addrinfo=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_cv_type_struct_addrinfo=no
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12583 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12584 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12585 if test $ac_cv_type_struct_addrinfo = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_STRUCT_ADDRINFO 1
12595 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12596 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12597 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <sys/param.h>
12607 #include <sys/types.h>
12608 #include <sys/socket.h>
12609 #include <sys/ucred.h>
12614 if ((struct cmsgcred *) 0)
12616 if (sizeof (struct cmsgcred))
12622 rm -f conftest.$ac_objext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624 (eval $ac_compile) 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_type_struct_cmsgcred=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_type_struct_cmsgcred=no
12651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12654 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12655 if test $ac_cv_type_struct_cmsgcred = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_STRUCT_CMSGCRED 1
12663 echo "$as_me:$LINENO: checking for struct fcred" >&5
12664 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12665 if test "${ac_cv_type_struct_fcred+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #include <sys/param.h>
12675 #include <sys/types.h>
12676 #include <sys/socket.h>
12677 #include <sys/ucred.h>
12682 if ((struct fcred *) 0)
12684 if (sizeof (struct fcred))
12690 rm -f conftest.$ac_objext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12692 (eval $ac_compile) 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag"
12700 || test ! -s conftest.err'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest.$ac_objext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_cv_type_struct_fcred=yes
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 ac_cv_type_struct_fcred=no
12719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12722 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12723 if test $ac_cv_type_struct_fcred = yes; then
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_STRUCT_FCRED 1
12731 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12732 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12733 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 #include <sys/param.h>
12743 #include <sys/types.h>
12744 #include <sys/socket.h>
12745 #include <sys/ucred.h>
12750 if ((struct sockcred *) 0)
12752 if (sizeof (struct sockcred))
12758 rm -f conftest.$ac_objext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>conftest.er1
12762 grep -v '^ *+' conftest.er1 >conftest.err
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try='test -z "$ac_c_werror_flag"
12768 || test ! -s conftest.err'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest.$ac_objext'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 ac_cv_type_struct_sockcred=yes
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_cv_type_struct_sockcred=no
12787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12789 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12790 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12791 if test $ac_cv_type_struct_sockcred = yes; then
12793 cat >>confdefs.h <<_ACEOF
12794 #define HAVE_STRUCT_SOCKCRED 1
12801 echo "$as_me:$LINENO: checking for struct option" >&5
12802 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12803 if test "${ac_cv_type_struct_option+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #ifdef HAVE_GETOPT_H
12813 #include <getopt.h>
12819 if ((struct option *) 0)
12821 if (sizeof (struct option))
12827 rm -f conftest.$ac_objext
12828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12829 (eval $ac_compile) 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag"
12837 || test ! -s conftest.err'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; } &&
12843 { ac_try='test -s conftest.$ac_objext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_cv_type_struct_option=yes
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_cv_type_struct_option=no
12856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12859 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12860 if test $ac_cv_type_struct_option = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_STRUCT_OPTION 1
12870 if test "$with_zlib" = yes; then
12871 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12872 # did not). While we could work around the lack of z_streamp, it
12873 # seems unwise to encourage people to use such old zlib versions...
12874 echo "$as_me:$LINENO: checking for z_streamp" >&5
12875 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12876 if test "${ac_cv_type_z_streamp+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12890 if ((z_streamp *) 0)
12892 if (sizeof (z_streamp))
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_type_z_streamp=yes
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 ac_cv_type_z_streamp=no
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12930 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12931 if test $ac_cv_type_z_streamp = yes; then
12934 { { echo "$as_me:$LINENO: error: zlib version is too old
12935 Use --without-zlib to disable zlib support." >&5
12936 echo "$as_me: error: zlib version is too old
12937 Use --without-zlib to disable zlib support." >&2;}
12938 { (exit 1); exit 1; }; }
12943 if test "$with_krb5" = yes; then
12944 # Check for differences between MIT and Heimdal (KTH) releases
12945 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12946 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12947 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 cat >conftest.$ac_ext <<_ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12961 static krb5_ticket ac_aggr;
12962 if (ac_aggr.enc_part2)
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_member_krb5_ticket_enc_part2=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13006 static krb5_ticket ac_aggr;
13007 if (sizeof ac_aggr.enc_part2)
13013 rm -f conftest.$ac_objext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13015 (eval $ac_compile) 2>conftest.er1
13017 grep -v '^ *+' conftest.er1 >conftest.err
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest.$ac_objext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_member_krb5_ticket_enc_part2=yes
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 ac_cv_member_krb5_ticket_enc_part2=no
13042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
13047 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
13048 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
13050 cat >>confdefs.h <<_ACEOF
13051 #define HAVE_KRB5_TICKET_ENC_PART2 1
13056 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
13057 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
13058 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 cat >conftest.$ac_ext <<_ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13072 static krb5_ticket ac_aggr;
13073 if (ac_aggr.client)
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>conftest.er1
13083 grep -v '^ *+' conftest.er1 >conftest.err
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
13088 { ac_try='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_member_krb5_ticket_client=yes
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13117 static krb5_ticket ac_aggr;
13118 if (sizeof ac_aggr.client)
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>conftest.er1
13128 grep -v '^ *+' conftest.er1 >conftest.err
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag"
13134 || test ! -s conftest.err'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } &&
13140 { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_cv_member_krb5_ticket_client=yes
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13151 ac_cv_member_krb5_ticket_client=no
13153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13157 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13158 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13159 if test $ac_cv_member_krb5_ticket_client = yes; then
13161 cat >>confdefs.h <<_ACEOF
13162 #define HAVE_KRB5_TICKET_CLIENT 1
13167 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13168 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13169 { (exit 1); exit 1; }; }
13174 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13175 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13176 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13190 static krb5_error ac_aggr;
13191 if (ac_aggr.text.data)
13197 rm -f conftest.$ac_objext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13201 grep -v '^ *+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_member_krb5_error_text_data=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13235 static krb5_error ac_aggr;
13236 if (sizeof ac_aggr.text.data)
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag"
13252 || test ! -s conftest.err'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 ac_cv_member_krb5_error_text_data=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_cv_member_krb5_error_text_data=no
13271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13276 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13277 if test $ac_cv_member_krb5_error_text_data = yes; then
13279 cat >>confdefs.h <<_ACEOF
13280 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13285 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13286 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13287 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13301 static krb5_error ac_aggr;
13302 if (ac_aggr.e_data)
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag"
13318 || test ! -s conftest.err'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest.$ac_objext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_member_krb5_error_e_data=yes
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13346 static krb5_error ac_aggr;
13347 if (sizeof ac_aggr.e_data)
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>conftest.er1
13357 grep -v '^ *+' conftest.er1 >conftest.err
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try='test -z "$ac_c_werror_flag"
13363 || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_member_krb5_error_e_data=yes
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ac_cv_member_krb5_error_e_data=no
13382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13387 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13388 if test $ac_cv_member_krb5_error_e_data = yes; then
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_KRB5_ERROR_E_DATA 1
13396 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13397 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13398 { (exit 1); exit 1; }; }
13407 ## Functions, global variables
13410 echo "$as_me:$LINENO: checking for int timezone" >&5
13411 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13412 if test "${pgac_cv_var_int_timezone+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13427 res = timezone / 60;
13429 res = _timezone / 60;
13435 rm -f conftest.$ac_objext conftest$ac_exeext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13437 (eval $ac_link) 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest$ac_exeext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 pgac_cv_var_int_timezone=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 pgac_cv_var_int_timezone=no
13464 rm -f conftest.err conftest.$ac_objext \
13465 conftest$ac_exeext conftest.$ac_ext
13467 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13468 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13469 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13471 cat >>confdefs.h <<\_ACEOF
13472 #define HAVE_INT_TIMEZONE
13476 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13477 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13478 if test "${ac_cv_func_accept_return+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 if test "${ac_cv_func_accept_arg1+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 if test "${ac_cv_func_accept_arg2+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 if test "${ac_cv_func_accept_arg3+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13491 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13492 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13493 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 #ifdef HAVE_SYS_TYPES_H
13501 #include <sys/types.h>
13503 #ifdef HAVE_SYS_SOCKET_H
13504 #include <sys/socket.h>
13506 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13515 rm -f conftest.$ac_objext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>conftest.er1
13519 grep -v '^ *+' conftest.er1 >conftest.err
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -z "$ac_c_werror_flag"
13525 || test ! -s conftest.err'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_not_found=no; break 4
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13549 if test "$ac_not_found" = yes; then
13550 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13551 echo "$as_me: error: could not determine argument types" >&2;}
13552 { (exit 1); exit 1; }; }
13554 if test "$ac_cv_func_accept_arg3" = "void"; then
13555 ac_cv_func_accept_arg3=int
13565 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
13566 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13568 cat >>confdefs.h <<_ACEOF
13569 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13573 cat >>confdefs.h <<_ACEOF
13574 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13578 cat >>confdefs.h <<_ACEOF
13579 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13583 cat >>confdefs.h <<_ACEOF
13584 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13588 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13589 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13590 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 #include <sys/time.h>
13603 struct timeval *tp;
13604 struct timezone *tzp;
13605 gettimeofday(tp,tzp);
13610 rm -f conftest.$ac_objext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13612 (eval $ac_compile) 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 pgac_cv_func_gettimeofday_1arg=no
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 pgac_cv_func_gettimeofday_1arg=yes
13639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13642 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13643 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13645 cat >>confdefs.h <<\_ACEOF
13646 #define GETTIMEOFDAY_1ARG
13673 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13676 echo "$as_me:$LINENO: checking for $ac_func" >&5
13677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13678 if eval "test \"\${$as_ac_var+set}\" = set"; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13689 #define $ac_func innocuous_$ac_func
13691 /* System header to define __stub macros and hopefully few prototypes,
13692 which can conflict with char $ac_func (); below.
13693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13694 <limits.h> exists even on freestanding compilers. */
13697 # include <limits.h>
13699 # include <assert.h>
13704 /* Override any gcc2 internal prototype to avoid an error. */
13709 /* We use char because int might match the return type of a gcc2
13710 builtin and then its argument prototype would still apply. */
13712 /* The GNU C library defines this for functions which it implements
13713 to always fail with ENOSYS. Some functions are actually named
13714 something starting with __ and the normal name is an alias. */
13715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13718 char (*f) () = $ac_func;
13727 return f != $ac_func;
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734 (eval $ac_link) 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_c_werror_flag"
13742 || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest$ac_exeext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 eval "$as_ac_var=yes"
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 eval "$as_ac_var=no"
13761 rm -f conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13766 if test `eval echo '${'$as_ac_var'}'` = yes; then
13767 cat >>confdefs.h <<_ACEOF
13768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13775 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13776 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13777 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <unistd.h>
13792 char *p = (char *) fdatasync;
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_have_decl_fdatasync=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_cv_have_decl_fdatasync=no
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13831 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13832 if test $ac_cv_have_decl_fdatasync = yes; then
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_DECL_FDATASYNC 1
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_DECL_FDATASYNC 0
13848 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
13849 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
13850 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 cat >conftest.$ac_ext <<_ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13864 #ifndef posix_fadvise
13865 char *p = (char *) posix_fadvise;
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_cv_have_decl_posix_fadvise=yes
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_cv_have_decl_posix_fadvise=no
13901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13903 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
13904 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
13905 if test $ac_cv_have_decl_posix_fadvise = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_DECL_POSIX_FADVISE 1
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_DECL_POSIX_FADVISE 0
13921 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
13922 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
13923 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13937 char *p = (char *) strlcpy;
13944 rm -f conftest.$ac_objext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>conftest.er1
13948 grep -v '^ *+' conftest.er1 >conftest.err
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_c_werror_flag"
13954 || test ! -s conftest.err'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_have_decl_strlcpy=yes
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_cv_have_decl_strlcpy=no
13973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13975 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
13976 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
13977 if test $ac_cv_have_decl_strlcpy = yes; then
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_DECL_STRLCPY 1
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_DECL_STRLCPY 0
13993 # This is probably only present on Darwin, but may as well check always
13994 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13995 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13996 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14010 #ifndef F_FULLFSYNC
14011 char *p = (char *) F_FULLFSYNC;
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_have_decl_F_FULLFSYNC=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_have_decl_F_FULLFSYNC=no
14047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
14050 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
14051 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
14053 cat >>confdefs.h <<_ACEOF
14054 #define HAVE_DECL_F_FULLFSYNC 1
14059 cat >>confdefs.h <<_ACEOF
14060 #define HAVE_DECL_F_FULLFSYNC 0
14069 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
14070 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
14071 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 #include <netinet/in.h>
14086 if ((struct sockaddr_in6 *) 0)
14088 if (sizeof (struct sockaddr_in6))
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_cv_type_struct_sockaddr_in6=yes
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ac_cv_type_struct_sockaddr_in6=no
14123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
14126 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
14127 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
14129 cat >>confdefs.h <<\_ACEOF
14130 #define HAVE_IPV6 1
14138 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
14139 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
14140 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 #include <machine/vmparam.h>
14150 #include <sys/exec.h>
14155 PS_STRINGS->ps_nargvstr = 1;
14156 PS_STRINGS->ps_argvstr = "foo";
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 pgac_cv_var_PS_STRINGS=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 pgac_cv_var_PS_STRINGS=no
14190 rm -f conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14193 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
14194 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
14195 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_PS_STRINGS
14204 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
14205 # is missing. Yes, there are machines that have only one. We may
14206 # also decide to use snprintf.c if snprintf() is present but does not
14207 # have all the features we need --- see below.
14209 if test "$PORTNAME" = "win32"; then
14210 # Win32 gets snprintf.c built unconditionally.
14212 # To properly translate all NLS languages strings, we must support the
14213 # *printf() %$ format, which allows *printf() arguments to be selected
14214 # by position in the translated string.
14216 # libintl versions < 0.13 use the native *printf() functions, and Win32
14217 # *printf() doesn't understand %$, so we must use our /port versions,
14218 # which do understand %$. libintl versions >= 0.13 include their own
14219 # *printf versions on Win32. The libintl 0.13 release note text is:
14221 # C format strings with positions, as they arise when a translator
14222 # needs to reorder a sentence, are now supported on all platforms.
14223 # On those few platforms (NetBSD and Woe32) for which the native
14224 # printf()/fprintf()/... functions don't support such format
14225 # strings, replacements are provided through <libintl.h>.
14227 # We could use libintl >= 0.13's *printf() if we were sure that we had
14228 # a litint >= 0.13 at runtime, but seeing that there is no clean way
14229 # to guarantee that, it is best to just use our own, so we are sure to
14230 # get %$ support. In include/port.h we disable the *printf() macros
14231 # that might have been defined by libintl.
14233 # We do this unconditionally whether NLS is used or not so we are sure
14234 # that all Win32 libraries and binaries behave the same.
14235 pgac_need_repl_snprintf=yes
14237 pgac_need_repl_snprintf=no
14239 for ac_func in snprintf
14241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14242 echo "$as_me:$LINENO: checking for $ac_func" >&5
14243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14244 if eval "test \"\${$as_ac_var+set}\" = set"; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14255 #define $ac_func innocuous_$ac_func
14257 /* System header to define __stub macros and hopefully few prototypes,
14258 which can conflict with char $ac_func (); below.
14259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14260 <limits.h> exists even on freestanding compilers. */
14263 # include <limits.h>
14265 # include <assert.h>
14270 /* Override any gcc2 internal prototype to avoid an error. */
14275 /* We use char because int might match the return type of a gcc2
14276 builtin and then its argument prototype would still apply. */
14278 /* The GNU C library defines this for functions which it implements
14279 to always fail with ENOSYS. Some functions are actually named
14280 something starting with __ and the normal name is an alias. */
14281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14284 char (*f) () = $ac_func;
14293 return f != $ac_func;
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14300 (eval $ac_link) 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag"
14308 || test ! -s conftest.err'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 eval "$as_ac_var=yes"
14322 echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14325 eval "$as_ac_var=no"
14327 rm -f conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14332 if test `eval echo '${'$as_ac_var'}'` = yes; then
14333 cat >>confdefs.h <<_ACEOF
14334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14338 pgac_need_repl_snprintf=yes
14343 for ac_func in vsnprintf
14345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14346 echo "$as_me:$LINENO: checking for $ac_func" >&5
14347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14348 if eval "test \"\${$as_ac_var+set}\" = set"; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14359 #define $ac_func innocuous_$ac_func
14361 /* System header to define __stub macros and hopefully few prototypes,
14362 which can conflict with char $ac_func (); below.
14363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14364 <limits.h> exists even on freestanding compilers. */
14367 # include <limits.h>
14369 # include <assert.h>
14374 /* Override any gcc2 internal prototype to avoid an error. */
14379 /* We use char because int might match the return type of a gcc2
14380 builtin and then its argument prototype would still apply. */
14382 /* The GNU C library defines this for functions which it implements
14383 to always fail with ENOSYS. Some functions are actually named
14384 something starting with __ and the normal name is an alias. */
14385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14388 char (*f) () = $ac_func;
14397 return f != $ac_func;
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest$ac_exeext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 eval "$as_ac_var=yes"
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 eval "$as_ac_var=no"
14431 rm -f conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext conftest.$ac_ext
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14436 if test `eval echo '${'$as_ac_var'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14442 pgac_need_repl_snprintf=yes
14449 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14450 # include/c.h will provide declarations. Note this is a separate test
14451 # from whether the functions exist in the C library --- there are
14452 # systems that have the functions but don't bother to declare them :-(
14454 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14455 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14456 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 cat >conftest.$ac_ext <<_ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 $ac_includes_default
14470 char *p = (char *) snprintf;
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479 (eval $ac_compile) 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_have_decl_snprintf=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_cv_have_decl_snprintf=no
14506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14508 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14509 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14510 if test $ac_cv_have_decl_snprintf = yes; then
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_DECL_SNPRINTF 1
14518 cat >>confdefs.h <<_ACEOF
14519 #define HAVE_DECL_SNPRINTF 0
14524 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14525 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14526 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14540 char *p = (char *) vsnprintf;
14547 rm -f conftest.$ac_objext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549 (eval $ac_compile) 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest.$ac_objext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_have_decl_vsnprintf=yes
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ac_cv_have_decl_vsnprintf=no
14576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14578 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14579 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14580 if test $ac_cv_have_decl_vsnprintf = yes; then
14582 cat >>confdefs.h <<_ACEOF
14583 #define HAVE_DECL_VSNPRINTF 1
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_DECL_VSNPRINTF 0
14598 echo "$as_me:$LINENO: checking for isinf" >&5
14599 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14600 if test "${ac_cv_func_isinf+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14611 double glob_double;
14616 return isinf(glob_double) ? 0 : 1;
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest$ac_exeext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_cv_func_isinf=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_cv_func_isinf=no
14650 rm -f conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14653 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14654 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14656 if test $ac_cv_func_isinf = yes ; then
14658 cat >>confdefs.h <<\_ACEOF
14659 #define HAVE_ISINF 1
14664 "isinf.$ac_objext" | \
14665 *" isinf.$ac_objext" | \
14666 "isinf.$ac_objext "* | \
14667 *" isinf.$ac_objext "* ) ;;
14668 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14671 # Look for a way to implement a substitute for isinf()
14676 for ac_func in fpclass fp_class fp_class_d class
14678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14679 echo "$as_me:$LINENO: checking for $ac_func" >&5
14680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14681 if eval "test \"\${$as_ac_var+set}\" = set"; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 cat >conftest.$ac_ext <<_ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14692 #define $ac_func innocuous_$ac_func
14694 /* System header to define __stub macros and hopefully few prototypes,
14695 which can conflict with char $ac_func (); below.
14696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14697 <limits.h> exists even on freestanding compilers. */
14700 # include <limits.h>
14702 # include <assert.h>
14707 /* Override any gcc2 internal prototype to avoid an error. */
14712 /* We use char because int might match the return type of a gcc2
14713 builtin and then its argument prototype would still apply. */
14715 /* The GNU C library defines this for functions which it implements
14716 to always fail with ENOSYS. Some functions are actually named
14717 something starting with __ and the normal name is an alias. */
14718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14721 char (*f) () = $ac_func;
14730 return f != $ac_func;
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag"
14745 || test ! -s conftest.err'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest$ac_exeext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 eval "$as_ac_var=yes"
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 eval "$as_ac_var=no"
14764 rm -f conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14769 if test `eval echo '${'$as_ac_var'}'` = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 # Some versions of libedit contain strlcpy(); so disregard that library while
14780 # checking for these standard libc functions.
14781 pgac_save_LIBS="$LIBS"
14782 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
14798 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcpy strtol strtoul unsetenv
14800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14801 echo "$as_me:$LINENO: checking for $ac_func" >&5
14802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14803 if eval "test \"\${$as_ac_var+set}\" = set"; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14814 #define $ac_func innocuous_$ac_func
14816 /* System header to define __stub macros and hopefully few prototypes,
14817 which can conflict with char $ac_func (); below.
14818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14819 <limits.h> exists even on freestanding compilers. */
14822 # include <limits.h>
14824 # include <assert.h>
14829 /* Override any gcc2 internal prototype to avoid an error. */
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14837 /* The GNU C library defines this for functions which it implements
14838 to always fail with ENOSYS. Some functions are actually named
14839 something starting with __ and the normal name is an alias. */
14840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14843 char (*f) () = $ac_func;
14852 return f != $ac_func;
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 eval "$as_ac_var=yes"
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 eval "$as_ac_var=no"
14886 rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14891 if test `eval echo '${'$as_ac_var'}'` = yes; then
14892 cat >>confdefs.h <<_ACEOF
14893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14898 "$ac_func.$ac_objext" | \
14899 *" $ac_func.$ac_objext" | \
14900 "$ac_func.$ac_objext "* | \
14901 *" $ac_func.$ac_objext "* ) ;;
14902 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14910 LIBS="$pgac_save_LIBS"
14912 # System's version of getaddrinfo(), if any, may be used only if we found
14913 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14914 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14915 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14916 # because we want to use our own getaddrinfo.c on Windows anyway.)
14917 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14919 for ac_func in getaddrinfo
14921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14922 echo "$as_me:$LINENO: checking for $ac_func" >&5
14923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14924 if eval "test \"\${$as_ac_var+set}\" = set"; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 cat >conftest.$ac_ext <<_ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14935 #define $ac_func innocuous_$ac_func
14937 /* System header to define __stub macros and hopefully few prototypes,
14938 which can conflict with char $ac_func (); below.
14939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14940 <limits.h> exists even on freestanding compilers. */
14943 # include <limits.h>
14945 # include <assert.h>
14950 /* Override any gcc2 internal prototype to avoid an error. */
14955 /* We use char because int might match the return type of a gcc2
14956 builtin and then its argument prototype would still apply. */
14958 /* The GNU C library defines this for functions which it implements
14959 to always fail with ENOSYS. Some functions are actually named
14960 something starting with __ and the normal name is an alias. */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14964 char (*f) () = $ac_func;
14973 return f != $ac_func;
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -z "$ac_c_werror_flag"
14988 || test ! -s conftest.err'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; } &&
14994 { ac_try='test -s conftest$ac_exeext'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 eval "$as_ac_var=yes"
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 eval "$as_ac_var=no"
15007 rm -f conftest.err conftest.$ac_objext \
15008 conftest$ac_exeext conftest.$ac_ext
15010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15012 if test `eval echo '${'$as_ac_var'}'` = yes; then
15013 cat >>confdefs.h <<_ACEOF
15014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15019 "$ac_func.$ac_objext" | \
15020 *" $ac_func.$ac_objext" | \
15021 "$ac_func.$ac_objext "* | \
15022 *" $ac_func.$ac_objext "* ) ;;
15023 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15032 "getaddrinfo.$ac_objext" | \
15033 *" getaddrinfo.$ac_objext" | \
15034 "getaddrinfo.$ac_objext "* | \
15035 *" getaddrinfo.$ac_objext "* ) ;;
15036 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
15041 # similarly, use system's getopt_long() only if system provides struct option.
15042 if test x"$ac_cv_type_struct_option" = xyes ; then
15044 for ac_func in getopt_long
15046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15047 echo "$as_me:$LINENO: checking for $ac_func" >&5
15048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15049 if eval "test \"\${$as_ac_var+set}\" = set"; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15060 #define $ac_func innocuous_$ac_func
15062 /* System header to define __stub macros and hopefully few prototypes,
15063 which can conflict with char $ac_func (); below.
15064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15065 <limits.h> exists even on freestanding compilers. */
15068 # include <limits.h>
15070 # include <assert.h>
15075 /* Override any gcc2 internal prototype to avoid an error. */
15080 /* We use char because int might match the return type of a gcc2
15081 builtin and then its argument prototype would still apply. */
15083 /* The GNU C library defines this for functions which it implements
15084 to always fail with ENOSYS. Some functions are actually named
15085 something starting with __ and the normal name is an alias. */
15086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15089 char (*f) () = $ac_func;
15098 return f != $ac_func;
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15105 (eval $ac_link) 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag"
15113 || test ! -s conftest.err'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest$ac_exeext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 eval "$as_ac_var=yes"
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 eval "$as_ac_var=no"
15132 rm -f conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15137 if test `eval echo '${'$as_ac_var'}'` = yes; then
15138 cat >>confdefs.h <<_ACEOF
15139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15144 "$ac_func.$ac_objext" | \
15145 *" $ac_func.$ac_objext" | \
15146 "$ac_func.$ac_objext "* | \
15147 *" $ac_func.$ac_objext "* ) ;;
15148 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15157 "getopt_long.$ac_objext" | \
15158 *" getopt_long.$ac_objext" | \
15159 "getopt_long.$ac_objext "* | \
15160 *" getopt_long.$ac_objext "* ) ;;
15161 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
15166 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
15167 # We override the previous test that said fseeko/ftello didn't exist
15168 # OS tests are also done in include/c.h and port/fseeko.c
15169 case $host_os in bsdi*|netbsd*)
15170 ac_cv_func_fseeko=yes
15174 if test "$PORTNAME" = "win32"; then
15176 "gettimeofday.$ac_objext" | \
15177 *" gettimeofday.$ac_objext" | \
15178 "gettimeofday.$ac_objext "* | \
15179 *" gettimeofday.$ac_objext "* ) ;;
15180 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15184 "kill.$ac_objext" | \
15185 *" kill.$ac_objext" | \
15186 "kill.$ac_objext "* | \
15187 *" kill.$ac_objext "* ) ;;
15188 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
15192 "open.$ac_objext" | \
15193 *" open.$ac_objext" | \
15194 "open.$ac_objext "* | \
15195 *" open.$ac_objext "* ) ;;
15196 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
15200 "rand.$ac_objext" | \
15201 *" rand.$ac_objext" | \
15202 "rand.$ac_objext "* | \
15203 *" rand.$ac_objext "* ) ;;
15204 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15208 "win32error.$ac_objext" | \
15209 *" win32error.$ac_objext" | \
15210 "win32error.$ac_objext "* | \
15211 *" win32error.$ac_objext "* ) ;;
15212 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15216 cat >>confdefs.h <<\_ACEOF
15217 #define HAVE_SYMLINK 1
15222 if test "$with_readline" = yes; then
15223 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15224 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15232 #ifdef HAVE_READLINE_READLINE_H
15233 # include <readline/readline.h>
15234 #elif defined(HAVE_READLINE_H)
15235 # include <readline.h>
15241 rl_completion_append_character = 'x';
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>conftest.er1
15250 grep -v '^ *+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 echo "$as_me:$LINENO: result: yes" >&5
15269 echo "${ECHO_T}yes" >&6
15271 cat >>confdefs.h <<\_ACEOF
15272 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 echo "$as_me:$LINENO: result: no" >&5
15280 echo "${ECHO_T}no" >&6
15282 rm -f conftest.err conftest.$ac_objext \
15283 conftest$ac_exeext conftest.$ac_ext
15286 for ac_func in rl_completion_matches rl_filename_completion_function
15288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15289 echo "$as_me:$LINENO: checking for $ac_func" >&5
15290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15291 if eval "test \"\${$as_ac_var+set}\" = set"; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15302 #define $ac_func innocuous_$ac_func
15304 /* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char $ac_func (); below.
15306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15307 <limits.h> exists even on freestanding compilers. */
15310 # include <limits.h>
15312 # include <assert.h>
15317 /* Override any gcc2 internal prototype to avoid an error. */
15322 /* We use char because int might match the return type of a gcc2
15323 builtin and then its argument prototype would still apply. */
15325 /* The GNU C library defines this for functions which it implements
15326 to always fail with ENOSYS. Some functions are actually named
15327 something starting with __ and the normal name is an alias. */
15328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 char (*f) () = $ac_func;
15340 return f != $ac_func;
15345 rm -f conftest.$ac_objext conftest$ac_exeext
15346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15347 (eval $ac_link) 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -z "$ac_c_werror_flag"
15355 || test ! -s conftest.err'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 eval "$as_ac_var=yes"
15369 echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15372 eval "$as_ac_var=no"
15374 rm -f conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15379 if test `eval echo '${'$as_ac_var'}'` = yes; then
15380 cat >>confdefs.h <<_ACEOF
15381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15388 for ac_func in replace_history_entry
15390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15391 echo "$as_me:$LINENO: checking for $ac_func" >&5
15392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15393 if eval "test \"\${$as_ac_var+set}\" = set"; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15404 #define $ac_func innocuous_$ac_func
15406 /* System header to define __stub macros and hopefully few prototypes,
15407 which can conflict with char $ac_func (); below.
15408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409 <limits.h> exists even on freestanding compilers. */
15412 # include <limits.h>
15414 # include <assert.h>
15419 /* Override any gcc2 internal prototype to avoid an error. */
15424 /* We use char because int might match the return type of a gcc2
15425 builtin and then its argument prototype would still apply. */
15427 /* The GNU C library defines this for functions which it implements
15428 to always fail with ENOSYS. Some functions are actually named
15429 something starting with __ and the normal name is an alias. */
15430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15433 char (*f) () = $ac_func;
15442 return f != $ac_func;
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449 (eval $ac_link) 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 eval "$as_ac_var=yes"
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 eval "$as_ac_var=no"
15476 rm -f conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15481 if test `eval echo '${'$as_ac_var'}'` = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15493 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #include <setjmp.h>
15504 sigjmp_buf x; sigsetjmp(x, 1);
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511 (eval $ac_link) 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try='test -z "$ac_c_werror_flag"
15519 || test ! -s conftest.err'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; } &&
15525 { ac_try='test -s conftest$ac_exeext'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE_SIGSETJMP 1
15536 echo "$as_me:$LINENO: result: yes" >&5
15537 echo "${ECHO_T}yes" >&6
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6
15545 rm -f conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15548 echo "$as_me:$LINENO: checking for syslog" >&5
15549 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15550 if test "${ac_cv_func_syslog+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15561 #define syslog innocuous_syslog
15563 /* System header to define __stub macros and hopefully few prototypes,
15564 which can conflict with char syslog (); below.
15565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15566 <limits.h> exists even on freestanding compilers. */
15569 # include <limits.h>
15571 # include <assert.h>
15576 /* Override any gcc2 internal prototype to avoid an error. */
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15584 /* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
15587 #if defined (__stub_syslog) || defined (__stub___syslog)
15590 char (*f) () = syslog;
15599 return f != syslog;
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag"
15614 || test ! -s conftest.err'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 ac_cv_func_syslog=yes
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_cv_func_syslog=no
15633 rm -f conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15637 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15638 if test $ac_cv_func_syslog = yes; then
15639 if test "${ac_cv_header_syslog_h+set}" = set; then
15640 echo "$as_me:$LINENO: checking for syslog.h" >&5
15641 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15642 if test "${ac_cv_header_syslog_h+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15646 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15648 # Is the header compilable?
15649 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15650 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 $ac_includes_default
15658 #include <syslog.h>
15660 rm -f conftest.$ac_objext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662 (eval $ac_compile) 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_header_compiler=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_header_compiler=no
15689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15691 echo "${ECHO_T}$ac_header_compiler" >&6
15693 # Is the header present?
15694 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15695 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <syslog.h>
15704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15707 grep -v '^ *+' conftest.er1 >conftest.err
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } >/dev/null; then
15712 if test -s conftest.err; then
15713 ac_cpp_err=$ac_c_preproc_warn_flag
15714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15721 if test -z "$ac_cpp_err"; then
15722 ac_header_preproc=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_header_preproc=no
15729 rm -f conftest.err conftest.$ac_ext
15730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6
15733 # So? What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15736 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15740 ac_header_preproc=yes
15743 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15757 ## ---------------------------------------- ##
15758 ## Report this to pgsql-bugs@postgresql.org ##
15759 ## ---------------------------------------- ##
15762 sed "s/^/$as_me: WARNING: /" >&2
15765 echo "$as_me:$LINENO: checking for syslog.h" >&5
15766 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15767 if test "${ac_cv_header_syslog_h+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 ac_cv_header_syslog_h=$ac_header_preproc
15772 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15773 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15776 if test $ac_cv_header_syslog_h = yes; then
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_SYSLOG 1
15788 echo "$as_me:$LINENO: checking for optreset" >&5
15789 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15790 if test "${pgac_cv_var_int_optreset+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <unistd.h>
15803 extern int optreset; optreset = 1;
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>conftest.er1
15812 grep -v '^ *+' conftest.er1 >conftest.err
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_c_werror_flag"
15818 || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 pgac_cv_var_int_optreset=yes
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 pgac_cv_var_int_optreset=no
15837 rm -f conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15841 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15842 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15844 cat >>confdefs.h <<\_ACEOF
15845 #define HAVE_INT_OPTRESET 1
15852 for ac_func in strtoll strtoq
15854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $ac_func" >&5
15856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_var+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15868 #define $ac_func innocuous_$ac_func
15870 /* System header to define __stub macros and hopefully few prototypes,
15871 which can conflict with char $ac_func (); below.
15872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 <limits.h> exists even on freestanding compilers. */
15876 # include <limits.h>
15878 # include <assert.h>
15883 /* Override any gcc2 internal prototype to avoid an error. */
15888 /* We use char because int might match the return type of a gcc2
15889 builtin and then its argument prototype would still apply. */
15891 /* The GNU C library defines this for functions which it implements
15892 to always fail with ENOSYS. Some functions are actually named
15893 something starting with __ and the normal name is an alias. */
15894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15897 char (*f) () = $ac_func;
15906 return f != $ac_func;
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15913 (eval $ac_link) 2>conftest.er1
15915 grep -v '^ *+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag"
15921 || test ! -s conftest.err'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest$ac_exeext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 eval "$as_ac_var=yes"
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 eval "$as_ac_var=no"
15940 rm -f conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15945 if test `eval echo '${'$as_ac_var'}'` = yes; then
15946 cat >>confdefs.h <<_ACEOF
15947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15955 for ac_func in strtoull strtouq
15957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15958 echo "$as_me:$LINENO: checking for $ac_func" >&5
15959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15960 if eval "test \"\${$as_ac_var+set}\" = set"; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 cat >conftest.$ac_ext <<_ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15971 #define $ac_func innocuous_$ac_func
15973 /* System header to define __stub macros and hopefully few prototypes,
15974 which can conflict with char $ac_func (); below.
15975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15976 <limits.h> exists even on freestanding compilers. */
15979 # include <limits.h>
15981 # include <assert.h>
15986 /* Override any gcc2 internal prototype to avoid an error. */
15991 /* We use char because int might match the return type of a gcc2
15992 builtin and then its argument prototype would still apply. */
15994 /* The GNU C library defines this for functions which it implements
15995 to always fail with ENOSYS. Some functions are actually named
15996 something starting with __ and the normal name is an alias. */
15997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000 char (*f) () = $ac_func;
16009 return f != $ac_func;
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>conftest.er1
16018 grep -v '^ *+' conftest.er1 >conftest.err
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -z "$ac_c_werror_flag"
16024 || test ! -s conftest.err'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; } &&
16030 { ac_try='test -s conftest$ac_exeext'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; }; then
16036 eval "$as_ac_var=yes"
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 eval "$as_ac_var=no"
16043 rm -f conftest.err conftest.$ac_objext \
16044 conftest$ac_exeext conftest.$ac_ext
16046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16048 if test `eval echo '${'$as_ac_var'}'` = yes; then
16049 cat >>confdefs.h <<_ACEOF
16050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16057 # Check for one of atexit() or on_exit()
16059 for ac_func in atexit
16061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062 echo "$as_me:$LINENO: checking for $ac_func" >&5
16063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16064 if eval "test \"\${$as_ac_var+set}\" = set"; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16075 #define $ac_func innocuous_$ac_func
16077 /* System header to define __stub macros and hopefully few prototypes,
16078 which can conflict with char $ac_func (); below.
16079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080 <limits.h> exists even on freestanding compilers. */
16083 # include <limits.h>
16085 # include <assert.h>
16090 /* Override any gcc2 internal prototype to avoid an error. */
16095 /* We use char because int might match the return type of a gcc2
16096 builtin and then its argument prototype would still apply. */
16098 /* The GNU C library defines this for functions which it implements
16099 to always fail with ENOSYS. Some functions are actually named
16100 something starting with __ and the normal name is an alias. */
16101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 char (*f) () = $ac_func;
16113 return f != $ac_func;
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16120 (eval $ac_link) 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest$ac_exeext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 eval "$as_ac_var=yes"
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 eval "$as_ac_var=no"
16147 rm -f conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
16150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16152 if test `eval echo '${'$as_ac_var'}'` = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16159 for ac_func in on_exit
16161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16162 echo "$as_me:$LINENO: checking for $ac_func" >&5
16163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16164 if eval "test \"\${$as_ac_var+set}\" = set"; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16175 #define $ac_func innocuous_$ac_func
16177 /* System header to define __stub macros and hopefully few prototypes,
16178 which can conflict with char $ac_func (); below.
16179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16180 <limits.h> exists even on freestanding compilers. */
16183 # include <limits.h>
16185 # include <assert.h>
16190 /* Override any gcc2 internal prototype to avoid an error. */
16195 /* We use char because int might match the return type of a gcc2
16196 builtin and then its argument prototype would still apply. */
16198 /* The GNU C library defines this for functions which it implements
16199 to always fail with ENOSYS. Some functions are actually named
16200 something starting with __ and the normal name is an alias. */
16201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16204 char (*f) () = $ac_func;
16213 return f != $ac_func;
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag"
16228 || test ! -s conftest.err'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 eval "$as_ac_var=yes"
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 eval "$as_ac_var=no"
16247 rm -f conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
16250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16252 if test `eval echo '${'$as_ac_var'}'` = yes; then
16253 cat >>confdefs.h <<_ACEOF
16254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16258 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16259 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16260 { (exit 1); exit 1; }; }
16268 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16269 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16270 if test "${ac_cv_sys_largefile_source+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 ac_cv_sys_largefile_source=no
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16290 rm -f conftest.$ac_objext
16291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16292 (eval $ac_compile) 2>conftest.er1
16294 grep -v '^ *+' conftest.er1 >conftest.err
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -z "$ac_c_werror_flag"
16300 || test ! -s conftest.err'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try='test -s conftest.$ac_objext'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #define _LARGEFILE_SOURCE 1
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16339 grep -v '^ *+' conftest.er1 >conftest.err
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_sys_largefile_source=1; break
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16367 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16368 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16369 if test "$ac_cv_sys_largefile_source" != no; then
16371 cat >>confdefs.h <<_ACEOF
16372 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16378 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16379 # in glibc 2.1.3, but that breaks too many other things.
16380 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16381 echo "$as_me:$LINENO: checking for fseeko" >&5
16382 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16383 if test "${ac_cv_func_fseeko+set}" = set; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16396 return fseeko && fseeko (stdin, 0, 0);
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_func_fseeko=yes
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_cv_func_fseeko=no
16430 rm -f conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16433 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16434 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16435 if test $ac_cv_func_fseeko = yes; then
16437 cat >>confdefs.h <<\_ACEOF
16438 #define HAVE_FSEEKO 1
16447 # For each platform, we need to know about any special compile and link
16448 # libraries, and whether the normal C function names are thread-safe.
16449 # See the comment at the top of src/port/thread.c for more information.
16451 if test "$enable_thread_safety" = yes; then
16457 ac_cpp='$CPP $CPPFLAGS'
16458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16464 # We used to check for pthread.h first, but this fails if pthread.h
16465 # requires special compiler flags (e.g. on True64 or Sequent).
16466 # It gets checked for in the link test anyway.
16468 # First of all, check if the user has set any of the PTHREAD_LIBS,
16469 # etcetera environment variables, and if threads linking works using
16471 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16472 save_CFLAGS="$CFLAGS"
16473 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16475 LIBS="$PTHREAD_LIBS $LIBS"
16476 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16477 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any gcc2 internal prototype to avoid an error. */
16489 /* We use char because int might match the return type of a gcc2
16490 builtin and then its argument prototype would still apply. */
16491 char pthread_join ();
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502 (eval $ac_link) 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag"
16510 || test ! -s conftest.err'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16524 echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16528 rm -f conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16531 echo "${ECHO_T}$acx_pthread_ok" >&6
16532 if test x"$acx_pthread_ok" = xno; then
16537 CFLAGS="$save_CFLAGS"
16540 # We must check for the threads library under a number of different
16541 # names; the ordering is very important because some systems
16542 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16543 # libraries is broken (non-POSIX).
16545 # Create a list of thread flags to try. Items starting with a "-" are
16546 # C compiler flags, and other items are library names, except for "none"
16547 # which indicates that we try without any flags at all, and "pthread-config"
16548 # which is a program returning the flags for the Pth emulation library.
16550 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16552 # The ordering *is* (sometimes) important. Some notes on the
16553 # individual items follow:
16555 # pthreads: AIX (must check this before -lpthread)
16556 # none: in case threads are in libc; should be tried before -Kthread and
16557 # other compiler flags to prevent continual compiler warnings
16558 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16559 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16560 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16561 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16562 # -pthreads: Solaris/gcc
16563 # -mthreads: Mingw32/gcc, Lynx/gcc
16564 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16565 # doesn't hurt to check since this sometimes defines pthreads too;
16566 # also defines -D_REENTRANT)
16567 # pthread: Linux, etcetera
16568 # --thread-safe: KAI C++
16569 # pthread-config: use pthread-config program (for GNU Pth library)
16571 case "${host_cpu}-${host_os}" in
16574 # On Solaris (at least, for some versions), libc contains stubbed
16575 # (non-functional) versions of the pthreads routines, so link-based
16576 # tests will erroneously succeed. (We need to link with -pthread or
16577 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16578 # a function called by this macro, so we could check for that, but
16579 # who knows whether they'll stub that too in a future libc.) So,
16580 # we'll just look for -pthreads and -lpthread first:
16582 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16586 if test x"$acx_pthread_ok" = xno; then
16587 for flag in $acx_pthread_flags; do
16589 tryPTHREAD_CFLAGS=""
16593 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16594 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16598 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16599 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16600 tryPTHREAD_CFLAGS="$flag"
16604 # skip this if we already have flags defined, for PostgreSQL
16605 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16606 # Extract the first word of "pthread-config", so it can be a program name with args.
16607 set dummy pthread-config; ac_word=$2
16608 echo "$as_me:$LINENO: checking for $ac_word" >&5
16609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16610 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 if test -n "$acx_pthread_config"; then
16614 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16617 for as_dir in $PATH
16620 test -z "$as_dir" && as_dir=.
16621 for ac_exec_ext in '' $ac_executable_extensions; do
16622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16623 ac_cv_prog_acx_pthread_config="yes"
16624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16630 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16633 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16634 if test -n "$acx_pthread_config"; then
16635 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16636 echo "${ECHO_T}$acx_pthread_config" >&6
16638 echo "$as_me:$LINENO: result: no" >&5
16639 echo "${ECHO_T}no" >&6
16642 if test x"$acx_pthread_config" = xno; then continue; fi
16643 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16644 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16648 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16649 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16650 tryPTHREAD_LIBS="-l$flag"
16655 save_CFLAGS="$CFLAGS"
16656 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16657 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16659 # Check for various functions. We must include pthread.h,
16660 # since some functions may be macros. (On the Sequent, we
16661 # need a special flag -Kthread to make this header compile.)
16662 # We check for pthread_join because it is in -lpthread on IRIX
16663 # while pthread_create is in libc. We check for pthread_attr_init
16664 # due to DEC craziness with -lpthreads. We check for
16665 # pthread_cleanup_push because it is one of the few pthread
16666 # functions on Solaris that doesn't have a non-functional libc stub.
16667 # We try pthread_create on general principles.
16668 cat >conftest.$ac_ext <<_ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 #include <pthread.h>
16678 pthread_t th; pthread_join(th, 0);
16679 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16680 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687 (eval $ac_link) 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest$ac_exeext'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16709 echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16714 rm -f conftest.err conftest.$ac_objext \
16715 conftest$ac_exeext conftest.$ac_ext
16717 if test "x$acx_pthread_ok" = xyes; then
16718 # Don't use options that are ignored by the compiler.
16719 # We find them by checking stderror.
16720 cat >conftest.$ac_ext <<_ACEOF
16722 main (int argc, char **argv)
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16731 # we continue with more flags because Linux needs -lpthread
16732 # for libpq builds on PostgreSQL. The test above only
16733 # tests for building binaries, not shared libraries.
16734 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16735 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16736 else acx_pthread_ok=no
16741 CFLAGS="$save_CFLAGS"
16743 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16744 echo "${ECHO_T}$acx_pthread_ok" >&6
16748 # Various other checks:
16749 if test "x$acx_pthread_ok" = xyes; then
16751 LIBS="$PTHREAD_LIBS $LIBS"
16752 save_CFLAGS="$CFLAGS"
16753 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16755 # Detect AIX lossage: threads are created detached by default
16756 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16757 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16758 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <pthread.h>
16769 int attr=PTHREAD_CREATE_JOINABLE;
16774 rm -f conftest.$ac_objext conftest$ac_exeext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776 (eval $ac_link) 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ok=PTHREAD_CREATE_JOINABLE
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16803 rm -f conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16805 if test x"$ok" = xunknown; then
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 #include <pthread.h>
16816 int attr=PTHREAD_CREATE_UNDETACHED;
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ok=PTHREAD_CREATE_UNDETACHED
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16850 rm -f conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16853 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16855 cat >>confdefs.h <<\_ACEOF
16856 #define PTHREAD_CREATE_JOINABLE $ok
16860 echo "$as_me:$LINENO: result: ${ok}" >&5
16861 echo "${ECHO_T}${ok}" >&6
16862 if test x"$ok" = xunknown; then
16863 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16864 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16867 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16868 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16870 # We always add these in PostgreSQL
16871 # case "${host_cpu}-${host_os}" in
16872 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16873 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16875 echo "$as_me:$LINENO: result: ${flag}" >&5
16876 echo "${ECHO_T}${flag}" >&6
16877 if test "x$flag" != xno; then
16878 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16882 CFLAGS="$save_CFLAGS"
16884 # Supporting cc_r would require a special CC in all places that
16885 # use libpq, and that is ugly, so we don't do it. Users can still
16886 # define their compiler as cc_r to do thread builds of everything.
16887 # More AIX lossage: must compile with cc_r
16888 # Extract the first word of "cc_r", so it can be a program name with args.
16889 set dummy cc_r; ac_word=$2
16890 echo "$as_me:$LINENO: checking for $ac_word" >&5
16891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16892 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 if test -n "$PTHREAD_CC"; then
16896 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16899 for as_dir in $PATH
16902 test -z "$as_dir" && as_dir=.
16903 for ac_exec_ext in '' $ac_executable_extensions; do
16904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16905 ac_cv_prog_PTHREAD_CC="cc_r"
16906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16912 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16915 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16916 if test -n "$PTHREAD_CC"; then
16917 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16918 echo "${ECHO_T}$PTHREAD_CC" >&6
16920 echo "$as_me:$LINENO: result: no" >&5
16921 echo "${ECHO_T}no" >&6
16932 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16933 if test x"$acx_pthread_ok" = xyes; then
16935 cat >>confdefs.h <<\_ACEOF
16936 #define HAVE_PTHREAD 1
16945 ac_cpp='$CPP $CPPFLAGS'
16946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16952 # Some platforms use these, so just defineed them. They can't hurt if they
16953 # are not supported.
16954 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16957 # At this point, we don't want to muck with the compiler name for threading.
16958 # Let's see who fails, perhaps AIX. 2004-04-23
16959 if test "$PTHREAD_CC" != "$CC"; then
16960 { { echo "$as_me:$LINENO: error:
16961 PostgreSQL does not support platforms that require a special compiler
16962 for thread safety." >&5
16963 echo "$as_me: error:
16964 PostgreSQL does not support platforms that require a special compiler
16965 for thread safety." >&2;}
16966 { (exit 1); exit 1; }; }
16969 if test "$THREAD_SUPPORT" = no; then
16970 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
16971 This platform is known to not support thread-safe programs. For details,
16972 compile and run src/bin/pg_thread_test." >&5
16973 echo "$as_me: error: cannot enable threads on this platform
16974 This platform is known to not support thread-safe programs. For details,
16975 compile and run src/bin/pg_thread_test." >&2;}
16976 { (exit 1); exit 1; }; }
16979 # Check for *_r functions
16982 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16983 LIBS="$LIBS $PTHREAD_LIBS"
16985 if test "${ac_cv_header_pthread_h+set}" = set; then
16986 echo "$as_me:$LINENO: checking for pthread.h" >&5
16987 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16988 if test "${ac_cv_header_pthread_h+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16992 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16994 # Is the header compilable?
16995 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16996 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 $ac_includes_default
17004 #include <pthread.h>
17006 rm -f conftest.$ac_objext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008 (eval $ac_compile) 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag"
17016 || test ! -s conftest.err'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_header_compiler=yes
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_header_compiler=no
17035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17037 echo "${ECHO_T}$ac_header_compiler" >&6
17039 # Is the header present?
17040 echo "$as_me:$LINENO: checking pthread.h presence" >&5
17041 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
17042 cat >conftest.$ac_ext <<_ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 #include <pthread.h>
17050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } >/dev/null; then
17058 if test -s conftest.err; then
17059 ac_cpp_err=$ac_c_preproc_warn_flag
17060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17067 if test -z "$ac_cpp_err"; then
17068 ac_header_preproc=yes
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_header_preproc=no
17075 rm -f conftest.err conftest.$ac_ext
17076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17077 echo "${ECHO_T}$ac_header_preproc" >&6
17079 # So? What about this header?
17080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17082 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
17083 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
17085 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
17086 ac_header_preproc=yes
17089 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
17090 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
17092 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
17094 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
17096 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
17098 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
17099 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
17100 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
17103 ## ---------------------------------------- ##
17104 ## Report this to pgsql-bugs@postgresql.org ##
17105 ## ---------------------------------------- ##
17108 sed "s/^/$as_me: WARNING: /" >&2
17111 echo "$as_me:$LINENO: checking for pthread.h" >&5
17112 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17113 if test "${ac_cv_header_pthread_h+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 ac_cv_header_pthread_h=$ac_header_preproc
17118 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17119 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17122 if test $ac_cv_header_pthread_h = yes; then
17125 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
17126 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
17127 { (exit 1); exit 1; }; }
17135 for ac_func in strerror_r getpwuid_r gethostbyname_r
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17140 if eval "test \"\${$as_ac_var+set}\" = set"; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 cat >conftest.$ac_ext <<_ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17151 #define $ac_func innocuous_$ac_func
17153 /* System header to define __stub macros and hopefully few prototypes,
17154 which can conflict with char $ac_func (); below.
17155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156 <limits.h> exists even on freestanding compilers. */
17159 # include <limits.h>
17161 # include <assert.h>
17166 /* Override any gcc2 internal prototype to avoid an error. */
17171 /* We use char because int might match the return type of a gcc2
17172 builtin and then its argument prototype would still apply. */
17174 /* The GNU C library defines this for functions which it implements
17175 to always fail with ENOSYS. Some functions are actually named
17176 something starting with __ and the normal name is an alias. */
17177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17180 char (*f) () = $ac_func;
17189 return f != $ac_func;
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196 (eval $ac_link) 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -z "$ac_c_werror_flag"
17204 || test ! -s conftest.err'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest$ac_exeext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 eval "$as_ac_var=yes"
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 eval "$as_ac_var=no"
17223 rm -f conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17228 if test `eval echo '${'$as_ac_var'}'` = yes; then
17229 cat >>confdefs.h <<_ACEOF
17230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17237 # Do test here with the proper thread flags
17238 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17239 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17240 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 cat >conftest.$ac_ext <<_ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 #include <sys/types.h>
17255 struct passwd *space;
17258 struct passwd **result;
17259 getpwuid_r(uid, space, buf, bufsize, result);
17264 rm -f conftest.$ac_objext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17266 (eval $ac_compile) 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try='test -z "$ac_c_werror_flag"
17274 || test ! -s conftest.err'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try='test -s conftest.$ac_objext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 pgac_func_getpwuid_r_5arg=yes
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 pgac_func_getpwuid_r_5arg=no
17293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17295 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17296 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17297 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17299 cat >>confdefs.h <<\_ACEOF
17300 #define GETPWUID_R_5ARG
17305 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17306 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17307 if test "${pgac_func_strerror_r_int+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 #include <string.h>
17321 int strerror_r(int, char *, size_t);
17323 /* Older AIX has 'int' for the third argument so we don't test the args. */
17330 rm -f conftest.$ac_objext
17331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17332 (eval $ac_compile) 2>conftest.er1
17334 grep -v '^ *+' conftest.er1 >conftest.err
17336 cat conftest.err >&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } &&
17339 { ac_try='test -z "$ac_c_werror_flag"
17340 || test ! -s conftest.err'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest.$ac_objext'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 pgac_func_strerror_r_int=yes
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 pgac_func_strerror_r_int=no
17359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17361 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17362 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17363 if test x"$pgac_func_strerror_r_int" = xyes ; then
17365 cat >>confdefs.h <<\_ACEOF
17366 #define STRERROR_R_INT
17376 # do not use values from template file
17385 # We can test for libldap_r only after we know PTHREAD_LIBS
17386 if test "$with_ldap" = yes ; then
17388 if test "$PORTNAME" != "win32"; then
17390 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
17391 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
17392 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 ac_check_lib_save_LIBS=$LIBS
17396 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any gcc2 internal prototype to avoid an error. */
17408 /* We use char because int might match the return type of a gcc2
17409 builtin and then its argument prototype would still apply. */
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_ldap_ldap_bind=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ac_cv_lib_ldap_ldap_bind=no
17448 rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17452 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
17453 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
17454 if test $ac_cv_lib_ldap_ldap_bind = yes; then
17455 cat >>confdefs.h <<_ACEOF
17456 #define HAVE_LIBLDAP 1
17459 LIBS="-lldap $LIBS"
17462 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
17463 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
17464 { (exit 1); exit 1; }; }
17467 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
17468 if test "$enable_thread_safety" = yes; then
17469 # on some platforms ldap_r fails to link without PTHREAD_LIBS
17471 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
17472 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
17473 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 ac_check_lib_save_LIBS=$LIBS
17477 LIBS="-lldap_r $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
17478 cat >conftest.$ac_ext <<_ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17485 /* Override any gcc2 internal prototype to avoid an error. */
17489 /* We use char because int might match the return type of a gcc2
17490 builtin and then its argument prototype would still apply. */
17491 char ldap_simple_bind ();
17495 ldap_simple_bind ();
17500 rm -f conftest.$ac_objext conftest$ac_exeext
17501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17502 (eval $ac_link) 2>conftest.er1
17504 grep -v '^ *+' conftest.er1 >conftest.err
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_lib_ldap_r_ldap_simple_bind=yes
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_lib_ldap_r_ldap_simple_bind=no
17529 rm -f conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 LIBS=$ac_check_lib_save_LIBS
17533 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
17534 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
17535 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_LIBLDAP_R 1
17540 LIBS="-lldap_r $LIBS"
17543 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
17544 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
17545 { (exit 1); exit 1; }; }
17548 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
17550 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
17554 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
17555 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
17556 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-lwldap32 $LIBS"
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any gcc2 internal prototype to avoid an error. */
17572 /* We use char because int might match the return type of a gcc2
17573 builtin and then its argument prototype would still apply. */
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_lib_wldap32_ldap_bind=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_cv_lib_wldap32_ldap_bind=no
17612 rm -f conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
17617 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
17618 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
17619 cat >>confdefs.h <<_ACEOF
17620 #define HAVE_LIBWLDAP32 1
17623 LIBS="-lwldap32 $LIBS"
17626 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
17627 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
17628 { (exit 1); exit 1; }; }
17631 LDAP_LIBS_FE="-lwldap32"
17632 LDAP_LIBS_BE="-lwldap32"
17640 # This test makes sure that run tests work at all. Sometimes a shared
17641 # library is found by the linker, but the runtime linker can't find it.
17642 # This check should come after all modifications of compiler or linker
17643 # variables, and before any other run tests.
17644 echo "$as_me:$LINENO: checking test program" >&5
17645 echo $ECHO_N "checking test program... $ECHO_C" >&6
17646 if test "$cross_compiling" = yes; then
17647 echo "$as_me:$LINENO: result: cross-compiling" >&5
17648 echo "${ECHO_T}cross-compiling" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 int main() { return 0; }
17658 rm -f conftest$ac_exeext
17659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660 (eval $ac_link) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 echo "$as_me:$LINENO: result: ok" >&5
17670 echo "${ECHO_T}ok" >&6
17672 echo "$as_me: program exited with status $ac_status" >&5
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17676 ( exit $ac_status )
17677 echo "$as_me:$LINENO: result: failed" >&5
17678 echo "${ECHO_T}failed" >&6
17679 { { echo "$as_me:$LINENO: error:
17680 Could not execute a simple test program. This may be a problem
17681 related to locating shared libraries. Check the file 'config.log'
17682 for the exact reason." >&5
17683 echo "$as_me: error:
17684 Could not execute a simple test program. This may be a problem
17685 related to locating shared libraries. Check the file 'config.log'
17686 for the exact reason." >&2;}
17687 { (exit 1); exit 1; }; }
17689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17692 # --------------------
17693 # Run tests below here
17694 # --------------------
17696 # Force use of our snprintf if system's doesn't do arg control
17697 # See comment above at snprintf test for details.
17698 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17699 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17700 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17701 if test "${pgac_cv_printf_arg_control+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 if test "$cross_compiling" = yes; then
17705 pgac_cv_printf_arg_control=cross
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17714 #include <string.h>
17720 /* can it swap arguments? */
17721 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17722 if (strcmp(buf, "4 3") != 0)
17727 rm -f conftest$ac_exeext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729 (eval $ac_link) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 pgac_cv_printf_arg_control=yes
17740 echo "$as_me: program exited with status $ac_status" >&5
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ( exit $ac_status )
17745 pgac_cv_printf_arg_control=no
17747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17751 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17752 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17754 if test $pgac_cv_printf_arg_control != yes ; then
17755 pgac_need_repl_snprintf=yes
17761 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17762 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17763 if test "${pgac_cv_type_long_int_64+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 if test "$cross_compiling" = yes; then
17767 # If cross-compiling, check the size reported by the compiler and
17768 # trust that the arithmetic works.
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17779 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17786 rm -f conftest.$ac_objext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17788 (eval $ac_compile) 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag"
17796 || test ! -s conftest.err'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; } &&
17802 { ac_try='test -s conftest.$ac_objext'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 pgac_cv_type_long_int_64=yes
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 pgac_cv_type_long_int_64=no
17815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 typedef long int ac_int64;
17826 * These are globals to discourage the compiler from folding all the
17827 * arithmetic tests down to compile-time constants.
17829 ac_int64 a = 20000001;
17830 ac_int64 b = 40000005;
17832 int does_int64_work()
17836 if (sizeof(ac_int64) != 8)
17837 return 0; /* definitely not the right size */
17839 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17847 exit(! does_int64_work());
17850 rm -f conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 pgac_cv_type_long_int_64=yes
17863 echo "$as_me: program exited with status $ac_status" >&5
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 ( exit $ac_status )
17868 pgac_cv_type_long_int_64=no
17870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17873 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17874 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17876 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17877 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17879 cat >>confdefs.h <<\_ACEOF
17880 #define HAVE_LONG_INT_64
17886 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17887 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17888 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17889 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 if test "$cross_compiling" = yes; then
17893 # If cross-compiling, check the size reported by the compiler and
17894 # trust that the arithmetic works.
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17905 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
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 pgac_cv_type_long_long_int_64=yes
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 pgac_cv_type_long_long_int_64=no
17941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 cat >conftest.$ac_ext <<_ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 typedef long long int ac_int64;
17952 * These are globals to discourage the compiler from folding all the
17953 * arithmetic tests down to compile-time constants.
17955 ac_int64 a = 20000001;
17956 ac_int64 b = 40000005;
17958 int does_int64_work()
17962 if (sizeof(ac_int64) != 8)
17963 return 0; /* definitely not the right size */
17965 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17973 exit(! does_int64_work());
17976 rm -f conftest$ac_exeext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 pgac_cv_type_long_long_int_64=yes
17989 echo "$as_me: program exited with status $ac_status" >&5
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ( exit $ac_status )
17994 pgac_cv_type_long_long_int_64=no
17996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17999 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
18000 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
18002 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
18003 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
18005 cat >>confdefs.h <<\_ACEOF
18006 #define HAVE_LONG_LONG_INT_64
18015 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 #define INT64CONST(x) x##LL
18024 long long int foo = INT64CONST(0x1234567890123456);
18034 rm -f conftest.$ac_objext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18036 (eval $ac_compile) 2>conftest.er1
18038 grep -v '^ *+' conftest.er1 >conftest.err
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest.$ac_objext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE_LL_CONSTANTS 1
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18070 # If we found "long int" is 64 bits, assume snprintf handles it. If
18071 # we found we need to use "long long int", better check. We cope with
18072 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
18073 # work, fall back to our own snprintf emulation (which we know uses %lld).
18075 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
18076 if test $pgac_need_repl_snprintf = no; then
18077 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
18078 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
18079 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 for pgac_format in '%lld' '%qd' '%I64d'; do
18083 if test "$cross_compiling" = yes; then
18084 pgac_cv_snprintf_long_long_int_format=cross; break
18086 cat >conftest.$ac_ext <<_ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h. */
18093 typedef long long int ac_int64;
18094 #define INT64_FORMAT "$pgac_format"
18096 ac_int64 a = 20000001;
18097 ac_int64 b = 40000005;
18099 int does_int64_snprintf_work()
18104 if (sizeof(ac_int64) != 8)
18105 return 0; /* doesn't look like the right size */
18108 snprintf(buf, 100, INT64_FORMAT, c);
18109 if (strcmp(buf, "800000140000005") != 0)
18110 return 0; /* either multiply or snprintf is busted */
18114 exit(! does_int64_snprintf_work());
18117 rm -f conftest$ac_exeext
18118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18119 (eval $ac_link) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
18130 echo "$as_me: program exited with status $ac_status" >&5
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18140 LONG_LONG_INT_FORMAT=''
18142 case $pgac_cv_snprintf_long_long_int_format in
18143 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
18144 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
18145 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
18146 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
18147 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
18148 *) echo "$as_me:$LINENO: result: none" >&5
18149 echo "${ECHO_T}none" >&6;;
18151 if test "$LONG_LONG_INT_FORMAT" = ""; then
18152 # Force usage of our own snprintf, since system snprintf is broken
18153 pgac_need_repl_snprintf=yes
18154 LONG_LONG_INT_FORMAT='%lld'
18157 # Here if we previously decided we needed to use our own snprintf
18158 LONG_LONG_INT_FORMAT='%lld'
18160 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
18161 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
18162 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
18164 # Here if we are not using 'long long int' at all
18165 INT64_FORMAT='"%ld"'
18166 UINT64_FORMAT='"%lu"'
18170 cat >>confdefs.h <<_ACEOF
18171 #define INT64_FORMAT $INT64_FORMAT
18176 cat >>confdefs.h <<_ACEOF
18177 #define UINT64_FORMAT $UINT64_FORMAT
18181 # Now we have checked all the reasons to replace snprintf
18182 if test $pgac_need_repl_snprintf = yes; then
18184 cat >>confdefs.h <<\_ACEOF
18185 #define USE_REPL_SNPRINTF 1
18189 "snprintf.$ac_objext" | \
18190 *" snprintf.$ac_objext" | \
18191 "snprintf.$ac_objext "* | \
18192 *" snprintf.$ac_objext "* ) ;;
18193 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
18198 # Need a #define for the size of Datum (unsigned long)
18199 echo "$as_me:$LINENO: checking for unsigned long" >&5
18200 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
18201 if test "${ac_cv_type_unsigned_long+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 cat >conftest.$ac_ext <<_ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18210 $ac_includes_default
18214 if ((unsigned long *) 0)
18216 if (sizeof (unsigned long))
18222 rm -f conftest.$ac_objext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224 (eval $ac_compile) 2>conftest.er1
18226 grep -v '^ *+' conftest.er1 >conftest.err
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag"
18232 || test ! -s conftest.err'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest.$ac_objext'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 ac_cv_type_unsigned_long=yes
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_cv_type_unsigned_long=no
18251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
18254 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
18256 echo "$as_me:$LINENO: checking size of unsigned long" >&5
18257 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
18258 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 if test "$ac_cv_type_unsigned_long" = yes; then
18262 # The cast to unsigned long works around a bug in the HP C Compiler
18263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18265 # This bug is HP SR number 8606223364.
18266 if test "$cross_compiling" = yes; then
18267 # Depending upon the size, compute the lo and hi bounds.
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18278 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 $ac_includes_default
18319 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18326 rm -f conftest.$ac_objext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18328 (eval $ac_compile) 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag"
18336 || test ! -s conftest.err'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest.$ac_objext'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 ac_hi=$ac_mid; break
18350 echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ac_lo=`expr $ac_mid + 1`
18354 if test $ac_lo -le $ac_mid; then
18358 ac_mid=`expr 2 '*' $ac_mid + 1`
18360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18376 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
18383 rm -f conftest.$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18387 grep -v '^ *+' conftest.er1 >conftest.err
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 $ac_includes_default
18417 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
18424 rm -f conftest.$ac_objext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18426 (eval $ac_compile) 2>conftest.er1
18428 grep -v '^ *+' conftest.er1 >conftest.err
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try='test -z "$ac_c_werror_flag"
18434 || test ! -s conftest.err'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest.$ac_objext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 ac_lo=$ac_mid; break
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 ac_hi=`expr '(' $ac_mid ')' - 1`
18452 if test $ac_mid -le $ac_hi; then
18456 ac_mid=`expr 2 '*' $ac_mid`
18458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18469 # Binary search between lo and hi bounds.
18470 while test "x$ac_lo" != "x$ac_hi"; do
18471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 (unsigned long))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ac_lo=`expr '(' $ac_mid ')' + 1`
18518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18521 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18522 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18523 See \`config.log' for more details." >&5
18524 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18525 See \`config.log' for more details." >&2;}
18526 { (exit 1); exit 1; }; } ;;
18529 if test "$cross_compiling" = yes; then
18530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18531 See \`config.log' for more details." >&5
18532 echo "$as_me: error: cannot run test program while cross compiling
18533 See \`config.log' for more details." >&2;}
18534 { (exit 1); exit 1; }; }
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 $ac_includes_default
18543 long longval () { return (long) (sizeof (unsigned long)); }
18544 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18546 #include <stdlib.h>
18551 FILE *f = fopen ("conftest.val", "w");
18554 if (((long) (sizeof (unsigned long))) < 0)
18556 long i = longval ();
18557 if (i != ((long) (sizeof (unsigned long))))
18559 fprintf (f, "%ld\n", i);
18563 unsigned long i = ulongval ();
18564 if (i != ((long) (sizeof (unsigned long))))
18566 fprintf (f, "%lu\n", i);
18568 exit (ferror (f) || fclose (f) != 0);
18574 rm -f conftest$ac_exeext
18575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18576 (eval $ac_link) 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; }; then
18585 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18587 echo "$as_me: program exited with status $ac_status" >&5
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 ( exit $ac_status )
18592 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18593 See \`config.log' for more details." >&5
18594 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18595 See \`config.log' for more details." >&2;}
18596 { (exit 1); exit 1; }; }
18598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18603 ac_cv_sizeof_unsigned_long=0
18606 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18607 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18608 cat >>confdefs.h <<_ACEOF
18609 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18614 # And one for the size of size_t (enables tweaks for > 32bit address space)
18615 echo "$as_me:$LINENO: checking for size_t" >&5
18616 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18617 if test "${ac_cv_type_size_t+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 cat >conftest.$ac_ext <<_ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 $ac_includes_default
18632 if (sizeof (size_t))
18638 rm -f conftest.$ac_objext
18639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18640 (eval $ac_compile) 2>conftest.er1
18642 grep -v '^ *+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag"
18648 || test ! -s conftest.err'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest.$ac_objext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_cv_type_size_t=yes
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_cv_type_size_t=no
18667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18669 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18670 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18672 echo "$as_me:$LINENO: checking size of size_t" >&5
18673 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18674 if test "${ac_cv_sizeof_size_t+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 if test "$ac_cv_type_size_t" = yes; then
18678 # The cast to unsigned long works around a bug in the HP C Compiler
18679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18681 # This bug is HP SR number 8606223364.
18682 if test "$cross_compiling" = yes; then
18683 # Depending upon the size, compute the lo and hi bounds.
18684 cat >conftest.$ac_ext <<_ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18690 $ac_includes_default
18694 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18701 rm -f conftest.$ac_objext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18703 (eval $ac_compile) 2>conftest.er1
18705 grep -v '^ *+' conftest.er1 >conftest.err
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest.$ac_objext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 $ac_includes_default
18735 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18742 rm -f conftest.$ac_objext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18744 (eval $ac_compile) 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag"
18752 || test ! -s conftest.err'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_hi=$ac_mid; break
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 ac_lo=`expr $ac_mid + 1`
18770 if test $ac_lo -le $ac_mid; then
18774 ac_mid=`expr 2 '*' $ac_mid + 1`
18776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 cat >conftest.$ac_ext <<_ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 $ac_includes_default
18792 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801 (eval $ac_compile) 2>conftest.er1
18803 grep -v '^ *+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
18808 { ac_try='test -z "$ac_c_werror_flag"
18809 || test ! -s conftest.err'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } &&
18815 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 $ac_includes_default
18833 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18840 rm -f conftest.$ac_objext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18844 grep -v '^ *+' conftest.er1 >conftest.err
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_lo=$ac_mid; break
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_hi=`expr '(' $ac_mid ')' - 1`
18868 if test $ac_mid -le $ac_hi; then
18872 ac_mid=`expr 2 '*' $ac_mid`
18874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18877 echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18885 # Binary search between lo and hi bounds.
18886 while test "x$ac_lo" != "x$ac_hi"; do
18887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 $ac_includes_default
18898 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_lo=`expr '(' $ac_mid ')' + 1`
18934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18937 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18938 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18939 See \`config.log' for more details." >&5
18940 echo "$as_me: error: cannot compute sizeof (size_t), 77
18941 See \`config.log' for more details." >&2;}
18942 { (exit 1); exit 1; }; } ;;
18945 if test "$cross_compiling" = yes; then
18946 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18947 See \`config.log' for more details." >&5
18948 echo "$as_me: error: cannot run test program while cross compiling
18949 See \`config.log' for more details." >&2;}
18950 { (exit 1); exit 1; }; }
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 $ac_includes_default
18959 long longval () { return (long) (sizeof (size_t)); }
18960 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18962 #include <stdlib.h>
18967 FILE *f = fopen ("conftest.val", "w");
18970 if (((long) (sizeof (size_t))) < 0)
18972 long i = longval ();
18973 if (i != ((long) (sizeof (size_t))))
18975 fprintf (f, "%ld\n", i);
18979 unsigned long i = ulongval ();
18980 if (i != ((long) (sizeof (size_t))))
18982 fprintf (f, "%lu\n", i);
18984 exit (ferror (f) || fclose (f) != 0);
18990 rm -f conftest$ac_exeext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18992 (eval $ac_link) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_cv_sizeof_size_t=`cat conftest.val`
19003 echo "$as_me: program exited with status $ac_status" >&5
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ( exit $ac_status )
19008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19009 See \`config.log' for more details." >&5
19010 echo "$as_me: error: cannot compute sizeof (size_t), 77
19011 See \`config.log' for more details." >&2;}
19012 { (exit 1); exit 1; }; }
19014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19019 ac_cv_sizeof_size_t=0
19022 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19023 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19024 cat >>confdefs.h <<_ACEOF
19025 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19030 # Determine memory alignment requirements for the basic C data types.
19032 echo "$as_me:$LINENO: checking for short" >&5
19033 echo $ECHO_N "checking for short... $ECHO_C" >&6
19034 if test "${ac_cv_type_short+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 $ac_includes_default
19049 if (sizeof (short))
19055 rm -f conftest.$ac_objext
19056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057 (eval $ac_compile) 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_c_werror_flag"
19065 || test ! -s conftest.err'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; } &&
19071 { ac_try='test -s conftest.$ac_objext'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077 ac_cv_type_short=yes
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19082 ac_cv_type_short=no
19084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19086 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19087 echo "${ECHO_T}$ac_cv_type_short" >&6
19089 echo "$as_me:$LINENO: checking alignment of short" >&5
19090 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
19091 if test "${pgac_cv_alignof_short+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 if test "$ac_cv_type_short" = yes; then
19095 if test "$cross_compiling" = yes; then
19096 # Depending upon the size, compute the lo and hi bounds.
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19103 $ac_includes_default
19104 struct { char filler; short field; } pgac_struct;
19108 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19115 rm -f conftest.$ac_objext
19116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19117 (eval $ac_compile) 2>conftest.er1
19119 grep -v '^ *+' conftest.er1 >conftest.err
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try='test -z "$ac_c_werror_flag"
19125 || test ! -s conftest.err'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; } &&
19131 { ac_try='test -s conftest.$ac_objext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
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
19146 struct { char filler; short field; } pgac_struct;
19150 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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
19179 ac_hi=$ac_mid; break
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_lo=`expr $ac_mid + 1`
19185 if test $ac_lo -le $ac_mid; then
19189 ac_mid=`expr 2 '*' $ac_mid + 1`
19191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 cat >conftest.$ac_ext <<_ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 $ac_includes_default
19204 struct { char filler; short field; } pgac_struct;
19208 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest.$ac_objext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19246 struct { char filler; short field; } pgac_struct;
19250 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_lo=$ac_mid; break
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_hi=`expr '(' $ac_mid ')' - 1`
19285 if test $ac_mid -le $ac_hi; then
19289 ac_mid=`expr 2 '*' $ac_mid`
19291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302 # Binary search between lo and hi bounds.
19303 while test "x$ac_lo" != "x$ac_hi"; do
19304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 $ac_includes_default
19312 struct { char filler; short field; } pgac_struct;
19316 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19323 rm -f conftest.$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag"
19333 || test ! -s conftest.err'
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); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_lo=`expr '(' $ac_mid ')' + 1`
19352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19355 ?*) pgac_cv_alignof_short=$ac_lo;;
19356 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19357 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19358 { (exit 1); exit 1; }; } ;;
19361 if test "$cross_compiling" = yes; then
19362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19363 See \`config.log' for more details." >&5
19364 echo "$as_me: error: cannot run test program while cross compiling
19365 See \`config.log' for more details." >&2;}
19366 { (exit 1); exit 1; }; }
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 $ac_includes_default
19375 struct { char filler; short field; } pgac_struct;
19376 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19377 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19379 #include <stdlib.h>
19384 FILE *f = fopen ("conftest.val", "w");
19387 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19389 long i = longval ();
19390 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19392 fprintf (f, "%ld\n", i);
19396 unsigned long i = ulongval ();
19397 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19399 fprintf (f, "%lu\n", i);
19401 exit (ferror (f) || fclose (f) != 0);
19407 rm -f conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 pgac_cv_alignof_short=`cat conftest.val`
19420 echo "$as_me: program exited with status $ac_status" >&5
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ( exit $ac_status )
19425 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19426 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19427 { (exit 1); exit 1; }; }
19429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19434 pgac_cv_alignof_short=0
19437 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
19438 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
19439 cat >>confdefs.h <<_ACEOF
19440 #define ALIGNOF_SHORT $pgac_cv_alignof_short
19444 echo "$as_me:$LINENO: checking for int" >&5
19445 echo $ECHO_N "checking for int... $ECHO_C" >&6
19446 if test "${ac_cv_type_int+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19455 $ac_includes_default
19467 rm -f conftest.$ac_objext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19469 (eval $ac_compile) 2>conftest.er1
19471 grep -v '^ *+' conftest.er1 >conftest.err
19473 cat conftest.err >&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try='test -z "$ac_c_werror_flag"
19477 || test ! -s conftest.err'
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest.$ac_objext'
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19491 echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19498 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19499 echo "${ECHO_T}$ac_cv_type_int" >&6
19501 echo "$as_me:$LINENO: checking alignment of int" >&5
19502 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19503 if test "${pgac_cv_alignof_int+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 if test "$ac_cv_type_int" = yes; then
19507 if test "$cross_compiling" = yes; then
19508 # Depending upon the size, compute the lo and hi bounds.
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 $ac_includes_default
19516 struct { char filler; int field; } pgac_struct;
19520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19527 rm -f conftest.$ac_objext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag"
19537 || test ! -s conftest.err'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; } &&
19543 { ac_try='test -s conftest.$ac_objext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
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
19558 struct { char filler; int field; } pgac_struct;
19562 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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_hi=$ac_mid; break
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19596 ac_lo=`expr $ac_mid + 1`
19597 if test $ac_lo -le $ac_mid; then
19601 ac_mid=`expr 2 '*' $ac_mid + 1`
19603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 cat >conftest.$ac_ext <<_ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 $ac_includes_default
19616 struct { char filler; int field; } pgac_struct;
19620 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19627 rm -f conftest.$ac_objext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629 (eval $ac_compile) 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag"
19637 || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 struct { char filler; int field; } pgac_struct;
19662 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19669 rm -f conftest.$ac_objext
19670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671 (eval $ac_compile) 2>conftest.er1
19673 grep -v '^ *+' conftest.er1 >conftest.err
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -z "$ac_c_werror_flag"
19679 || test ! -s conftest.err'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_lo=$ac_mid; break
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ac_hi=`expr '(' $ac_mid ')' - 1`
19697 if test $ac_mid -le $ac_hi; then
19701 ac_mid=`expr 2 '*' $ac_mid`
19703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 # Binary search between lo and hi bounds.
19715 while test "x$ac_lo" != "x$ac_hi"; do
19716 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 $ac_includes_default
19724 struct { char filler; int field; } pgac_struct;
19728 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
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); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_lo=`expr '(' $ac_mid ')' + 1`
19764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19767 ?*) pgac_cv_alignof_int=$ac_lo;;
19768 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19769 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19770 { (exit 1); exit 1; }; } ;;
19773 if test "$cross_compiling" = yes; then
19774 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19775 See \`config.log' for more details." >&5
19776 echo "$as_me: error: cannot run test program while cross compiling
19777 See \`config.log' for more details." >&2;}
19778 { (exit 1); exit 1; }; }
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 $ac_includes_default
19787 struct { char filler; int field; } pgac_struct;
19788 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19789 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19791 #include <stdlib.h>
19796 FILE *f = fopen ("conftest.val", "w");
19799 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19801 long i = longval ();
19802 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19804 fprintf (f, "%ld\n", i);
19808 unsigned long i = ulongval ();
19809 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19811 fprintf (f, "%lu\n", i);
19813 exit (ferror (f) || fclose (f) != 0);
19819 rm -f conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 pgac_cv_alignof_int=`cat conftest.val`
19832 echo "$as_me: program exited with status $ac_status" >&5
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ( exit $ac_status )
19837 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19838 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19839 { (exit 1); exit 1; }; }
19841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19846 pgac_cv_alignof_int=0
19849 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19850 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19851 cat >>confdefs.h <<_ACEOF
19852 #define ALIGNOF_INT $pgac_cv_alignof_int
19856 echo "$as_me:$LINENO: checking for long" >&5
19857 echo $ECHO_N "checking for long... $ECHO_C" >&6
19858 if test "${ac_cv_type_long+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 cat >conftest.$ac_ext <<_ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19867 $ac_includes_default
19879 rm -f conftest.$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19883 grep -v '^ *+' conftest.er1 >conftest.err
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag"
19889 || test ! -s conftest.err'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_cv_type_long=yes
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19910 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19911 echo "${ECHO_T}$ac_cv_type_long" >&6
19913 echo "$as_me:$LINENO: checking alignment of long" >&5
19914 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19915 if test "${pgac_cv_alignof_long+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 if test "$ac_cv_type_long" = yes; then
19919 if test "$cross_compiling" = yes; then
19920 # Depending upon the size, compute the lo and hi bounds.
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19928 struct { char filler; long field; } pgac_struct;
19932 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19939 rm -f conftest.$ac_objext
19940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19941 (eval $ac_compile) 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
19948 { ac_try='test -z "$ac_c_werror_flag"
19949 || test ! -s conftest.err'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 $ac_includes_default
19970 struct { char filler; long field; } pgac_struct;
19974 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19981 rm -f conftest.$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983 (eval $ac_compile) 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_c_werror_flag"
19991 || test ! -s conftest.err'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_hi=$ac_mid; break
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_lo=`expr $ac_mid + 1`
20009 if test $ac_lo -le $ac_mid; then
20013 ac_mid=`expr 2 '*' $ac_mid + 1`
20015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 $ac_includes_default
20028 struct { char filler; long field; } pgac_struct;
20032 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041 (eval $ac_compile) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20063 cat >conftest.$ac_ext <<_ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 $ac_includes_default
20070 struct { char filler; long field; } pgac_struct;
20074 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20081 rm -f conftest.$ac_objext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083 (eval $ac_compile) 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag"
20091 || test ! -s conftest.err'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest.$ac_objext'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_lo=$ac_mid; break
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_hi=`expr '(' $ac_mid ')' - 1`
20109 if test $ac_mid -le $ac_hi; then
20113 ac_mid=`expr 2 '*' $ac_mid`
20115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20126 # Binary search between lo and hi bounds.
20127 while test "x$ac_lo" != "x$ac_hi"; do
20128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 $ac_includes_default
20136 struct { char filler; long field; } pgac_struct;
20140 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_lo=`expr '(' $ac_mid ')' + 1`
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179 ?*) pgac_cv_alignof_long=$ac_lo;;
20180 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
20181 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
20182 { (exit 1); exit 1; }; } ;;
20185 if test "$cross_compiling" = yes; then
20186 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20187 See \`config.log' for more details." >&5
20188 echo "$as_me: error: cannot run test program while cross compiling
20189 See \`config.log' for more details." >&2;}
20190 { (exit 1); exit 1; }; }
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 $ac_includes_default
20199 struct { char filler; long field; } pgac_struct;
20200 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20201 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20203 #include <stdlib.h>
20208 FILE *f = fopen ("conftest.val", "w");
20211 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20213 long i = longval ();
20214 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20216 fprintf (f, "%ld\n", i);
20220 unsigned long i = ulongval ();
20221 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20223 fprintf (f, "%lu\n", i);
20225 exit (ferror (f) || fclose (f) != 0);
20231 rm -f conftest$ac_exeext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20233 (eval $ac_link) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20242 pgac_cv_alignof_long=`cat conftest.val`
20244 echo "$as_me: program exited with status $ac_status" >&5
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ( exit $ac_status )
20249 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
20250 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
20251 { (exit 1); exit 1; }; }
20253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20258 pgac_cv_alignof_long=0
20261 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
20262 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
20263 cat >>confdefs.h <<_ACEOF
20264 #define ALIGNOF_LONG $pgac_cv_alignof_long
20268 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
20269 echo "$as_me:$LINENO: checking for long long int" >&5
20270 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
20271 if test "${ac_cv_type_long_long_int+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20284 if ((long long int *) 0)
20286 if (sizeof (long long int))
20292 rm -f conftest.$ac_objext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag"
20302 || test ! -s conftest.err'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_type_long_long_int=yes
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ac_cv_type_long_long_int=no
20321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20324 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
20326 echo "$as_me:$LINENO: checking alignment of long long int" >&5
20327 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
20328 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 if test "$ac_cv_type_long_long_int" = yes; then
20332 if test "$cross_compiling" = yes; then
20333 # Depending upon the size, compute the lo and hi bounds.
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20341 struct { char filler; long long int field; } pgac_struct;
20345 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20352 rm -f conftest.$ac_objext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20354 (eval $ac_compile) 2>conftest.er1
20356 grep -v '^ *+' conftest.er1 >conftest.err
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
20361 { ac_try='test -z "$ac_c_werror_flag"
20362 || test ! -s conftest.err'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20376 cat >conftest.$ac_ext <<_ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 $ac_includes_default
20383 struct { char filler; long long int field; } pgac_struct;
20387 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20394 rm -f conftest.$ac_objext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20396 (eval $ac_compile) 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest.$ac_objext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_hi=$ac_mid; break
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_lo=`expr $ac_mid + 1`
20422 if test $ac_lo -le $ac_mid; then
20426 ac_mid=`expr 2 '*' $ac_mid + 1`
20428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 $ac_includes_default
20441 struct { char filler; long long int field; } pgac_struct;
20445 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20452 rm -f conftest.$ac_objext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454 (eval $ac_compile) 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 $ac_includes_default
20483 struct { char filler; long long int field; } pgac_struct;
20487 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_lo=$ac_mid; break
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_hi=`expr '(' $ac_mid ')' - 1`
20522 if test $ac_mid -le $ac_hi; then
20526 ac_mid=`expr 2 '*' $ac_mid`
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20539 # Binary search between lo and hi bounds.
20540 while test "x$ac_lo" != "x$ac_hi"; do
20541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20542 cat >conftest.$ac_ext <<_ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20548 $ac_includes_default
20549 struct { char filler; long long int field; } pgac_struct;
20553 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20560 rm -f conftest.$ac_objext
20561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20562 (eval $ac_compile) 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag"
20570 || test ! -s conftest.err'
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest.$ac_objext'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20587 ac_lo=`expr '(' $ac_mid ')' + 1`
20589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20593 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20594 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20595 { (exit 1); exit 1; }; } ;;
20598 if test "$cross_compiling" = yes; then
20599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20600 See \`config.log' for more details." >&5
20601 echo "$as_me: error: cannot run test program while cross compiling
20602 See \`config.log' for more details." >&2;}
20603 { (exit 1); exit 1; }; }
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611 $ac_includes_default
20612 struct { char filler; long long int field; } pgac_struct;
20613 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20614 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20616 #include <stdlib.h>
20621 FILE *f = fopen ("conftest.val", "w");
20624 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20626 long i = longval ();
20627 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20629 fprintf (f, "%ld\n", i);
20633 unsigned long i = ulongval ();
20634 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20636 fprintf (f, "%lu\n", i);
20638 exit (ferror (f) || fclose (f) != 0);
20644 rm -f conftest$ac_exeext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20646 (eval $ac_link) 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 pgac_cv_alignof_long_long_int=`cat conftest.val`
20657 echo "$as_me: program exited with status $ac_status" >&5
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ( exit $ac_status )
20662 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20663 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20664 { (exit 1); exit 1; }; }
20666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20671 pgac_cv_alignof_long_long_int=0
20674 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20675 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20676 cat >>confdefs.h <<_ACEOF
20677 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20682 echo "$as_me:$LINENO: checking for double" >&5
20683 echo $ECHO_N "checking for double... $ECHO_C" >&6
20684 if test "${ac_cv_type_double+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 $ac_includes_default
20699 if (sizeof (double))
20705 rm -f conftest.$ac_objext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707 (eval $ac_compile) 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
20714 { ac_try='test -z "$ac_c_werror_flag"
20715 || test ! -s conftest.err'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest.$ac_objext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_type_double=yes
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_cv_type_double=no
20734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20736 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20737 echo "${ECHO_T}$ac_cv_type_double" >&6
20739 echo "$as_me:$LINENO: checking alignment of double" >&5
20740 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20741 if test "${pgac_cv_alignof_double+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 if test "$ac_cv_type_double" = yes; then
20745 if test "$cross_compiling" = yes; then
20746 # Depending upon the size, compute the lo and hi bounds.
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 $ac_includes_default
20754 struct { char filler; double field; } pgac_struct;
20758 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20765 rm -f conftest.$ac_objext
20766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20767 (eval $ac_compile) 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag"
20775 || test ! -s conftest.err'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; } &&
20781 { ac_try='test -s conftest.$ac_objext'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 $ac_includes_default
20796 struct { char filler; double field; } pgac_struct;
20800 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20807 rm -f conftest.$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809 (eval $ac_compile) 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -z "$ac_c_werror_flag"
20817 || test ! -s conftest.err'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; } &&
20823 { ac_try='test -s conftest.$ac_objext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_hi=$ac_mid; break
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_lo=`expr $ac_mid + 1`
20835 if test $ac_lo -le $ac_mid; then
20839 ac_mid=`expr 2 '*' $ac_mid + 1`
20841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20854 struct { char filler; double field; } pgac_struct;
20858 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20865 rm -f conftest.$ac_objext
20866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20867 (eval $ac_compile) 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
20874 { ac_try='test -z "$ac_c_werror_flag"
20875 || test ! -s conftest.err'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; } &&
20881 { ac_try='test -s conftest.$ac_objext'
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883 (eval $ac_try) 2>&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; }; then
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 $ac_includes_default
20896 struct { char filler; double field; } pgac_struct;
20900 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20907 rm -f conftest.$ac_objext
20908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909 (eval $ac_compile) 2>conftest.er1
20911 grep -v '^ *+' conftest.er1 >conftest.err
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
20916 { ac_try='test -z "$ac_c_werror_flag"
20917 || test ! -s conftest.err'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest.$ac_objext'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_lo=$ac_mid; break
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_hi=`expr '(' $ac_mid ')' - 1`
20935 if test $ac_mid -le $ac_hi; then
20939 ac_mid=`expr 2 '*' $ac_mid`
20941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20952 # Binary search between lo and hi bounds.
20953 while test "x$ac_lo" != "x$ac_hi"; do
20954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 struct { char filler; double field; } pgac_struct;
20966 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20973 rm -f conftest.$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_lo=`expr '(' $ac_mid ')' + 1`
21002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21005 ?*) pgac_cv_alignof_double=$ac_lo;;
21006 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21007 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21008 { (exit 1); exit 1; }; } ;;
21011 if test "$cross_compiling" = yes; then
21012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21013 See \`config.log' for more details." >&5
21014 echo "$as_me: error: cannot run test program while cross compiling
21015 See \`config.log' for more details." >&2;}
21016 { (exit 1); exit 1; }; }
21018 cat >conftest.$ac_ext <<_ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 $ac_includes_default
21025 struct { char filler; double field; } pgac_struct;
21026 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21027 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21029 #include <stdlib.h>
21034 FILE *f = fopen ("conftest.val", "w");
21037 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21039 long i = longval ();
21040 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21042 fprintf (f, "%ld\n", i);
21046 unsigned long i = ulongval ();
21047 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21049 fprintf (f, "%lu\n", i);
21051 exit (ferror (f) || fclose (f) != 0);
21057 rm -f conftest$ac_exeext
21058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21059 (eval $ac_link) 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 pgac_cv_alignof_double=`cat conftest.val`
21070 echo "$as_me: program exited with status $ac_status" >&5
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ( exit $ac_status )
21075 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21076 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21077 { (exit 1); exit 1; }; }
21079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21084 pgac_cv_alignof_double=0
21087 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
21088 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
21089 cat >>confdefs.h <<_ACEOF
21090 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
21095 # Compute maximum alignment of any basic type.
21096 # We assume long's alignment is at least as strong as char, short, or int;
21097 # but we must check long long (if it exists) and double.
21099 MAX_ALIGNOF=$pgac_cv_alignof_long
21100 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
21101 MAX_ALIGNOF=$pgac_cv_alignof_double
21103 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
21104 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
21107 cat >>confdefs.h <<_ACEOF
21108 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
21113 # Some platforms predefine the types int8, int16, etc. Only check
21114 # a (hopefully) representative subset.
21115 echo "$as_me:$LINENO: checking for int8" >&5
21116 echo $ECHO_N "checking for int8... $ECHO_C" >&6
21117 if test "${ac_cv_type_int8+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21127 #ifdef HAVE_SUPPORTDEFS_H
21128 #include <SupportDefs.h>
21142 rm -f conftest.$ac_objext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21144 (eval $ac_compile) 2>conftest.er1
21146 grep -v '^ *+' conftest.er1 >conftest.err
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } &&
21151 { ac_try='test -z "$ac_c_werror_flag"
21152 || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 ac_cv_type_int8=yes
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21173 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
21174 echo "${ECHO_T}$ac_cv_type_int8" >&6
21175 if test $ac_cv_type_int8 = yes; then
21177 cat >>confdefs.h <<_ACEOF
21178 #define HAVE_INT8 1
21183 echo "$as_me:$LINENO: checking for uint8" >&5
21184 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
21185 if test "${ac_cv_type_uint8+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21195 #ifdef HAVE_SUPPORTDEFS_H
21196 #include <SupportDefs.h>
21204 if (sizeof (uint8))
21210 rm -f conftest.$ac_objext
21211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21212 (eval $ac_compile) 2>conftest.er1
21214 grep -v '^ *+' conftest.er1 >conftest.err
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } &&
21219 { ac_try='test -z "$ac_c_werror_flag"
21220 || test ! -s conftest.err'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest.$ac_objext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 ac_cv_type_uint8=yes
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_cv_type_uint8=no
21239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
21242 echo "${ECHO_T}$ac_cv_type_uint8" >&6
21243 if test $ac_cv_type_uint8 = yes; then
21245 cat >>confdefs.h <<_ACEOF
21246 #define HAVE_UINT8 1
21251 echo "$as_me:$LINENO: checking for int64" >&5
21252 echo $ECHO_N "checking for int64... $ECHO_C" >&6
21253 if test "${ac_cv_type_int64+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21263 #ifdef HAVE_SUPPORTDEFS_H
21264 #include <SupportDefs.h>
21272 if (sizeof (int64))
21278 rm -f conftest.$ac_objext
21279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21280 (eval $ac_compile) 2>conftest.er1
21282 grep -v '^ *+' conftest.er1 >conftest.err
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } &&
21287 { ac_try='test -z "$ac_c_werror_flag"
21288 || test ! -s conftest.err'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; } &&
21294 { ac_try='test -s conftest.$ac_objext'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ac_cv_type_int64=yes
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 ac_cv_type_int64=no
21307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
21310 echo "${ECHO_T}$ac_cv_type_int64" >&6
21311 if test $ac_cv_type_int64 = yes; then
21313 cat >>confdefs.h <<_ACEOF
21314 #define HAVE_INT64 1
21319 echo "$as_me:$LINENO: checking for uint64" >&5
21320 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
21321 if test "${ac_cv_type_uint64+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 cat >conftest.$ac_ext <<_ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21331 #ifdef HAVE_SUPPORTDEFS_H
21332 #include <SupportDefs.h>
21340 if (sizeof (uint64))
21346 rm -f conftest.$ac_objext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -z "$ac_c_werror_flag"
21356 || test ! -s conftest.err'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest.$ac_objext'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_type_uint64=yes
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 ac_cv_type_uint64=no
21375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21377 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
21378 echo "${ECHO_T}$ac_cv_type_uint64" >&6
21379 if test $ac_cv_type_uint64 = yes; then
21381 cat >>confdefs.h <<_ACEOF
21382 #define HAVE_UINT64 1
21389 # We also check for sig_atomic_t, which *should* be defined per ANSI
21390 # C, but is missing on some old platforms.
21391 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21392 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
21393 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 #include <signal.h>
21407 if ((sig_atomic_t *) 0)
21409 if (sizeof (sig_atomic_t))
21415 rm -f conftest.$ac_objext
21416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21417 (eval $ac_compile) 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
21424 { ac_try='test -z "$ac_c_werror_flag"
21425 || test ! -s conftest.err'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; } &&
21431 { ac_try='test -s conftest.$ac_objext'
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }; then
21437 ac_cv_type_sig_atomic_t=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_cv_type_sig_atomic_t=no
21444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21446 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21447 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
21448 if test $ac_cv_type_sig_atomic_t = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_SIG_ATOMIC_T 1
21459 if test x"$template" != x"win32"
21461 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
21462 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
21463 if test "${pgac_cv_func_posix_signals+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <signal.h>
21477 struct sigaction act, oact;
21478 sigemptyset(&act.sa_mask);
21479 act.sa_flags = SA_RESTART;
21480 sigaction(0, &act, &oact);
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21487 (eval $ac_link) 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
21494 { ac_try='test -z "$ac_c_werror_flag"
21495 || test ! -s conftest.err'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest$ac_exeext'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 pgac_cv_func_posix_signals=yes
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 pgac_cv_func_posix_signals=no
21514 rm -f conftest.err conftest.$ac_objext \
21515 conftest$ac_exeext conftest.$ac_ext
21517 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21518 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21519 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21521 cat >>confdefs.h <<\_ACEOF
21522 #define HAVE_POSIX_SIGNALS
21526 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21528 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21529 { { echo "$as_me:$LINENO: error:
21530 Thread-safety requires POSIX signals, which are not supported by this
21531 operating system." >&5
21532 echo "$as_me: error:
21533 Thread-safety requires POSIX signals, which are not supported by this
21534 operating system." >&2;}
21535 { (exit 1); exit 1; }; }
21539 if test $ac_cv_func_fseeko = yes; then
21540 # Check whether --enable-largefile or --disable-largefile was given.
21541 if test "${enable_largefile+set}" = set; then
21542 enableval="$enable_largefile"
21545 if test "$enable_largefile" != no; then
21547 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21548 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21549 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 ac_cv_sys_largefile_CC=no
21553 if test "$GCC" != yes; then
21556 # IRIX 6.2 and later do not support large files by default,
21557 # so use the C compiler's -n32 option if that helps.
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 #include <sys/types.h>
21565 /* Check that off_t can represent 2**63 - 1 correctly.
21566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21567 since some C++ compilers masquerading as C compilers
21568 incorrectly reject 9223372036854775807. */
21569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21571 && LARGE_OFF_T % 2147483647 == 1)
21581 rm -f conftest.$ac_objext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21583 (eval $ac_compile) 2>conftest.er1
21585 grep -v '^ *+' conftest.er1 >conftest.err
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
21590 { ac_try='test -z "$ac_c_werror_flag"
21591 || test ! -s conftest.err'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; } &&
21597 { ac_try='test -s conftest.$ac_objext'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21609 rm -f conftest.err conftest.$ac_objext
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613 (eval $ac_compile) 2>conftest.er1
21615 grep -v '^ *+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_sys_largefile_CC=' -n32'; break
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21639 rm -f conftest.err conftest.$ac_objext
21643 rm -f conftest.$ac_ext
21646 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21647 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21648 if test "$ac_cv_sys_largefile_CC" != no; then
21649 CC=$CC$ac_cv_sys_largefile_CC
21652 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21653 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21654 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 ac_cv_sys_file_offset_bits=no
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <sys/types.h>
21666 /* Check that off_t can represent 2**63 - 1 correctly.
21667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21668 since some C++ compilers masquerading as C compilers
21669 incorrectly reject 9223372036854775807. */
21670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21672 && LARGE_OFF_T % 2147483647 == 1)
21682 rm -f conftest.$ac_objext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21684 (eval $ac_compile) 2>conftest.er1
21686 grep -v '^ *+' conftest.er1 >conftest.err
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
21691 { ac_try='test -z "$ac_c_werror_flag"
21692 || test ! -s conftest.err'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; } &&
21698 { ac_try='test -s conftest.$ac_objext'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #define _FILE_OFFSET_BITS 64
21718 #include <sys/types.h>
21719 /* Check that off_t can represent 2**63 - 1 correctly.
21720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21721 since some C++ compilers masquerading as C compilers
21722 incorrectly reject 9223372036854775807. */
21723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21725 && LARGE_OFF_T % 2147483647 == 1)
21735 rm -f conftest.$ac_objext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21737 (eval $ac_compile) 2>conftest.er1
21739 grep -v '^ *+' conftest.er1 >conftest.err
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } &&
21744 { ac_try='test -z "$ac_c_werror_flag"
21745 || test ! -s conftest.err'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest.$ac_objext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_sys_file_offset_bits=64; break
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21767 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21768 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21769 if test "$ac_cv_sys_file_offset_bits" != no; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21777 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21778 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21779 if test "${ac_cv_sys_large_files+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 ac_cv_sys_large_files=no
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <sys/types.h>
21791 /* Check that off_t can represent 2**63 - 1 correctly.
21792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21793 since some C++ compilers masquerading as C compilers
21794 incorrectly reject 9223372036854775807. */
21795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21797 && LARGE_OFF_T % 2147483647 == 1)
21807 rm -f conftest.$ac_objext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21809 (eval $ac_compile) 2>conftest.er1
21811 grep -v '^ *+' conftest.er1 >conftest.err
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } &&
21816 { ac_try='test -z "$ac_c_werror_flag"
21817 || test ! -s conftest.err'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } &&
21823 { ac_try='test -s conftest.$ac_objext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21831 echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 #define _LARGE_FILES 1
21843 #include <sys/types.h>
21844 /* Check that off_t can represent 2**63 - 1 correctly.
21845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21846 since some C++ compilers masquerading as C compilers
21847 incorrectly reject 9223372036854775807. */
21848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21850 && LARGE_OFF_T % 2147483647 == 1)
21860 rm -f conftest.$ac_objext
21861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21862 (eval $ac_compile) 2>conftest.er1
21864 grep -v '^ *+' conftest.er1 >conftest.err
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } &&
21869 { ac_try='test -z "$ac_c_werror_flag"
21870 || test ! -s conftest.err'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; } &&
21876 { ac_try='test -s conftest.$ac_objext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ac_cv_sys_large_files=1; break
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21892 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21893 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21894 if test "$ac_cv_sys_large_files" != no; then
21896 cat >>confdefs.h <<_ACEOF
21897 #define _LARGE_FILES $ac_cv_sys_large_files
21906 # SunOS doesn't handle negative byte comparisons properly with +/- return
21907 echo "$as_me:$LINENO: checking for working memcmp" >&5
21908 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21909 if test "${ac_cv_func_memcmp_working+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 if test "$cross_compiling" = yes; then
21913 ac_cv_func_memcmp_working=no
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 $ac_includes_default
21926 /* Some versions of memcmp are not 8-bit clean. */
21927 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21928 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21931 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21932 or more and with at least one buffer not starting on a 4-byte boundary.
21933 William Lewis provided this test program. */
21938 for (i = 0; i < 4; i++)
21942 strcpy (a, "--------01111111");
21943 strcpy (b, "--------10000000");
21944 if (memcmp (a, b, 16) >= 0)
21954 rm -f conftest$ac_exeext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21956 (eval $ac_link) 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_cv_func_memcmp_working=yes
21967 echo "$as_me: program exited with status $ac_status" >&5
21968 echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21971 ( exit $ac_status )
21972 ac_cv_func_memcmp_working=no
21974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21977 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21978 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21979 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21980 "memcmp.$ac_objext" | \
21981 *" memcmp.$ac_objext" | \
21982 "memcmp.$ac_objext "* | \
21983 *" memcmp.$ac_objext "* ) ;;
21984 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21990 # Select semaphore implementation type.
21991 if test "$PORTNAME" != "win32"; then
21992 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21994 cat >>confdefs.h <<\_ACEOF
21995 #define USE_NAMED_POSIX_SEMAPHORES 1
21998 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22000 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
22002 cat >>confdefs.h <<\_ACEOF
22003 #define USE_UNNAMED_POSIX_SEMAPHORES 1
22006 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22009 cat >>confdefs.h <<\_ACEOF
22010 #define USE_SYSV_SEMAPHORES 1
22013 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
22018 cat >>confdefs.h <<\_ACEOF
22019 #define USE_WIN32_SEMAPHORES 1
22022 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
22026 # Select shared-memory implementation type.
22028 cat >>confdefs.h <<\_ACEOF
22029 #define USE_SYSV_SHARED_MEMORY 1
22032 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
22035 # If not set in template file, set bytes to use libc memset()
22036 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
22037 MEMSET_LOOP_LIMIT=1024
22040 cat >>confdefs.h <<_ACEOF
22041 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
22046 if test "$enable_nls" = yes ; then
22048 echo "$as_me:$LINENO: checking for library containing gettext" >&5
22049 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
22050 if test "${ac_cv_search_gettext+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 ac_func_search_save_LIBS=$LIBS
22054 ac_cv_search_gettext=no
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* Override any gcc2 internal prototype to avoid an error. */
22066 /* We use char because int might match the return type of a gcc2
22067 builtin and then its argument prototype would still apply. */
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22079 (eval $ac_link) 2>conftest.er1
22081 grep -v '^ *+' conftest.er1 >conftest.err
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } &&
22086 { ac_try='test -z "$ac_c_werror_flag"
22087 || test ! -s conftest.err'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; } &&
22093 { ac_try='test -s conftest$ac_exeext'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 ac_cv_search_gettext="none required"
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22105 rm -f conftest.err conftest.$ac_objext \
22106 conftest$ac_exeext conftest.$ac_ext
22107 if test "$ac_cv_search_gettext" = no; then
22108 for ac_lib in intl; do
22109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 /* Override any gcc2 internal prototype to avoid an error. */
22121 /* We use char because int might match the return type of a gcc2
22122 builtin and then its argument prototype would still apply. */
22132 rm -f conftest.$ac_objext conftest$ac_exeext
22133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22134 (eval $ac_link) 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_c_werror_flag"
22142 || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest$ac_exeext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 ac_cv_search_gettext="-l$ac_lib"
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22161 rm -f conftest.err conftest.$ac_objext \
22162 conftest$ac_exeext conftest.$ac_ext
22165 LIBS=$ac_func_search_save_LIBS
22167 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
22168 echo "${ECHO_T}$ac_cv_search_gettext" >&6
22169 if test "$ac_cv_search_gettext" != no; then
22170 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
22173 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
22174 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
22175 { (exit 1); exit 1; }; }
22178 if test "${ac_cv_header_libintl_h+set}" = set; then
22179 echo "$as_me:$LINENO: checking for libintl.h" >&5
22180 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22181 if test "${ac_cv_header_libintl_h+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22185 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22187 # Is the header compilable?
22188 echo "$as_me:$LINENO: checking libintl.h usability" >&5
22189 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 $ac_includes_default
22197 #include <libintl.h>
22199 rm -f conftest.$ac_objext
22200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22201 (eval $ac_compile) 2>conftest.er1
22203 grep -v '^ *+' conftest.er1 >conftest.err
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } &&
22208 { ac_try='test -z "$ac_c_werror_flag"
22209 || test ! -s conftest.err'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try='test -s conftest.$ac_objext'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 ac_header_compiler=yes
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ac_header_compiler=no
22228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22230 echo "${ECHO_T}$ac_header_compiler" >&6
22232 # Is the header present?
22233 echo "$as_me:$LINENO: checking libintl.h presence" >&5
22234 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 #include <libintl.h>
22243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } >/dev/null; then
22251 if test -s conftest.err; then
22252 ac_cpp_err=$ac_c_preproc_warn_flag
22253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22260 if test -z "$ac_cpp_err"; then
22261 ac_header_preproc=yes
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_header_preproc=no
22268 rm -f conftest.err conftest.$ac_ext
22269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22270 echo "${ECHO_T}$ac_header_preproc" >&6
22272 # So? What about this header?
22273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22275 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22276 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22278 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22279 ac_header_preproc=yes
22282 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22283 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22285 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22287 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22288 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
22289 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22291 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22293 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22296 ## ---------------------------------------- ##
22297 ## Report this to pgsql-bugs@postgresql.org ##
22298 ## ---------------------------------------- ##
22301 sed "s/^/$as_me: WARNING: /" >&2
22304 echo "$as_me:$LINENO: checking for libintl.h" >&5
22305 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22306 if test "${ac_cv_header_libintl_h+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 ac_cv_header_libintl_h=$ac_header_preproc
22311 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22312 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22315 if test $ac_cv_header_libintl_h = yes; then
22318 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
22319 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
22320 { (exit 1); exit 1; }; }
22324 for ac_prog in msgfmt
22326 # Extract the first word of "$ac_prog", so it can be a program name with args.
22327 set dummy $ac_prog; ac_word=$2
22328 echo "$as_me:$LINENO: checking for $ac_word" >&5
22329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22330 if test "${ac_cv_prog_MSGFMT+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 if test -n "$MSGFMT"; then
22334 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
22336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22337 for as_dir in $PATH
22340 test -z "$as_dir" && as_dir=.
22341 for ac_exec_ext in '' $ac_executable_extensions; do
22342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22343 ac_cv_prog_MSGFMT="$ac_prog"
22344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22352 MSGFMT=$ac_cv_prog_MSGFMT
22353 if test -n "$MSGFMT"; then
22354 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22355 echo "${ECHO_T}$MSGFMT" >&6
22357 echo "$as_me:$LINENO: result: no" >&5
22358 echo "${ECHO_T}no" >&6
22361 test -n "$MSGFMT" && break
22364 if test -z "$MSGFMT"; then
22365 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
22366 echo "$as_me: error: msgfmt is required for NLS" >&2;}
22367 { (exit 1); exit 1; }; }
22369 for ac_prog in msgmerge
22371 # Extract the first word of "$ac_prog", so it can be a program name with args.
22372 set dummy $ac_prog; ac_word=$2
22373 echo "$as_me:$LINENO: checking for $ac_word" >&5
22374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22375 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 if test -n "$MSGMERGE"; then
22379 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
22381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22382 for as_dir in $PATH
22385 test -z "$as_dir" && as_dir=.
22386 for ac_exec_ext in '' $ac_executable_extensions; do
22387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22388 ac_cv_prog_MSGMERGE="$ac_prog"
22389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22397 MSGMERGE=$ac_cv_prog_MSGMERGE
22398 if test -n "$MSGMERGE"; then
22399 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22400 echo "${ECHO_T}$MSGMERGE" >&6
22402 echo "$as_me:$LINENO: result: no" >&5
22403 echo "${ECHO_T}no" >&6
22406 test -n "$MSGMERGE" && break
22409 for ac_prog in xgettext
22411 # Extract the first word of "$ac_prog", so it can be a program name with args.
22412 set dummy $ac_prog; ac_word=$2
22413 echo "$as_me:$LINENO: checking for $ac_word" >&5
22414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22415 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 if test -n "$XGETTEXT"; then
22419 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
22421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22422 for as_dir in $PATH
22425 test -z "$as_dir" && as_dir=.
22426 for ac_exec_ext in '' $ac_executable_extensions; do
22427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22428 ac_cv_prog_XGETTEXT="$ac_prog"
22429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22437 XGETTEXT=$ac_cv_prog_XGETTEXT
22438 if test -n "$XGETTEXT"; then
22439 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22440 echo "${ECHO_T}$XGETTEXT" >&6
22442 echo "$as_me:$LINENO: result: no" >&5
22443 echo "${ECHO_T}no" >&6
22446 test -n "$XGETTEXT" && break
22450 # Note: share/locale is always the default, independent of $datadir
22451 localedir='${prefix}/share/locale'
22456 # Check for Tcl configuration script tclConfig.sh
22457 if test "$with_tcl" = yes; then
22458 for ac_prog in tclsh tcl
22460 # Extract the first word of "$ac_prog", so it can be a program name with args.
22461 set dummy $ac_prog; ac_word=$2
22462 echo "$as_me:$LINENO: checking for $ac_word" >&5
22463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22464 if test "${ac_cv_path_TCLSH+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
22472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22473 for as_dir in $PATH
22476 test -z "$as_dir" && as_dir=.
22477 for ac_exec_ext in '' $ac_executable_extensions; do
22478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22479 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22489 TCLSH=$ac_cv_path_TCLSH
22491 if test -n "$TCLSH"; then
22492 echo "$as_me:$LINENO: result: $TCLSH" >&5
22493 echo "${ECHO_T}$TCLSH" >&6
22495 echo "$as_me:$LINENO: result: no" >&5
22496 echo "${ECHO_T}no" >&6
22499 test -n "$TCLSH" && break
22502 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22503 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22504 # Let user override test
22505 if test -z "$TCL_CONFIG_SH"; then
22506 pgac_test_dirs="$with_tclconfig"
22508 set X $pgac_test_dirs; shift
22509 if test $# -eq 0; then
22510 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22511 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22512 { (exit 1); exit 1; }; }
22513 set X `echo 'puts $auto_path' | $TCLSH`; shift
22517 if test -r "$pgac_dir/tclConfig.sh"; then
22518 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22524 if test -z "$TCL_CONFIG_SH"; then
22525 echo "$as_me:$LINENO: result: no" >&5
22526 echo "${ECHO_T}no" >&6
22527 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22528 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22529 { (exit 1); exit 1; }; }
22531 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22532 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22538 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22539 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22540 eval TCL_LIBS=\"$TCL_LIBS\"
22541 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22542 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22544 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22545 ac_save_CPPFLAGS=$CPPFLAGS
22546 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22547 if test "${ac_cv_header_tcl_h+set}" = set; then
22548 echo "$as_me:$LINENO: checking for tcl.h" >&5
22549 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22550 if test "${ac_cv_header_tcl_h+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22554 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22556 # Is the header compilable?
22557 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22558 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 $ac_includes_default
22568 rm -f conftest.$ac_objext
22569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22570 (eval $ac_compile) 2>conftest.er1
22572 grep -v '^ *+' conftest.er1 >conftest.err
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try='test -z "$ac_c_werror_flag"
22578 || test ! -s conftest.err'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try='test -s conftest.$ac_objext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 ac_header_compiler=yes
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22595 ac_header_compiler=no
22597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22599 echo "${ECHO_T}$ac_header_compiler" >&6
22601 # Is the header present?
22602 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22603 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22604 cat >conftest.$ac_ext <<_ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22615 grep -v '^ *+' conftest.er1 >conftest.err
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } >/dev/null; then
22620 if test -s conftest.err; then
22621 ac_cpp_err=$ac_c_preproc_warn_flag
22622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22629 if test -z "$ac_cpp_err"; then
22630 ac_header_preproc=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 ac_header_preproc=no
22637 rm -f conftest.err conftest.$ac_ext
22638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22639 echo "${ECHO_T}$ac_header_preproc" >&6
22641 # So? What about this header?
22642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22644 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22645 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22646 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22647 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22648 ac_header_preproc=yes
22651 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22652 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22654 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22656 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22657 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22658 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22659 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22660 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22661 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22662 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22665 ## ---------------------------------------- ##
22666 ## Report this to pgsql-bugs@postgresql.org ##
22667 ## ---------------------------------------- ##
22670 sed "s/^/$as_me: WARNING: /" >&2
22673 echo "$as_me:$LINENO: checking for tcl.h" >&5
22674 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22675 if test "${ac_cv_header_tcl_h+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 ac_cv_header_tcl_h=$ac_header_preproc
22680 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22681 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22684 if test $ac_cv_header_tcl_h = yes; then
22687 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22688 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22689 { (exit 1); exit 1; }; }
22693 CPPFLAGS=$ac_save_CPPFLAGS
22697 # Check for DocBook and tools
22699 for ac_prog in onsgmls nsgmls
22701 # Extract the first word of "$ac_prog", so it can be a program name with args.
22702 set dummy $ac_prog; ac_word=$2
22703 echo "$as_me:$LINENO: checking for $ac_word" >&5
22704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22705 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 if test -n "$NSGMLS"; then
22709 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22712 for as_dir in $PATH
22715 test -z "$as_dir" && as_dir=.
22716 for ac_exec_ext in '' $ac_executable_extensions; do
22717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22718 ac_cv_prog_NSGMLS="$ac_prog"
22719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22727 NSGMLS=$ac_cv_prog_NSGMLS
22728 if test -n "$NSGMLS"; then
22729 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22730 echo "${ECHO_T}$NSGMLS" >&6
22732 echo "$as_me:$LINENO: result: no" >&5
22733 echo "${ECHO_T}no" >&6
22736 test -n "$NSGMLS" && break
22739 for ac_prog in openjade jade
22741 # Extract the first word of "$ac_prog", so it can be a program name with args.
22742 set dummy $ac_prog; ac_word=$2
22743 echo "$as_me:$LINENO: checking for $ac_word" >&5
22744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22745 if test "${ac_cv_prog_JADE+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 if test -n "$JADE"; then
22749 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22752 for as_dir in $PATH
22755 test -z "$as_dir" && as_dir=.
22756 for ac_exec_ext in '' $ac_executable_extensions; do
22757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22758 ac_cv_prog_JADE="$ac_prog"
22759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22767 JADE=$ac_cv_prog_JADE
22768 if test -n "$JADE"; then
22769 echo "$as_me:$LINENO: result: $JADE" >&5
22770 echo "${ECHO_T}$JADE" >&6
22772 echo "$as_me:$LINENO: result: no" >&5
22773 echo "${ECHO_T}no" >&6
22776 test -n "$JADE" && break
22780 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22781 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22782 if test "${pgac_cv_check_docbook+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 cat >conftest.sgml <<EOF
22786 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22788 <title>test</title>
22790 <title>random</title>
22792 <title>testsect</title>
22799 pgac_cv_check_docbook=no
22801 if test -n "$NSGMLS"; then
22802 $NSGMLS -s conftest.sgml 1>&5 2>&1
22803 if test $? -eq 0; then
22804 pgac_cv_check_docbook=yes
22807 rm -f conftest.sgml
22809 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22810 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22812 have_docbook=$pgac_cv_check_docbook
22815 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22816 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22817 if test "${pgac_cv_path_stylesheets+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 if test -n "$DOCBOOKSTYLE"; then
22821 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22823 for pgac_prefix in /usr /usr/local /opt; do
22824 for pgac_infix in share lib; do
22825 for pgac_postfix in \
22826 sgml/stylesheets/nwalsh-modular \
22827 sgml/stylesheets/docbook \
22828 sgml/docbook-dsssl \
22829 sgml/docbook/dsssl/modular \
22830 sgml/docbook/stylesheet/dsssl/modular \
22831 sgml/docbook/dsssl-stylesheets
22833 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22834 if test -r "$pgac_candidate/html/docbook.dsl" \
22835 && test -r "$pgac_candidate/print/docbook.dsl"
22837 pgac_cv_path_stylesheets=$pgac_candidate
22846 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22848 if test -n "$DOCBOOKSTYLE"; then
22849 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22850 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22852 echo "$as_me:$LINENO: result: no" >&5
22853 echo "${ECHO_T}no" >&6
22855 if test -n "$DOCBOOKSTYLE"; then
22856 for ac_prog in collateindex.pl
22858 # Extract the first word of "$ac_prog", so it can be a program name with args.
22859 set dummy $ac_prog; ac_word=$2
22860 echo "$as_me:$LINENO: checking for $ac_word" >&5
22861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22862 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 case $COLLATEINDEX in
22867 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22871 for as_dir in $DOCBOOKSTYLE/bin $PATH
22874 test -z "$as_dir" && as_dir=.
22875 for ac_exec_ext in '' $ac_executable_extensions; do
22876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22877 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22887 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22889 if test -n "$COLLATEINDEX"; then
22890 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22891 echo "${ECHO_T}$COLLATEINDEX" >&6
22893 echo "$as_me:$LINENO: result: no" >&5
22894 echo "${ECHO_T}no" >&6
22897 test -n "$COLLATEINDEX" && break
22901 for ac_prog in collateindex.pl
22903 # Extract the first word of "$ac_prog", so it can be a program name with args.
22904 set dummy $ac_prog; ac_word=$2
22905 echo "$as_me:$LINENO: checking for $ac_word" >&5
22906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22907 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 case $COLLATEINDEX in
22912 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22916 for as_dir in $PATH
22919 test -z "$as_dir" && as_dir=.
22920 for ac_exec_ext in '' $ac_executable_extensions; do
22921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22922 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22932 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22934 if test -n "$COLLATEINDEX"; then
22935 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22936 echo "${ECHO_T}$COLLATEINDEX" >&6
22938 echo "$as_me:$LINENO: result: no" >&5
22939 echo "${ECHO_T}no" >&6
22942 test -n "$COLLATEINDEX" && break
22946 for ac_prog in sgmlspl
22948 # Extract the first word of "$ac_prog", so it can be a program name with args.
22949 set dummy $ac_prog; ac_word=$2
22950 echo "$as_me:$LINENO: checking for $ac_word" >&5
22951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22952 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22953 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 if test -n "$SGMLSPL"; then
22956 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959 for as_dir in $PATH
22962 test -z "$as_dir" && as_dir=.
22963 for ac_exec_ext in '' $ac_executable_extensions; do
22964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22965 ac_cv_prog_SGMLSPL="$ac_prog"
22966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22974 SGMLSPL=$ac_cv_prog_SGMLSPL
22975 if test -n "$SGMLSPL"; then
22976 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22977 echo "${ECHO_T}$SGMLSPL" >&6
22979 echo "$as_me:$LINENO: result: no" >&5
22980 echo "${ECHO_T}no" >&6
22983 test -n "$SGMLSPL" && break
22989 # We have to run the thread test near the end so we have all our symbols
22990 # defined. Cross compiling throws a warning.
22992 if test "$enable_thread_safety_force" = yes; then
22993 if test x"$template" != x"win32"
22995 { echo "$as_me:$LINENO: WARNING:
22996 *** Skipping thread test program. --enable-thread-safety-force was used.
22997 *** Run the program in src/test/thread on the your machine and add proper
22998 *** locking function calls to your applications to guarantee thread safety.
23000 echo "$as_me: WARNING:
23001 *** Skipping thread test program. --enable-thread-safety-force was used.
23002 *** Run the program in src/test/thread on the your machine and add proper
23003 *** locking function calls to your applications to guarantee thread safety.
23006 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23007 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23009 elif test "$enable_thread_safety" = yes; then
23010 if test x"$template" != x"win32"
23012 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
23013 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
23017 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
23018 LIBS="$LIBS $PTHREAD_LIBS"
23019 if test "$cross_compiling" = yes; then
23020 echo "$as_me:$LINENO: result: maybe" >&5
23021 echo "${ECHO_T}maybe" >&6
23022 { echo "$as_me:$LINENO: WARNING:
23023 *** Skipping thread test program because of cross-compile build.
23024 *** Run the program in src/test/thread on the target machine.
23026 echo "$as_me: WARNING:
23027 *** Skipping thread test program because of cross-compile build.
23028 *** Run the program in src/test/thread on the target machine.
23031 cat >conftest.$ac_ext <<_ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23037 #include "$srcdir/src/test/thread/thread_test.c"
23039 rm -f conftest$ac_exeext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041 (eval $ac_link) 2>&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 echo "$as_me:$LINENO: result: yes" >&5
23051 echo "${ECHO_T}yes" >&6
23053 echo "$as_me: program exited with status $ac_status" >&5
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ( exit $ac_status )
23058 echo "$as_me:$LINENO: result: no" >&5
23059 echo "${ECHO_T}no" >&6
23060 { { echo "$as_me:$LINENO: error: thread test program failed
23061 This platform is not thread-safe. Check the file 'config.log'for the
23064 You can use the configure option --enable-thread-safety-force to force
23065 threads to be enabled. But you must then run the program in
23066 src/test/thread and add locking function calls to your applications to
23067 guarantee thread safety." >&5
23068 echo "$as_me: error: thread test program failed
23069 This platform is not thread-safe. Check the file 'config.log'for the
23072 You can use the configure option --enable-thread-safety-force to force
23073 threads to be enabled. But you must then run the program in
23074 src/test/thread and add locking function calls to your applications to
23075 guarantee thread safety." >&2;}
23076 { (exit 1); exit 1; }; }
23078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23083 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23084 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23088 # prepare build tree if outside source tree
23089 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
23090 # Note 2: /bin/pwd might be better than shell's built-in at getting
23091 # a symlink-free name.
23092 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
23096 if test "$no_create" != yes; then
23097 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
23098 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
23099 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
23100 || { { echo "$as_me:$LINENO: error: failed" >&5
23101 echo "$as_me: error: failed" >&2;}
23102 { (exit 1); exit 1; }; }
23103 echo "$as_me:$LINENO: result: done" >&5
23104 echo "${ECHO_T}done" >&6
23110 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
23113 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}"
23116 if test "$PORTNAME" = "win32"; then
23117 ac_config_commands="$ac_config_commands check_win32_symlinks"
23121 ac_config_headers="$ac_config_headers src/include/pg_config.h"
23124 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
23127 cat >confcache <<\_ACEOF
23128 # This file is a shell script that caches the results of configure
23129 # tests run on this system so they can be shared between configure
23130 # scripts and configure runs, see configure's option --config-cache.
23131 # It is not useful on other systems. If it contains results you don't
23132 # want to keep, you may remove or edit it.
23134 # config.status only pays attention to the cache file if you give it
23135 # the --recheck option to rerun configure.
23137 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23139 # following values.
23143 # The following way of writing the cache mishandles newlines in values,
23144 # but we know of no workaround that is simple, portable, and efficient.
23145 # So, don't put newlines in cache variables' values.
23146 # Ultrix sh set writes to stderr and can't be redirected directly,
23147 # and sets the high bit in the cache file unless we assign to the vars.
23150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23152 # `set' does not quote correctly, so add quotes (double-quote
23153 # substitution turns \\\\ into \\, and sed turns \\ into \).
23156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23159 # `set' quotes correctly as required by POSIX, so do not add quotes.
23161 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23170 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23172 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23173 if test -w $cache_file; then
23174 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23175 cat confcache >$cache_file
23177 echo "not updating unwritable cache $cache_file"
23182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23183 # Let make expand exec_prefix.
23184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23186 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23187 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23188 # trailing colons and then remove the whole line if VPATH becomes empty
23189 # (actually we leave an empty line to preserve line numbers).
23190 if test "x$srcdir" = x.; then
23191 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23192 s/:*\$(srcdir):*/:/;
23193 s/:*\${srcdir}:*/:/;
23195 s/^\([^=]*=[ ]*\):*/\1/;
23201 DEFS=-DHAVE_CONFIG_H
23205 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23206 # 1. Remove the extension, and $U if already installed.
23207 ac_i=`echo "$ac_i" |
23208 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23210 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23211 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23213 LIBOBJS=$ac_libobjs
23215 LTLIBOBJS=$ac_ltlibobjs
23219 : ${CONFIG_STATUS=./config.status}
23220 ac_clean_files_save=$ac_clean_files
23221 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23222 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23223 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23224 cat >$CONFIG_STATUS <<_ACEOF
23226 # Generated by $as_me.
23227 # Run this file to recreate the current configuration.
23228 # Compiler output produced by configure, useful for debugging
23229 # configure, is in config.log if it exists.
23232 ac_cs_recheck=false
23234 SHELL=\${CONFIG_SHELL-$SHELL}
23237 cat >>$CONFIG_STATUS <<\_ACEOF
23238 ## --------------------- ##
23239 ## M4sh Initialization. ##
23240 ## --------------------- ##
23242 # Be Bourne compatible
23243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23247 # is contrary to our usage. Disable this feature.
23248 alias -g '${1+"$@"}'='"$@"'
23249 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23252 DUALCASE=1; export DUALCASE # for MKS sh
23254 # Support unset when possible.
23255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23262 # Work around bugs in pre-3.0 UWIN ksh.
23263 $as_unset ENV MAIL MAILPATH
23270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23272 LC_TELEPHONE LC_TIME
23274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23275 eval $as_var=C; export $as_var
23281 # Required to use basename.
23282 if expr a : '\(a\)' >/dev/null 2>&1; then
23288 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23289 as_basename=basename
23295 # Name of the executable.
23296 as_me=`$as_basename "$0" ||
23297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23298 X"$0" : 'X\(//\)$' \| \
23299 X"$0" : 'X\(/\)$' \| \
23300 . : '\(.\)' 2>/dev/null ||
23302 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23303 /^X\/\(\/\/\)$/{ s//\1/; q; }
23304 /^X\/\(\/\).*/{ s//\1/; q; }
23308 # PATH needs CR, and LINENO needs CR and PATH.
23309 # Avoid depending upon Character Ranges.
23310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23313 as_cr_digits='0123456789'
23314 as_cr_alnum=$as_cr_Letters$as_cr_digits
23316 # The user is always right.
23317 if test "${PATH_SEPARATOR+set}" != set; then
23318 echo "#! /bin/sh" >conf$$.sh
23319 echo "exit 0" >>conf$$.sh
23321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23330 as_lineno_1=$LINENO
23331 as_lineno_2=$LINENO
23332 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23333 test "x$as_lineno_1" != "x$as_lineno_2" &&
23334 test "x$as_lineno_3" = "x$as_lineno_2" || {
23335 # Find who we are. Look in the path if we contain no path at all
23338 *[\\/]* ) as_myself=$0 ;;
23339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23340 for as_dir in $PATH
23343 test -z "$as_dir" && as_dir=.
23344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23349 # We did not find ourselves, most probably we were run as `sh COMMAND'
23350 # in which case we are not to be found in the path.
23351 if test "x$as_myself" = x; then
23354 if test ! -f "$as_myself"; then
23355 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23356 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23357 { (exit 1); exit 1; }; }
23359 case $CONFIG_SHELL in
23361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23362 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23365 test -z "$as_dir" && as_dir=.
23366 for as_base in sh bash ksh sh5; do
23369 if ("$as_dir/$as_base" -c '
23370 as_lineno_1=$LINENO
23371 as_lineno_2=$LINENO
23372 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23373 test "x$as_lineno_1" != "x$as_lineno_2" &&
23374 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23375 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23376 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23377 CONFIG_SHELL=$as_dir/$as_base
23378 export CONFIG_SHELL
23379 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23387 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23388 # uniformly replaced by the line number. The first 'sed' inserts a
23389 # line-number line before each line; the second 'sed' does the real
23390 # work. The second script uses 'N' to pair each line-number line
23391 # with the numbered line, and appends trailing '-' during
23392 # substitution so that $LINENO is not a special case at line end.
23393 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23394 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23395 sed '=' <$as_myself |
23400 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23403 s,^['$as_cr_digits']*\n,,
23404 ' >$as_me.lineno &&
23405 chmod +x $as_me.lineno ||
23406 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23407 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23408 { (exit 1); exit 1; }; }
23410 # Don't try to exec as it changes $[0], causing all sort of problems
23411 # (the dirname of $[0] is not the place where we might find the
23412 # original and so on. Autoconf is especially sensible to this).
23414 # Exit status is that of the last command.
23419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23420 *c*,-n*) ECHO_N= ECHO_C='
23422 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23423 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23426 if expr a : '\(a\)' >/dev/null 2>&1; then
23432 rm -f conf$$ conf$$.exe conf$$.file
23434 if ln -s conf$$.file conf$$ 2>/dev/null; then
23435 # We could just check for DJGPP; but this test a) works b) is more generic
23436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23437 if test -f conf$$.exe; then
23438 # Don't use ln at all; we don't have any links
23443 elif ln conf$$.file conf$$ 2>/dev/null; then
23448 rm -f conf$$ conf$$.exe conf$$.file
23450 if mkdir -p . 2>/dev/null; then
23453 test -d ./-p && rmdir ./-p
23457 as_executable_p="test -f"
23459 # Sed expression to map a string onto a valid CPP name.
23460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23462 # Sed expression to map a string onto a valid variable name.
23463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23467 # We need space, tab and new line, in precisely that order.
23477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23478 # report actual input values of CONFIG_FILES etc. instead of their
23479 # values after options handling. Logging --version etc. is OK.
23483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23484 ## Running $as_me. ##
23489 This file was extended by PostgreSQL $as_me 8.3devel, which was
23490 generated by GNU Autoconf 2.59. Invocation command line was
23492 CONFIG_FILES = $CONFIG_FILES
23493 CONFIG_HEADERS = $CONFIG_HEADERS
23494 CONFIG_LINKS = $CONFIG_LINKS
23495 CONFIG_COMMANDS = $CONFIG_COMMANDS
23499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23503 # Files that config.status was made for.
23504 if test -n "$ac_config_files"; then
23505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23508 if test -n "$ac_config_headers"; then
23509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23512 if test -n "$ac_config_links"; then
23513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23516 if test -n "$ac_config_commands"; then
23517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23520 cat >>$CONFIG_STATUS <<\_ACEOF
23523 \`$as_me' instantiates files from templates according to the
23524 current configuration.
23526 Usage: $0 [OPTIONS] [FILE]...
23528 -h, --help print this help, then exit
23529 -V, --version print version number, then exit
23530 -q, --quiet do not print progress messages
23531 -d, --debug don't remove temporary files
23532 --recheck update $as_me by reconfiguring in the same conditions
23533 --file=FILE[:TEMPLATE]
23534 instantiate the configuration file FILE
23535 --header=FILE[:TEMPLATE]
23536 instantiate the configuration header FILE
23538 Configuration files:
23541 Configuration headers:
23544 Configuration links:
23547 Configuration commands:
23550 Report bugs to <bug-autoconf@gnu.org>."
23553 cat >>$CONFIG_STATUS <<_ACEOF
23555 PostgreSQL config.status 8.3devel
23556 configured by $0, generated by GNU Autoconf 2.59,
23557 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23559 Copyright (C) 2003 Free Software Foundation, Inc.
23560 This config.status script is free software; the Free Software Foundation
23561 gives unlimited permission to copy, distribute and modify it."
23565 cat >>$CONFIG_STATUS <<\_ACEOF
23566 # If no file are specified by the user, then we need to provide default
23567 # value. By we need to know if files were specified by the user.
23573 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23574 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23582 *) # This is not an option, so the user has probably given explicit
23585 ac_need_defaults=false;;
23589 # Handling of the options.
23591 cat >>$CONFIG_STATUS <<\_ACEOF
23592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23594 --version | --vers* | -V )
23595 echo "$ac_cs_version"; exit 0 ;;
23597 # Conflict between --help and --header
23598 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23599 Try \`$0 --help' for more information." >&5
23600 echo "$as_me: error: ambiguous option: $1
23601 Try \`$0 --help' for more information." >&2;}
23602 { (exit 1); exit 1; }; };;
23603 --help | --hel | -h )
23604 echo "$ac_cs_usage"; exit 0 ;;
23605 --debug | --d* | -d )
23607 --file | --fil | --fi | --f )
23609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23610 ac_need_defaults=false;;
23611 --header | --heade | --head | --hea )
23613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23614 ac_need_defaults=false;;
23615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23619 # This is an error.
23620 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23621 Try \`$0 --help' for more information." >&5
23622 echo "$as_me: error: unrecognized option: $1
23623 Try \`$0 --help' for more information." >&2;}
23624 { (exit 1); exit 1; }; } ;;
23626 *) ac_config_targets="$ac_config_targets $1" ;;
23632 ac_configure_extra_args=
23634 if $ac_cs_silent; then
23636 ac_configure_extra_args="$ac_configure_extra_args --silent"
23640 cat >>$CONFIG_STATUS <<_ACEOF
23641 if \$ac_cs_recheck; then
23642 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23643 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23653 for ac_config_target in $ac_config_targets
23655 case "$ac_config_target" in
23656 # Handling of arguments.
23657 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23658 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23659 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23660 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23661 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23662 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23663 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23664 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23665 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23666 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23667 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23668 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
23669 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23670 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23671 { (exit 1); exit 1; }; };;
23675 # If the user did not use the arguments to specify the items to instantiate,
23676 # then the envvar interface is used. Set only those that are not.
23677 # We use the long form for the default assignment because of an extremely
23678 # bizarre bug on SunOS 4.1.3.
23679 if $ac_need_defaults; then
23680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23682 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23686 # Have a temporary directory for convenience. Make it in the build tree
23687 # simply because there is no reason to put it here, and in addition,
23688 # creating and moving files from /tmp can sometimes cause problems.
23689 # Create a temporary directory, and hook for its removal unless debugging.
23692 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23693 trap '{ (exit 1); exit 1; }' 1 2 13 15
23696 # Create a (secure) tmp directory for tmp files.
23699 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23700 test -n "$tmp" && test -d "$tmp"
23703 tmp=./confstat$$-$RANDOM
23704 (umask 077 && mkdir $tmp)
23707 echo "$me: cannot create a temporary directory in ." >&2
23708 { (exit 1); exit 1; }
23713 cat >>$CONFIG_STATUS <<_ACEOF
23716 # CONFIG_FILES section.
23719 # No need to generate the scripts if there are no CONFIG_FILES.
23720 # This happens for instance when ./config.status config.h
23721 if test -n "\$CONFIG_FILES"; then
23722 # Protect against being on the right side of a sed subst in config.status.
23723 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23724 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23725 s,@SHELL@,$SHELL,;t t
23726 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23727 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23728 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23729 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23730 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23731 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23732 s,@exec_prefix@,$exec_prefix,;t t
23733 s,@prefix@,$prefix,;t t
23734 s,@program_transform_name@,$program_transform_name,;t t
23735 s,@bindir@,$bindir,;t t
23736 s,@sbindir@,$sbindir,;t t
23737 s,@libexecdir@,$libexecdir,;t t
23738 s,@datadir@,$datadir,;t t
23739 s,@sysconfdir@,$sysconfdir,;t t
23740 s,@sharedstatedir@,$sharedstatedir,;t t
23741 s,@localstatedir@,$localstatedir,;t t
23742 s,@libdir@,$libdir,;t t
23743 s,@includedir@,$includedir,;t t
23744 s,@oldincludedir@,$oldincludedir,;t t
23745 s,@infodir@,$infodir,;t t
23746 s,@mandir@,$mandir,;t t
23747 s,@build_alias@,$build_alias,;t t
23748 s,@host_alias@,$host_alias,;t t
23749 s,@target_alias@,$target_alias,;t t
23750 s,@DEFS@,$DEFS,;t t
23751 s,@ECHO_C@,$ECHO_C,;t t
23752 s,@ECHO_N@,$ECHO_N,;t t
23753 s,@ECHO_T@,$ECHO_T,;t t
23754 s,@LIBS@,$LIBS,;t t
23755 s,@configure_args@,$configure_args,;t t
23756 s,@build@,$build,;t t
23757 s,@build_cpu@,$build_cpu,;t t
23758 s,@build_vendor@,$build_vendor,;t t
23759 s,@build_os@,$build_os,;t t
23760 s,@host@,$host,;t t
23761 s,@host_cpu@,$host_cpu,;t t
23762 s,@host_vendor@,$host_vendor,;t t
23763 s,@host_os@,$host_os,;t t
23764 s,@PORTNAME@,$PORTNAME,;t t
23765 s,@docdir@,$docdir,;t t
23766 s,@enable_nls@,$enable_nls,;t t
23767 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23768 s,@default_port@,$default_port,;t t
23769 s,@enable_shared@,$enable_shared,;t t
23770 s,@enable_rpath@,$enable_rpath,;t t
23771 s,@enable_debug@,$enable_debug,;t t
23772 s,@DTRACE@,$DTRACE,;t t
23773 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
23774 s,@enable_dtrace@,$enable_dtrace,;t t
23776 s,@CFLAGS@,$CFLAGS,;t t
23777 s,@LDFLAGS@,$LDFLAGS,;t t
23778 s,@CPPFLAGS@,$CPPFLAGS,;t t
23779 s,@ac_ct_CC@,$ac_ct_CC,;t t
23780 s,@EXEEXT@,$EXEEXT,;t t
23781 s,@OBJEXT@,$OBJEXT,;t t
23785 s,@autodepend@,$autodepend,;t t
23786 s,@INCLUDES@,$INCLUDES,;t t
23787 s,@enable_thread_safety@,$enable_thread_safety,;t t
23788 s,@with_tcl@,$with_tcl,;t t
23789 s,@with_perl@,$with_perl,;t t
23790 s,@with_python@,$with_python,;t t
23791 s,@with_krb5@,$with_krb5,;t t
23792 s,@krb_srvtab@,$krb_srvtab,;t t
23793 s,@with_pam@,$with_pam,;t t
23794 s,@with_ldap@,$with_ldap,;t t
23795 s,@with_bonjour@,$with_bonjour,;t t
23796 s,@with_openssl@,$with_openssl,;t t
23797 s,@with_zlib@,$with_zlib,;t t
23798 s,@EGREP@,$EGREP,;t t
23799 s,@ELF_SYS@,$ELF_SYS,;t t
23800 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23802 s,@FLEX@,$FLEX,;t t
23803 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23804 s,@LN_S@,$LN_S,;t t
23806 s,@with_gnu_ld@,$with_gnu_ld,;t t
23807 s,@ld_R_works@,$ld_R_works,;t t
23808 s,@RANLIB@,$RANLIB,;t t
23809 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23811 s,@STRIP@,$STRIP,;t t
23812 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23813 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23814 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23815 s,@YACC@,$YACC,;t t
23816 s,@YFLAGS@,$YFLAGS,;t t
23817 s,@PERL@,$PERL,;t t
23818 s,@perl_archlibexp@,$perl_archlibexp,;t t
23819 s,@perl_privlibexp@,$perl_privlibexp,;t t
23820 s,@perl_useshrplib@,$perl_useshrplib,;t t
23821 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23822 s,@PYTHON@,$PYTHON,;t t
23823 s,@python_version@,$python_version,;t t
23824 s,@python_configdir@,$python_configdir,;t t
23825 s,@python_includespec@,$python_includespec,;t t
23826 s,@python_libdir@,$python_libdir,;t t
23827 s,@python_libspec@,$python_libspec,;t t
23828 s,@python_additional_libs@,$python_additional_libs,;t t
23829 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23830 s,@LIBOBJS@,$LIBOBJS,;t t
23831 s,@acx_pthread_config@,$acx_pthread_config,;t t
23832 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23833 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23834 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23835 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
23836 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
23837 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23838 s,@MSGFMT@,$MSGFMT,;t t
23839 s,@MSGMERGE@,$MSGMERGE,;t t
23840 s,@XGETTEXT@,$XGETTEXT,;t t
23841 s,@localedir@,$localedir,;t t
23842 s,@TCLSH@,$TCLSH,;t t
23843 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23844 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23845 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23846 s,@TCL_LIBS@,$TCL_LIBS,;t t
23847 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23848 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23849 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23850 s,@NSGMLS@,$NSGMLS,;t t
23851 s,@JADE@,$JADE,;t t
23852 s,@have_docbook@,$have_docbook,;t t
23853 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23854 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23855 s,@SGMLSPL@,$SGMLSPL,;t t
23856 s,@vpath_build@,$vpath_build,;t t
23857 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23862 cat >>$CONFIG_STATUS <<\_ACEOF
23863 # Split the substitutions into bite-sized pieces for seds with
23864 # small command number limits, like on Digital OSF/1 and HP-UX.
23865 ac_max_sed_lines=48
23866 ac_sed_frag=1 # Number of current file.
23867 ac_beg=1 # First line for current file.
23868 ac_end=$ac_max_sed_lines # Line after last line for current file.
23871 while $ac_more_lines; do
23872 if test $ac_beg -gt 1; then
23873 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23875 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23877 if test ! -s $tmp/subs.frag; then
23878 ac_more_lines=false
23880 # The purpose of the label and of the branching condition is to
23881 # speed up the sed processing (if there are no `@' at all, there
23882 # is no need to browse any of the substitutions).
23883 # These are the two extra sed commands mentioned above.
23885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23886 if test -z "$ac_sed_cmds"; then
23887 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23889 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23891 ac_sed_frag=`expr $ac_sed_frag + 1`
23893 ac_end=`expr $ac_end + $ac_max_sed_lines`
23896 if test -z "$ac_sed_cmds"; then
23899 fi # test -n "$CONFIG_FILES"
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23903 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23906 - | *:- | *:-:* ) # input from stdin
23908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23912 * ) ac_file_in=$ac_file.in ;;
23915 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23916 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23918 X"$ac_file" : 'X\(//\)[^/]' \| \
23919 X"$ac_file" : 'X\(//\)$' \| \
23920 X"$ac_file" : 'X\(/\)' \| \
23921 . : '\(.\)' 2>/dev/null ||
23923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23925 /^X\(\/\/\)$/{ s//\1/; q; }
23926 /^X\(\/\).*/{ s//\1/; q; }
23928 { if $as_mkdir_p; then
23933 while test ! -d "$as_dir"; do
23934 as_dirs="$as_dir $as_dirs"
23935 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23937 X"$as_dir" : 'X\(//\)[^/]' \| \
23938 X"$as_dir" : 'X\(//\)$' \| \
23939 X"$as_dir" : 'X\(/\)' \| \
23940 . : '\(.\)' 2>/dev/null ||
23942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23944 /^X\(\/\/\)$/{ s//\1/; q; }
23945 /^X\(\/\).*/{ s//\1/; q; }
23948 test ! -n "$as_dirs" || mkdir $as_dirs
23949 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23950 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23951 { (exit 1); exit 1; }; }; }
23955 if test "$ac_dir" != .; then
23956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23957 # A "../" for each directory in $ac_dir_suffix.
23958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23960 ac_dir_suffix= ac_top_builddir=
23964 .) # No --srcdir option. We are building in place.
23966 if test -z "$ac_top_builddir"; then
23969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23971 [\\/]* | ?:[\\/]* ) # Absolute path.
23972 ac_srcdir=$srcdir$ac_dir_suffix;
23973 ac_top_srcdir=$srcdir ;;
23974 *) # Relative path.
23975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23979 # Do not use `cd foo && pwd` to compute absolute paths, because
23980 # the directories may not exist.
23982 .) ac_abs_builddir="$ac_dir";;
23985 .) ac_abs_builddir=`pwd`;;
23986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23990 case $ac_abs_builddir in
23991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23993 case ${ac_top_builddir}. in
23994 .) ac_abs_top_builddir=$ac_abs_builddir;;
23995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23999 case $ac_abs_builddir in
24000 .) ac_abs_srcdir=$ac_srcdir;;
24003 .) ac_abs_srcdir=$ac_abs_builddir;;
24004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24008 case $ac_abs_builddir in
24009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24011 case $ac_top_srcdir in
24012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24020 if test x"$ac_file" != x-; then
24021 { echo "$as_me:$LINENO: creating $ac_file" >&5
24022 echo "$as_me: creating $ac_file" >&6;}
24025 # Let's still pretend it is `configure' which instantiates (i.e., don't
24026 # use $as_me), people would be surprised to read:
24027 # /* config.h. Generated by config.status. */
24028 if test x"$ac_file" = x-; then
24031 configure_input="$ac_file. "
24033 configure_input=$configure_input"Generated from `echo $ac_file_in |
24034 sed 's,.*/,,'` by configure."
24036 # First look for the input files in the build tree, otherwise in the
24038 ac_file_inputs=`IFS=:
24039 for f in $ac_file_in; do
24041 -) echo $tmp/stdin ;;
24043 # Absolute (can't be DOS-style, as IFS=:)
24044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24045 echo "$as_me: error: cannot find input file: $f" >&2;}
24046 { (exit 1); exit 1; }; }
24049 if test -f "$f"; then
24052 elif test -f "$srcdir/$f"; then
24057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24058 echo "$as_me: error: cannot find input file: $f" >&2;}
24059 { (exit 1); exit 1; }; }
24062 done` || { (exit 1); exit 1; }
24064 cat >>$CONFIG_STATUS <<_ACEOF
24068 cat >>$CONFIG_STATUS <<\_ACEOF
24070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24071 s,@configure_input@,$configure_input,;t t
24072 s,@srcdir@,$ac_srcdir,;t t
24073 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24074 s,@top_srcdir@,$ac_top_srcdir,;t t
24075 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24076 s,@builddir@,$ac_builddir,;t t
24077 s,@abs_builddir@,$ac_abs_builddir,;t t
24078 s,@top_builddir@,$ac_top_builddir,;t t
24079 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24080 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24082 if test x"$ac_file" != x-; then
24083 mv $tmp/out $ac_file
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24094 # CONFIG_HEADER section.
24097 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24098 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24100 # ac_d sets the value in "#define NAME VALUE" lines.
24101 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24102 ac_dB='[ ].*$,\1#\2'
24105 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24106 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24107 ac_uB='$,\1#\2define\3'
24111 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24114 - | *:- | *:-:* ) # input from stdin
24116 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24118 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24120 * ) ac_file_in=$ac_file.in ;;
24123 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24124 echo "$as_me: creating $ac_file" >&6;}
24126 # First look for the input files in the build tree, otherwise in the
24128 ac_file_inputs=`IFS=:
24129 for f in $ac_file_in; do
24131 -) echo $tmp/stdin ;;
24133 # Absolute (can't be DOS-style, as IFS=:)
24134 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24135 echo "$as_me: error: cannot find input file: $f" >&2;}
24136 { (exit 1); exit 1; }; }
24137 # Do quote $f, to prevent DOS paths from being IFS'd.
24140 if test -f "$f"; then
24143 elif test -f "$srcdir/$f"; then
24148 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24149 echo "$as_me: error: cannot find input file: $f" >&2;}
24150 { (exit 1); exit 1; }; }
24153 done` || { (exit 1); exit 1; }
24154 # Remove the trailing spaces.
24155 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24159 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24160 # `conftest.undefs', that substitutes the proper values into
24161 # config.h.in to produce config.h. The first handles `#define'
24162 # templates, and the second `#undef' templates.
24163 # And first: Protect against being on the right side of a sed subst in
24164 # config.status. Protect against being in an unquoted here document
24165 # in config.status.
24166 rm -f conftest.defines conftest.undefs
24167 # Using a here document instead of a string reduces the quoting nightmare.
24168 # Putting comments in sed scripts is not portable.
24170 # `end' is used to avoid that the second main sed command (meant for
24171 # 0-ary CPP macros) applies to n-ary macro definitions.
24172 # See the Autoconf documentation for `clear'.
24173 cat >confdef2sed.sed <<\_ACEOF
24178 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24180 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24183 # If some macros were called several times there might be several times
24184 # the same #defines, which is useless. Nevertheless, we may not want to
24185 # sort them, since we want the *last* AC-DEFINE to be honored.
24186 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24187 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24188 rm -f confdef2sed.sed
24190 # This sed command replaces #undef with comments. This is necessary, for
24191 # example, in the case of _POSIX_SOURCE, which is predefined and required
24192 # on some systems where configure will not decide to define it.
24193 cat >>conftest.undefs <<\_ACEOF
24194 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24197 # Break up conftest.defines because some shells have a limit on the size
24198 # of here documents, and old seds have small limits too (100 cmds).
24199 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24200 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24201 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24202 echo ' :' >>$CONFIG_STATUS
24203 rm -f conftest.tail
24204 while grep . conftest.defines >/dev/null
24206 # Write a limited-size here document to $tmp/defines.sed.
24207 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24208 # Speed up: don't consider the non `#define' lines.
24209 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24210 # Work around the forget-to-reset-the-flag bug.
24211 echo 't clr' >>$CONFIG_STATUS
24212 echo ': clr' >>$CONFIG_STATUS
24213 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24215 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24217 mv $tmp/out $tmp/in
24219 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24220 rm -f conftest.defines
24221 mv conftest.tail conftest.defines
24223 rm -f conftest.defines
24224 echo ' fi # grep' >>$CONFIG_STATUS
24225 echo >>$CONFIG_STATUS
24227 # Break up conftest.undefs because some shells have a limit on the size
24228 # of here documents, and old seds have small limits too (100 cmds).
24229 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24230 rm -f conftest.tail
24231 while grep . conftest.undefs >/dev/null
24233 # Write a limited-size here document to $tmp/undefs.sed.
24234 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24235 # Speed up: don't consider the non `#undef'
24236 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24237 # Work around the forget-to-reset-the-flag bug.
24238 echo 't clr' >>$CONFIG_STATUS
24239 echo ': clr' >>$CONFIG_STATUS
24240 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24242 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24244 mv $tmp/out $tmp/in
24246 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24247 rm -f conftest.undefs
24248 mv conftest.tail conftest.undefs
24250 rm -f conftest.undefs
24252 cat >>$CONFIG_STATUS <<\_ACEOF
24253 # Let's still pretend it is `configure' which instantiates (i.e., don't
24254 # use $as_me), people would be surprised to read:
24255 # /* config.h. Generated by config.status. */
24256 if test x"$ac_file" = x-; then
24257 echo "/* Generated by configure. */" >$tmp/config.h
24259 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24261 cat $tmp/in >>$tmp/config.h
24263 if test x"$ac_file" != x-; then
24264 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24265 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24266 echo "$as_me: $ac_file is unchanged" >&6;}
24268 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24269 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24270 X"$ac_file" : 'X\(//\)[^/]' \| \
24271 X"$ac_file" : 'X\(//\)$' \| \
24272 X"$ac_file" : 'X\(/\)' \| \
24273 . : '\(.\)' 2>/dev/null ||
24275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24277 /^X\(\/\/\)$/{ s//\1/; q; }
24278 /^X\(\/\).*/{ s//\1/; q; }
24280 { if $as_mkdir_p; then
24285 while test ! -d "$as_dir"; do
24286 as_dirs="$as_dir $as_dirs"
24287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24289 X"$as_dir" : 'X\(//\)[^/]' \| \
24290 X"$as_dir" : 'X\(//\)$' \| \
24291 X"$as_dir" : 'X\(/\)' \| \
24292 . : '\(.\)' 2>/dev/null ||
24294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24296 /^X\(\/\/\)$/{ s//\1/; q; }
24297 /^X\(\/\).*/{ s//\1/; q; }
24300 test ! -n "$as_dirs" || mkdir $as_dirs
24301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24302 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24303 { (exit 1); exit 1; }; }; }
24306 mv $tmp/config.h $ac_file
24310 rm -f $tmp/config.h
24312 # Run the commands associated with the file.
24314 src/include/pg_config.h )
24315 # Update timestamp for pg_config.h (see Makefile.global)
24316 echo >src/include/stamp-h
24321 cat >>$CONFIG_STATUS <<\_ACEOF
24324 # CONFIG_LINKS section.
24327 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24328 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24329 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24331 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24332 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24334 if test ! -r $srcdir/$ac_source; then
24335 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24336 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24337 { (exit 1); exit 1; }; }
24341 # Make relative symlinks.
24342 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24343 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24344 X"$ac_dest" : 'X\(//\)[^/]' \| \
24345 X"$ac_dest" : 'X\(//\)$' \| \
24346 X"$ac_dest" : 'X\(/\)' \| \
24347 . : '\(.\)' 2>/dev/null ||
24349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24351 /^X\(\/\/\)$/{ s//\1/; q; }
24352 /^X\(\/\).*/{ s//\1/; q; }
24354 { if $as_mkdir_p; then
24355 mkdir -p "$ac_dest_dir"
24357 as_dir="$ac_dest_dir"
24359 while test ! -d "$as_dir"; do
24360 as_dirs="$as_dir $as_dirs"
24361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24363 X"$as_dir" : 'X\(//\)[^/]' \| \
24364 X"$as_dir" : 'X\(//\)$' \| \
24365 X"$as_dir" : 'X\(/\)' \| \
24366 . : '\(.\)' 2>/dev/null ||
24368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24370 /^X\(\/\/\)$/{ s//\1/; q; }
24371 /^X\(\/\).*/{ s//\1/; q; }
24374 test ! -n "$as_dirs" || mkdir $as_dirs
24375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24376 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24377 { (exit 1); exit 1; }; }; }
24381 if test "$ac_dest_dir" != .; then
24382 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24383 # A "../" for each directory in $ac_dir_suffix.
24384 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24386 ac_dir_suffix= ac_top_builddir=
24390 .) # No --srcdir option. We are building in place.
24392 if test -z "$ac_top_builddir"; then
24395 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24397 [\\/]* | ?:[\\/]* ) # Absolute path.
24398 ac_srcdir=$srcdir$ac_dir_suffix;
24399 ac_top_srcdir=$srcdir ;;
24400 *) # Relative path.
24401 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24402 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24405 # Do not use `cd foo && pwd` to compute absolute paths, because
24406 # the directories may not exist.
24408 .) ac_abs_builddir="$ac_dest_dir";;
24410 case "$ac_dest_dir" in
24411 .) ac_abs_builddir=`pwd`;;
24412 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24413 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24416 case $ac_abs_builddir in
24417 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24419 case ${ac_top_builddir}. in
24420 .) ac_abs_top_builddir=$ac_abs_builddir;;
24421 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24422 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24425 case $ac_abs_builddir in
24426 .) ac_abs_srcdir=$ac_srcdir;;
24429 .) ac_abs_srcdir=$ac_abs_builddir;;
24430 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24431 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24434 case $ac_abs_builddir in
24435 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24437 case $ac_top_srcdir in
24438 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24439 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24440 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24446 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24447 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24450 # Try a symlink, then a hard link, then a copy.
24451 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24452 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24453 cp -p $srcdir/$ac_source $ac_dest ||
24454 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24455 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24456 { (exit 1); exit 1; }; }
24459 cat >>$CONFIG_STATUS <<\_ACEOF
24462 # CONFIG_COMMANDS section.
24464 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24465 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24466 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24467 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24468 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24469 X"$ac_dest" : 'X\(//\)[^/]' \| \
24470 X"$ac_dest" : 'X\(//\)$' \| \
24471 X"$ac_dest" : 'X\(/\)' \| \
24472 . : '\(.\)' 2>/dev/null ||
24474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24476 /^X\(\/\/\)$/{ s//\1/; q; }
24477 /^X\(\/\).*/{ s//\1/; q; }
24479 { if $as_mkdir_p; then
24484 while test ! -d "$as_dir"; do
24485 as_dirs="$as_dir $as_dirs"
24486 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24488 X"$as_dir" : 'X\(//\)[^/]' \| \
24489 X"$as_dir" : 'X\(//\)$' \| \
24490 X"$as_dir" : 'X\(/\)' \| \
24491 . : '\(.\)' 2>/dev/null ||
24493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24495 /^X\(\/\/\)$/{ s//\1/; q; }
24496 /^X\(\/\).*/{ s//\1/; q; }
24499 test ! -n "$as_dirs" || mkdir $as_dirs
24500 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24502 { (exit 1); exit 1; }; }; }
24506 if test "$ac_dir" != .; then
24507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24508 # A "../" for each directory in $ac_dir_suffix.
24509 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24511 ac_dir_suffix= ac_top_builddir=
24515 .) # No --srcdir option. We are building in place.
24517 if test -z "$ac_top_builddir"; then
24520 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24522 [\\/]* | ?:[\\/]* ) # Absolute path.
24523 ac_srcdir=$srcdir$ac_dir_suffix;
24524 ac_top_srcdir=$srcdir ;;
24525 *) # Relative path.
24526 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24527 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24530 # Do not use `cd foo && pwd` to compute absolute paths, because
24531 # the directories may not exist.
24533 .) ac_abs_builddir="$ac_dir";;
24536 .) ac_abs_builddir=`pwd`;;
24537 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24538 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24541 case $ac_abs_builddir in
24542 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24544 case ${ac_top_builddir}. in
24545 .) ac_abs_top_builddir=$ac_abs_builddir;;
24546 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24547 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24550 case $ac_abs_builddir in
24551 .) ac_abs_srcdir=$ac_srcdir;;
24554 .) ac_abs_srcdir=$ac_abs_builddir;;
24555 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24556 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24559 case $ac_abs_builddir in
24560 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24562 case $ac_top_srcdir in
24563 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24564 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24565 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24570 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24571 echo "$as_me: executing $ac_dest commands" >&6;}
24573 check_win32_symlinks )
24574 # Links sometimes fail undetected on Mingw -
24575 # so here we detect it and warn the user
24576 for FILE in $CONFIG_LINKS
24578 # test -e works for symlinks in the MinGW console
24579 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
24580 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
24587 cat >>$CONFIG_STATUS <<\_ACEOF
24589 { (exit 0); exit 0; }
24591 chmod +x $CONFIG_STATUS
24592 ac_clean_files=$ac_clean_files_save
24595 # configure is writing to config.log, and then calls config.status.
24596 # config.status does its own redirection, appending to config.log.
24597 # Unfortunately, on DOS this fails, as config.log is still kept open
24598 # by configure, so config.status won't be able to write to it; its
24599 # output is simply discarded. So we exec the FD to /dev/null,
24600 # effectively closing config.log, so it can be properly (re)opened and
24601 # appended to by config.status. When coming back to configure, we
24602 # need to make the FD available again.
24603 if test "$no_create" != yes; then
24605 ac_config_status_args=
24606 test "$silent" = yes &&
24607 ac_config_status_args="$ac_config_status_args --quiet"
24609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24612 # would make configure fail if this is the last instruction.
24613 $ac_cs_success || { (exit 1); exit 1; }
24617 # Warn about unknown options
24618 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
24619 for pgac_arg in $pgac_args with_gnu_ld; do
24620 if test "$pgac_var" = "$pgac_arg"; then
24624 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
24625 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
24626 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}