2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2006, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug 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 LORDER TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.2devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.2devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-depend turn on automatic dependency tracking
869 --enable-cassert enable assertion checks (for debugging)
870 --enable-thread-safety make client libraries thread-safe
871 --enable-thread-safety-force force thread-safety in spite of thread test failure
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
879 --without-docdir do not install the documentation
880 --with-includes=DIRS look for additional header files in DIRS
881 --with-libraries=DIRS look for additional libraries in DIRS
882 --with-libs=DIRS alternative spelling of --with-libraries
883 --with-pgport=PORTNUM change default port number [5432]
884 --with-tcl build Tcl modules (PL/Tcl)
885 --with-tclconfig=DIR tclConfig.sh is in DIR
886 --with-perl build Perl modules (PL/Perl)
887 --with-python build Python modules (PL/Python)
888 --with-krb5 build with Kerberos 5 support
889 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
890 --with-pam build with PAM support
891 --with-ldap build with LDAP support
892 --with-bonjour build with Bonjour support
893 --with-openssl build with OpenSSL support
894 --with-libedit-preferred prefer BSD Libedit over GNU Readline
895 --without-readline do not use GNU Readline / BSD Libedit line editing
896 --without-zlib do not use Zlib
897 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
909 location of DocBook stylesheets
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
914 Report bugs to <pgsql-bugs@postgresql.org>.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1010 PostgreSQL configure 8.2devel
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1017 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by PostgreSQL $as_me 8.2devel, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1086 ac_must_keep_next=false
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115 -* ) ac_must_keep_next=true ;;
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1144 # The following way of writing the cache mishandles newlines in values,
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1174 if test -n "$ac_subst_files"; then
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1189 if test -s confdefs.h; then
1196 sed "/^$/d" confdefs.h | sort
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1279 # Check that the precious variables saved in the cache have kept the same
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 for ac_dir in config $srcdir/config; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392 configure_args=$ac_configure_args
1396 cat >>confdefs.h <<_ACEOF
1397 #define PG_VERSION "$PACKAGE_VERSION"
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$as_me:$LINENO: checking which template to use" >&5
1458 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1463 # Check whether --with-template or --without-template was given.
1464 if test "${with_template+set}" = set; then
1465 withval="$with_template"
1469 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1470 echo "$as_me: error: argument required for --with-template option" >&2;}
1471 { (exit 1); exit 1; }; }
1474 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1475 echo "$as_me: error: argument required for --with-template option" >&2;}
1476 { (exit 1); exit 1; }; }
1481 list) echo; ls "$srcdir/src/template"; exit;;
1482 *) if test -f "$srcdir/src/template/$with_template" ; then
1485 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1486 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1487 { (exit 1); exit 1; }; }
1496 # --with-template not given
1499 aix*) template=aix ;;
1500 bsdi*) template=bsdi ;;
1501 cygwin*) template=cygwin ;;
1502 darwin*) template=darwin ;;
1503 dgux*) template=dgux ;;
1504 freebsd*) template=freebsd ;;
1505 hpux*) template=hpux ;;
1506 irix*) template=irix ;;
1507 linux*|gnu*|k*bsd*-gnu)
1509 mingw*) template=win32 ;;
1510 netbsd*) template=netbsd ;;
1511 nextstep*) template=nextstep ;;
1512 openbsd*) template=openbsd ;;
1513 osf*) template=osf ;;
1514 sco*) template=sco ;;
1515 solaris*) template=solaris ;;
1516 sunos*) template=sunos4 ;;
1518 case $host_vendor in
1519 univel) template=univel ;;
1521 sysv4*) template=svr4 ;;
1522 sysv5*) template=unixware ;;
1523 ultrix*) template=ultrix4 ;;
1526 if test x"$template" = x"" ; then
1527 { { echo "$as_me:$LINENO: error:
1528 *******************************************************************
1529 PostgreSQL has apparently not been ported to your platform yet.
1530 To try a manual configuration, look into the src/template directory
1531 for a similar platform and use the '--with-template=' option.
1533 Please also contact <pgsql-ports@postgresql.org> to see about
1534 rectifying this. Include the above 'checking host system type...'
1536 *******************************************************************
1538 echo "$as_me: error:
1539 *******************************************************************
1540 PostgreSQL has apparently not been ported to your platform yet.
1541 To try a manual configuration, look into the src/template directory
1542 for a similar platform and use the '--with-template=' option.
1544 Please also contact <pgsql-ports@postgresql.org> to see about
1545 rectifying this. Include the above 'checking host system type...'
1547 *******************************************************************
1549 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $template" >&5
1557 echo "${ECHO_T}$template" >&6
1562 # Initialize default assumption that we do not need separate assembly code
1563 # for TAS (test-and-set). This can be overridden by the template file
1564 # when it's executed.
1571 ## Command line options
1575 # Installation directory for documentation
1580 # Check whether --with-docdir or --without-docdir was given.
1581 if test "${with_docdir+set}" = set; then
1582 withval="$with_docdir"
1586 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1587 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1588 { (exit 1); exit 1; }; }
1599 docdir='${prefix}/doc'
1606 # Add non-standard directories to the include path
1611 # Check whether --with-includes or --without-includes was given.
1612 if test "${with_includes+set}" = set; then
1613 withval="$with_includes"
1617 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1618 echo "$as_me: error: argument required for --with-includes option" >&2;}
1619 { (exit 1); exit 1; }; }
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; }; }
1636 # Add non-standard directories to the library search path
1641 # Check whether --with-libraries or --without-libraries was given.
1642 if test "${with_libraries+set}" = set; then
1643 withval="$with_libraries"
1647 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1648 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1649 { (exit 1); exit 1; }; }
1652 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654 { (exit 1); exit 1; }; }
1657 LIBRARY_DIRS=$withval
1667 # Check whether --with-libs or --without-libs was given.
1668 if test "${with_libs+set}" = set; then
1669 withval="$with_libs"
1673 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1674 echo "$as_me: error: argument required for --with-libs option" >&2;}
1675 { (exit 1); exit 1; }; }
1678 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1679 echo "$as_me: error: argument required for --with-libs option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 LIBRARY_DIRS=$withval
1692 # 64-bit integer date/time storage (--enable-integer-datetimes)
1694 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1695 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1698 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1699 if test "${enable_integer_datetimes+set}" = set; then
1700 enableval="$enable_integer_datetimes"
1705 cat >>confdefs.h <<\_ACEOF
1706 #define USE_INTEGER_DATETIMES 1
1714 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1715 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1716 { (exit 1); exit 1; }; }
1721 enable_integer_datetimes=no
1725 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1726 echo "${ECHO_T}$enable_integer_datetimes" >&6
1732 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1733 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1736 # Check whether --enable-nls or --disable-nls was given.
1737 if test "${enable_nls+set}" = set; then
1738 enableval="$enable_nls"
1749 WANTED_LANGUAGES=$enableval
1758 if test "$enable_nls" = yes; then
1760 cat >>confdefs.h <<\_ACEOF
1761 #define ENABLE_NLS 1
1766 echo "$as_me:$LINENO: result: $enable_nls" >&5
1767 echo "${ECHO_T}$enable_nls" >&6
1772 # Default port number (--with-pgport), default 5432
1774 echo "$as_me:$LINENO: checking for default port number" >&5
1775 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1779 # Check whether --with-pgport or --without-pgport was given.
1780 if test "${with_pgport+set}" = set; then
1781 withval="$with_pgport"
1785 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1786 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1787 { (exit 1); exit 1; }; }
1790 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1791 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1792 { (exit 1); exit 1; }; }
1795 default_port=$withval
1803 echo "$as_me:$LINENO: result: $default_port" >&5
1804 echo "${ECHO_T}$default_port" >&6
1805 # Need both of these because some places want an integer and some a string
1807 cat >>confdefs.h <<_ACEOF
1808 #define DEF_PGPORT ${default_port}
1812 cat >>confdefs.h <<_ACEOF
1813 #define DEF_PGPORT_STR "${default_port}"
1819 # Option to disable shared libraries
1823 # Check whether --enable-shared or --disable-shared was given.
1824 if test "${enable_shared+set}" = set; then
1825 enableval="$enable_shared"
1835 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1836 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1837 { (exit 1); exit 1; }; }
1849 # '-rpath'-like feature can be disabled
1853 # Check whether --enable-rpath or --disable-rpath was given.
1854 if test "${enable_rpath+set}" = set; then
1855 enableval="$enable_rpath"
1865 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1866 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1867 { (exit 1); exit 1; }; }
1883 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1884 if test "${enable_spinlocks+set}" = set; then
1885 enableval="$enable_spinlocks"
1895 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1896 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1897 { (exit 1); exit 1; }; }
1902 enable_spinlocks=yes
1908 # --enable-debug adds -g to compiler flags
1912 # Check whether --enable-debug or --disable-debug was given.
1913 if test "${enable_debug+set}" = set; then
1914 enableval="$enable_debug"
1924 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1925 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1926 { (exit 1); exit 1; }; }
1941 # For historical reasons you can also use --with-CC to specify the C compiler
1942 # to use, although the standard way to do this is to set the CC environment
1947 # Check whether --with-CC or --without-CC was given.
1948 if test "${with_CC+set}" = set; then
1953 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1954 echo "$as_me: error: argument required for --with-CC option" >&2;}
1955 { (exit 1); exit 1; }; }
1958 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1959 echo "$as_me: error: argument required for --with-CC option" >&2;}
1960 { (exit 1); exit 1; }; }
1971 aix) pgac_cc_list="gcc xlc";;
1972 irix) pgac_cc_list="cc";; # no gcc
1973 *) pgac_cc_list="gcc cc";;
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in $pgac_cc_list
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in $pgac_cc_list
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$ac_ct_CC" && break
2068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2074 # Provide some information about the compiler.
2075 echo "$as_me:$LINENO:" \
2076 "checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2079 (eval $ac_compiler --version </dev/null >&5) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2084 (eval $ac_compiler -v </dev/null >&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2089 (eval $ac_compiler -V </dev/null >&5) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2094 cat >conftest.$ac_ext <<_ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2109 ac_clean_files_save=$ac_clean_files
2110 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2111 # Try to create an executable without -o first, disregard a.out.
2112 # It will help us diagnose broken compilers, and finding out an intuition
2114 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2115 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2116 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2118 (eval $ac_link_default) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 # Find the output, starting from the most likely. This scheme is
2123 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # Be careful to initialize this variable, since it used to be cached.
2127 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129 # b.out is created by i960 compilers.
2130 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132 test -f "$ac_file" || continue
2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2137 # This is the source file.
2140 # We found the default executable, but exeext='' is most
2144 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2145 # FIXME: I believe we export ac_cv_exeext for Libtool,
2146 # but it would be cool to find out if it's true. Does anybody
2147 # maintain Libtool? --akim.
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&2;}
2162 { (exit 77); exit 77; }; }
2165 ac_exeext=$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_file" >&5
2167 echo "${ECHO_T}$ac_file" >&6
2169 # Check the compiler produces executables we can run. If not, either
2170 # the compiler is broken, or we cross compile.
2171 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2172 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2173 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2174 # If not cross compiling, check that we can run a simple program.
2175 if test "$cross_compiling" != yes; then
2176 if { ac_try='./$ac_file'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2184 if test "$cross_compiling" = maybe; then
2187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&2;}
2193 { (exit 1); exit 1; }; }
2197 echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6
2200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2201 ac_clean_files=$ac_clean_files_save
2202 # Check the compiler produces executables we can run. If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2206 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2207 echo "${ECHO_T}$cross_compiling" >&6
2209 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2212 (eval $ac_link) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2217 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2218 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 for ac_file in conftest.exe conftest conftest.*; do
2221 test -f "$ac_file" || continue
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2238 rm -f conftest$ac_cv_exeext
2239 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2240 echo "${ECHO_T}$ac_cv_exeext" >&6
2242 rm -f conftest.$ac_ext
2243 EXEEXT=$ac_cv_exeext
2245 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2246 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2247 if test "${ac_cv_objext+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 cat >conftest.$ac_ext <<_ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2265 rm -f conftest.o conftest.obj
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2292 echo "${ECHO_T}$ac_cv_objext" >&6
2293 OBJEXT=$ac_cv_objext
2295 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2296 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2297 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2322 grep -v '^ *+' conftest.er1 >conftest.err
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2353 GCC=`test $ac_compiler_gnu = yes && echo yes`
2354 ac_test_CFLAGS=${CFLAGS+set}
2355 ac_save_CFLAGS=$CFLAGS
2357 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2358 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2359 if test "${ac_cv_prog_cc_g+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410 if test "$ac_test_CFLAGS" = set; then
2411 CFLAGS=$ac_save_CFLAGS
2412 elif test $ac_cv_prog_cc_g = yes; then
2413 if test "$GCC" = yes; then
2419 if test "$GCC" = yes; then
2425 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2426 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_cv_prog_cc_stdc=no
2432 cat >conftest.$ac_ext <<_ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 #include <sys/types.h>
2441 #include <sys/stat.h>
2442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2443 struct buf { int x; };
2444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2445 static char *e (p, i)
2451 static char *f (char * (*g) (char **, int), char **p, ...)
2456 s = g (p, va_arg (v,int));
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2462 function prototypes and stuff, but not '\xHH' hex character constants.
2463 These don't provoke an error unfortunately, instead are silently treated
2464 as 'x'. The following induces an error, until -std1 is added to get
2465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2466 array size at least. It's necessary to write '\x00'==0 to get something
2467 that's true only with -std1. */
2468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX -qlanglvl=ansi
2487 # Ultrix and OSF/1 -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions -Aa -D_HPUX_SOURCE
2490 # SVR4 -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 CC="$ac_save_CC $ac_arg"
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_stdc=$ac_arg
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2523 rm -f conftest.err conftest.$ac_objext
2525 rm -f conftest.$ac_ext conftest.$ac_objext
2530 case "x$ac_cv_prog_cc_stdc" in
2532 echo "$as_me:$LINENO: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 # Some people use a C++ compiler to compile C. Since we use `exit',
2541 # in C++ we need to declare it. In case someone uses the same compiler
2542 # for both compiling C and C++ we need to have the C++ compiler decide
2543 # the declaration of exit, since it's the most demanding environment.
2544 cat >conftest.$ac_ext <<_ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 for ac_declaration in \
2573 'extern "C" void std::exit (int) throw (); using std::exit;' \
2574 'extern "C" void std::exit (int); using std::exit;' \
2575 'extern "C" void exit (int) throw ();' \
2576 'extern "C" void exit (int);' \
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>conftest.er1
2599 grep -v '^ *+' conftest.er1 >conftest.err
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 if test -n "$ac_declaration"; then
2672 echo '#ifdef __cplusplus' >>confdefs.h
2673 echo $ac_declaration >>confdefs.h
2674 echo '#endif' >>confdefs.h
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 . "$srcdir/src/template/$template" || exit
2697 # CFLAGS are selected so:
2698 # If the user specifies something in the environment, that is used.
2699 # else: If the template file set something, that is used.
2700 # else: If the compiler is GCC, then we use -O2.
2701 # else: If the compiler is something else, then we use -0.
2703 if test "$ac_env_CFLAGS_set" = set; then
2704 CFLAGS=$ac_env_CFLAGS_value
2705 elif test "${CFLAGS+set}" = set; then
2706 : # (keep what template set)
2707 elif test "$GCC" = yes; then
2710 # if the user selected debug mode, don't use -O
2711 if test "$enable_debug" != yes; then
2716 if test "$GCC" = yes; then
2717 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2719 # Some versions of GCC support some additional useful warning flags.
2720 # Check whether they are supported, and add them to CFLAGS if so.
2721 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2722 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2723 pgac_save_CFLAGS=$CFLAGS
2724 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 echo "$as_me:$LINENO: result: yes" >&5
2763 echo "${ECHO_T}yes" >&6
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 CFLAGS="$pgac_save_CFLAGS"
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2775 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2776 pgac_save_CFLAGS=$CFLAGS
2777 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816 echo "${ECHO_T}yes" >&6
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 CFLAGS="$pgac_save_CFLAGS"
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828 # Disable strict-aliasing rules; needed for gcc 3.3+
2829 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2830 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2831 pgac_save_CFLAGS=$CFLAGS
2832 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 echo "$as_me:$LINENO: result: yes" >&5
2871 echo "${ECHO_T}yes" >&6
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 CFLAGS="$pgac_save_CFLAGS"
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884 # supply -g if --enable-debug
2885 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2889 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2890 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2892 # We already have this in Makefile.win32, but configure needs it too
2893 if test "$PORTNAME" = "win32"; then
2894 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2897 # Check if the compiler still works with the template settings
2898 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2899 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2901 cat >conftest.$ac_ext <<_ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2916 rm -f conftest.$ac_objext conftest$ac_exeext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918 (eval $ac_link) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest$ac_exeext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2946 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2947 echo "$as_me: error: cannot proceed" >&2;}
2948 { (exit 1); exit 1; }; }
2950 rm -f conftest.err conftest.$ac_objext \
2951 conftest$ac_exeext conftest.$ac_ext
2953 # Defend against gcc -ffast-math
2954 if test "$GCC" = yes; then
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2965 #ifdef __FAST_MATH__
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag"
2982 || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3000 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3001 { (exit 1); exit 1; }; }
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3013 # On Suns, sometimes $CPP names a directory.
3014 if test -n "$CPP" && test -d "$CPP"; then
3017 if test -z "$CPP"; then
3018 if test "${ac_cv_prog_CPP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 # Double quotes because CPP needs to be expanded
3022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 for ac_c_preproc_warn_flag in '' yes
3027 # Use a header file that comes with gcc, so configuring glibc
3028 # with a fresh cross-compiler works.
3029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030 # <limits.h> exists even on freestanding compilers.
3031 # On the NeXT, cc -E runs the code through the compiler's parser,
3032 # not just through cpp. "Syntax error" is here to catch this case.
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3040 # include <limits.h>
3042 # include <assert.h>
3046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } >/dev/null; then
3054 if test -s conftest.err; then
3055 ac_cpp_err=$ac_c_preproc_warn_flag
3056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063 if test -z "$ac_cpp_err"; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 # Broken: fails on valid input.
3072 rm -f conftest.err conftest.$ac_ext
3074 # OK, works on sane cases. Now check whether non-existent headers
3075 # can be detected and how.
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #include <ac_nonexistent.h>
3084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } >/dev/null; then
3092 if test -s conftest.err; then
3093 ac_cpp_err=$ac_c_preproc_warn_flag
3094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101 if test -z "$ac_cpp_err"; then
3102 # Broken: success on invalid input.
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 # Passes both tests.
3112 rm -f conftest.err conftest.$ac_ext
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3129 echo "$as_me:$LINENO: result: $CPP" >&5
3130 echo "${ECHO_T}$CPP" >&6
3132 for ac_c_preproc_warn_flag in '' yes
3134 # Use a header file that comes with gcc, so configuring glibc
3135 # with a fresh cross-compiler works.
3136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137 # <limits.h> exists even on freestanding compilers.
3138 # On the NeXT, cc -E runs the code through the compiler's parser,
3139 # not just through cpp. "Syntax error" is here to catch this case.
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3147 # include <limits.h>
3149 # include <assert.h>
3153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } >/dev/null; then
3161 if test -s conftest.err; then
3162 ac_cpp_err=$ac_c_preproc_warn_flag
3163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170 if test -z "$ac_cpp_err"; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Broken: fails on valid input.
3179 rm -f conftest.err conftest.$ac_ext
3181 # OK, works on sane cases. Now check whether non-existent headers
3182 # can be detected and how.
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <ac_nonexistent.h>
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 if test -z "$ac_cpp_err"; then
3209 # Broken: success on invalid input.
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 # Passes both tests.
3219 rm -f conftest.err conftest.$ac_ext
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.$ac_ext
3224 if $ac_preproc_ok; then
3227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 # Create compiler version string
3243 if test x"$GCC" = x"yes" ; then
3244 cc_string="GCC `${CC} --version | sed q`"
3249 cat >>confdefs.h <<_ACEOF
3250 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3256 # Set up TAS assembly code if needed; the template file has now had its
3257 # chance to request this.
3259 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3262 if test "$need_tas" = yes ; then
3271 # Automatic dependency tracking
3275 # Check whether --enable-depend or --disable-depend was given.
3276 if test "${enable_depend+set}" = set; then
3277 enableval="$enable_depend"
3287 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3288 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3289 { (exit 1); exit 1; }; }
3302 # Enable assert checks
3306 # Check whether --enable-cassert or --disable-cassert was given.
3307 if test "${enable_cassert+set}" = set; then
3308 enableval="$enable_cassert"
3313 cat >>confdefs.h <<\_ACEOF
3314 #define USE_ASSERT_CHECKING 1
3322 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3323 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3324 { (exit 1); exit 1; }; }
3336 # Include directories
3339 IFS="${IFS}${PATH_SEPARATOR}"
3340 # SRCH_INC comes from the template file
3341 for dir in $with_includes $SRCH_INC; do
3342 if test -d "$dir"; then
3343 INCLUDES="$INCLUDES -I$dir"
3345 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3346 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3354 # Library directories
3357 IFS="${IFS}${PATH_SEPARATOR}"
3358 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3359 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3360 if test -d "$dir"; then
3361 LIBDIRS="$LIBDIRS -L$dir"
3363 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3364 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3370 # Enable thread-safe client libraries
3372 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3373 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3376 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3377 if test "${enable_thread_safety+set}" = set; then
3378 enableval="$enable_thread_safety"
3388 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3389 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3390 { (exit 1); exit 1; }; }
3395 enable_thread_safety=no
3401 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3402 if test "${enable_thread_safety_force+set}" = set; then
3403 enableval="$enable_thread_safety_force"
3413 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3414 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3415 { (exit 1); exit 1; }; }
3420 enable_thread_safety_force=no
3424 if test "$enable_thread_safety" = yes -o \
3425 "$enable_thread_safety_force" = yes; then
3426 enable_thread_safety="yes" # for 'force'
3428 cat >>confdefs.h <<\_ACEOF
3429 #define ENABLE_THREAD_SAFETY 1
3433 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3434 echo "${ECHO_T}$enable_thread_safety" >&6
3438 # Optionally build Tcl modules (PL/Tcl)
3440 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3441 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3445 # Check whether --with-tcl or --without-tcl was given.
3446 if test "${with_tcl+set}" = set; then
3457 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3458 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3459 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $with_tcl" >&5
3469 echo "${ECHO_T}$with_tcl" >&6
3472 # We see if the path to the Tcl/Tk configuration scripts is specified.
3473 # This will override the use of tclsh to find the paths to search.
3478 # Check whether --with-tclconfig or --without-tclconfig was given.
3479 if test "${with_tclconfig+set}" = set; then
3480 withval="$with_tclconfig"
3484 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3485 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3486 { (exit 1); exit 1; }; }
3489 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3490 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3491 { (exit 1); exit 1; }; }
3502 # Optionally build Perl modules (PL/Perl)
3504 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3505 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3509 # Check whether --with-perl or --without-perl was given.
3510 if test "${with_perl+set}" = set; then
3511 withval="$with_perl"
3521 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3522 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3523 { (exit 1); exit 1; }; }
3532 echo "$as_me:$LINENO: result: $with_perl" >&5
3533 echo "${ECHO_T}$with_perl" >&6
3537 # Optionally build Python modules (PL/Python)
3539 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3540 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3544 # Check whether --with-python or --without-python was given.
3545 if test "${with_python+set}" = set; then
3546 withval="$with_python"
3556 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3557 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3558 { (exit 1); exit 1; }; }
3567 echo "$as_me:$LINENO: result: $with_python" >&5
3568 echo "${ECHO_T}$with_python" >&6
3574 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3575 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3579 # Check whether --with-krb5 or --without-krb5 was given.
3580 if test "${with_krb5+set}" = set; then
3581 withval="$with_krb5"
3587 cat >>confdefs.h <<\_ACEOF
3591 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3598 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3599 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3600 { (exit 1); exit 1; }; }
3609 echo "$as_me:$LINENO: result: $with_krb5" >&5
3610 echo "${ECHO_T}$with_krb5" >&6
3618 # Kerberos configuration parameters
3623 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3624 if test "${with_krb_srvnam+set}" = set; then
3625 withval="$with_krb_srvnam"
3629 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3630 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3631 { (exit 1); exit 1; }; }
3634 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3635 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3636 { (exit 1); exit 1; }; }
3644 with_krb_srvnam="postgres"
3648 cat >>confdefs.h <<_ACEOF
3649 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3657 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3658 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3662 # Check whether --with-pam or --without-pam was given.
3663 if test "${with_pam+set}" = set; then
3669 cat >>confdefs.h <<\_ACEOF
3678 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3679 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3680 { (exit 1); exit 1; }; }
3689 echo "$as_me:$LINENO: result: $with_pam" >&5
3690 echo "${ECHO_T}$with_pam" >&6
3697 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3698 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3702 # Check whether --with-ldap or --without-ldap was given.
3703 if test "${with_ldap+set}" = set; then
3704 withval="$with_ldap"
3709 cat >>confdefs.h <<\_ACEOF
3718 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3719 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3720 { (exit 1); exit 1; }; }
3729 echo "$as_me:$LINENO: result: $with_ldap" >&5
3730 echo "${ECHO_T}$with_ldap" >&6
3737 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3738 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3742 # Check whether --with-bonjour or --without-bonjour was given.
3743 if test "${with_bonjour+set}" = set; then
3744 withval="$with_bonjour"
3749 cat >>confdefs.h <<\_ACEOF
3750 #define USE_BONJOUR 1
3758 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3759 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3760 { (exit 1); exit 1; }; }
3769 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3770 echo "${ECHO_T}$with_bonjour" >&6
3777 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3778 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3782 # Check whether --with-openssl or --without-openssl was given.
3783 if test "${with_openssl+set}" = set; then
3784 withval="$with_openssl"
3789 cat >>confdefs.h <<\_ACEOF
3798 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3799 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3800 { (exit 1); exit 1; }; }
3809 echo "$as_me:$LINENO: result: $with_openssl" >&5
3810 echo "${ECHO_T}$with_openssl" >&6
3820 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3821 if test "${with_libedit_preferred+set}" = set; then
3822 withval="$with_libedit_preferred"
3832 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3833 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3834 { (exit 1); exit 1; }; }
3839 with_libedit_preferred=no
3851 # Check whether --with-readline or --without-readline was given.
3852 if test "${with_readline+set}" = set; then
3853 withval="$with_readline"
3863 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3864 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3865 { (exit 1); exit 1; }; }
3874 # readline on MinGW has problems with backslashes in psql and other bugs.
3875 # This is particularly a problem with non-US code pages.
3876 # Therefore disable its use until we understand the cause. 2004-07-20
3877 if test "$PORTNAME" = "win32"; then
3878 if test "$with_readline" = yes; then
3879 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3880 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3892 # Check whether --with-zlib or --without-zlib was given.
3893 if test "${with_zlib+set}" = set; then
3894 withval="$with_zlib"
3904 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3905 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3906 { (exit 1); exit 1; }; }
3921 # Assume system is ELF if it predefines __ELF__ as 1,
3922 # otherwise believe host_os based default.
3924 freebsd1*|freebsd2*) elf=no;;
3925 freebsd3*|freebsd4*) elf=yes;;
3929 echo "$as_me:$LINENO: checking for egrep" >&5
3930 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3931 if test "${ac_cv_prog_egrep+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3935 then ac_cv_prog_egrep='grep -E'
3936 else ac_cv_prog_egrep='egrep'
3939 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3940 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3941 EGREP=$ac_cv_prog_egrep
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3956 $EGREP "yes" >/dev/null 2>&1; then
3959 if test "X$elf" = "Xyes" ; then
3973 CPPFLAGS="$CPPFLAGS $INCLUDES"
3974 LDFLAGS="$LDFLAGS $LIBDIRS"
3976 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3977 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3978 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3979 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3983 for ac_prog in gawk mawk nawk awk
3985 # Extract the first word of "$ac_prog", so it can be a program name with args.
3986 set dummy $ac_prog; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_AWK+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if test -n "$AWK"; then
3993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_AWK="$ac_prog"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 if test -n "$AWK"; then
4013 echo "$as_me:$LINENO: result: $AWK" >&5
4014 echo "${ECHO_T}$AWK" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4020 test -n "$AWK" && break
4023 echo "$as_me:$LINENO: checking for flex" >&5
4024 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4025 if test "${pgac_cv_path_flex+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 # Let the user override the test
4029 if test -n "$FLEX"; then
4030 pgac_cv_path_flex=$FLEX
4034 for pgac_dir in $PATH; do
4036 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4039 for pgac_prog in flex lex; do
4040 pgac_candidate="$pgac_dir/$pgac_prog"
4041 if test -f "$pgac_candidate" \
4042 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4044 echo '%%' > conftest.l
4045 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4046 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4047 pgac_broken_flex=$pgac_candidate
4051 pgac_cv_path_flex=$pgac_candidate
4057 rm -f conftest.l lex.yy.c
4058 : ${pgac_cv_path_flex=no}
4062 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4063 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4064 if test x"$pgac_cv_path_flex" = x"no"; then
4065 if test -n "$pgac_broken_flex"; then
4066 { echo "$as_me:$LINENO: WARNING:
4067 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4068 *** should get version 2.5.4 or later." >&5
4069 echo "$as_me: WARNING:
4070 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4071 *** should get version 2.5.4 or later." >&2;}
4074 { echo "$as_me:$LINENO: WARNING:
4075 *** Without Flex you will not be able to build PostgreSQL from CVS or
4076 *** change any of the scanner definition files. You can obtain Flex from
4077 *** a GNU mirror site. (If you are using the official distribution of
4078 *** PostgreSQL then you do not need to worry about this because the Flex
4079 *** output is pre-generated.)" >&5
4080 echo "$as_me: WARNING:
4081 *** Without Flex you will not be able to build PostgreSQL from CVS or
4082 *** change any of the scanner definition files. You can obtain Flex from
4083 *** a GNU mirror site. (If you are using the official distribution of
4084 *** PostgreSQL then you do not need to worry about this because the Flex
4085 *** output is pre-generated.)" >&2;}
4088 if test x"$pgac_cv_path_flex" = x"no"; then
4091 FLEX=$pgac_cv_path_flex
4097 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4098 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4100 if test "$LN_S" = "ln -s"; then
4101 echo "$as_me:$LINENO: result: yes" >&5
4102 echo "${ECHO_T}yes" >&6
4104 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4105 echo "${ECHO_T}no, using $LN_S" >&6
4109 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4110 if test "${with_gnu_ld+set}" = set; then
4111 withval="$with_gnu_ld"
4112 test "$withval" = no || with_gnu_ld=yes
4117 if test "$GCC" = yes; then
4118 # Check if gcc -print-prog-name=ld gives a path.
4119 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4120 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4123 # gcc leaves a trailing carriage return which upsets mingw
4124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4129 # Accept absolute paths.
4130 [\\/]* | [A-Za-z]:[\\/]*)
4131 re_direlt='/[^/][^/]*/\.\./'
4132 # Canonicalize the path of ld
4133 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4135 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4137 test -z "$LD" && LD="$ac_prog"
4140 # If it fails, then pretend we aren't using GCC.
4144 # If it is relative, then search for the first ld in PATH.
4148 elif test "$with_gnu_ld" = yes; then
4149 echo "$as_me:$LINENO: checking for GNU ld" >&5
4150 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4152 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4153 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4155 if test "${ac_cv_path_LD+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 if test -z "$LD"; then
4159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4160 for ac_dir in $PATH; do
4161 test -z "$ac_dir" && ac_dir=.
4162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4163 ac_cv_path_LD="$ac_dir/$ac_prog"
4164 # Check to see if the program is GNU ld. I'd rather use --version,
4165 # but apparently some GNU ld's only accept -v.
4166 # Break only if it was the GNU/non-GNU ld that we prefer.
4167 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4168 test "$with_gnu_ld" != no && break
4170 test "$with_gnu_ld" != yes && break
4176 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4181 if test -n "$LD"; then
4182 echo "$as_me:$LINENO: result: $LD" >&5
4183 echo "${ECHO_T}$LD" >&6
4185 echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4190 { (exit 1); exit 1; }; }
4191 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4193 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4197 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4198 ac_cv_prog_gnu_ld=yes
4200 ac_cv_prog_gnu_ld=no
4203 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4204 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4205 with_gnu_ld=$ac_cv_prog_gnu_ld
4210 case $host_os in sysv5*)
4211 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4212 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4213 if test "${pgac_cv_prog_ld_R+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4233 rm -f conftest.$ac_objext conftest$ac_exeext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4235 (eval $ac_link) 2>conftest.er1
4237 grep -v '^ *+' conftest.er1 >conftest.err
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest$ac_exeext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 pgac_cv_prog_ld_R=yes
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 pgac_cv_prog_ld_R=no
4262 rm -f conftest.err conftest.$ac_objext \
4263 conftest$ac_exeext conftest.$ac_ext
4264 LDFLAGS=$pgac_save_LDFLAGS
4267 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4268 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4269 ld_R_works=$pgac_cv_prog_ld_R
4272 if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_RANLIB+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$RANLIB"; then
4281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 RANLIB=$ac_cv_prog_RANLIB
4300 if test -n "$RANLIB"; then
4301 echo "$as_me:$LINENO: result: $RANLIB" >&5
4302 echo "${ECHO_T}$RANLIB" >&6
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4309 if test -z "$ac_cv_prog_RANLIB"; then
4310 ac_ct_RANLIB=$RANLIB
4311 # Extract the first word of "ranlib", so it can be a program name with args.
4312 set dummy ranlib; ac_word=$2
4313 echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 if test -n "$ac_ct_RANLIB"; then
4319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_ac_ct_RANLIB="ranlib"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4339 if test -n "$ac_ct_RANLIB"; then
4340 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4341 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4347 RANLIB=$ac_ct_RANLIB
4349 RANLIB="$ac_cv_prog_RANLIB"
4352 for ac_prog in lorder
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_LORDER+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -n "$LORDER"; then
4362 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_LORDER="$ac_prog"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 LORDER=$ac_cv_prog_LORDER
4381 if test -n "$LORDER"; then
4382 echo "$as_me:$LINENO: result: $LORDER" >&5
4383 echo "${ECHO_T}$LORDER" >&6
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 test -n "$LORDER" && break
4392 # Extract the first word of "tar", so it can be a program name with args.
4393 set dummy tar; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_path_TAR+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test -n "$TAR"; then
4424 echo "$as_me:$LINENO: result: $TAR" >&5
4425 echo "${ECHO_T}$TAR" >&6
4427 echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}strip; ac_word=$2
4435 echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_prog_STRIP+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if test -n "$STRIP"; then
4441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 STRIP=$ac_cv_prog_STRIP
4460 if test -n "$STRIP"; then
4461 echo "$as_me:$LINENO: result: $STRIP" >&5
4462 echo "${ECHO_T}$STRIP" >&6
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4469 if test -z "$ac_cv_prog_STRIP"; then
4471 # Extract the first word of "strip", so it can be a program name with args.
4472 set dummy strip; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$ac_ct_STRIP"; then
4479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_prog_ac_ct_STRIP="strip"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4499 if test -n "$ac_ct_STRIP"; then
4500 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4501 echo "${ECHO_T}$ac_ct_STRIP" >&6
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4509 STRIP="$ac_cv_prog_STRIP"
4513 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4514 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4515 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4516 STRIP_STATIC_LIB="$STRIP -x"
4517 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4518 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4530 for ac_prog in 'bison -y'
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_YACC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 if test -n "$YACC"; then
4540 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_YACC="$ac_prog"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 YACC=$ac_cv_prog_YACC
4559 if test -n "$YACC"; then
4560 echo "$as_me:$LINENO: result: $YACC" >&5
4561 echo "${ECHO_T}$YACC" >&6
4563 echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4567 test -n "$YACC" && break
4571 if test "$YACC"; then
4572 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4573 { echo "$as_me:$LINENO: WARNING:
4574 *** If you are going to modify the grammar files or build from CVS, the installed
4575 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4576 echo "$as_me: WARNING:
4577 *** If you are going to modify the grammar files or build from CVS, the installed
4578 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4582 if test -z "$YACC"; then
4583 { echo "$as_me:$LINENO: WARNING:
4584 *** Without Bison you will not be able to build PostgreSQL from CVS or
4585 *** change any of the parser definition files. You can obtain Bison from
4586 *** a GNU mirror site. (If you are using the official distribution of
4587 *** PostgreSQL then you do not need to worry about this because the Bison
4588 *** output is pre-generated.) To use a different yacc program (possible,
4589 *** but not recommended), set the environment variable YACC before running
4590 *** 'configure'." >&5
4591 echo "$as_me: WARNING:
4592 *** Without Bison you will not be able to build PostgreSQL from CVS or
4593 *** change any of the parser definition files. You can obtain Bison from
4594 *** a GNU mirror site. (If you are using the official distribution of
4595 *** PostgreSQL then you do not need to worry about this because the Bison
4596 *** output is pre-generated.) To use a different yacc program (possible,
4597 *** but not recommended), set the environment variable YACC before running
4598 *** 'configure'." >&2;}
4602 # Extract the first word of "perl", so it can be a program name with args.
4603 set dummy perl; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_path_PERL+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 PERL=$ac_cv_path_PERL
4633 if test -n "$PERL"; then
4634 echo "$as_me:$LINENO: result: $PERL" >&5
4635 echo "${ECHO_T}$PERL" >&6
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4641 if test "$with_perl" = yes; then
4643 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4644 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4645 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4646 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4647 echo "${ECHO_T}$perl_archlibexp" >&6
4648 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4649 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4650 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4651 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4652 echo "${ECHO_T}$perl_privlibexp" >&6
4653 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4654 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4655 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4656 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4657 echo "${ECHO_T}$perl_useshrplib" >&6
4659 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4660 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4661 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4662 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4663 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4664 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4665 echo "${ECHO_T}$perl_embed_ldflags" >&6
4668 if test "$with_python" = yes; then
4669 # Extract the first word of "python", so it can be a program name with args.
4670 set dummy python; ac_word=$2
4671 echo "$as_me:$LINENO: checking for $ac_word" >&5
4672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4673 if test "${ac_cv_path_PYTHON+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 PYTHON=$ac_cv_path_PYTHON
4700 if test -n "$PYTHON"; then
4701 echo "$as_me:$LINENO: result: $PYTHON" >&5
4702 echo "${ECHO_T}$PYTHON" >&6
4704 echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6
4708 if test x"$PYTHON" = x""; then
4709 { { echo "$as_me:$LINENO: error: Python not found" >&5
4710 echo "$as_me: error: Python not found" >&2;}
4711 { (exit 1); exit 1; }; }
4715 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4716 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4717 if "${PYTHON}" 2>&- -c 'import distutils'
4719 echo "$as_me:$LINENO: result: yes" >&5
4720 echo "${ECHO_T}yes" >&6
4722 echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4724 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4725 echo "$as_me: error: distutils module not found" >&2;}
4726 { (exit 1); exit 1; }; }
4728 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4729 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4730 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4731 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')"`
4732 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4734 # This should be enough of a message.
4735 echo "$as_me:$LINENO: result: $python_configdir" >&5
4736 echo "${ECHO_T}$python_configdir" >&6
4739 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4740 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4742 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4743 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4744 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4745 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4747 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4749 # New way: use the official shared library
4750 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4751 python_libspec="-L${python_libdir} -l${ldlibrary}"
4753 # Old way: use libpython from python_configdir
4754 python_libdir="${python_configdir}"
4755 python_libspec="-L${python_libdir} -lpython${python_version}"
4758 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4760 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4761 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4764 # threaded python is not supported on bsd's
4765 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4766 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4767 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4768 if test "$pythreads" = "1"; then
4769 echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6
4773 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4774 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4775 { (exit 1); exit 1; }; }
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4786 # Supply a numeric version string for use by 3rd party add-ons
4787 # awk -F is a regex on some platforms, and not on others, so make "." a tab
4788 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4790 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4792 cat >>confdefs.h <<_ACEOF
4793 #define PG_VERSION_NUM $PG_VERSION_NUM
4801 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4802 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4803 if test "${ac_cv_search_setproctitle+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_func_search_save_LIBS=$LIBS
4807 ac_cv_search_setproctitle=no
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4815 /* Override any gcc2 internal prototype to avoid an error. */
4819 /* We use char because int might match the return type of a gcc2
4820 builtin and then its argument prototype would still apply. */
4821 char setproctitle ();
4830 rm -f conftest.$ac_objext conftest$ac_exeext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4832 (eval $ac_link) 2>conftest.er1
4834 grep -v '^ *+' conftest.er1 >conftest.err
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -z "$ac_c_werror_flag"
4840 || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try='test -s conftest$ac_exeext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_search_setproctitle="none required"
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4858 rm -f conftest.err conftest.$ac_objext \
4859 conftest$ac_exeext conftest.$ac_ext
4860 if test "$ac_cv_search_setproctitle" = no; then
4861 for ac_lib in util; do
4862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876 char setproctitle ();
4885 rm -f conftest.$ac_objext conftest$ac_exeext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887 (eval $ac_link) 2>conftest.er1
4889 grep -v '^ *+' conftest.er1 >conftest.err
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -z "$ac_c_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try='test -s conftest$ac_exeext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_cv_search_setproctitle="-l$ac_lib"
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4914 rm -f conftest.err conftest.$ac_objext \
4915 conftest$ac_exeext conftest.$ac_ext
4918 LIBS=$ac_func_search_save_LIBS
4920 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4921 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4922 if test "$ac_cv_search_setproctitle" != no; then
4923 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4927 echo "$as_me:$LINENO: checking for library containing pow" >&5
4928 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4929 if test "${ac_cv_search_pow+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 ac_func_search_save_LIBS=$LIBS
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4941 /* Override any gcc2 internal prototype to avoid an error. */
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_search_pow="none required"
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4986 if test "$ac_cv_search_pow" = no; then
4988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4996 /* Override any gcc2 internal prototype to avoid an error. */
5000 /* We use char because int might match the return type of a gcc2
5001 builtin and then its argument prototype would still apply. */
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013 (eval $ac_link) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest$ac_exeext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_cv_search_pow="-l$ac_lib"
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5040 rm -f conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5044 LIBS=$ac_func_search_save_LIBS
5046 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5047 echo "${ECHO_T}$ac_cv_search_pow" >&6
5048 if test "$ac_cv_search_pow" != no; then
5049 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5053 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5054 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5055 if test "${ac_cv_search_dlopen+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_func_search_save_LIBS=$LIBS
5059 ac_cv_search_dlopen=no
5060 cat >conftest.$ac_ext <<_ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5067 /* Override any gcc2 internal prototype to avoid an error. */
5071 /* We use char because int might match the return type of a gcc2
5072 builtin and then its argument prototype would still apply. */
5082 rm -f conftest.$ac_objext conftest$ac_exeext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084 (eval $ac_link) 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -z "$ac_c_werror_flag"
5092 || test ! -s conftest.err'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; } &&
5098 { ac_try='test -s conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_cv_search_dlopen="none required"
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5110 rm -f conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 if test "$ac_cv_search_dlopen" = no; then
5113 for ac_lib in dl; do
5114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5122 /* Override any gcc2 internal prototype to avoid an error. */
5126 /* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5137 rm -f conftest.$ac_objext conftest$ac_exeext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5139 (eval $ac_link) 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_c_werror_flag"
5147 || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try='test -s conftest$ac_exeext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_search_dlopen="-l$ac_lib"
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5166 rm -f conftest.err conftest.$ac_objext \
5167 conftest$ac_exeext conftest.$ac_ext
5170 LIBS=$ac_func_search_save_LIBS
5172 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5173 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5174 if test "$ac_cv_search_dlopen" != no; then
5175 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5179 echo "$as_me:$LINENO: checking for library containing socket" >&5
5180 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5181 if test "${ac_cv_search_socket+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 ac_func_search_save_LIBS=$LIBS
5185 ac_cv_search_socket=no
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_search_socket="none required"
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5236 rm -f conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 if test "$ac_cv_search_socket" = no; then
5239 for ac_lib in socket wsock32; do
5240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5248 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag"
5273 || test ! -s conftest.err'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_search_socket="-l$ac_lib"
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5292 rm -f conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_func_search_save_LIBS
5298 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5299 echo "${ECHO_T}$ac_cv_search_socket" >&6
5300 if test "$ac_cv_search_socket" != no; then
5301 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5305 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5306 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5307 if test "${ac_cv_search_shl_load+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 ac_func_search_save_LIBS=$LIBS
5311 ac_cv_search_shl_load=no
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5319 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>conftest.er1
5338 grep -v '^ *+' conftest.er1 >conftest.err
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -z "$ac_c_werror_flag"
5344 || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_search_shl_load="none required"
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5364 if test "$ac_cv_search_shl_load" = no; then
5365 for ac_lib in dld; do
5366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_search_shl_load="-l$ac_lib"
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5418 rm -f conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_func_search_save_LIBS
5424 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5425 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5426 if test "$ac_cv_search_shl_load" != no; then
5427 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5431 # We only use libld in port/dynloader/aix.c
5434 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5435 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5436 if test "${ac_cv_search_ldopen+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_func_search_save_LIBS=$LIBS
5440 ac_cv_search_ldopen=no
5441 cat >conftest.$ac_ext <<_ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5448 /* Override any gcc2 internal prototype to avoid an error. */
5452 /* We use char because int might match the return type of a gcc2
5453 builtin and then its argument prototype would still apply. */
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465 (eval $ac_link) 2>conftest.er1
5467 grep -v '^ *+' conftest.er1 >conftest.err
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -z "$ac_c_werror_flag"
5473 || test ! -s conftest.err'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; } &&
5479 { ac_try='test -s conftest$ac_exeext'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5485 ac_cv_search_ldopen="none required"
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5491 rm -f conftest.err conftest.$ac_objext \
5492 conftest$ac_exeext conftest.$ac_ext
5493 if test "$ac_cv_search_ldopen" = no; then
5494 for ac_lib in ld; do
5495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5503 /* Override any gcc2 internal prototype to avoid an error. */
5507 /* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5518 rm -f conftest.$ac_objext conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_c_werror_flag"
5528 || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_search_ldopen="-l$ac_lib"
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5547 rm -f conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext conftest.$ac_ext
5551 LIBS=$ac_func_search_save_LIBS
5553 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5554 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5555 if test "$ac_cv_search_ldopen" != no; then
5556 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5562 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5563 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5564 if test "${ac_cv_search_getopt_long+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 ac_func_search_save_LIBS=$LIBS
5568 ac_cv_search_getopt_long=no
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5576 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5582 char getopt_long ();
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest$ac_exeext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_search_getopt_long="none required"
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5619 rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 if test "$ac_cv_search_getopt_long" = no; then
5622 for ac_lib in getopt gnugetopt; do
5623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5631 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5637 char getopt_long ();
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>conftest.er1
5650 grep -v '^ *+' conftest.er1 >conftest.err
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_search_getopt_long="-l$ac_lib"
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5679 LIBS=$ac_func_search_save_LIBS
5681 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5682 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5683 if test "$ac_cv_search_getopt_long" != no; then
5684 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5688 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5689 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5690 if test "${ac_cv_search_crypt+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 ac_func_search_save_LIBS=$LIBS
5694 ac_cv_search_crypt=no
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_search_crypt="none required"
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5747 if test "$ac_cv_search_crypt" = no; then
5748 for ac_lib in crypt; do
5749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5757 /* Override any gcc2 internal prototype to avoid an error. */
5761 /* We use char because int might match the return type of a gcc2
5762 builtin and then its argument prototype would still apply. */
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774 (eval $ac_link) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_search_crypt="-l$ac_lib"
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5801 rm -f conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext
5805 LIBS=$ac_func_search_save_LIBS
5807 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5808 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5809 if test "$ac_cv_search_crypt" != no; then
5810 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5815 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5816 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5817 if test "${ac_cv_search_fdatasync+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 ac_func_search_save_LIBS=$LIBS
5821 ac_cv_search_fdatasync=no
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5829 /* Override any gcc2 internal prototype to avoid an error. */
5833 /* We use char because int might match the return type of a gcc2
5834 builtin and then its argument prototype would still apply. */
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -z "$ac_c_werror_flag"
5854 || test ! -s conftest.err'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest$ac_exeext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 ac_cv_search_fdatasync="none required"
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5872 rm -f conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5874 if test "$ac_cv_search_fdatasync" = no; then
5875 for ac_lib in rt posix4; do
5876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_search_fdatasync="-l$ac_lib"
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_func_search_save_LIBS
5934 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5935 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5936 if test "$ac_cv_search_fdatasync" != no; then
5937 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5942 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5943 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5944 if test "${ac_cv_search_shmget+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_func_search_save_LIBS=$LIBS
5948 ac_cv_search_shmget=no
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5956 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973 (eval $ac_link) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest$ac_exeext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_search_shmget="none required"
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5999 rm -f conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 if test "$ac_cv_search_shmget" = no; then
6002 for ac_lib in cygipc; do
6003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6004 cat >conftest.$ac_ext <<_ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6011 /* Override any gcc2 internal prototype to avoid an error. */
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028 (eval $ac_link) 2>conftest.er1
6030 grep -v '^ *+' conftest.er1 >conftest.err
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -z "$ac_c_werror_flag"
6036 || test ! -s conftest.err'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; } &&
6042 { ac_try='test -s conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_search_shmget="-l$ac_lib"
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6055 rm -f conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6059 LIBS=$ac_func_search_save_LIBS
6061 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6062 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6063 if test "$ac_cv_search_shmget" != no; then
6064 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6069 if test "$with_readline" = yes; then
6072 if test "${pgac_cv_check_readline+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 pgac_cv_check_readline=no
6076 pgac_save_LIBS=$LIBS
6077 if test x"$with_libedit_preferred" != x"yes"
6078 then READLINE_ORDER="-lreadline -ledit"
6079 else READLINE_ORDER="-ledit -lreadline"
6081 for pgac_rllib in $READLINE_ORDER ; do
6082 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6083 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6084 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6085 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6131 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6132 # recognize dependent libraries; assume curses is needed if we didn't
6133 # find any dependency.
6135 netbsd* | openbsd* | irix*)
6136 if test x"$pgac_lib" = x"" ; then
6137 pgac_lib=" -lcurses"
6141 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6149 rm -f conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6152 if test "$pgac_cv_check_readline" != no ; then
6153 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6154 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6157 echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6
6161 LIBS=$pgac_save_LIBS
6165 if test "$pgac_cv_check_readline" != no ; then
6166 LIBS="$pgac_cv_check_readline $LIBS"
6168 cat >>confdefs.h <<\_ACEOF
6169 #define HAVE_LIBREADLINE 1
6175 if test x"$pgac_cv_check_readline" = x"no"; then
6176 { { echo "$as_me:$LINENO: error: readline library not found
6177 If you have readline already installed, see config.log for details on the
6178 failure. It is possible the compiler isn't looking in the proper directory.
6179 Use --without-readline to disable readline support." >&5
6180 echo "$as_me: error: readline library not found
6181 If you have readline already installed, see config.log for details on the
6182 failure. It is possible the compiler isn't looking in the proper directory.
6183 Use --without-readline to disable readline support." >&2;}
6184 { (exit 1); exit 1; }; }
6188 if test "$with_zlib" = yes; then
6190 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6191 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6192 if test "${ac_cv_lib_z_inflate+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_check_lib_save_LIBS=$LIBS
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221 (eval $ac_link) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_z_inflate=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_lib_z_inflate=no
6248 rm -f conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6252 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6253 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6254 if test $ac_cv_lib_z_inflate = yes; then
6255 cat >>confdefs.h <<_ACEOF
6262 { { echo "$as_me:$LINENO: error: zlib library not found
6263 If you have zlib already installed, see config.log for details on the
6264 failure. It is possible the compiler isn't looking in the proper directory.
6265 Use --without-zlib to disable zlib support." >&5
6266 echo "$as_me: error: zlib library not found
6267 If you have zlib already installed, see config.log for details on the
6268 failure. It is possible the compiler isn't looking in the proper directory.
6269 Use --without-zlib to disable zlib support." >&2;}
6270 { (exit 1); exit 1; }; }
6275 if test "$enable_spinlocks" = yes; then
6277 cat >>confdefs.h <<\_ACEOF
6278 #define HAVE_SPINLOCKS 1
6282 { echo "$as_me:$LINENO: WARNING:
6283 *** Not using spinlocks will cause poor performance." >&5
6284 echo "$as_me: WARNING:
6285 *** Not using spinlocks will cause poor performance." >&2;}
6288 if test "$with_krb5" = yes ; then
6289 if test "$PORTNAME" != "win32"; then
6290 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6291 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6292 if test "${ac_cv_search_com_err+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 ac_func_search_save_LIBS=$LIBS
6296 ac_cv_search_com_err=no
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_search_com_err="none required"
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6349 if test "$ac_cv_search_com_err" = no; then
6350 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6359 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
6383 { ac_try='test -z "$ac_c_werror_flag"
6384 || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest$ac_exeext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_cv_search_com_err="-l$ac_lib"
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6403 rm -f conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6407 LIBS=$ac_func_search_save_LIBS
6409 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6410 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6411 if test "$ac_cv_search_com_err" != no; then
6412 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6415 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6416 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6417 { (exit 1); exit 1; }; }
6420 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6421 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6422 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 ac_func_search_save_LIBS=$LIBS
6426 ac_cv_search_krb5_encrypt=no
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6434 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6440 char krb5_encrypt ();
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_search_krb5_encrypt="none required"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6477 rm -f conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6479 if test "$ac_cv_search_krb5_encrypt" = no; then
6480 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6489 /* Override any gcc2 internal prototype to avoid an error. */
6493 /* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */
6495 char krb5_encrypt ();
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506 (eval $ac_link) 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -z "$ac_c_werror_flag"
6514 || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest$ac_exeext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 ac_cv_search_krb5_encrypt="-l$ac_lib"
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6533 rm -f conftest.err conftest.$ac_objext \
6534 conftest$ac_exeext conftest.$ac_ext
6537 LIBS=$ac_func_search_save_LIBS
6539 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6540 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6541 if test "$ac_cv_search_krb5_encrypt" != no; then
6542 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6545 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6546 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6547 { (exit 1); exit 1; }; }
6550 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6551 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6552 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_func_search_save_LIBS=$LIBS
6556 ac_cv_search_krb5_sendauth=no
6557 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6564 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char krb5_sendauth ();
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>conftest.er1
6583 grep -v '^ *+' conftest.er1 >conftest.err
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_cv_search_krb5_sendauth="none required"
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
6609 if test "$ac_cv_search_krb5_sendauth" = no; then
6610 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6619 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char krb5_sendauth ();
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_cv_search_krb5_sendauth="-l$ac_lib"
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -f conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6667 LIBS=$ac_func_search_save_LIBS
6669 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6670 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6671 if test "$ac_cv_search_krb5_sendauth" != no; then
6672 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6675 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6676 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6677 { (exit 1); exit 1; }; }
6681 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6682 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6683 if test "${ac_cv_search_com_err+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_func_search_save_LIBS=$LIBS
6687 ac_cv_search_com_err=no
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6695 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6710 rm -f conftest.$ac_objext conftest$ac_exeext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712 (eval $ac_link) 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -z "$ac_c_werror_flag"
6720 || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest$ac_exeext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_search_com_err="none required"
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6738 rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 if test "$ac_cv_search_com_err" = no; then
6741 for ac_lib in 'comerr32 -lkrb5_32'; do
6742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_search_com_err="-l$ac_lib"
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6794 rm -f conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_func_search_save_LIBS
6800 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6801 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6802 if test "$ac_cv_search_com_err" != no; then
6803 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6806 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6807 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6808 { (exit 1); exit 1; }; }
6814 if test "$with_openssl" = yes ; then
6815 if test "$PORTNAME" != "win32"; then
6817 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6818 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6819 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_check_lib_save_LIBS=$LIBS
6823 LIBS="-lcrypto $LIBS"
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6831 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6837 char CRYPTO_new_ex_data ();
6841 CRYPTO_new_ex_data ();
6846 rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6848 (eval $ac_link) 2>conftest.er1
6850 grep -v '^ *+' conftest.er1 >conftest.err
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -z "$ac_c_werror_flag"
6856 || test ! -s conftest.err'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try='test -s conftest$ac_exeext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6875 rm -f conftest.err conftest.$ac_objext \
6876 conftest$ac_exeext conftest.$ac_ext
6877 LIBS=$ac_check_lib_save_LIBS
6879 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6880 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6881 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_LIBCRYPTO 1
6886 LIBS="-lcrypto $LIBS"
6889 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6890 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6891 { (exit 1); exit 1; }; }
6895 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6896 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6897 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 ac_check_lib_save_LIBS=$LIBS
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6909 /* Override any gcc2 internal prototype to avoid an error. */
6913 /* We use char because int might match the return type of a gcc2
6914 builtin and then its argument prototype would still apply. */
6915 char SSL_library_init ();
6919 SSL_library_init ();
6924 rm -f conftest.$ac_objext conftest$ac_exeext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6926 (eval $ac_link) 2>conftest.er1
6928 grep -v '^ *+' conftest.er1 >conftest.err
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
6933 { ac_try='test -z "$ac_c_werror_flag"
6934 || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try='test -s conftest$ac_exeext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 ac_cv_lib_ssl_SSL_library_init=yes
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 ac_cv_lib_ssl_SSL_library_init=no
6953 rm -f conftest.err conftest.$ac_objext \
6954 conftest$ac_exeext conftest.$ac_ext
6955 LIBS=$ac_check_lib_save_LIBS
6957 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6958 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6959 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define HAVE_LIBSSL 1
6967 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6968 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6969 { (exit 1); exit 1; }; }
6974 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6975 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6976 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_check_lib_save_LIBS=$LIBS
6980 LIBS="-leay32 $LIBS"
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6988 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char CRYPTO_new_ex_data ();
6998 CRYPTO_new_ex_data ();
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7007 grep -v '^ *+' conftest.er1 >conftest.err
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 LIBS=$ac_check_lib_save_LIBS
7036 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7037 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7038 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7039 cat >>confdefs.h <<_ACEOF
7040 #define HAVE_LIBEAY32 1
7043 LIBS="-leay32 $LIBS"
7046 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7047 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7048 { (exit 1); exit 1; }; }
7052 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7053 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7054 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 ac_check_lib_save_LIBS=$LIBS
7058 LIBS="-lssleay32 $LIBS"
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7066 /* Override any gcc2 internal prototype to avoid an error. */
7070 /* We use char because int might match the return type of a gcc2
7071 builtin and then its argument prototype would still apply. */
7072 char SSL_library_init ();
7076 SSL_library_init ();
7081 rm -f conftest.$ac_objext conftest$ac_exeext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>conftest.er1
7085 grep -v '^ *+' conftest.er1 >conftest.err
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -z "$ac_c_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest$ac_exeext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_lib_ssleay32_SSL_library_init=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_lib_ssleay32_SSL_library_init=no
7110 rm -f conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7112 LIBS=$ac_check_lib_save_LIBS
7114 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7115 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7116 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7117 cat >>confdefs.h <<_ACEOF
7118 #define HAVE_LIBSSLEAY32 1
7121 LIBS="-lssleay32 $LIBS"
7124 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7125 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7126 { (exit 1); exit 1; }; }
7132 if test "$with_pam" = yes ; then
7134 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7135 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7136 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_check_lib_save_LIBS=$LIBS
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7148 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>conftest.er1
7167 grep -v '^ *+' conftest.er1 >conftest.err
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -z "$ac_c_werror_flag"
7173 || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest$ac_exeext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_cv_lib_pam_pam_start=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_lib_pam_pam_start=no
7192 rm -f conftest.err conftest.$ac_objext \
7193 conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_check_lib_save_LIBS
7196 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7197 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7198 if test $ac_cv_lib_pam_pam_start = yes; then
7199 cat >>confdefs.h <<_ACEOF
7200 #define HAVE_LIBPAM 1
7206 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7207 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7208 { (exit 1); exit 1; }; }
7214 if test "$with_ldap" = yes ; then
7215 if test "$PORTNAME" != "win32"; then
7217 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
7218 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
7219 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_check_lib_save_LIBS=$LIBS
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248 (eval $ac_link) 2>conftest.er1
7250 grep -v '^ *+' conftest.er1 >conftest.err
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -z "$ac_c_werror_flag"
7256 || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest$ac_exeext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7268 ac_cv_lib_ldap_ldap_bind=yes
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 ac_cv_lib_ldap_ldap_bind=no
7275 rm -f conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 LIBS=$ac_check_lib_save_LIBS
7279 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
7280 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
7281 if test $ac_cv_lib_ldap_ldap_bind = yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define HAVE_LIBLDAP 1
7289 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
7290 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
7291 { (exit 1); exit 1; }; }
7296 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
7297 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
7298 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 ac_check_lib_save_LIBS=$LIBS
7302 LIBS="-lwldap32 $LIBS"
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7310 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7325 rm -f conftest.$ac_objext conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327 (eval $ac_link) 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -z "$ac_c_werror_flag"
7335 || test ! -s conftest.err'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; } &&
7341 { ac_try='test -s conftest$ac_exeext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_cv_lib_wldap32_ldap_bind=yes
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_cv_lib_wldap32_ldap_bind=no
7354 rm -f conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 LIBS=$ac_check_lib_save_LIBS
7358 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
7359 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
7360 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
7361 cat >>confdefs.h <<_ACEOF
7362 #define HAVE_LIBWLDAP32 1
7365 LIBS="-lwldap32 $LIBS"
7368 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
7369 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
7370 { (exit 1); exit 1; }; }
7380 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7381 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7382 if test "${ac_cv_header_stdc+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>conftest.er1
7408 grep -v '^ *+' conftest.er1 >conftest.err
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_c_werror_flag"
7414 || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_header_stdc=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_cv_header_stdc=no
7433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7435 if test $ac_cv_header_stdc = yes; then
7436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7447 $EGREP "memchr" >/dev/null 2>&1; then
7450 ac_cv_header_stdc=no
7456 if test $ac_cv_header_stdc = yes; then
7457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7468 $EGREP "free" >/dev/null 2>&1; then
7471 ac_cv_header_stdc=no
7477 if test $ac_cv_header_stdc = yes; then
7478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7479 if test "$cross_compiling" = yes; then
7482 cat >conftest.$ac_ext <<_ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7489 #if ((' ' & 0x0FF) == 0x020)
7490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7493 # define ISLOWER(c) \
7494 (('a' <= (c) && (c) <= 'i') \
7495 || ('j' <= (c) && (c) <= 'r') \
7496 || ('s' <= (c) && (c) <= 'z'))
7497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7505 for (i = 0; i < 256; i++)
7506 if (XOR (islower (i), ISLOWER (i))
7507 || toupper (i) != TOUPPER (i))
7512 rm -f conftest$ac_exeext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7514 (eval $ac_link) 2>&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7525 echo "$as_me: program exited with status $ac_status" >&5
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_cv_header_stdc=no
7532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7537 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7538 if test $ac_cv_header_stdc = yes; then
7540 cat >>confdefs.h <<\_ACEOF
7541 #define STDC_HEADERS 1
7546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7557 inttypes.h stdint.h unistd.h
7559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7560 echo "$as_me:$LINENO: checking for $ac_header" >&5
7561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7573 #include <$ac_header>
7575 rm -f conftest.$ac_objext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7577 (eval $ac_compile) 2>conftest.er1
7579 grep -v '^ *+' conftest.er1 >conftest.err
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag"
7585 || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 eval "$as_ac_Header=yes"
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 eval "$as_ac_Header=no"
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7643 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7647 echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7655 # Is the header compilable?
7656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 $ac_includes_default
7665 #include <$ac_header>
7667 rm -f conftest.$ac_objext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7669 (eval $ac_compile) 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag"
7677 || test ! -s conftest.err'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_header_compiler=yes
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_header_compiler=no
7696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7698 echo "${ECHO_T}$ac_header_compiler" >&6
7700 # Is the header present?
7701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <$ac_header>
7711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } >/dev/null; then
7719 if test -s conftest.err; then
7720 ac_cpp_err=$ac_c_preproc_warn_flag
7721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7728 if test -z "$ac_cpp_err"; then
7729 ac_header_preproc=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_header_preproc=no
7736 rm -f conftest.err conftest.$ac_ext
7737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7738 echo "${ECHO_T}$ac_header_preproc" >&6
7740 # So? What about this header?
7741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7747 ac_header_preproc=yes
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7764 ## ---------------------------------------- ##
7765 ## Report this to pgsql-bugs@postgresql.org ##
7766 ## ---------------------------------------- ##
7769 sed "s/^/$as_me: WARNING: /" >&2
7772 echo "$as_me:$LINENO: checking for $ac_header" >&5
7773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 eval "$as_ac_Header=\$ac_header_preproc"
7779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7793 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7794 # netinet/in.h is included first.
7796 for ac_header in netinet/in.h
7798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800 echo "$as_me:$LINENO: checking for $ac_header" >&5
7801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7808 # Is the header compilable?
7809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7818 #include <$ac_header>
7820 rm -f conftest.$ac_objext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_header_compiler=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_header_compiler=no
7849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7851 echo "${ECHO_T}$ac_header_compiler" >&6
7853 # Is the header present?
7854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <$ac_header>
7864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } >/dev/null; then
7872 if test -s conftest.err; then
7873 ac_cpp_err=$ac_c_preproc_warn_flag
7874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7881 if test -z "$ac_cpp_err"; then
7882 ac_header_preproc=yes
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_header_preproc=no
7889 rm -f conftest.err conftest.$ac_ext
7890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7891 echo "${ECHO_T}$ac_header_preproc" >&6
7893 # So? What about this header?
7894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7900 ac_header_preproc=yes
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7917 ## ---------------------------------------- ##
7918 ## Report this to pgsql-bugs@postgresql.org ##
7919 ## ---------------------------------------- ##
7922 sed "s/^/$as_me: WARNING: /" >&2
7925 echo "$as_me:$LINENO: checking for $ac_header" >&5
7926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 eval "$as_ac_Header=\$ac_header_preproc"
7932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 for ac_header in netinet/tcp.h
7948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7949 echo "$as_me:$LINENO: checking for $ac_header" >&5
7950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 $ac_includes_default
7961 #ifdef HAVE_NETINET_IN_H
7962 #include <netinet/in.h>
7966 #include <$ac_header>
7968 rm -f conftest.$ac_objext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7970 (eval $ac_compile) 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -z "$ac_c_werror_flag"
7978 || test ! -s conftest.err'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 eval "$as_ac_Header=yes"
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 eval "$as_ac_Header=no"
7997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8002 cat >>confdefs.h <<_ACEOF
8003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8011 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8013 for ac_header in readline/readline.h
8015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017 echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8025 # Is the header compilable?
8026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_includes_default
8035 #include <$ac_header>
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag"
8047 || test ! -s conftest.err'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest.$ac_objext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 ac_header_compiler=yes
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_header_compiler=no
8066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8068 echo "${ECHO_T}$ac_header_compiler" >&6
8070 # Is the header present?
8071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079 #include <$ac_header>
8081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } >/dev/null; then
8089 if test -s conftest.err; then
8090 ac_cpp_err=$ac_c_preproc_warn_flag
8091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8098 if test -z "$ac_cpp_err"; then
8099 ac_header_preproc=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_header_preproc=no
8106 rm -f conftest.err conftest.$ac_ext
8107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8108 echo "${ECHO_T}$ac_header_preproc" >&6
8110 # So? What about this header?
8111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8117 ac_header_preproc=yes
8120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8134 ## ---------------------------------------- ##
8135 ## Report this to pgsql-bugs@postgresql.org ##
8136 ## ---------------------------------------- ##
8139 sed "s/^/$as_me: WARNING: /" >&2
8142 echo "$as_me:$LINENO: checking for $ac_header" >&5
8143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 eval "$as_ac_Header=\$ac_header_preproc"
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160 for ac_header in readline.h
8162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8164 echo "$as_me:$LINENO: checking for $ac_header" >&5
8165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8172 # Is the header compilable?
8173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 #include <$ac_header>
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag"
8194 || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_header_compiler=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_header_compiler=no
8213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8215 echo "${ECHO_T}$ac_header_compiler" >&6
8217 # Is the header present?
8218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 #include <$ac_header>
8228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } >/dev/null; then
8236 if test -s conftest.err; then
8237 ac_cpp_err=$ac_c_preproc_warn_flag
8238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8245 if test -z "$ac_cpp_err"; then
8246 ac_header_preproc=yes
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ac_header_preproc=no
8253 rm -f conftest.err conftest.$ac_ext
8254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8255 echo "${ECHO_T}$ac_header_preproc" >&6
8257 # So? What about this header?
8258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8264 ac_header_preproc=yes
8267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8281 ## ---------------------------------------- ##
8282 ## Report this to pgsql-bugs@postgresql.org ##
8283 ## ---------------------------------------- ##
8286 sed "s/^/$as_me: WARNING: /" >&2
8289 echo "$as_me:$LINENO: checking for $ac_header" >&5
8290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 eval "$as_ac_Header=\$ac_header_preproc"
8296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8301 cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 { { echo "$as_me:$LINENO: error: readline header not found
8307 If you have readline already installed, see config.log for details on the
8308 failure. It is possible the compiler isn't looking in the proper directory.
8309 Use --without-readline to disable readline support." >&5
8310 echo "$as_me: error: readline header not found
8311 If you have readline already installed, see config.log for details on the
8312 failure. It is possible the compiler isn't looking in the proper directory.
8313 Use --without-readline to disable readline support." >&2;}
8314 { (exit 1); exit 1; }; }
8324 for ac_header in readline/history.h
8326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8328 echo "$as_me:$LINENO: checking for $ac_header" >&5
8329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8336 # Is the header compilable?
8337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 #include <$ac_header>
8348 rm -f conftest.$ac_objext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8350 (eval $ac_compile) 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag"
8358 || test ! -s conftest.err'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; } &&
8364 { ac_try='test -s conftest.$ac_objext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_header_compiler=yes
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_header_compiler=no
8377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8379 echo "${ECHO_T}$ac_header_compiler" >&6
8381 # Is the header present?
8382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 #include <$ac_header>
8392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } >/dev/null; then
8400 if test -s conftest.err; then
8401 ac_cpp_err=$ac_c_preproc_warn_flag
8402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8409 if test -z "$ac_cpp_err"; then
8410 ac_header_preproc=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_header_preproc=no
8417 rm -f conftest.err conftest.$ac_ext
8418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8419 echo "${ECHO_T}$ac_header_preproc" >&6
8421 # So? What about this header?
8422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8428 ac_header_preproc=yes
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8445 ## ---------------------------------------- ##
8446 ## Report this to pgsql-bugs@postgresql.org ##
8447 ## ---------------------------------------- ##
8450 sed "s/^/$as_me: WARNING: /" >&2
8453 echo "$as_me:$LINENO: checking for $ac_header" >&5
8454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 eval "$as_ac_Header=\$ac_header_preproc"
8460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8465 cat >>confdefs.h <<_ACEOF
8466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8471 for ac_header in history.h
8473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475 echo "$as_me:$LINENO: checking for $ac_header" >&5
8476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8483 # Is the header compilable?
8484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 #include <$ac_header>
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag"
8505 || test ! -s conftest.err'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest.$ac_objext'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_header_compiler=yes
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ac_header_compiler=no
8524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8526 echo "${ECHO_T}$ac_header_compiler" >&6
8528 # Is the header present?
8529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8531 cat >conftest.$ac_ext <<_ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 #include <$ac_header>
8539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } >/dev/null; then
8547 if test -s conftest.err; then
8548 ac_cpp_err=$ac_c_preproc_warn_flag
8549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8556 if test -z "$ac_cpp_err"; then
8557 ac_header_preproc=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_header_preproc=no
8564 rm -f conftest.err conftest.$ac_ext
8565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6
8568 # So? What about this header?
8569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8575 ac_header_preproc=yes
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8592 ## ---------------------------------------- ##
8593 ## Report this to pgsql-bugs@postgresql.org ##
8594 ## ---------------------------------------- ##
8597 sed "s/^/$as_me: WARNING: /" >&2
8600 echo "$as_me:$LINENO: checking for $ac_header" >&5
8601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 eval "$as_ac_Header=\$ac_header_preproc"
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612 cat >>confdefs.h <<_ACEOF
8613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 { { echo "$as_me:$LINENO: error: history header not found
8618 If you have readline already installed, see config.log for details on the
8619 failure. It is possible the compiler isn't looking in the proper directory.
8620 Use --without-readline to disable readline support." >&5
8621 echo "$as_me: error: history header not found
8622 If you have readline already installed, see config.log for details on the
8623 failure. It is possible the compiler isn't looking in the proper directory.
8624 Use --without-readline to disable readline support." >&2;}
8625 { (exit 1); exit 1; }; }
8636 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8637 # Some installations of libedit usurp /usr/include/readline/, which seems
8638 # bad practice, since in combined installations readline will have its headers
8639 # there. We might have to resort to AC_EGREP checks to make sure we found
8640 # the proper header...
8642 for ac_header in editline/readline.h
8644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8646 echo "$as_me:$LINENO: checking for $ac_header" >&5
8647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8654 # Is the header compilable?
8655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8664 #include <$ac_header>
8666 rm -f conftest.$ac_objext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668 (eval $ac_compile) 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -z "$ac_c_werror_flag"
8676 || test ! -s conftest.err'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; } &&
8682 { ac_try='test -s conftest.$ac_objext'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_header_compiler=yes
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 ac_header_compiler=no
8695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8697 echo "${ECHO_T}$ac_header_compiler" >&6
8699 # Is the header present?
8700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 #include <$ac_header>
8710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } >/dev/null; then
8718 if test -s conftest.err; then
8719 ac_cpp_err=$ac_c_preproc_warn_flag
8720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8727 if test -z "$ac_cpp_err"; then
8728 ac_header_preproc=yes
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_header_preproc=no
8735 rm -f conftest.err conftest.$ac_ext
8736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8737 echo "${ECHO_T}$ac_header_preproc" >&6
8739 # So? What about this header?
8740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8746 ac_header_preproc=yes
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8763 ## ---------------------------------------- ##
8764 ## Report this to pgsql-bugs@postgresql.org ##
8765 ## ---------------------------------------- ##
8768 sed "s/^/$as_me: WARNING: /" >&2
8771 echo "$as_me:$LINENO: checking for $ac_header" >&5
8772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 eval "$as_ac_Header=\$ac_header_preproc"
8778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8783 cat >>confdefs.h <<_ACEOF
8784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 for ac_header in readline.h
8791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8793 echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8801 # Is the header compilable?
8802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 $ac_includes_default
8811 #include <$ac_header>
8813 rm -f conftest.$ac_objext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815 (eval $ac_compile) 2>conftest.er1
8817 grep -v '^ *+' conftest.er1 >conftest.err
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -z "$ac_c_werror_flag"
8823 || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest.$ac_objext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_header_compiler=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_header_compiler=no
8842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8844 echo "${ECHO_T}$ac_header_compiler" >&6
8846 # Is the header present?
8847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <$ac_header>
8857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } >/dev/null; then
8865 if test -s conftest.err; then
8866 ac_cpp_err=$ac_c_preproc_warn_flag
8867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8874 if test -z "$ac_cpp_err"; then
8875 ac_header_preproc=yes
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 ac_header_preproc=no
8882 rm -f conftest.err conftest.$ac_ext
8883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8884 echo "${ECHO_T}$ac_header_preproc" >&6
8886 # So? What about this header?
8887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8893 ac_header_preproc=yes
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8910 ## ---------------------------------------- ##
8911 ## Report this to pgsql-bugs@postgresql.org ##
8912 ## ---------------------------------------- ##
8915 sed "s/^/$as_me: WARNING: /" >&2
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 eval "$as_ac_Header=\$ac_header_preproc"
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8930 cat >>confdefs.h <<_ACEOF
8931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936 for ac_header in readline/readline.h
8938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo "$as_me:$LINENO: checking for $ac_header" >&5
8941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948 # Is the header compilable?
8949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 #include <$ac_header>
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_header_compiler=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_header_compiler=no
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8991 echo "${ECHO_T}$ac_header_compiler" >&6
8993 # Is the header present?
8994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 #include <$ac_header>
9004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } >/dev/null; then
9012 if test -s conftest.err; then
9013 ac_cpp_err=$ac_c_preproc_warn_flag
9014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9021 if test -z "$ac_cpp_err"; then
9022 ac_header_preproc=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_header_preproc=no
9029 rm -f conftest.err conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6
9033 # So? What about this header?
9034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9040 ac_header_preproc=yes
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9057 ## ---------------------------------------- ##
9058 ## Report this to pgsql-bugs@postgresql.org ##
9059 ## ---------------------------------------- ##
9062 sed "s/^/$as_me: WARNING: /" >&2
9065 echo "$as_me:$LINENO: checking for $ac_header" >&5
9066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 eval "$as_ac_Header=\$ac_header_preproc"
9072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9077 cat >>confdefs.h <<_ACEOF
9078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9082 { { echo "$as_me:$LINENO: error: readline header not found
9083 If you have libedit already installed, see config.log for details on the
9084 failure. It is possible the compiler isn't looking in the proper directory.
9085 Use --without-readline to disable libedit support." >&5
9086 echo "$as_me: error: readline header not found
9087 If you have libedit already installed, see config.log for details on the
9088 failure. It is possible the compiler isn't looking in the proper directory.
9089 Use --without-readline to disable libedit support." >&2;}
9090 { (exit 1); exit 1; }; }
9104 for ac_header in editline/history.h
9106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9108 echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9116 # Is the header compilable?
9117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 $ac_includes_default
9126 #include <$ac_header>
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -z "$ac_c_werror_flag"
9138 || test ! -s conftest.err'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; } &&
9144 { ac_try='test -s conftest.$ac_objext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_header_compiler=yes
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9155 ac_header_compiler=no
9157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9159 echo "${ECHO_T}$ac_header_compiler" >&6
9161 # Is the header present?
9162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <$ac_header>
9172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9175 grep -v '^ *+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev/null; then
9180 if test -s conftest.err; then
9181 ac_cpp_err=$ac_c_preproc_warn_flag
9182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9189 if test -z "$ac_cpp_err"; then
9190 ac_header_preproc=yes
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_header_preproc=no
9197 rm -f conftest.err conftest.$ac_ext
9198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9199 echo "${ECHO_T}$ac_header_preproc" >&6
9201 # So? What about this header?
9202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9208 ac_header_preproc=yes
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9225 ## ---------------------------------------- ##
9226 ## Report this to pgsql-bugs@postgresql.org ##
9227 ## ---------------------------------------- ##
9230 sed "s/^/$as_me: WARNING: /" >&2
9233 echo "$as_me:$LINENO: checking for $ac_header" >&5
9234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 eval "$as_ac_Header=\$ac_header_preproc"
9240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9245 cat >>confdefs.h <<_ACEOF
9246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251 for ac_header in history.h
9253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255 echo "$as_me:$LINENO: checking for $ac_header" >&5
9256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9263 # Is the header compilable?
9264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 $ac_includes_default
9273 #include <$ac_header>
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_header_compiler=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_header_compiler=no
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9306 echo "${ECHO_T}$ac_header_compiler" >&6
9308 # Is the header present?
9309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 #include <$ac_header>
9319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } >/dev/null; then
9327 if test -s conftest.err; then
9328 ac_cpp_err=$ac_c_preproc_warn_flag
9329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9336 if test -z "$ac_cpp_err"; then
9337 ac_header_preproc=yes
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_header_preproc=no
9344 rm -f conftest.err conftest.$ac_ext
9345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9346 echo "${ECHO_T}$ac_header_preproc" >&6
9348 # So? What about this header?
9349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9355 ac_header_preproc=yes
9358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9372 ## ---------------------------------------- ##
9373 ## Report this to pgsql-bugs@postgresql.org ##
9374 ## ---------------------------------------- ##
9377 sed "s/^/$as_me: WARNING: /" >&2
9380 echo "$as_me:$LINENO: checking for $ac_header" >&5
9381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 eval "$as_ac_Header=\$ac_header_preproc"
9387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9392 cat >>confdefs.h <<_ACEOF
9393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9398 for ac_header in readline/history.h
9400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9402 echo "$as_me:$LINENO: checking for $ac_header" >&5
9403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9410 # Is the header compilable?
9411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 #include <$ac_header>
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
9431 { ac_try='test -z "$ac_c_werror_flag"
9432 || test ! -s conftest.err'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_header_compiler=yes
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 ac_header_compiler=no
9451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9453 echo "${ECHO_T}$ac_header_compiler" >&6
9455 # Is the header present?
9456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 #include <$ac_header>
9466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9469 grep -v '^ *+' conftest.er1 >conftest.err
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } >/dev/null; then
9474 if test -s conftest.err; then
9475 ac_cpp_err=$ac_c_preproc_warn_flag
9476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9483 if test -z "$ac_cpp_err"; then
9484 ac_header_preproc=yes
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ac_header_preproc=no
9491 rm -f conftest.err conftest.$ac_ext
9492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9493 echo "${ECHO_T}$ac_header_preproc" >&6
9495 # So? What about this header?
9496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9502 ac_header_preproc=yes
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9519 ## ---------------------------------------- ##
9520 ## Report this to pgsql-bugs@postgresql.org ##
9521 ## ---------------------------------------- ##
9524 sed "s/^/$as_me: WARNING: /" >&2
9527 echo "$as_me:$LINENO: checking for $ac_header" >&5
9528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 eval "$as_ac_Header=\$ac_header_preproc"
9534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9539 cat >>confdefs.h <<_ACEOF
9540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9544 { { echo "$as_me:$LINENO: error: history header not found
9545 If you have libedit already installed, see config.log for details on the
9546 failure. It is possible the compiler isn't looking in the proper directory.
9547 Use --without-readline to disable libedit support." >&5
9548 echo "$as_me: error: history header not found
9549 If you have libedit already installed, see config.log for details on the
9550 failure. It is possible the compiler isn't looking in the proper directory.
9551 Use --without-readline to disable libedit support." >&2;}
9552 { (exit 1); exit 1; }; }
9567 if test "$with_zlib" = yes; then
9568 if test "${ac_cv_header_zlib_h+set}" = set; then
9569 echo "$as_me:$LINENO: checking for zlib.h" >&5
9570 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9571 if test "${ac_cv_header_zlib_h+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9575 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9577 # Is the header compilable?
9578 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9579 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_header_compiler=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_header_compiler=no
9618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620 echo "${ECHO_T}$ac_header_compiler" >&6
9622 # Is the header present?
9623 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9624 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9636 grep -v '^ *+' conftest.er1 >conftest.err
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } >/dev/null; then
9641 if test -s conftest.err; then
9642 ac_cpp_err=$ac_c_preproc_warn_flag
9643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9650 if test -z "$ac_cpp_err"; then
9651 ac_header_preproc=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_header_preproc=no
9658 rm -f conftest.err conftest.$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9660 echo "${ECHO_T}$ac_header_preproc" >&6
9662 # So? What about this header?
9663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9665 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9666 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9668 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9669 ac_header_preproc=yes
9672 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9673 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9675 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9676 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9677 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9679 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9681 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9683 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9686 ## ---------------------------------------- ##
9687 ## Report this to pgsql-bugs@postgresql.org ##
9688 ## ---------------------------------------- ##
9691 sed "s/^/$as_me: WARNING: /" >&2
9694 echo "$as_me:$LINENO: checking for zlib.h" >&5
9695 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9696 if test "${ac_cv_header_zlib_h+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 ac_cv_header_zlib_h=$ac_header_preproc
9701 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9705 if test $ac_cv_header_zlib_h = yes; then
9708 { { echo "$as_me:$LINENO: error: zlib header not found
9709 If you have zlib already installed, see config.log for details on the
9710 failure. It is possible the compiler isn't looking in the proper directory.
9711 Use --without-zlib to disable zlib support." >&5
9712 echo "$as_me: error: zlib header not found
9713 If you have zlib already installed, see config.log for details on the
9714 failure. It is possible the compiler isn't looking in the proper directory.
9715 Use --without-zlib to disable zlib support." >&2;}
9716 { (exit 1); exit 1; }; }
9722 if test "$with_krb5" = yes ; then
9723 if test "${ac_cv_header_krb5_h+set}" = set; then
9724 echo "$as_me:$LINENO: checking for krb5.h" >&5
9725 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9726 if test "${ac_cv_header_krb5_h+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9730 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9732 # Is the header compilable?
9733 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9734 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9744 rm -f conftest.$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746 (eval $ac_compile) 2>conftest.er1
9748 grep -v '^ *+' conftest.er1 >conftest.err
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag"
9754 || test ! -s conftest.err'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; } &&
9760 { ac_try='test -s conftest.$ac_objext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_header_compiler=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_compiler=no
9773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 echo "${ECHO_T}$ac_header_compiler" >&6
9777 # Is the header present?
9778 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9779 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } >/dev/null; then
9796 if test -s conftest.err; then
9797 ac_cpp_err=$ac_c_preproc_warn_flag
9798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9805 if test -z "$ac_cpp_err"; then
9806 ac_header_preproc=yes
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 ac_header_preproc=no
9813 rm -f conftest.err conftest.$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 echo "${ECHO_T}$ac_header_preproc" >&6
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9820 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9821 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9823 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
9827 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9828 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9830 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9832 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9834 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9836 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9838 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9841 ## ---------------------------------------- ##
9842 ## Report this to pgsql-bugs@postgresql.org ##
9843 ## ---------------------------------------- ##
9846 sed "s/^/$as_me: WARNING: /" >&2
9849 echo "$as_me:$LINENO: checking for krb5.h" >&5
9850 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9851 if test "${ac_cv_header_krb5_h+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ac_cv_header_krb5_h=$ac_header_preproc
9856 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9857 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9860 if test $ac_cv_header_krb5_h = yes; then
9863 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9864 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9865 { (exit 1); exit 1; }; }
9871 if test "$with_openssl" = yes ; then
9872 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9873 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9874 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9875 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9879 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9881 # Is the header compilable?
9882 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9883 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 $ac_includes_default
9891 #include <openssl/ssl.h>
9893 rm -f conftest.$ac_objext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest.$ac_objext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_header_compiler=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_header_compiler=no
9922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9924 echo "${ECHO_T}$ac_header_compiler" >&6
9926 # Is the header present?
9927 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9928 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 #include <openssl/ssl.h>
9937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } >/dev/null; then
9945 if test -s conftest.err; then
9946 ac_cpp_err=$ac_c_preproc_warn_flag
9947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9954 if test -z "$ac_cpp_err"; then
9955 ac_header_preproc=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_header_preproc=no
9962 rm -f conftest.err conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9964 echo "${ECHO_T}$ac_header_preproc" >&6
9966 # So? What about this header?
9967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9969 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9970 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9972 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9973 ac_header_preproc=yes
9976 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9977 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9979 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9981 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9983 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9985 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9987 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9990 ## ---------------------------------------- ##
9991 ## Report this to pgsql-bugs@postgresql.org ##
9992 ## ---------------------------------------- ##
9995 sed "s/^/$as_me: WARNING: /" >&2
9998 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9999 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10000 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10005 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10006 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10009 if test $ac_cv_header_openssl_ssl_h = yes; then
10012 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10013 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10014 { (exit 1); exit 1; }; }
10018 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10019 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10020 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10021 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10025 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10027 # Is the header compilable?
10028 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10029 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10030 cat >conftest.$ac_ext <<_ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 $ac_includes_default
10037 #include <openssl/err.h>
10039 rm -f conftest.$ac_objext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_header_compiler=yes
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_header_compiler=no
10068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10070 echo "${ECHO_T}$ac_header_compiler" >&6
10072 # Is the header present?
10073 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10074 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 #include <openssl/err.h>
10083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10086 grep -v '^ *+' conftest.er1 >conftest.err
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } >/dev/null; then
10091 if test -s conftest.err; then
10092 ac_cpp_err=$ac_c_preproc_warn_flag
10093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10100 if test -z "$ac_cpp_err"; then
10101 ac_header_preproc=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_header_preproc=no
10108 rm -f conftest.err conftest.$ac_ext
10109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10110 echo "${ECHO_T}$ac_header_preproc" >&6
10112 # So? What about this header?
10113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10115 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10116 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10118 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10119 ac_header_preproc=yes
10122 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10123 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10124 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10125 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10127 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10129 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10131 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10133 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10136 ## ---------------------------------------- ##
10137 ## Report this to pgsql-bugs@postgresql.org ##
10138 ## ---------------------------------------- ##
10141 sed "s/^/$as_me: WARNING: /" >&2
10144 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10145 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10146 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_cv_header_openssl_err_h=$ac_header_preproc
10151 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10152 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10155 if test $ac_cv_header_openssl_err_h = yes; then
10158 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10159 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10160 { (exit 1); exit 1; }; }
10166 if test "$with_pam" = yes ; then
10168 for ac_header in security/pam_appl.h
10170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10172 echo "$as_me:$LINENO: checking for $ac_header" >&5
10173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10180 # Is the header compilable?
10181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10183 cat >conftest.$ac_ext <<_ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 $ac_includes_default
10190 #include <$ac_header>
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_header_compiler=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_header_compiler=no
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10223 echo "${ECHO_T}$ac_header_compiler" >&6
10225 # Is the header present?
10226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10228 cat >conftest.$ac_ext <<_ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 #include <$ac_header>
10236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } >/dev/null; then
10244 if test -s conftest.err; then
10245 ac_cpp_err=$ac_c_preproc_warn_flag
10246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10253 if test -z "$ac_cpp_err"; then
10254 ac_header_preproc=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_header_preproc=no
10261 rm -f conftest.err conftest.$ac_ext
10262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10263 echo "${ECHO_T}$ac_header_preproc" >&6
10265 # So? What about this header?
10266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10272 ac_header_preproc=yes
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10289 ## ---------------------------------------- ##
10290 ## Report this to pgsql-bugs@postgresql.org ##
10291 ## ---------------------------------------- ##
10294 sed "s/^/$as_me: WARNING: /" >&2
10297 echo "$as_me:$LINENO: checking for $ac_header" >&5
10298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 eval "$as_ac_Header=\$ac_header_preproc"
10304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10309 cat >>confdefs.h <<_ACEOF
10310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10315 for ac_header in pam/pam_appl.h
10317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10319 echo "$as_me:$LINENO: checking for $ac_header" >&5
10320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10327 # Is the header compilable?
10328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 $ac_includes_default
10337 #include <$ac_header>
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_header_compiler=yes
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_header_compiler=no
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10370 echo "${ECHO_T}$ac_header_compiler" >&6
10372 # Is the header present?
10373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 #include <$ac_header>
10383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10386 grep -v '^ *+' conftest.er1 >conftest.err
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } >/dev/null; then
10391 if test -s conftest.err; then
10392 ac_cpp_err=$ac_c_preproc_warn_flag
10393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10400 if test -z "$ac_cpp_err"; then
10401 ac_header_preproc=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_header_preproc=no
10408 rm -f conftest.err conftest.$ac_ext
10409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10410 echo "${ECHO_T}$ac_header_preproc" >&6
10412 # So? What about this header?
10413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10419 ac_header_preproc=yes
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10436 ## ---------------------------------------- ##
10437 ## Report this to pgsql-bugs@postgresql.org ##
10438 ## ---------------------------------------- ##
10441 sed "s/^/$as_me: WARNING: /" >&2
10444 echo "$as_me:$LINENO: checking for $ac_header" >&5
10445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 eval "$as_ac_Header=\$ac_header_preproc"
10451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10456 cat >>confdefs.h <<_ACEOF
10457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10461 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10462 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10463 { (exit 1); exit 1; }; }
10474 if test "$with_ldap" = yes ; then
10475 if test "$PORTNAME" != "win32"; then
10477 for ac_header in ldap.h
10479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481 echo "$as_me:$LINENO: checking for $ac_header" >&5
10482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10489 # Is the header compilable?
10490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 $ac_includes_default
10499 #include <$ac_header>
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>conftest.er1
10505 grep -v '^ *+' conftest.er1 >conftest.err
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -z "$ac_c_werror_flag"
10511 || test ! -s conftest.err'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; } &&
10517 { ac_try='test -s conftest.$ac_objext'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10523 ac_header_compiler=yes
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 ac_header_compiler=no
10530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10532 echo "${ECHO_T}$ac_header_compiler" >&6
10534 # Is the header present?
10535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10537 cat >conftest.$ac_ext <<_ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 #include <$ac_header>
10545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10548 grep -v '^ *+' conftest.er1 >conftest.err
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } >/dev/null; then
10553 if test -s conftest.err; then
10554 ac_cpp_err=$ac_c_preproc_warn_flag
10555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10562 if test -z "$ac_cpp_err"; then
10563 ac_header_preproc=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_header_preproc=no
10570 rm -f conftest.err conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10572 echo "${ECHO_T}$ac_header_preproc" >&6
10574 # So? What about this header?
10575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10581 ac_header_preproc=yes
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10598 ## ---------------------------------------- ##
10599 ## Report this to pgsql-bugs@postgresql.org ##
10600 ## ---------------------------------------- ##
10603 sed "s/^/$as_me: WARNING: /" >&2
10606 echo "$as_me:$LINENO: checking for $ac_header" >&5
10607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 eval "$as_ac_Header=\$ac_header_preproc"
10613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10618 cat >>confdefs.h <<_ACEOF
10619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10624 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10625 { (exit 1); exit 1; }; }
10632 for ac_header in winldap.h
10634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10635 echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 $ac_includes_default
10647 #include <windows.h>
10650 #include <$ac_header>
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10674 eval "$as_ac_Header=yes"
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 eval "$as_ac_Header=no"
10681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10691 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10692 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10693 { (exit 1); exit 1; }; }
10701 if test "$with_bonjour" = yes ; then
10702 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10703 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10704 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10705 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10709 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10711 # Is the header compilable?
10712 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10713 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10714 cat >conftest.$ac_ext <<_ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10723 rm -f conftest.$ac_objext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10725 (eval $ac_compile) 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -z "$ac_c_werror_flag"
10733 || test ! -s conftest.err'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; } &&
10739 { ac_try='test -s conftest.$ac_objext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_header_compiler=yes
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_header_compiler=no
10752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 echo "${ECHO_T}$ac_header_compiler" >&6
10756 # Is the header present?
10757 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10758 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null; then
10775 if test -s conftest.err; then
10776 ac_cpp_err=$ac_c_preproc_warn_flag
10777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10784 if test -z "$ac_cpp_err"; then
10785 ac_header_preproc=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 ac_header_preproc=no
10792 rm -f conftest.err conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794 echo "${ECHO_T}$ac_header_preproc" >&6
10796 # So? What about this header?
10797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10799 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10800 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10802 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10806 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10807 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10809 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10811 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10813 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10817 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10820 ## ---------------------------------------- ##
10821 ## Report this to pgsql-bugs@postgresql.org ##
10822 ## ---------------------------------------- ##
10825 sed "s/^/$as_me: WARNING: /" >&2
10828 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10829 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10830 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10835 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10836 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10839 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10842 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10843 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10844 { (exit 1); exit 1; }; }
10852 ## Types, structures, compiler characteristics
10855 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10856 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10857 if test "${ac_cv_c_const+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10870 /* FIXME: Include the comments suggested by Paul. */
10871 #ifndef __cplusplus
10872 /* Ultrix mips cc rejects this. */
10873 typedef int charset[2];
10875 /* SunOS 4.1.1 cc rejects this. */
10876 char const *const *ccp;
10878 /* NEC SVR4.0.2 mips cc rejects this. */
10879 struct point {int x, y;};
10880 static struct point const zero = {0,0};
10881 /* AIX XL C 1.02.0.0 rejects this.
10882 It does not let you subtract one const X* pointer from another in
10883 an arm of an if-expression whose if-part is not a constant
10885 const char *g = "string";
10886 ccp = &g + (g ? g-g : 0);
10887 /* HPUX 7.0 cc rejects these. */
10890 ccp = (char const *const *) p;
10891 { /* SCO 3.2v4 cc rejects this. */
10893 char const *s = 0 ? (char *) 0 : (char const *) 0;
10897 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10898 int x[] = {25, 17};
10899 const int *foo = &x[0];
10902 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10903 typedef const int *iptr;
10907 { /* AIX XL C 1.02.0.0 rejects this saying
10908 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10909 struct s { int j; const int *ap[3]; };
10910 struct s *b; b->j = 5;
10912 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10913 const int foo = 10;
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10952 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10953 echo "${ECHO_T}$ac_cv_c_const" >&6
10954 if test $ac_cv_c_const = no; then
10956 cat >>confdefs.h <<\_ACEOF
10963 echo "$as_me:$LINENO: checking for inline" >&5
10964 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10965 if test "${ac_cv_c_inline+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 for ac_kw in inline __inline__ __inline; do
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 #ifndef __cplusplus
10978 static $ac_kw foo_t static_foo () {return 0; }
10979 $ac_kw int foo () {return 0; }
10983 rm -f conftest.$ac_objext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_c_inline=$ac_kw; break
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11015 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11016 echo "${ECHO_T}$ac_cv_c_inline" >&6
11017 case $ac_cv_c_inline in
11020 cat >>confdefs.h <<\_ACEOF
11024 *) cat >>confdefs.h <<_ACEOF
11025 #define inline $ac_cv_c_inline
11030 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11031 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11032 if test "${ac_cv_c_stringize+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11043 char *s = x(teststring);
11045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11046 $EGREP "#teststring" >/dev/null 2>&1; then
11047 ac_cv_c_stringize=no
11049 ac_cv_c_stringize=yes
11054 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11055 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11056 if test $ac_cv_c_stringize = yes; then
11058 cat >>confdefs.h <<\_ACEOF
11059 #define HAVE_STRINGIZE 1
11064 echo "$as_me:$LINENO: checking for signed types" >&5
11065 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11066 if test "${pgac_cv_c_signed+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 cat >conftest.$ac_ext <<_ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11079 signed char c; signed short s; signed int i;
11084 rm -f conftest.$ac_objext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11086 (eval $ac_compile) 2>conftest.er1
11088 grep -v '^ *+' conftest.er1 >conftest.err
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag"
11094 || test ! -s conftest.err'
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); }; } &&
11100 { ac_try='test -s conftest.$ac_objext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 pgac_cv_c_signed=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 pgac_cv_c_signed=no
11113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11116 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11117 if test x"$pgac_cv_c_signed" = xno ; then
11119 cat >>confdefs.h <<\_ACEOF
11124 echo "$as_me:$LINENO: checking for working volatile" >&5
11125 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11126 if test "${ac_cv_c_volatile+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag"
11156 || test ! -s conftest.err'
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); }; } &&
11162 { ac_try='test -s conftest.$ac_objext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_c_volatile=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_c_volatile=no
11175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11177 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11178 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11179 if test $ac_cv_c_volatile = no; then
11181 cat >>confdefs.h <<\_ACEOF
11187 echo "$as_me:$LINENO: checking for __func__" >&5
11188 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11189 if test "${pgac_cv_funcname_func_support+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. */
11202 printf("%s\n", __func__);
11207 rm -f conftest.$ac_objext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11209 (eval $ac_compile) 2>conftest.er1
11211 grep -v '^ *+' conftest.er1 >conftest.err
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } &&
11216 { ac_try='test -z "$ac_c_werror_flag"
11217 || test ! -s conftest.err'
11218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219 (eval $ac_try) 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; } &&
11223 { ac_try='test -s conftest.$ac_objext'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 pgac_cv_funcname_func_support=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 pgac_cv_funcname_func_support=no
11236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11239 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11240 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_FUNCNAME__FUNC 1
11247 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11248 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11249 if test "${pgac_cv_funcname_function_support+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 cat >conftest.$ac_ext <<_ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11262 printf("%s\n", __FUNCTION__);
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag"
11277 || test ! -s conftest.err'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 pgac_cv_funcname_function_support=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 pgac_cv_funcname_function_support=no
11296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11299 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11300 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_FUNCNAME__FUNCTION 1
11308 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11310 if test "${ac_cv_struct_tm+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #include <sys/types.h>
11325 struct tm *tp; tp->tm_sec;
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_cv_struct_tm=time.h
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 ac_cv_struct_tm=sys/time.h
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11362 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11363 if test $ac_cv_struct_tm = sys/time.h; then
11365 cat >>confdefs.h <<\_ACEOF
11366 #define TM_IN_SYS_TIME 1
11371 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11372 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11373 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <sys/types.h>
11383 #include <$ac_cv_struct_tm>
11389 static struct tm ac_aggr;
11390 if (ac_aggr.tm_zone)
11396 rm -f conftest.$ac_objext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11398 (eval $ac_compile) 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag"
11406 || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 ac_cv_member_struct_tm_tm_zone=yes
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <sys/types.h>
11430 #include <$ac_cv_struct_tm>
11436 static struct tm ac_aggr;
11437 if (sizeof ac_aggr.tm_zone)
11443 rm -f conftest.$ac_objext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>conftest.er1
11447 grep -v '^ *+' conftest.er1 >conftest.err
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag"
11453 || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_member_struct_tm_tm_zone=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_member_struct_tm_tm_zone=no
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11477 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11478 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11480 cat >>confdefs.h <<_ACEOF
11481 #define HAVE_STRUCT_TM_TM_ZONE 1
11487 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11489 cat >>confdefs.h <<\_ACEOF
11490 #define HAVE_TM_ZONE 1
11494 echo "$as_me:$LINENO: checking for tzname" >&5
11495 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11496 if test "${ac_cv_var_tzname+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11506 #ifndef tzname /* For SGI. */
11507 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_cv_var_tzname=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_cv_var_tzname=no
11547 rm -f conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11551 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11552 if test $ac_cv_var_tzname = yes; then
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_TZNAME 1
11560 echo "$as_me:$LINENO: checking for union semun" >&5
11561 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11562 if test "${ac_cv_type_union_semun+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 #include <sys/types.h>
11572 #include <sys/ipc.h>
11573 #include <sys/sem.h>
11578 if ((union semun *) 0)
11580 if (sizeof (union semun))
11586 rm -f conftest.$ac_objext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_type_union_semun=yes
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_cv_type_union_semun=no
11615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11617 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11618 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11619 if test $ac_cv_type_union_semun = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define HAVE_UNION_SEMUN 1
11628 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11629 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11630 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 cat >conftest.$ac_ext <<_ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 #include <sys/types.h>
11640 #ifdef HAVE_SYS_UN_H
11641 #include <sys/un.h>
11648 if ((struct sockaddr_un *) 0)
11650 if (sizeof (struct sockaddr_un))
11656 rm -f conftest.$ac_objext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11658 (eval $ac_compile) 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag"
11666 || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest.$ac_objext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_type_struct_sockaddr_un=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_cv_type_struct_sockaddr_un=no
11685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11688 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11689 if test $ac_cv_type_struct_sockaddr_un = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_STRUCT_SOCKADDR_UN 1
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_UNIX_SOCKETS 1
11702 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11703 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11704 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 cat >conftest.$ac_ext <<_ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 #include <sys/types.h>
11714 #ifdef HAVE_SYS_SOCKET_H
11715 #include <sys/socket.h>
11722 if ((struct sockaddr_storage *) 0)
11724 if (sizeof (struct sockaddr_storage))
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest.$ac_objext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_type_struct_sockaddr_storage=yes
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_cv_type_struct_sockaddr_storage=no
11759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11761 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11762 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11763 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11772 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11773 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11774 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 cat >conftest.$ac_ext <<_ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #include <sys/types.h>
11784 #ifdef HAVE_SYS_SOCKET_H
11785 #include <sys/socket.h>
11792 static struct sockaddr_storage ac_aggr;
11793 if (ac_aggr.ss_family)
11799 rm -f conftest.$ac_objext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11801 (eval $ac_compile) 2>conftest.er1
11803 grep -v '^ *+' conftest.er1 >conftest.err
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -z "$ac_c_werror_flag"
11809 || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 #include <sys/types.h>
11833 #ifdef HAVE_SYS_SOCKET_H
11834 #include <sys/socket.h>
11841 static struct sockaddr_storage ac_aggr;
11842 if (sizeof ac_aggr.ss_family)
11848 rm -f conftest.$ac_objext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850 (eval $ac_compile) 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag"
11858 || test ! -s conftest.err'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest.$ac_objext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 ac_cv_member_struct_sockaddr_storage_ss_family=no
11877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11881 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11882 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11883 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11891 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11892 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11893 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <sys/types.h>
11903 #ifdef HAVE_SYS_SOCKET_H
11904 #include <sys/socket.h>
11911 static struct sockaddr_storage ac_aggr;
11912 if (ac_aggr.__ss_family)
11918 rm -f conftest.$ac_objext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920 (eval $ac_compile) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <sys/types.h>
11952 #ifdef HAVE_SYS_SOCKET_H
11953 #include <sys/socket.h>
11960 static struct sockaddr_storage ac_aggr;
11961 if (sizeof ac_aggr.__ss_family)
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969 (eval $ac_compile) 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag"
11977 || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest.$ac_objext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_cv_member_struct_sockaddr_storage___ss_family=no
11996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12001 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12002 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12010 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12011 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12012 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 #include <sys/types.h>
12022 #ifdef HAVE_SYS_SOCKET_H
12023 #include <sys/socket.h>
12030 static struct sockaddr_storage ac_aggr;
12031 if (ac_aggr.ss_len)
12037 rm -f conftest.$ac_objext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 #include <sys/types.h>
12071 #ifdef HAVE_SYS_SOCKET_H
12072 #include <sys/socket.h>
12079 static struct sockaddr_storage ac_aggr;
12080 if (sizeof ac_aggr.ss_len)
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088 (eval $ac_compile) 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag"
12096 || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_member_struct_sockaddr_storage_ss_len=no
12115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12119 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12120 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12121 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12129 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12130 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12131 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <sys/types.h>
12141 #ifdef HAVE_SYS_SOCKET_H
12142 #include <sys/socket.h>
12149 static struct sockaddr_storage ac_aggr;
12150 if (ac_aggr.__ss_len)
12156 rm -f conftest.$ac_objext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <sys/types.h>
12190 #ifdef HAVE_SYS_SOCKET_H
12191 #include <sys/socket.h>
12198 static struct sockaddr_storage ac_aggr;
12199 if (sizeof ac_aggr.__ss_len)
12205 rm -f conftest.$ac_objext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12207 (eval $ac_compile) 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_member_struct_sockaddr_storage___ss_len=no
12234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12239 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12240 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12248 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12249 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12250 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <sys/types.h>
12260 #ifdef HAVE_SYS_SOCKET_H
12261 #include <sys/socket.h>
12268 static struct sockaddr ac_aggr;
12269 if (ac_aggr.sa_len)
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_member_struct_sockaddr_sa_len=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 #include <sys/types.h>
12309 #ifdef HAVE_SYS_SOCKET_H
12310 #include <sys/socket.h>
12317 static struct sockaddr ac_aggr;
12318 if (sizeof ac_aggr.sa_len)
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_member_struct_sockaddr_sa_len=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_member_struct_sockaddr_sa_len=no
12353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12357 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12358 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12359 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12361 cat >>confdefs.h <<_ACEOF
12362 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12368 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12369 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12370 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 #include <sys/types.h>
12380 #include <sys/socket.h>
12387 if ((struct addrinfo *) 0)
12389 if (sizeof (struct addrinfo))
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 ac_cv_type_struct_addrinfo=yes
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_cv_type_struct_addrinfo=no
12424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12426 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12427 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12428 if test $ac_cv_type_struct_addrinfo = yes; then
12430 cat >>confdefs.h <<_ACEOF
12431 #define HAVE_STRUCT_ADDRINFO 1
12438 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12439 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12440 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <sys/param.h>
12450 #include <sys/types.h>
12451 #include <sys/socket.h>
12452 #include <sys/ucred.h>
12457 if ((struct cmsgcred *) 0)
12459 if (sizeof (struct cmsgcred))
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_type_struct_cmsgcred=yes
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_cv_type_struct_cmsgcred=no
12494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12496 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12497 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12498 if test $ac_cv_type_struct_cmsgcred = yes; then
12500 cat >>confdefs.h <<_ACEOF
12501 #define HAVE_STRUCT_CMSGCRED 1
12506 echo "$as_me:$LINENO: checking for struct fcred" >&5
12507 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12508 if test "${ac_cv_type_struct_fcred+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 #include <sys/param.h>
12518 #include <sys/types.h>
12519 #include <sys/socket.h>
12520 #include <sys/ucred.h>
12525 if ((struct fcred *) 0)
12527 if (sizeof (struct fcred))
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_cv_type_struct_fcred=yes
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 ac_cv_type_struct_fcred=no
12562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12564 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12565 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12566 if test $ac_cv_type_struct_fcred = yes; then
12568 cat >>confdefs.h <<_ACEOF
12569 #define HAVE_STRUCT_FCRED 1
12574 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12575 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12576 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 #include <sys/param.h>
12586 #include <sys/types.h>
12587 #include <sys/socket.h>
12588 #include <sys/ucred.h>
12593 if ((struct sockcred *) 0)
12595 if (sizeof (struct sockcred))
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_type_struct_sockcred=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_cv_type_struct_sockcred=no
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12633 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12634 if test $ac_cv_type_struct_sockcred = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_STRUCT_SOCKCRED 1
12644 echo "$as_me:$LINENO: checking for struct option" >&5
12645 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12646 if test "${ac_cv_type_struct_option+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 #ifdef HAVE_GETOPT_H
12656 #include <getopt.h>
12662 if ((struct option *) 0)
12664 if (sizeof (struct option))
12670 rm -f conftest.$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag"
12680 || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_type_struct_option=yes
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_cv_type_struct_option=no
12699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12701 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12702 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12703 if test $ac_cv_type_struct_option = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define HAVE_STRUCT_OPTION 1
12713 if test "$with_zlib" = yes; then
12714 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12715 # did not). While we could work around the lack of z_streamp, it
12716 # seems unwise to encourage people to use such old zlib versions...
12717 echo "$as_me:$LINENO: checking for z_streamp" >&5
12718 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12719 if test "${ac_cv_type_z_streamp+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 cat >conftest.$ac_ext <<_ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12733 if ((z_streamp *) 0)
12735 if (sizeof (z_streamp))
12741 rm -f conftest.$ac_objext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag"
12751 || test ! -s conftest.err'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 ac_cv_type_z_streamp=yes
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_cv_type_z_streamp=no
12770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12773 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12774 if test $ac_cv_type_z_streamp = yes; then
12777 { { echo "$as_me:$LINENO: error: zlib version is too old
12778 Use --without-zlib to disable zlib support." >&5
12779 echo "$as_me: error: zlib version is too old
12780 Use --without-zlib to disable zlib support." >&2;}
12781 { (exit 1); exit 1; }; }
12786 if test "$with_krb5" = yes; then
12787 # Check for differences between MIT and Heimdal (KTH) releases
12788 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12789 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12790 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12804 static krb5_ticket ac_aggr;
12805 if (ac_aggr.enc_part2)
12811 rm -f conftest.$ac_objext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -z "$ac_c_werror_flag"
12821 || test ! -s conftest.err'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest.$ac_objext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_cv_member_krb5_ticket_enc_part2=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12849 static krb5_ticket ac_aggr;
12850 if (sizeof ac_aggr.enc_part2)
12856 rm -f conftest.$ac_objext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858 (eval $ac_compile) 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest.$ac_objext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_member_krb5_ticket_enc_part2=yes
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 ac_cv_member_krb5_ticket_enc_part2=no
12885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12889 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12890 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12891 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12893 cat >>confdefs.h <<_ACEOF
12894 #define HAVE_KRB5_TICKET_ENC_PART2 1
12899 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12900 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12901 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12915 static krb5_ticket ac_aggr;
12916 if (ac_aggr.client)
12922 rm -f conftest.$ac_objext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924 (eval $ac_compile) 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_member_krb5_ticket_client=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12960 static krb5_ticket ac_aggr;
12961 if (sizeof ac_aggr.client)
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag"
12977 || test ! -s conftest.err'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_cv_member_krb5_ticket_client=yes
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12994 ac_cv_member_krb5_ticket_client=no
12996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13001 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13002 if test $ac_cv_member_krb5_ticket_client = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 #define HAVE_KRB5_TICKET_CLIENT 1
13010 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13011 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13012 { (exit 1); exit 1; }; }
13017 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13018 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13019 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13033 static krb5_error ac_aggr;
13034 if (ac_aggr.text.data)
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_member_krb5_error_text_data=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13078 static krb5_error ac_aggr;
13079 if (sizeof ac_aggr.text.data)
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>conftest.er1
13089 grep -v '^ *+' conftest.er1 >conftest.err
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } &&
13094 { ac_try='test -z "$ac_c_werror_flag"
13095 || test ! -s conftest.err'
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); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_member_krb5_error_text_data=yes
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 ac_cv_member_krb5_error_text_data=no
13114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13118 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13119 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13120 if test $ac_cv_member_krb5_error_text_data = yes; then
13122 cat >>confdefs.h <<_ACEOF
13123 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13128 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13129 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13130 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13144 static krb5_error ac_aggr;
13145 if (ac_aggr.e_data)
13151 rm -f conftest.$ac_objext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13153 (eval $ac_compile) 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_c_werror_flag"
13161 || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_member_krb5_error_e_data=yes
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13189 static krb5_error ac_aggr;
13190 if (sizeof ac_aggr.e_data)
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_member_krb5_error_e_data=yes
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_member_krb5_error_e_data=no
13225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13229 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13230 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13231 if test $ac_cv_member_krb5_error_e_data = yes; then
13233 cat >>confdefs.h <<_ACEOF
13234 #define HAVE_KRB5_ERROR_E_DATA 1
13239 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13240 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13241 { (exit 1); exit 1; }; }
13248 # This is probably only present on Darwin, but may as well check always
13249 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13250 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13251 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13265 #ifndef F_FULLFSYNC
13266 char *p = (char *) F_FULLFSYNC;
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag"
13283 || test ! -s conftest.err'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_have_decl_F_FULLFSYNC=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_cv_have_decl_F_FULLFSYNC=no
13302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13305 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13306 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13308 cat >>confdefs.h <<_ACEOF
13309 #define HAVE_DECL_F_FULLFSYNC 1
13314 cat >>confdefs.h <<_ACEOF
13315 #define HAVE_DECL_F_FULLFSYNC 0
13324 ## Functions, global variables
13327 echo "$as_me:$LINENO: checking for int timezone" >&5
13328 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13329 if test "${pgac_cv_var_int_timezone+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13344 res = timezone / 60;
13346 res = _timezone / 60;
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354 (eval $ac_link) 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 pgac_cv_var_int_timezone=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 pgac_cv_var_int_timezone=no
13381 rm -f conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13385 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13386 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define HAVE_INT_TIMEZONE
13393 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13394 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13395 if test "${ac_cv_func_accept_return+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 if test "${ac_cv_func_accept_arg1+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 if test "${ac_cv_func_accept_arg2+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 if test "${ac_cv_func_accept_arg3+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13408 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13409 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13410 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #ifdef HAVE_SYS_TYPES_H
13418 #include <sys/types.h>
13420 #ifdef HAVE_SYS_SOCKET_H
13421 #include <sys/socket.h>
13423 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest.$ac_objext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_not_found=no; break 4
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13466 if test "$ac_not_found" = yes; then
13467 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13468 echo "$as_me: error: could not determine argument types" >&2;}
13469 { (exit 1); exit 1; }; }
13471 if test "$ac_cv_func_accept_arg3" = "void"; then
13472 ac_cv_func_accept_arg3=int
13482 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
13483 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13485 cat >>confdefs.h <<_ACEOF
13486 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13490 cat >>confdefs.h <<_ACEOF
13491 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13495 cat >>confdefs.h <<_ACEOF
13496 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13500 cat >>confdefs.h <<_ACEOF
13501 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13505 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13506 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13507 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <sys/time.h>
13520 struct timeval *tp;
13521 struct timezone *tzp;
13522 gettimeofday(tp,tzp);
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 pgac_cv_func_gettimeofday_1arg=no
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 pgac_cv_func_gettimeofday_1arg=yes
13556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13558 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13559 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13560 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13562 cat >>confdefs.h <<\_ACEOF
13563 #define GETTIMEOFDAY_1ARG
13589 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13592 echo "$as_me:$LINENO: checking for $ac_func" >&5
13593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13594 if eval "test \"\${$as_ac_var+set}\" = set"; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13605 #define $ac_func innocuous_$ac_func
13607 /* System header to define __stub macros and hopefully few prototypes,
13608 which can conflict with char $ac_func (); below.
13609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13610 <limits.h> exists even on freestanding compilers. */
13613 # include <limits.h>
13615 # include <assert.h>
13620 /* Override any gcc2 internal prototype to avoid an error. */
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13628 /* The GNU C library defines this for functions which it implements
13629 to always fail with ENOSYS. Some functions are actually named
13630 something starting with __ and the normal name is an alias. */
13631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13634 char (*f) () = $ac_func;
13643 return f != $ac_func;
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13650 (eval $ac_link) 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag"
13658 || test ! -s conftest.err'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest$ac_exeext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 eval "$as_ac_var=yes"
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 eval "$as_ac_var=no"
13677 rm -f conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13682 if test `eval echo '${'$as_ac_var'}'` = yes; then
13683 cat >>confdefs.h <<_ACEOF
13684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13691 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13692 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13693 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 #include <unistd.h>
13708 char *p = (char *) fdatasync;
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_have_decl_fdatasync=yes
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_cv_have_decl_fdatasync=no
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13747 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13748 if test $ac_cv_have_decl_fdatasync = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_DECL_FDATASYNC 1
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_DECL_FDATASYNC 0
13766 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13767 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13768 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 $ac_includes_default
13778 #include <netinet/in.h>
13783 if ((struct sockaddr_in6 *) 0)
13785 if (sizeof (struct sockaddr_in6))
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793 (eval $ac_compile) 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag"
13801 || test ! -s conftest.err'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_type_struct_sockaddr_in6=yes
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 ac_cv_type_struct_sockaddr_in6=no
13820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13823 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13824 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_IPV6 1
13835 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13836 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13837 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 #include <machine/vmparam.h>
13847 #include <sys/exec.h>
13852 PS_STRINGS->ps_nargvstr = 1;
13853 PS_STRINGS->ps_argvstr = "foo";
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 pgac_cv_var_PS_STRINGS=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 pgac_cv_var_PS_STRINGS=no
13887 rm -f conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13891 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13892 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_PS_STRINGS
13901 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13902 # is missing. Yes, there are machines that have only one. We may
13903 # also decide to use snprintf.c if snprintf() is present but does not
13904 # have all the features we need --- see below.
13906 if test "$PORTNAME" = "win32"; then
13907 # Win32 gets snprintf.c built unconditionally.
13909 # To properly translate all NLS languages strings, we must support the
13910 # *printf() %$ format, which allows *printf() arguments to be selected
13911 # by position in the translated string.
13913 # libintl versions < 0.13 use the native *printf() functions, and Win32
13914 # *printf() doesn't understand %$, so we must use our /port versions,
13915 # which do understand %$. libintl versions >= 0.13 include their own
13916 # *printf versions on Win32. The libintl 0.13 release note text is:
13918 # C format strings with positions, as they arise when a translator
13919 # needs to reorder a sentence, are now supported on all platforms.
13920 # On those few platforms (NetBSD and Woe32) for which the native
13921 # printf()/fprintf()/... functions don't support such format
13922 # strings, replacements are provided through <libintl.h>.
13924 # We could use libintl >= 0.13's *printf() if we were sure that we had
13925 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13926 # to guarantee that, it is best to just use our own, so we are sure to
13927 # get %$ support. In include/port.h we disable the *printf() macros
13928 # that might have been defined by libintl.
13930 # We do this unconditionally whether NLS is used or not so we are sure
13931 # that all Win32 libraries and binaries behave the same.
13932 pgac_need_repl_snprintf=yes
13934 pgac_need_repl_snprintf=no
13936 for ac_func in snprintf
13938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13939 echo "$as_me:$LINENO: checking for $ac_func" >&5
13940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13941 if eval "test \"\${$as_ac_var+set}\" = set"; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13952 #define $ac_func innocuous_$ac_func
13954 /* System header to define __stub macros and hopefully few prototypes,
13955 which can conflict with char $ac_func (); below.
13956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13957 <limits.h> exists even on freestanding compilers. */
13960 # include <limits.h>
13962 # include <assert.h>
13967 /* Override any gcc2 internal prototype to avoid an error. */
13972 /* We use char because int might match the return type of a gcc2
13973 builtin and then its argument prototype would still apply. */
13975 /* The GNU C library defines this for functions which it implements
13976 to always fail with ENOSYS. Some functions are actually named
13977 something starting with __ and the normal name is an alias. */
13978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13981 char (*f) () = $ac_func;
13990 return f != $ac_func;
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13997 (eval $ac_link) 2>conftest.er1
13999 grep -v '^ *+' conftest.er1 >conftest.err
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest$ac_exeext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 eval "$as_ac_var=yes"
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 eval "$as_ac_var=no"
14024 rm -f conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14029 if test `eval echo '${'$as_ac_var'}'` = yes; then
14030 cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14035 pgac_need_repl_snprintf=yes
14040 for ac_func in vsnprintf
14042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14043 echo "$as_me:$LINENO: checking for $ac_func" >&5
14044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14045 if eval "test \"\${$as_ac_var+set}\" = set"; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14056 #define $ac_func innocuous_$ac_func
14058 /* System header to define __stub macros and hopefully few prototypes,
14059 which can conflict with char $ac_func (); below.
14060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14061 <limits.h> exists even on freestanding compilers. */
14064 # include <limits.h>
14066 # include <assert.h>
14071 /* Override any gcc2 internal prototype to avoid an error. */
14076 /* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */
14079 /* The GNU C library defines this for functions which it implements
14080 to always fail with ENOSYS. Some functions are actually named
14081 something starting with __ and the normal name is an alias. */
14082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14085 char (*f) () = $ac_func;
14094 return f != $ac_func;
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 eval "$as_ac_var=yes"
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 eval "$as_ac_var=no"
14128 rm -f conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14133 if test `eval echo '${'$as_ac_var'}'` = yes; then
14134 cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14139 pgac_need_repl_snprintf=yes
14146 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14147 # include/c.h will provide declarations. Note this is a separate test
14148 # from whether the functions exist in the C library --- there are
14149 # systems that have the functions but don't bother to declare them :-(
14151 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14152 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14153 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 $ac_includes_default
14167 char *p = (char *) snprintf;
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_have_decl_snprintf=yes
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_cv_have_decl_snprintf=no
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14206 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14207 if test $ac_cv_have_decl_snprintf = yes; then
14209 cat >>confdefs.h <<_ACEOF
14210 #define HAVE_DECL_SNPRINTF 1
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_DECL_SNPRINTF 0
14221 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14222 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14223 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14237 char *p = (char *) vsnprintf;
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_cv_have_decl_vsnprintf=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_have_decl_vsnprintf=no
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14276 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14277 if test $ac_cv_have_decl_vsnprintf = yes; then
14279 cat >>confdefs.h <<_ACEOF
14280 #define HAVE_DECL_VSNPRINTF 1
14285 cat >>confdefs.h <<_ACEOF
14286 #define HAVE_DECL_VSNPRINTF 0
14295 echo "$as_me:$LINENO: checking for isinf" >&5
14296 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14297 if test "${ac_cv_func_isinf+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14308 double glob_double;
14313 return isinf(glob_double) ? 0 : 1;
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14320 (eval $ac_link) 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_c_werror_flag"
14328 || test ! -s conftest.err'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_func_isinf=yes
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_cv_func_isinf=no
14347 rm -f conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14350 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14351 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14353 if test $ac_cv_func_isinf = yes ; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_ISINF 1
14361 "isinf.$ac_objext" | \
14362 *" isinf.$ac_objext" | \
14363 "isinf.$ac_objext "* | \
14364 *" isinf.$ac_objext "* ) ;;
14365 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14368 # Look for a way to implement a substitute for isinf()
14373 for ac_func in fpclass fp_class fp_class_d class
14375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14376 echo "$as_me:$LINENO: checking for $ac_func" >&5
14377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14378 if eval "test \"\${$as_ac_var+set}\" = set"; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14389 #define $ac_func innocuous_$ac_func
14391 /* System header to define __stub macros and hopefully few prototypes,
14392 which can conflict with char $ac_func (); below.
14393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14394 <limits.h> exists even on freestanding compilers. */
14397 # include <limits.h>
14399 # include <assert.h>
14404 /* Override any gcc2 internal prototype to avoid an error. */
14409 /* We use char because int might match the return type of a gcc2
14410 builtin and then its argument prototype would still apply. */
14412 /* The GNU C library defines this for functions which it implements
14413 to always fail with ENOSYS. Some functions are actually named
14414 something starting with __ and the normal name is an alias. */
14415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14418 char (*f) () = $ac_func;
14427 return f != $ac_func;
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14434 (eval $ac_link) 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest$ac_exeext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 eval "$as_ac_var=yes"
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 eval "$as_ac_var=no"
14461 rm -f conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14466 if test `eval echo '${'$as_ac_var'}'` = yes; then
14467 cat >>confdefs.h <<_ACEOF
14468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14489 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14492 echo "$as_me:$LINENO: checking for $ac_func" >&5
14493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14494 if eval "test \"\${$as_ac_var+set}\" = set"; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 cat >conftest.$ac_ext <<_ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14505 #define $ac_func innocuous_$ac_func
14507 /* System header to define __stub macros and hopefully few prototypes,
14508 which can conflict with char $ac_func (); below.
14509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14510 <limits.h> exists even on freestanding compilers. */
14513 # include <limits.h>
14515 # include <assert.h>
14520 /* Override any gcc2 internal prototype to avoid an error. */
14525 /* We use char because int might match the return type of a gcc2
14526 builtin and then its argument prototype would still apply. */
14528 /* The GNU C library defines this for functions which it implements
14529 to always fail with ENOSYS. Some functions are actually named
14530 something starting with __ and the normal name is an alias. */
14531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14534 char (*f) () = $ac_func;
14543 return f != $ac_func;
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14550 (eval $ac_link) 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest$ac_exeext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 eval "$as_ac_var=yes"
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 eval "$as_ac_var=no"
14577 rm -f conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext conftest.$ac_ext
14580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14582 if test `eval echo '${'$as_ac_var'}'` = yes; then
14583 cat >>confdefs.h <<_ACEOF
14584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14589 "$ac_func.$ac_objext" | \
14590 *" $ac_func.$ac_objext" | \
14591 "$ac_func.$ac_objext "* | \
14592 *" $ac_func.$ac_objext "* ) ;;
14593 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14601 # System's version of getaddrinfo(), if any, may be used only if we found
14602 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14603 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14604 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14605 # because we want to use our own getaddrinfo.c on Windows anyway.)
14606 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14608 for ac_func in getaddrinfo
14610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611 echo "$as_me:$LINENO: checking for $ac_func" >&5
14612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_var+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14624 #define $ac_func innocuous_$ac_func
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char $ac_func (); below.
14628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629 <limits.h> exists even on freestanding compilers. */
14632 # include <limits.h>
14634 # include <assert.h>
14639 /* Override any gcc2 internal prototype to avoid an error. */
14644 /* We use char because int might match the return type of a gcc2
14645 builtin and then its argument prototype would still apply. */
14647 /* The GNU C library defines this for functions which it implements
14648 to always fail with ENOSYS. Some functions are actually named
14649 something starting with __ and the normal name is an alias. */
14650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14653 char (*f) () = $ac_func;
14662 return f != $ac_func;
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>conftest.er1
14671 grep -v '^ *+' conftest.er1 >conftest.err
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -z "$ac_c_werror_flag"
14677 || test ! -s conftest.err'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; } &&
14683 { ac_try='test -s conftest$ac_exeext'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 eval "$as_ac_var=yes"
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 eval "$as_ac_var=no"
14696 rm -f conftest.err conftest.$ac_objext \
14697 conftest$ac_exeext conftest.$ac_ext
14699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14701 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702 cat >>confdefs.h <<_ACEOF
14703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708 "$ac_func.$ac_objext" | \
14709 *" $ac_func.$ac_objext" | \
14710 "$ac_func.$ac_objext "* | \
14711 *" $ac_func.$ac_objext "* ) ;;
14712 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14721 "getaddrinfo.$ac_objext" | \
14722 *" getaddrinfo.$ac_objext" | \
14723 "getaddrinfo.$ac_objext "* | \
14724 *" getaddrinfo.$ac_objext "* ) ;;
14725 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14730 # similarly, use system's getopt_long() only if system provides struct option.
14731 if test x"$ac_cv_type_struct_option" = xyes ; then
14733 for ac_func in getopt_long
14735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14736 echo "$as_me:$LINENO: checking for $ac_func" >&5
14737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14738 if eval "test \"\${$as_ac_var+set}\" = set"; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14749 #define $ac_func innocuous_$ac_func
14751 /* System header to define __stub macros and hopefully few prototypes,
14752 which can conflict with char $ac_func (); below.
14753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14754 <limits.h> exists even on freestanding compilers. */
14757 # include <limits.h>
14759 # include <assert.h>
14764 /* Override any gcc2 internal prototype to avoid an error. */
14769 /* We use char because int might match the return type of a gcc2
14770 builtin and then its argument prototype would still apply. */
14772 /* The GNU C library defines this for functions which it implements
14773 to always fail with ENOSYS. Some functions are actually named
14774 something starting with __ and the normal name is an alias. */
14775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14778 char (*f) () = $ac_func;
14787 return f != $ac_func;
14792 rm -f conftest.$ac_objext conftest$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794 (eval $ac_link) 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag"
14802 || test ! -s conftest.err'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest$ac_exeext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 eval "$as_ac_var=yes"
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 eval "$as_ac_var=no"
14821 rm -f conftest.err conftest.$ac_objext \
14822 conftest$ac_exeext conftest.$ac_ext
14824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14826 if test `eval echo '${'$as_ac_var'}'` = yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14833 "$ac_func.$ac_objext" | \
14834 *" $ac_func.$ac_objext" | \
14835 "$ac_func.$ac_objext "* | \
14836 *" $ac_func.$ac_objext "* ) ;;
14837 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14846 "getopt_long.$ac_objext" | \
14847 *" getopt_long.$ac_objext" | \
14848 "getopt_long.$ac_objext "* | \
14849 *" getopt_long.$ac_objext "* ) ;;
14850 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14855 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14856 # We override the previous test that said fseeko/ftello didn't exist
14857 # OS tests are also done in include/c.h and port/fseeko.c
14858 case $host_os in bsdi*|netbsd*)
14859 ac_cv_func_fseeko=yes
14862 # Solaris has a very slow qsort in certain cases, so we replace it:
14863 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14864 # Supposedly it is fixed in Solaris, but not sure which version, and
14865 # no confirmed testing. 2005-12-16
14866 if test "$PORTNAME" = "solaris"; then
14868 "qsort.$ac_objext" | \
14869 *" qsort.$ac_objext" | \
14870 "qsort.$ac_objext "* | \
14871 *" qsort.$ac_objext "* ) ;;
14872 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14878 if test "$PORTNAME" = "win32"; then
14880 "gettimeofday.$ac_objext" | \
14881 *" gettimeofday.$ac_objext" | \
14882 "gettimeofday.$ac_objext "* | \
14883 *" gettimeofday.$ac_objext "* ) ;;
14884 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14888 "kill.$ac_objext" | \
14889 *" kill.$ac_objext" | \
14890 "kill.$ac_objext "* | \
14891 *" kill.$ac_objext "* ) ;;
14892 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14896 "open.$ac_objext" | \
14897 *" open.$ac_objext" | \
14898 "open.$ac_objext "* | \
14899 *" open.$ac_objext "* ) ;;
14900 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14904 "rand.$ac_objext" | \
14905 *" rand.$ac_objext" | \
14906 "rand.$ac_objext "* | \
14907 *" rand.$ac_objext "* ) ;;
14908 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_SYMLINK 1
14918 if test "$with_readline" = yes; then
14919 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14920 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14928 #ifdef HAVE_READLINE_READLINE_H
14929 # include <readline/readline.h>
14930 #elif defined(HAVE_READLINE_H)
14931 # include <readline.h>
14937 rl_completion_append_character = 'x';
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14944 (eval $ac_link) 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest$ac_exeext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 echo "$as_me:$LINENO: result: yes" >&5
14965 echo "${ECHO_T}yes" >&6
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 echo "$as_me:$LINENO: result: no" >&5
14976 echo "${ECHO_T}no" >&6
14978 rm -f conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14982 for ac_func in rl_completion_matches rl_filename_completion_function
14984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14985 echo "$as_me:$LINENO: checking for $ac_func" >&5
14986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14987 if eval "test \"\${$as_ac_var+set}\" = set"; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 cat >conftest.$ac_ext <<_ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14998 #define $ac_func innocuous_$ac_func
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func (); below.
15002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15003 <limits.h> exists even on freestanding compilers. */
15006 # include <limits.h>
15008 # include <assert.h>
15013 /* Override any gcc2 internal prototype to avoid an error. */
15018 /* We use char because int might match the return type of a gcc2
15019 builtin and then its argument prototype would still apply. */
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15027 char (*f) () = $ac_func;
15036 return f != $ac_func;
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043 (eval $ac_link) 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -z "$ac_c_werror_flag"
15051 || test ! -s conftest.err'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 eval "$as_ac_var=yes"
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 eval "$as_ac_var=no"
15070 rm -f conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
15073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15075 if test `eval echo '${'$as_ac_var'}'` = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15084 for ac_func in replace_history_entry
15086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15087 echo "$as_me:$LINENO: checking for $ac_func" >&5
15088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15089 if eval "test \"\${$as_ac_var+set}\" = set"; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15100 #define $ac_func innocuous_$ac_func
15102 /* System header to define __stub macros and hopefully few prototypes,
15103 which can conflict with char $ac_func (); below.
15104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15105 <limits.h> exists even on freestanding compilers. */
15108 # include <limits.h>
15110 # include <assert.h>
15115 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15123 /* The GNU C library defines this for functions which it implements
15124 to always fail with ENOSYS. Some functions are actually named
15125 something starting with __ and the normal name is an alias. */
15126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15129 char (*f) () = $ac_func;
15138 return f != $ac_func;
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -z "$ac_c_werror_flag"
15153 || test ! -s conftest.err'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 eval "$as_ac_var=yes"
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 eval "$as_ac_var=no"
15172 rm -f conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15177 if test `eval echo '${'$as_ac_var'}'` = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15188 echo "$as_me:$LINENO: checking for finite" >&5
15189 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15198 double glob_double;
15203 return finite(glob_double) ? 0 : 1;
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210 (eval $ac_link) 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag"
15218 || test ! -s conftest.err'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15231 cat >>confdefs.h <<\_ACEOF
15232 #define HAVE_FINITE 1
15235 echo "$as_me:$LINENO: result: yes" >&5
15236 echo "${ECHO_T}yes" >&6
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 echo "$as_me:$LINENO: result: no" >&5
15242 echo "${ECHO_T}no" >&6
15244 rm -f conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15247 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15248 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #include <setjmp.h>
15259 sigjmp_buf x; sigsetjmp(x, 1);
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15266 (eval $ac_link) 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try='test -s conftest$ac_exeext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_SIGSETJMP 1
15291 echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 echo "$as_me:$LINENO: result: no" >&5
15298 echo "${ECHO_T}no" >&6
15300 rm -f conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15303 echo "$as_me:$LINENO: checking for syslog" >&5
15304 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15305 if test "${ac_cv_func_syslog+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15316 #define syslog innocuous_syslog
15318 /* System header to define __stub macros and hopefully few prototypes,
15319 which can conflict with char syslog (); below.
15320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15321 <limits.h> exists even on freestanding compilers. */
15324 # include <limits.h>
15326 # include <assert.h>
15331 /* Override any gcc2 internal prototype to avoid an error. */
15336 /* We use char because int might match the return type of a gcc2
15337 builtin and then its argument prototype would still apply. */
15339 /* The GNU C library defines this for functions which it implements
15340 to always fail with ENOSYS. Some functions are actually named
15341 something starting with __ and the normal name is an alias. */
15342 #if defined (__stub_syslog) || defined (__stub___syslog)
15345 char (*f) () = syslog;
15354 return f != syslog;
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>conftest.er1
15363 grep -v '^ *+' conftest.er1 >conftest.err
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_cv_func_syslog=yes
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 ac_cv_func_syslog=no
15388 rm -f conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15391 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15392 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15393 if test $ac_cv_func_syslog = yes; then
15394 if test "${ac_cv_header_syslog_h+set}" = set; then
15395 echo "$as_me:$LINENO: checking for syslog.h" >&5
15396 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15397 if test "${ac_cv_header_syslog_h+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15401 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15403 # Is the header compilable?
15404 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15405 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15413 #include <syslog.h>
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15419 grep -v '^ *+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_header_compiler=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_header_compiler=no
15444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15446 echo "${ECHO_T}$ac_header_compiler" >&6
15448 # Is the header present?
15449 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15450 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 #include <syslog.h>
15459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15462 grep -v '^ *+' conftest.er1 >conftest.err
15464 cat conftest.err >&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } >/dev/null; then
15467 if test -s conftest.err; then
15468 ac_cpp_err=$ac_c_preproc_warn_flag
15469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15476 if test -z "$ac_cpp_err"; then
15477 ac_header_preproc=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_header_preproc=no
15484 rm -f conftest.err conftest.$ac_ext
15485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15486 echo "${ECHO_T}$ac_header_preproc" >&6
15488 # So? What about this header?
15489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15491 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15492 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15494 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15495 ac_header_preproc=yes
15498 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15499 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15501 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15503 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15505 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15507 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15509 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15512 ## ---------------------------------------- ##
15513 ## Report this to pgsql-bugs@postgresql.org ##
15514 ## ---------------------------------------- ##
15517 sed "s/^/$as_me: WARNING: /" >&2
15520 echo "$as_me:$LINENO: checking for syslog.h" >&5
15521 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15522 if test "${ac_cv_header_syslog_h+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 ac_cv_header_syslog_h=$ac_header_preproc
15527 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15528 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15531 if test $ac_cv_header_syslog_h = yes; then
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_SYSLOG 1
15543 echo "$as_me:$LINENO: checking for optreset" >&5
15544 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15545 if test "${pgac_cv_var_int_optreset+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 #include <unistd.h>
15558 extern int optreset; optreset = 1;
15563 rm -f conftest.$ac_objext conftest$ac_exeext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15565 (eval $ac_link) 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -z "$ac_c_werror_flag"
15573 || test ! -s conftest.err'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest$ac_exeext'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 pgac_cv_var_int_optreset=yes
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 pgac_cv_var_int_optreset=no
15592 rm -f conftest.err conftest.$ac_objext \
15593 conftest$ac_exeext conftest.$ac_ext
15595 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15596 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15597 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15599 cat >>confdefs.h <<\_ACEOF
15600 #define HAVE_INT_OPTRESET 1
15607 for ac_func in strtoll strtoq
15609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15610 echo "$as_me:$LINENO: checking for $ac_func" >&5
15611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15612 if eval "test \"\${$as_ac_var+set}\" = set"; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15623 #define $ac_func innocuous_$ac_func
15625 /* System header to define __stub macros and hopefully few prototypes,
15626 which can conflict with char $ac_func (); below.
15627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15628 <limits.h> exists even on freestanding compilers. */
15631 # include <limits.h>
15633 # include <assert.h>
15638 /* Override any gcc2 internal prototype to avoid an error. */
15643 /* We use char because int might match the return type of a gcc2
15644 builtin and then its argument prototype would still apply. */
15646 /* The GNU C library defines this for functions which it implements
15647 to always fail with ENOSYS. Some functions are actually named
15648 something starting with __ and the normal name is an alias. */
15649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15652 char (*f) () = $ac_func;
15661 return f != $ac_func;
15666 rm -f conftest.$ac_objext conftest$ac_exeext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15668 (eval $ac_link) 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag"
15676 || test ! -s conftest.err'
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); }; } &&
15682 { ac_try='test -s conftest$ac_exeext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 eval "$as_ac_var=yes"
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 eval "$as_ac_var=no"
15695 rm -f conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15700 if test `eval echo '${'$as_ac_var'}'` = yes; then
15701 cat >>confdefs.h <<_ACEOF
15702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15710 for ac_func in strtoull strtouq
15712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15713 echo "$as_me:$LINENO: checking for $ac_func" >&5
15714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15715 if eval "test \"\${$as_ac_var+set}\" = set"; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15726 #define $ac_func innocuous_$ac_func
15728 /* System header to define __stub macros and hopefully few prototypes,
15729 which can conflict with char $ac_func (); below.
15730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15731 <limits.h> exists even on freestanding compilers. */
15734 # include <limits.h>
15736 # include <assert.h>
15741 /* Override any gcc2 internal prototype to avoid an error. */
15746 /* We use char because int might match the return type of a gcc2
15747 builtin and then its argument prototype would still apply. */
15749 /* The GNU C library defines this for functions which it implements
15750 to always fail with ENOSYS. Some functions are actually named
15751 something starting with __ and the normal name is an alias. */
15752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15755 char (*f) () = $ac_func;
15764 return f != $ac_func;
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 eval "$as_ac_var=yes"
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 eval "$as_ac_var=no"
15798 rm -f conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15803 if test `eval echo '${'$as_ac_var'}'` = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15812 # Check for one of atexit() or on_exit()
15814 for ac_func in atexit
15816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15817 echo "$as_me:$LINENO: checking for $ac_func" >&5
15818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15819 if eval "test \"\${$as_ac_var+set}\" = set"; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15830 #define $ac_func innocuous_$ac_func
15832 /* System header to define __stub macros and hopefully few prototypes,
15833 which can conflict with char $ac_func (); below.
15834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15835 <limits.h> exists even on freestanding compilers. */
15838 # include <limits.h>
15840 # include <assert.h>
15845 /* Override any gcc2 internal prototype to avoid an error. */
15850 /* We use char because int might match the return type of a gcc2
15851 builtin and then its argument prototype would still apply. */
15853 /* The GNU C library defines this for functions which it implements
15854 to always fail with ENOSYS. Some functions are actually named
15855 something starting with __ and the normal name is an alias. */
15856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15859 char (*f) () = $ac_func;
15868 return f != $ac_func;
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>conftest.er1
15877 grep -v '^ *+' conftest.er1 >conftest.err
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest$ac_exeext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 eval "$as_ac_var=yes"
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 eval "$as_ac_var=no"
15902 rm -f conftest.err conftest.$ac_objext \
15903 conftest$ac_exeext conftest.$ac_ext
15905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15907 if test `eval echo '${'$as_ac_var'}'` = yes; then
15908 cat >>confdefs.h <<_ACEOF
15909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15914 for ac_func in on_exit
15916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15917 echo "$as_me:$LINENO: checking for $ac_func" >&5
15918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15919 if eval "test \"\${$as_ac_var+set}\" = set"; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15930 #define $ac_func innocuous_$ac_func
15932 /* System header to define __stub macros and hopefully few prototypes,
15933 which can conflict with char $ac_func (); below.
15934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15935 <limits.h> exists even on freestanding compilers. */
15938 # include <limits.h>
15940 # include <assert.h>
15945 /* Override any gcc2 internal prototype to avoid an error. */
15950 /* We use char because int might match the return type of a gcc2
15951 builtin and then its argument prototype would still apply. */
15953 /* The GNU C library defines this for functions which it implements
15954 to always fail with ENOSYS. Some functions are actually named
15955 something starting with __ and the normal name is an alias. */
15956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15959 char (*f) () = $ac_func;
15968 return f != $ac_func;
15973 rm -f conftest.$ac_objext conftest$ac_exeext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15975 (eval $ac_link) 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag"
15983 || test ! -s conftest.err'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try='test -s conftest$ac_exeext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 eval "$as_ac_var=yes"
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 eval "$as_ac_var=no"
16002 rm -f conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16007 if test `eval echo '${'$as_ac_var'}'` = yes; then
16008 cat >>confdefs.h <<_ACEOF
16009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16013 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16014 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16015 { (exit 1); exit 1; }; }
16023 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16024 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16025 if test "${ac_cv_sys_largefile_source+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 ac_cv_sys_largefile_source=no
16030 cat >conftest.$ac_ext <<_ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16045 rm -f conftest.$ac_objext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16047 (eval $ac_compile) 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } &&
16054 { ac_try='test -z "$ac_c_werror_flag"
16055 || test ! -s conftest.err'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #define _LARGEFILE_SOURCE 1
16090 rm -f conftest.$ac_objext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16092 (eval $ac_compile) 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_cv_sys_largefile_source=1; break
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16123 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16124 if test "$ac_cv_sys_largefile_source" != no; then
16126 cat >>confdefs.h <<_ACEOF
16127 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16133 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16134 # in glibc 2.1.3, but that breaks too many other things.
16135 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16136 echo "$as_me:$LINENO: checking for fseeko" >&5
16137 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16138 if test "${ac_cv_func_fseeko+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16151 return fseeko && fseeko (stdin, 0, 0);
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>conftest.er1
16160 grep -v '^ *+' conftest.er1 >conftest.err
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag"
16166 || test ! -s conftest.err'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try='test -s conftest$ac_exeext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_func_fseeko=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_cv_func_fseeko=no
16185 rm -f conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
16188 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16189 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16190 if test $ac_cv_func_fseeko = yes; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_FSEEKO 1
16202 # For each platform, we need to know about any special compile and link
16203 # libraries, and whether the normal C function names are thread-safe.
16204 # See the comment at the top of src/port/thread.c for more information.
16206 if test "$enable_thread_safety" = yes; then
16212 ac_cpp='$CPP $CPPFLAGS'
16213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16219 # We used to check for pthread.h first, but this fails if pthread.h
16220 # requires special compiler flags (e.g. on True64 or Sequent).
16221 # It gets checked for in the link test anyway.
16223 # First of all, check if the user has set any of the PTHREAD_LIBS,
16224 # etcetera environment variables, and if threads linking works using
16226 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16227 save_CFLAGS="$CFLAGS"
16228 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16230 LIBS="$PTHREAD_LIBS $LIBS"
16231 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16232 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16240 /* Override any gcc2 internal prototype to avoid an error. */
16244 /* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
16246 char pthread_join ();
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16283 rm -f conftest.err conftest.$ac_objext \
16284 conftest$ac_exeext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16286 echo "${ECHO_T}$acx_pthread_ok" >&6
16287 if test x"$acx_pthread_ok" = xno; then
16292 CFLAGS="$save_CFLAGS"
16295 # We must check for the threads library under a number of different
16296 # names; the ordering is very important because some systems
16297 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16298 # libraries is broken (non-POSIX).
16300 # Create a list of thread flags to try. Items starting with a "-" are
16301 # C compiler flags, and other items are library names, except for "none"
16302 # which indicates that we try without any flags at all, and "pthread-config"
16303 # which is a program returning the flags for the Pth emulation library.
16305 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16307 # The ordering *is* (sometimes) important. Some notes on the
16308 # individual items follow:
16310 # pthreads: AIX (must check this before -lpthread)
16311 # none: in case threads are in libc; should be tried before -Kthread and
16312 # other compiler flags to prevent continual compiler warnings
16313 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16314 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16315 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16316 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16317 # -pthreads: Solaris/gcc
16318 # -mthreads: Mingw32/gcc, Lynx/gcc
16319 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16320 # doesn't hurt to check since this sometimes defines pthreads too;
16321 # also defines -D_REENTRANT)
16322 # pthread: Linux, etcetera
16323 # --thread-safe: KAI C++
16324 # pthread-config: use pthread-config program (for GNU Pth library)
16326 case "${host_cpu}-${host_os}" in
16329 # On Solaris (at least, for some versions), libc contains stubbed
16330 # (non-functional) versions of the pthreads routines, so link-based
16331 # tests will erroneously succeed. (We need to link with -pthread or
16332 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16333 # a function called by this macro, so we could check for that, but
16334 # who knows whether they'll stub that too in a future libc.) So,
16335 # we'll just look for -pthreads and -lpthread first:
16337 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16341 if test x"$acx_pthread_ok" = xno; then
16342 for flag in $acx_pthread_flags; do
16344 tryPTHREAD_CFLAGS=""
16348 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16349 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16353 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16354 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16355 tryPTHREAD_CFLAGS="$flag"
16359 # skip this if we already have flags defined, for PostgreSQL
16360 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16361 # Extract the first word of "pthread-config", so it can be a program name with args.
16362 set dummy pthread-config; ac_word=$2
16363 echo "$as_me:$LINENO: checking for $ac_word" >&5
16364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16365 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 if test -n "$acx_pthread_config"; then
16369 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16372 for as_dir in $PATH
16375 test -z "$as_dir" && as_dir=.
16376 for ac_exec_ext in '' $ac_executable_extensions; do
16377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16378 ac_cv_prog_acx_pthread_config="yes"
16379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16385 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16388 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16389 if test -n "$acx_pthread_config"; then
16390 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16391 echo "${ECHO_T}$acx_pthread_config" >&6
16393 echo "$as_me:$LINENO: result: no" >&5
16394 echo "${ECHO_T}no" >&6
16397 if test x"$acx_pthread_config" = xno; then continue; fi
16398 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16399 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16403 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16404 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16405 tryPTHREAD_LIBS="-l$flag"
16410 save_CFLAGS="$CFLAGS"
16411 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16412 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16414 # Check for various functions. We must include pthread.h,
16415 # since some functions may be macros. (On the Sequent, we
16416 # need a special flag -Kthread to make this header compile.)
16417 # We check for pthread_join because it is in -lpthread on IRIX
16418 # while pthread_create is in libc. We check for pthread_attr_init
16419 # due to DEC craziness with -lpthreads. We check for
16420 # pthread_cleanup_push because it is one of the few pthread
16421 # functions on Solaris that doesn't have a non-functional libc stub.
16422 # We try pthread_create on general principles.
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 #include <pthread.h>
16433 pthread_t th; pthread_join(th, 0);
16434 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16435 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442 (eval $ac_link) 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_c_werror_flag"
16450 || test ! -s conftest.err'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest$ac_exeext'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16469 rm -f conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16472 if test "x$acx_pthread_ok" = xyes; then
16473 # Don't use options that are ignored by the compiler.
16474 # We find them by checking stderror.
16475 cat >conftest.$ac_ext <<_ACEOF
16477 main (int argc, char **argv)
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16486 # we continue with more flags because Linux needs -lpthread
16487 # for libpq builds on PostgreSQL. The test above only
16488 # tests for building binaries, not shared libraries.
16489 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16490 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16491 else acx_pthread_ok=no
16496 CFLAGS="$save_CFLAGS"
16498 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16499 echo "${ECHO_T}$acx_pthread_ok" >&6
16503 # Various other checks:
16504 if test "x$acx_pthread_ok" = xyes; then
16506 LIBS="$PTHREAD_LIBS $LIBS"
16507 save_CFLAGS="$CFLAGS"
16508 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16510 # Detect AIX lossage: threads are created detached by default
16511 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16512 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16513 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <pthread.h>
16524 int attr=PTHREAD_CREATE_JOINABLE;
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest$ac_exeext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ok=PTHREAD_CREATE_JOINABLE
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16558 rm -f conftest.err conftest.$ac_objext \
16559 conftest$ac_exeext conftest.$ac_ext
16560 if test x"$ok" = xunknown; then
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 #include <pthread.h>
16571 int attr=PTHREAD_CREATE_UNDETACHED;
16576 rm -f conftest.$ac_objext conftest$ac_exeext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16578 (eval $ac_link) 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag"
16586 || test ! -s conftest.err'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest$ac_exeext'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ok=PTHREAD_CREATE_UNDETACHED
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16605 rm -f conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16608 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16610 cat >>confdefs.h <<\_ACEOF
16611 #define PTHREAD_CREATE_JOINABLE $ok
16615 echo "$as_me:$LINENO: result: ${ok}" >&5
16616 echo "${ECHO_T}${ok}" >&6
16617 if test x"$ok" = xunknown; then
16618 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16619 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16622 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16623 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16625 # We always add these in PostgreSQL
16626 # case "${host_cpu}-${host_os}" in
16627 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16628 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16630 echo "$as_me:$LINENO: result: ${flag}" >&5
16631 echo "${ECHO_T}${flag}" >&6
16632 if test "x$flag" != xno; then
16633 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16637 CFLAGS="$save_CFLAGS"
16639 # Supporting cc_r would require a special CC in all places that
16640 # use libpq, and that is ugly, so we don't do it. Users can still
16641 # define their compiler as cc_r to do thread builds of everything.
16642 # More AIX lossage: must compile with cc_r
16643 # Extract the first word of "cc_r", so it can be a program name with args.
16644 set dummy cc_r; ac_word=$2
16645 echo "$as_me:$LINENO: checking for $ac_word" >&5
16646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16647 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 if test -n "$PTHREAD_CC"; then
16651 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16654 for as_dir in $PATH
16657 test -z "$as_dir" && as_dir=.
16658 for ac_exec_ext in '' $ac_executable_extensions; do
16659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16660 ac_cv_prog_PTHREAD_CC="cc_r"
16661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16667 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16670 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16671 if test -n "$PTHREAD_CC"; then
16672 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16673 echo "${ECHO_T}$PTHREAD_CC" >&6
16675 echo "$as_me:$LINENO: result: no" >&5
16676 echo "${ECHO_T}no" >&6
16687 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16688 if test x"$acx_pthread_ok" = xyes; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_PTHREAD 1
16700 ac_cpp='$CPP $CPPFLAGS'
16701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16707 # Some platforms use these, so just defineed them. They can't hurt if they
16708 # are not supported.
16709 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16712 # At this point, we don't want to muck with the compiler name for threading.
16713 # Let's see who fails, perhaps AIX. 2004-04-23
16714 if test "$PTHREAD_CC" != "$CC"; then
16715 { { echo "$as_me:$LINENO: error:
16716 PostgreSQL does not support platforms that require a special
16717 compiler binary for thread-safety.
16719 echo "$as_me: error:
16720 PostgreSQL does not support platforms that require a special
16721 compiler binary for thread-safety.
16723 { (exit 1); exit 1; }; }
16726 if test "$THREAD_SUPPORT" = no; then
16727 { { echo "$as_me:$LINENO: error:
16728 Cannot enable threads on your platform.
16729 Your platform is known to not support thread-safe programs.
16730 For details, compile and run src/bin/pg_thread_test.
16732 echo "$as_me: error:
16733 Cannot enable threads on your platform.
16734 Your platform is known to not support thread-safe programs.
16735 For details, compile and run src/bin/pg_thread_test.
16737 { (exit 1); exit 1; }; }
16740 # Check for *_r functions
16743 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16744 LIBS="$LIBS $PTHREAD_LIBS"
16746 if test "${ac_cv_header_pthread_h+set}" = set; then
16747 echo "$as_me:$LINENO: checking for pthread.h" >&5
16748 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16749 if test "${ac_cv_header_pthread_h+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16753 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16755 # Is the header compilable?
16756 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16757 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 $ac_includes_default
16765 #include <pthread.h>
16767 rm -f conftest.$ac_objext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_header_compiler=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_compiler=no
16796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16798 echo "${ECHO_T}$ac_header_compiler" >&6
16800 # Is the header present?
16801 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16802 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 #include <pthread.h>
16811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } >/dev/null; then
16819 if test -s conftest.err; then
16820 ac_cpp_err=$ac_c_preproc_warn_flag
16821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16828 if test -z "$ac_cpp_err"; then
16829 ac_header_preproc=yes
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_header_preproc=no
16836 rm -f conftest.err conftest.$ac_ext
16837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16838 echo "${ECHO_T}$ac_header_preproc" >&6
16840 # So? What about this header?
16841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16843 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16844 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16845 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16846 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16847 ac_header_preproc=yes
16850 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16851 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16853 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16855 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16857 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16859 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16861 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16864 ## ---------------------------------------- ##
16865 ## Report this to pgsql-bugs@postgresql.org ##
16866 ## ---------------------------------------- ##
16869 sed "s/^/$as_me: WARNING: /" >&2
16872 echo "$as_me:$LINENO: checking for pthread.h" >&5
16873 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16874 if test "${ac_cv_header_pthread_h+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 ac_cv_header_pthread_h=$ac_header_preproc
16879 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16880 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16883 if test $ac_cv_header_pthread_h = yes; then
16886 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16887 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16888 { (exit 1); exit 1; }; }
16896 for ac_func in strerror_r getpwuid_r gethostbyname_r
16898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899 echo "$as_me:$LINENO: checking for $ac_func" >&5
16900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16901 if eval "test \"\${$as_ac_var+set}\" = set"; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912 #define $ac_func innocuous_$ac_func
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16920 # include <limits.h>
16922 # include <assert.h>
16927 /* Override any gcc2 internal prototype to avoid an error. */
16932 /* We use char because int might match the return type of a gcc2
16933 builtin and then its argument prototype would still apply. */
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 char (*f) () = $ac_func;
16950 return f != $ac_func;
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -z "$ac_c_werror_flag"
16965 || test ! -s conftest.err'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 eval "$as_ac_var=yes"
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 eval "$as_ac_var=no"
16984 rm -f conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16989 if test `eval echo '${'$as_ac_var'}'` = yes; then
16990 cat >>confdefs.h <<_ACEOF
16991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 # Do test here with the proper thread flags
16999 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17000 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17001 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 cat >conftest.$ac_ext <<_ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 #include <sys/types.h>
17016 struct passwd *space;
17019 struct passwd **result;
17020 getpwuid_r(uid, space, buf, bufsize, result);
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17029 grep -v '^ *+' conftest.er1 >conftest.err
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 pgac_func_getpwuid_r_5arg=yes
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 pgac_func_getpwuid_r_5arg=no
17054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17056 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17057 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17058 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17060 cat >>confdefs.h <<\_ACEOF
17061 #define GETPWUID_R_5ARG
17066 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17067 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17068 if test "${pgac_func_strerror_r_int+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include <string.h>
17082 int strerror_r(int, char *, size_t);
17084 /* Older AIX has 'int' for the third argument so we don't test the args. */
17091 rm -f conftest.$ac_objext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17093 (eval $ac_compile) 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag"
17101 || test ! -s conftest.err'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest.$ac_objext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 pgac_func_strerror_r_int=yes
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 pgac_func_strerror_r_int=no
17120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17122 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17123 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17124 if test x"$pgac_func_strerror_r_int" = xyes ; then
17126 cat >>confdefs.h <<\_ACEOF
17127 #define STRERROR_R_INT
17137 # do not use values from template file
17146 # This test makes sure that run tests work at all. Sometimes a shared
17147 # library is found by the linker, but the runtime linker can't find it.
17148 # This check should come after all modifications of compiler or linker
17149 # variables, and before any other run tests.
17150 echo "$as_me:$LINENO: checking test program" >&5
17151 echo $ECHO_N "checking test program... $ECHO_C" >&6
17152 if test "$cross_compiling" = yes; then
17153 echo "$as_me:$LINENO: result: cross-compiling" >&5
17154 echo "${ECHO_T}cross-compiling" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 int main() { return 0; }
17164 rm -f conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166 (eval $ac_link) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 echo "$as_me:$LINENO: result: ok" >&5
17176 echo "${ECHO_T}ok" >&6
17178 echo "$as_me: program exited with status $ac_status" >&5
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 ( exit $ac_status )
17183 echo "$as_me:$LINENO: result: failed" >&5
17184 echo "${ECHO_T}failed" >&6
17185 { { echo "$as_me:$LINENO: error:
17186 *** Could not execute a simple test program. This may be a problem
17187 *** related to locating shared libraries. Check the file 'config.log'
17188 *** for the exact reason." >&5
17189 echo "$as_me: error:
17190 *** Could not execute a simple test program. This may be a problem
17191 *** related to locating shared libraries. Check the file 'config.log'
17192 *** for the exact reason." >&2;}
17193 { (exit 1); exit 1; }; }
17195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17198 # --------------------
17199 # Run tests below here
17200 # --------------------
17202 # Force use of our snprintf if system's doesn't do arg control
17203 # See comment above at snprintf test for details.
17204 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17205 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17206 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17207 if test "${pgac_cv_printf_arg_control+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 if test "$cross_compiling" = yes; then
17211 pgac_cv_printf_arg_control=cross
17213 cat >conftest.$ac_ext <<_ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17220 #include <string.h>
17226 /* can it swap arguments? */
17227 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17228 if (strcmp(buf, "4 3") != 0)
17233 rm -f conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 pgac_cv_printf_arg_control=yes
17246 echo "$as_me: program exited with status $ac_status" >&5
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ( exit $ac_status )
17251 pgac_cv_printf_arg_control=no
17253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17257 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17258 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17260 if test $pgac_cv_printf_arg_control != yes ; then
17261 pgac_need_repl_snprintf=yes
17267 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17268 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17269 if test "${pgac_cv_type_long_int_64+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 if test "$cross_compiling" = yes; then
17273 # If cross-compiling, check the size reported by the compiler and
17274 # trust that the arithmetic works.
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17285 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17292 rm -f conftest.$ac_objext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17294 (eval $ac_compile) 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 pgac_cv_type_long_int_64=yes
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 pgac_cv_type_long_int_64=no
17321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17323 cat >conftest.$ac_ext <<_ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 typedef long int ac_int64;
17332 * These are globals to discourage the compiler from folding all the
17333 * arithmetic tests down to compile-time constants.
17335 ac_int64 a = 20000001;
17336 ac_int64 b = 40000005;
17338 int does_int64_work()
17342 if (sizeof(ac_int64) != 8)
17343 return 0; /* definitely not the right size */
17345 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17353 exit(! does_int64_work());
17356 rm -f conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 pgac_cv_type_long_int_64=yes
17369 echo "$as_me: program exited with status $ac_status" >&5
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ( exit $ac_status )
17374 pgac_cv_type_long_int_64=no
17376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17379 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17380 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17382 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17383 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_LONG_INT_64
17392 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17393 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17394 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17395 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 if test "$cross_compiling" = yes; then
17399 # If cross-compiling, check the size reported by the compiler and
17400 # trust that the arithmetic works.
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17411 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17418 rm -f conftest.$ac_objext
17419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17420 (eval $ac_compile) 2>conftest.er1
17422 grep -v '^ *+' conftest.er1 >conftest.err
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try='test -z "$ac_c_werror_flag"
17428 || test ! -s conftest.err'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest.$ac_objext'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 pgac_cv_type_long_long_int_64=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 pgac_cv_type_long_long_int_64=no
17447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 typedef long long int ac_int64;
17458 * These are globals to discourage the compiler from folding all the
17459 * arithmetic tests down to compile-time constants.
17461 ac_int64 a = 20000001;
17462 ac_int64 b = 40000005;
17464 int does_int64_work()
17468 if (sizeof(ac_int64) != 8)
17469 return 0; /* definitely not the right size */
17471 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17479 exit(! does_int64_work());
17482 rm -f conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 pgac_cv_type_long_long_int_64=yes
17495 echo "$as_me: program exited with status $ac_status" >&5
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 ( exit $ac_status )
17500 pgac_cv_type_long_long_int_64=no
17502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17505 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17506 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17508 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17509 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17511 cat >>confdefs.h <<\_ACEOF
17512 #define HAVE_LONG_LONG_INT_64
17521 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17529 #define INT64CONST(x) x##LL
17530 long long int foo = INT64CONST(0x1234567890123456);
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } &&
17549 { ac_try='test -z "$ac_c_werror_flag"
17550 || test ! -s conftest.err'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17563 cat >>confdefs.h <<\_ACEOF
17564 #define HAVE_LL_CONSTANTS 1
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17576 # If we found "long int" is 64 bits, assume snprintf handles it. If
17577 # we found we need to use "long long int", better check. We cope with
17578 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17579 # work, fall back to our own snprintf emulation (which we know uses %lld).
17581 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17582 if test $pgac_need_repl_snprintf = no; then
17583 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17584 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17585 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 for pgac_format in '%lld' '%qd' '%I64d'; do
17589 if test "$cross_compiling" = yes; then
17590 pgac_cv_snprintf_long_long_int_format=cross; break
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 typedef long long int ac_int64;
17600 #define INT64_FORMAT "$pgac_format"
17602 ac_int64 a = 20000001;
17603 ac_int64 b = 40000005;
17605 int does_int64_snprintf_work()
17610 if (sizeof(ac_int64) != 8)
17611 return 0; /* doesn't look like the right size */
17614 snprintf(buf, 100, INT64_FORMAT, c);
17615 if (strcmp(buf, "800000140000005") != 0)
17616 return 0; /* either multiply or snprintf is busted */
17620 exit(! does_int64_snprintf_work());
17623 rm -f conftest$ac_exeext
17624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17625 (eval $ac_link) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17636 echo "$as_me: program exited with status $ac_status" >&5
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17646 LONG_LONG_INT_FORMAT=''
17648 case $pgac_cv_snprintf_long_long_int_format in
17649 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17650 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17651 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17652 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17653 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17654 *) echo "$as_me:$LINENO: result: none" >&5
17655 echo "${ECHO_T}none" >&6;;
17657 if test "$LONG_LONG_INT_FORMAT" = ""; then
17658 # Force usage of our own snprintf, since system snprintf is broken
17659 pgac_need_repl_snprintf=yes
17660 LONG_LONG_INT_FORMAT='%lld'
17663 # Here if we previously decided we needed to use our own snprintf
17664 LONG_LONG_INT_FORMAT='%lld'
17666 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17667 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17668 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17670 # Here if we are not using 'long long int' at all
17671 INT64_FORMAT='"%ld"'
17672 UINT64_FORMAT='"%lu"'
17676 cat >>confdefs.h <<_ACEOF
17677 #define INT64_FORMAT $INT64_FORMAT
17682 cat >>confdefs.h <<_ACEOF
17683 #define UINT64_FORMAT $UINT64_FORMAT
17687 # Now we have checked all the reasons to replace snprintf
17688 if test $pgac_need_repl_snprintf = yes; then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define USE_REPL_SNPRINTF 1
17695 "snprintf.$ac_objext" | \
17696 *" snprintf.$ac_objext" | \
17697 "snprintf.$ac_objext "* | \
17698 *" snprintf.$ac_objext "* ) ;;
17699 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17704 # Need a #define for the size of Datum (unsigned long)
17705 echo "$as_me:$LINENO: checking for unsigned long" >&5
17706 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17707 if test "${ac_cv_type_unsigned_long+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 cat >conftest.$ac_ext <<_ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 $ac_includes_default
17720 if ((unsigned long *) 0)
17722 if (sizeof (unsigned long))
17728 rm -f conftest.$ac_objext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest.$ac_objext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_type_unsigned_long=yes
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_cv_type_unsigned_long=no
17757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17759 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17760 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17762 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17763 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17764 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 if test "$ac_cv_type_unsigned_long" = yes; then
17768 # The cast to unsigned long works around a bug in the HP C Compiler
17769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17771 # This bug is HP SR number 8606223364.
17772 if test "$cross_compiling" = yes; then
17773 # Depending upon the size, compute the lo and hi bounds.
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 $ac_includes_default
17784 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17791 rm -f conftest.$ac_objext
17792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17793 (eval $ac_compile) 2>conftest.er1
17795 grep -v '^ *+' conftest.er1 >conftest.err
17797 cat conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
17800 { ac_try='test -z "$ac_c_werror_flag"
17801 || test ! -s conftest.err'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; } &&
17807 { ac_try='test -s conftest.$ac_objext'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 $ac_includes_default
17825 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17832 rm -f conftest.$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>conftest.er1
17836 grep -v '^ *+' conftest.er1 >conftest.err
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_hi=$ac_mid; break
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 ac_lo=`expr $ac_mid + 1`
17860 if test $ac_lo -le $ac_mid; then
17864 ac_mid=`expr 2 '*' $ac_mid + 1`
17866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17882 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17889 rm -f conftest.$ac_objext
17890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17891 (eval $ac_compile) 2>conftest.er1
17893 grep -v '^ *+' conftest.er1 >conftest.err
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try='test -z "$ac_c_werror_flag"
17899 || test ! -s conftest.err'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try='test -s conftest.$ac_objext'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 $ac_includes_default
17923 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17930 rm -f conftest.$ac_objext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17932 (eval $ac_compile) 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag"
17940 || test ! -s conftest.err'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_lo=$ac_mid; break
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_hi=`expr '(' $ac_mid ')' - 1`
17958 if test $ac_mid -le $ac_hi; then
17962 ac_mid=`expr 2 '*' $ac_mid`
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17975 # Binary search between lo and hi bounds.
17976 while test "x$ac_lo" != "x$ac_hi"; do
17977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17988 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17995 rm -f conftest.$ac_objext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>conftest.er1
17999 grep -v '^ *+' conftest.er1 >conftest.err
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -z "$ac_c_werror_flag"
18005 || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_lo=`expr '(' $ac_mid ')' + 1`
18024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18027 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18028 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18029 See \`config.log' for more details." >&5
18030 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18031 See \`config.log' for more details." >&2;}
18032 { (exit 1); exit 1; }; } ;;
18035 if test "$cross_compiling" = yes; then
18036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18037 See \`config.log' for more details." >&5
18038 echo "$as_me: error: cannot run test program while cross compiling
18039 See \`config.log' for more details." >&2;}
18040 { (exit 1); exit 1; }; }
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 long longval () { return (long) (sizeof (unsigned long)); }
18050 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18052 #include <stdlib.h>
18057 FILE *f = fopen ("conftest.val", "w");
18060 if (((long) (sizeof (unsigned long))) < 0)
18062 long i = longval ();
18063 if (i != ((long) (sizeof (unsigned long))))
18065 fprintf (f, "%ld\n", i);
18069 unsigned long i = ulongval ();
18070 if (i != ((long) (sizeof (unsigned long))))
18072 fprintf (f, "%lu\n", i);
18074 exit (ferror (f) || fclose (f) != 0);
18080 rm -f conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18093 echo "$as_me: program exited with status $ac_status" >&5
18094 echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18097 ( exit $ac_status )
18098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18099 See \`config.log' for more details." >&5
18100 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18101 See \`config.log' for more details." >&2;}
18102 { (exit 1); exit 1; }; }
18104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18109 ac_cv_sizeof_unsigned_long=0
18112 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18113 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18114 cat >>confdefs.h <<_ACEOF
18115 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18120 # And one for the size of size_t (enables tweaks for > 32bit address space)
18121 echo "$as_me:$LINENO: checking for size_t" >&5
18122 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18123 if test "${ac_cv_type_size_t+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 cat >conftest.$ac_ext <<_ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18132 $ac_includes_default
18138 if (sizeof (size_t))
18144 rm -f conftest.$ac_objext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146 (eval $ac_compile) 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag"
18154 || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_type_size_t=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_type_size_t=no
18173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18175 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18176 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18178 echo "$as_me:$LINENO: checking size of size_t" >&5
18179 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18180 if test "${ac_cv_sizeof_size_t+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 if test "$ac_cv_type_size_t" = yes; then
18184 # The cast to unsigned long works around a bug in the HP C Compiler
18185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18187 # This bug is HP SR number 8606223364.
18188 if test "$cross_compiling" = yes; then
18189 # Depending upon the size, compute the lo and hi bounds.
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 $ac_includes_default
18200 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18207 rm -f conftest.$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18237 $ac_includes_default
18241 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18248 rm -f conftest.$ac_objext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18250 (eval $ac_compile) 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag"
18258 || test ! -s conftest.err'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest.$ac_objext'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_hi=$ac_mid; break
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18275 ac_lo=`expr $ac_mid + 1`
18276 if test $ac_lo -le $ac_mid; then
18280 ac_mid=`expr 2 '*' $ac_mid + 1`
18282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 cat >conftest.$ac_ext <<_ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 $ac_includes_default
18298 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18305 rm -f conftest.$ac_objext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307 (eval $ac_compile) 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
18314 { ac_try='test -z "$ac_c_werror_flag"
18315 || test ! -s conftest.err'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; } &&
18321 { ac_try='test -s conftest.$ac_objext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18329 cat >conftest.$ac_ext <<_ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18335 $ac_includes_default
18339 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18346 rm -f conftest.$ac_objext
18347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18348 (eval $ac_compile) 2>conftest.er1
18350 grep -v '^ *+' conftest.er1 >conftest.err
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try='test -z "$ac_c_werror_flag"
18356 || test ! -s conftest.err'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; } &&
18362 { ac_try='test -s conftest.$ac_objext'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_lo=$ac_mid; break
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 ac_hi=`expr '(' $ac_mid ')' - 1`
18374 if test $ac_mid -le $ac_hi; then
18378 ac_mid=`expr 2 '*' $ac_mid`
18380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 # Binary search between lo and hi bounds.
18392 while test "x$ac_lo" != "x$ac_hi"; do
18393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18394 cat >conftest.$ac_ext <<_ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 $ac_includes_default
18404 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413 (eval $ac_compile) 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag"
18421 || test ! -s conftest.err'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest.$ac_objext'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 ac_lo=`expr '(' $ac_mid ')' + 1`
18440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18443 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18444 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18445 See \`config.log' for more details." >&5
18446 echo "$as_me: error: cannot compute sizeof (size_t), 77
18447 See \`config.log' for more details." >&2;}
18448 { (exit 1); exit 1; }; } ;;
18451 if test "$cross_compiling" = yes; then
18452 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18453 See \`config.log' for more details." >&5
18454 echo "$as_me: error: cannot run test program while cross compiling
18455 See \`config.log' for more details." >&2;}
18456 { (exit 1); exit 1; }; }
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 $ac_includes_default
18465 long longval () { return (long) (sizeof (size_t)); }
18466 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18468 #include <stdlib.h>
18473 FILE *f = fopen ("conftest.val", "w");
18476 if (((long) (sizeof (size_t))) < 0)
18478 long i = longval ();
18479 if (i != ((long) (sizeof (size_t))))
18481 fprintf (f, "%ld\n", i);
18485 unsigned long i = ulongval ();
18486 if (i != ((long) (sizeof (size_t))))
18488 fprintf (f, "%lu\n", i);
18490 exit (ferror (f) || fclose (f) != 0);
18496 rm -f conftest$ac_exeext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18498 (eval $ac_link) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_sizeof_size_t=`cat conftest.val`
18509 echo "$as_me: program exited with status $ac_status" >&5
18510 echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 ( exit $ac_status )
18514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18515 See \`config.log' for more details." >&5
18516 echo "$as_me: error: cannot compute sizeof (size_t), 77
18517 See \`config.log' for more details." >&2;}
18518 { (exit 1); exit 1; }; }
18520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18525 ac_cv_sizeof_size_t=0
18528 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18529 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18530 cat >>confdefs.h <<_ACEOF
18531 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18536 # Determine memory alignment requirements for the basic C data types.
18538 echo "$as_me:$LINENO: checking for short" >&5
18539 echo $ECHO_N "checking for short... $ECHO_C" >&6
18540 if test "${ac_cv_type_short+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 cat >conftest.$ac_ext <<_ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18549 $ac_includes_default
18555 if (sizeof (short))
18561 rm -f conftest.$ac_objext
18562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18563 (eval $ac_compile) 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag"
18571 || test ! -s conftest.err'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_type_short=yes
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 ac_cv_type_short=no
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18592 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18593 echo "${ECHO_T}$ac_cv_type_short" >&6
18595 echo "$as_me:$LINENO: checking alignment of short" >&5
18596 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18597 if test "${pgac_cv_alignof_short+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 if test "$ac_cv_type_short" = yes; then
18601 if test "$cross_compiling" = yes; then
18602 # Depending upon the size, compute the lo and hi bounds.
18603 cat >conftest.$ac_ext <<_ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 $ac_includes_default
18610 struct { char filler; short field; } pgac_struct;
18614 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18621 rm -f conftest.$ac_objext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18623 (eval $ac_compile) 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag"
18631 || test ! -s conftest.err'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest.$ac_objext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 $ac_includes_default
18652 struct { char filler; short field; } pgac_struct;
18656 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18663 rm -f conftest.$ac_objext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag"
18673 || test ! -s conftest.err'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try='test -s conftest.$ac_objext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 ac_hi=$ac_mid; break
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_lo=`expr $ac_mid + 1`
18691 if test $ac_lo -le $ac_mid; then
18695 ac_mid=`expr 2 '*' $ac_mid + 1`
18697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 $ac_includes_default
18710 struct { char filler; short field; } pgac_struct;
18714 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18721 rm -f conftest.$ac_objext
18722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18723 (eval $ac_compile) 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
18730 { ac_try='test -z "$ac_c_werror_flag"
18731 || test ! -s conftest.err'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18745 cat >conftest.$ac_ext <<_ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 $ac_includes_default
18752 struct { char filler; short field; } pgac_struct;
18756 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18763 rm -f conftest.$ac_objext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765 (eval $ac_compile) 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_lo=$ac_mid; break
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_hi=`expr '(' $ac_mid ')' - 1`
18791 if test $ac_mid -le $ac_hi; then
18795 ac_mid=`expr 2 '*' $ac_mid`
18797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18808 # Binary search between lo and hi bounds.
18809 while test "x$ac_lo" != "x$ac_hi"; do
18810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18811 cat >conftest.$ac_ext <<_ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 $ac_includes_default
18818 struct { char filler; short field; } pgac_struct;
18822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>conftest.er1
18833 grep -v '^ *+' conftest.er1 >conftest.err
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_lo=`expr '(' $ac_mid ')' + 1`
18858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18861 ?*) pgac_cv_alignof_short=$ac_lo;;
18862 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18863 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18864 { (exit 1); exit 1; }; } ;;
18867 if test "$cross_compiling" = yes; then
18868 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18869 See \`config.log' for more details." >&5
18870 echo "$as_me: error: cannot run test program while cross compiling
18871 See \`config.log' for more details." >&2;}
18872 { (exit 1); exit 1; }; }
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 $ac_includes_default
18881 struct { char filler; short field; } pgac_struct;
18882 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18883 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18885 #include <stdlib.h>
18890 FILE *f = fopen ("conftest.val", "w");
18893 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18895 long i = longval ();
18896 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18898 fprintf (f, "%ld\n", i);
18902 unsigned long i = ulongval ();
18903 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18905 fprintf (f, "%lu\n", i);
18907 exit (ferror (f) || fclose (f) != 0);
18913 rm -f conftest$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 pgac_cv_alignof_short=`cat conftest.val`
18926 echo "$as_me: program exited with status $ac_status" >&5
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18930 ( exit $ac_status )
18931 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18932 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18933 { (exit 1); exit 1; }; }
18935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18940 pgac_cv_alignof_short=0
18943 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18944 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18945 cat >>confdefs.h <<_ACEOF
18946 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18950 echo "$as_me:$LINENO: checking for int" >&5
18951 echo $ECHO_N "checking for int... $ECHO_C" >&6
18952 if test "${ac_cv_type_int+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18973 rm -f conftest.$ac_objext
18974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18975 (eval $ac_compile) 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag"
18983 || test ! -s conftest.err'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest.$ac_objext'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19004 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19005 echo "${ECHO_T}$ac_cv_type_int" >&6
19007 echo "$as_me:$LINENO: checking alignment of int" >&5
19008 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19009 if test "${pgac_cv_alignof_int+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 if test "$ac_cv_type_int" = yes; then
19013 if test "$cross_compiling" = yes; then
19014 # Depending upon the size, compute the lo and hi bounds.
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 $ac_includes_default
19022 struct { char filler; int field; } pgac_struct;
19026 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19057 cat >conftest.$ac_ext <<_ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 $ac_includes_default
19064 struct { char filler; int field; } pgac_struct;
19068 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19075 rm -f conftest.$ac_objext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19077 (eval $ac_compile) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_hi=$ac_mid; break
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_lo=`expr $ac_mid + 1`
19103 if test $ac_lo -le $ac_mid; then
19107 ac_mid=`expr 2 '*' $ac_mid + 1`
19109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 cat >conftest.$ac_ext <<_ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 $ac_includes_default
19122 struct { char filler; int field; } pgac_struct;
19126 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>conftest.er1
19137 grep -v '^ *+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -z "$ac_c_werror_flag"
19143 || test ! -s conftest.err'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19163 $ac_includes_default
19164 struct { char filler; int field; } pgac_struct;
19168 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19175 rm -f conftest.$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_lo=$ac_mid; break
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_hi=`expr '(' $ac_mid ')' - 1`
19203 if test $ac_mid -le $ac_hi; then
19207 ac_mid=`expr 2 '*' $ac_mid`
19209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 # Binary search between lo and hi bounds.
19221 while test "x$ac_lo" != "x$ac_hi"; do
19222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 $ac_includes_default
19230 struct { char filler; int field; } pgac_struct;
19234 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19241 rm -f conftest.$ac_objext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19243 (eval $ac_compile) 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest.$ac_objext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 ac_lo=`expr '(' $ac_mid ')' + 1`
19270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19273 ?*) pgac_cv_alignof_int=$ac_lo;;
19274 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19275 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19276 { (exit 1); exit 1; }; } ;;
19279 if test "$cross_compiling" = yes; then
19280 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19281 See \`config.log' for more details." >&5
19282 echo "$as_me: error: cannot run test program while cross compiling
19283 See \`config.log' for more details." >&2;}
19284 { (exit 1); exit 1; }; }
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 $ac_includes_default
19293 struct { char filler; int field; } pgac_struct;
19294 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19295 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19297 #include <stdlib.h>
19302 FILE *f = fopen ("conftest.val", "w");
19305 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19307 long i = longval ();
19308 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19310 fprintf (f, "%ld\n", i);
19314 unsigned long i = ulongval ();
19315 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19317 fprintf (f, "%lu\n", i);
19319 exit (ferror (f) || fclose (f) != 0);
19325 rm -f conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 pgac_cv_alignof_int=`cat conftest.val`
19338 echo "$as_me: program exited with status $ac_status" >&5
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ( exit $ac_status )
19343 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19344 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19345 { (exit 1); exit 1; }; }
19347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19352 pgac_cv_alignof_int=0
19355 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19356 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19357 cat >>confdefs.h <<_ACEOF
19358 #define ALIGNOF_INT $pgac_cv_alignof_int
19362 echo "$as_me:$LINENO: checking for long" >&5
19363 echo $ECHO_N "checking for long... $ECHO_C" >&6
19364 if test "${ac_cv_type_long+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 $ac_includes_default
19385 rm -f conftest.$ac_objext
19386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19387 (eval $ac_compile) 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_c_werror_flag"
19395 || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest.$ac_objext'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 ac_cv_type_long=yes
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19417 echo "${ECHO_T}$ac_cv_type_long" >&6
19419 echo "$as_me:$LINENO: checking alignment of long" >&5
19420 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19421 if test "${pgac_cv_alignof_long+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 if test "$ac_cv_type_long" = yes; then
19425 if test "$cross_compiling" = yes; then
19426 # Depending upon the size, compute the lo and hi bounds.
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433 $ac_includes_default
19434 struct { char filler; long field; } pgac_struct;
19438 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19445 rm -f conftest.$ac_objext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19447 (eval $ac_compile) 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_c_werror_flag"
19455 || test ! -s conftest.err'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest.$ac_objext'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 $ac_includes_default
19476 struct { char filler; long field; } pgac_struct;
19480 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19487 rm -f conftest.$ac_objext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19489 (eval $ac_compile) 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_c_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest.$ac_objext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 ac_hi=$ac_mid; break
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_lo=`expr $ac_mid + 1`
19515 if test $ac_lo -le $ac_mid; then
19519 ac_mid=`expr 2 '*' $ac_mid + 1`
19521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 $ac_includes_default
19534 struct { char filler; long field; } pgac_struct;
19538 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19545 rm -f conftest.$ac_objext
19546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19547 (eval $ac_compile) 2>conftest.er1
19549 grep -v '^ *+' conftest.er1 >conftest.err
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } &&
19554 { ac_try='test -z "$ac_c_werror_flag"
19555 || test ! -s conftest.err'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest.$ac_objext'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19575 $ac_includes_default
19576 struct { char filler; long field; } pgac_struct;
19580 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_lo=$ac_mid; break
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 ac_hi=`expr '(' $ac_mid ')' - 1`
19615 if test $ac_mid -le $ac_hi; then
19619 ac_mid=`expr 2 '*' $ac_mid`
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19632 # Binary search between lo and hi bounds.
19633 while test "x$ac_lo" != "x$ac_hi"; do
19634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19635 cat >conftest.$ac_ext <<_ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 $ac_includes_default
19642 struct { char filler; long field; } pgac_struct;
19646 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19653 rm -f conftest.$ac_objext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655 (eval $ac_compile) 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_c_werror_flag"
19663 || test ! -s conftest.err'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } &&
19669 { ac_try='test -s conftest.$ac_objext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_lo=`expr '(' $ac_mid ')' + 1`
19682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19685 ?*) pgac_cv_alignof_long=$ac_lo;;
19686 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19687 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19688 { (exit 1); exit 1; }; } ;;
19691 if test "$cross_compiling" = yes; then
19692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19693 See \`config.log' for more details." >&5
19694 echo "$as_me: error: cannot run test program while cross compiling
19695 See \`config.log' for more details." >&2;}
19696 { (exit 1); exit 1; }; }
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 $ac_includes_default
19705 struct { char filler; long field; } pgac_struct;
19706 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19707 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19709 #include <stdlib.h>
19714 FILE *f = fopen ("conftest.val", "w");
19717 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19719 long i = longval ();
19720 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19722 fprintf (f, "%ld\n", i);
19726 unsigned long i = ulongval ();
19727 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19729 fprintf (f, "%lu\n", i);
19731 exit (ferror (f) || fclose (f) != 0);
19737 rm -f conftest$ac_exeext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19739 (eval $ac_link) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 pgac_cv_alignof_long=`cat conftest.val`
19750 echo "$as_me: program exited with status $ac_status" >&5
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ( exit $ac_status )
19755 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19756 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19757 { (exit 1); exit 1; }; }
19759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19764 pgac_cv_alignof_long=0
19767 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19768 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19769 cat >>confdefs.h <<_ACEOF
19770 #define ALIGNOF_LONG $pgac_cv_alignof_long
19774 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19775 echo "$as_me:$LINENO: checking for long long int" >&5
19776 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19777 if test "${ac_cv_type_long_long_int+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
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
19790 if ((long long int *) 0)
19792 if (sizeof (long long int))
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag"
19808 || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_type_long_long_int=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_type_long_long_int=no
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19830 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19832 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19833 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19834 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 if test "$ac_cv_type_long_long_int" = yes; then
19838 if test "$cross_compiling" = yes; then
19839 # Depending upon the size, compute the lo and hi bounds.
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 $ac_includes_default
19847 struct { char filler; long long int field; } pgac_struct;
19851 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19858 rm -f conftest.$ac_objext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19889 struct { char filler; long long int field; } pgac_struct;
19893 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19900 rm -f conftest.$ac_objext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_hi=$ac_mid; break
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_lo=`expr $ac_mid + 1`
19928 if test $ac_lo -le $ac_mid; then
19932 ac_mid=`expr 2 '*' $ac_mid + 1`
19934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 $ac_includes_default
19947 struct { char filler; long long int field; } pgac_struct;
19951 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19958 rm -f conftest.$ac_objext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>conftest.er1
19962 grep -v '^ *+' conftest.er1 >conftest.err
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
19967 { ac_try='test -z "$ac_c_werror_flag"
19968 || test ! -s conftest.err'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest.$ac_objext'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 struct { char filler; long long int field; } pgac_struct;
19993 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20000 rm -f conftest.$ac_objext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>conftest.er1
20004 grep -v '^ *+' conftest.er1 >conftest.err
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
20009 { ac_try='test -z "$ac_c_werror_flag"
20010 || test ! -s conftest.err'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest.$ac_objext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 ac_lo=$ac_mid; break
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20027 ac_hi=`expr '(' $ac_mid ')' - 1`
20028 if test $ac_mid -le $ac_hi; then
20032 ac_mid=`expr 2 '*' $ac_mid`
20034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20045 # Binary search between lo and hi bounds.
20046 while test "x$ac_lo" != "x$ac_hi"; do
20047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20055 struct { char filler; long long int field; } pgac_struct;
20059 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20070 grep -v '^ *+' conftest.er1 >conftest.err
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_lo=`expr '(' $ac_mid ')' + 1`
20095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20098 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20099 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20100 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20101 { (exit 1); exit 1; }; } ;;
20104 if test "$cross_compiling" = yes; then
20105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20106 See \`config.log' for more details." >&5
20107 echo "$as_me: error: cannot run test program while cross compiling
20108 See \`config.log' for more details." >&2;}
20109 { (exit 1); exit 1; }; }
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 $ac_includes_default
20118 struct { char filler; long long int field; } pgac_struct;
20119 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20120 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20122 #include <stdlib.h>
20127 FILE *f = fopen ("conftest.val", "w");
20130 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20132 long i = longval ();
20133 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20135 fprintf (f, "%ld\n", i);
20139 unsigned long i = ulongval ();
20140 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20142 fprintf (f, "%lu\n", i);
20144 exit (ferror (f) || fclose (f) != 0);
20150 rm -f conftest$ac_exeext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20152 (eval $ac_link) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 pgac_cv_alignof_long_long_int=`cat conftest.val`
20163 echo "$as_me: program exited with status $ac_status" >&5
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ( exit $ac_status )
20168 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20169 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20170 { (exit 1); exit 1; }; }
20172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177 pgac_cv_alignof_long_long_int=0
20180 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20181 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20182 cat >>confdefs.h <<_ACEOF
20183 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20188 echo "$as_me:$LINENO: checking for double" >&5
20189 echo $ECHO_N "checking for double... $ECHO_C" >&6
20190 if test "${ac_cv_type_double+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 $ac_includes_default
20205 if (sizeof (double))
20211 rm -f conftest.$ac_objext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213 (eval $ac_compile) 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_c_werror_flag"
20221 || test ! -s conftest.err'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20233 ac_cv_type_double=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_cv_type_double=no
20240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20242 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20243 echo "${ECHO_T}$ac_cv_type_double" >&6
20245 echo "$as_me:$LINENO: checking alignment of double" >&5
20246 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20247 if test "${pgac_cv_alignof_double+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 if test "$ac_cv_type_double" = yes; then
20251 if test "$cross_compiling" = yes; then
20252 # Depending upon the size, compute the lo and hi bounds.
20253 cat >conftest.$ac_ext <<_ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 $ac_includes_default
20260 struct { char filler; double field; } pgac_struct;
20264 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 $ac_includes_default
20302 struct { char filler; double field; } pgac_struct;
20306 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20313 rm -f conftest.$ac_objext
20314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315 (eval $ac_compile) 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } &&
20322 { ac_try='test -z "$ac_c_werror_flag"
20323 || test ! -s conftest.err'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest.$ac_objext'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; }; then
20335 ac_hi=$ac_mid; break
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_lo=`expr $ac_mid + 1`
20341 if test $ac_lo -le $ac_mid; then
20345 ac_mid=`expr 2 '*' $ac_mid + 1`
20347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 cat >conftest.$ac_ext <<_ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20359 $ac_includes_default
20360 struct { char filler; double field; } pgac_struct;
20364 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20371 rm -f conftest.$ac_objext
20372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20373 (eval $ac_compile) 2>conftest.er1
20375 grep -v '^ *+' conftest.er1 >conftest.err
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try='test -z "$ac_c_werror_flag"
20381 || test ! -s conftest.err'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 $ac_includes_default
20402 struct { char filler; double field; } pgac_struct;
20406 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20413 rm -f conftest.$ac_objext
20414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20415 (eval $ac_compile) 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } &&
20422 { ac_try='test -z "$ac_c_werror_flag"
20423 || test ! -s conftest.err'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_lo=$ac_mid; break
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_hi=`expr '(' $ac_mid ')' - 1`
20441 if test $ac_mid -le $ac_hi; then
20445 ac_mid=`expr 2 '*' $ac_mid`
20447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458 # Binary search between lo and hi bounds.
20459 while test "x$ac_lo" != "x$ac_hi"; do
20460 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 $ac_includes_default
20468 struct { char filler; double field; } pgac_struct;
20472 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20479 rm -f conftest.$ac_objext
20480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20481 (eval $ac_compile) 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
20488 { ac_try='test -z "$ac_c_werror_flag"
20489 || test ! -s conftest.err'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; } &&
20495 { ac_try='test -s conftest.$ac_objext'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_lo=`expr '(' $ac_mid ')' + 1`
20508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20511 ?*) pgac_cv_alignof_double=$ac_lo;;
20512 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20513 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20514 { (exit 1); exit 1; }; } ;;
20517 if test "$cross_compiling" = yes; then
20518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20519 See \`config.log' for more details." >&5
20520 echo "$as_me: error: cannot run test program while cross compiling
20521 See \`config.log' for more details." >&2;}
20522 { (exit 1); exit 1; }; }
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 $ac_includes_default
20531 struct { char filler; double field; } pgac_struct;
20532 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20533 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20535 #include <stdlib.h>
20540 FILE *f = fopen ("conftest.val", "w");
20543 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20545 long i = longval ();
20546 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20548 fprintf (f, "%ld\n", i);
20552 unsigned long i = ulongval ();
20553 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20555 fprintf (f, "%lu\n", i);
20557 exit (ferror (f) || fclose (f) != 0);
20563 rm -f conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 pgac_cv_alignof_double=`cat conftest.val`
20576 echo "$as_me: program exited with status $ac_status" >&5
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ( exit $ac_status )
20581 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20582 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20583 { (exit 1); exit 1; }; }
20585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20590 pgac_cv_alignof_double=0
20593 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20594 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20595 cat >>confdefs.h <<_ACEOF
20596 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20601 # Compute maximum alignment of any basic type.
20602 # We assume long's alignment is at least as strong as char, short, or int;
20603 # but we must check long long (if it exists) and double.
20605 MAX_ALIGNOF=$pgac_cv_alignof_long
20606 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20607 MAX_ALIGNOF=$pgac_cv_alignof_double
20609 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20610 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20613 cat >>confdefs.h <<_ACEOF
20614 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20619 # Some platforms predefine the types int8, int16, etc. Only check
20620 # a (hopefully) representative subset.
20621 echo "$as_me:$LINENO: checking for int8" >&5
20622 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20623 if test "${ac_cv_type_int8+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 cat >conftest.$ac_ext <<_ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20633 #ifdef HAVE_SUPPORTDEFS_H
20634 #include <SupportDefs.h>
20648 rm -f conftest.$ac_objext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20650 (eval $ac_compile) 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_c_werror_flag"
20658 || test ! -s conftest.err'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_type_int8=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20680 echo "${ECHO_T}$ac_cv_type_int8" >&6
20681 if test $ac_cv_type_int8 = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684 #define HAVE_INT8 1
20689 echo "$as_me:$LINENO: checking for uint8" >&5
20690 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20691 if test "${ac_cv_type_uint8+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 #ifdef HAVE_SUPPORTDEFS_H
20702 #include <SupportDefs.h>
20710 if (sizeof (uint8))
20716 rm -f conftest.$ac_objext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20718 (eval $ac_compile) 2>conftest.er1
20720 grep -v '^ *+' conftest.er1 >conftest.err
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -z "$ac_c_werror_flag"
20726 || test ! -s conftest.err'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try='test -s conftest.$ac_objext'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 ac_cv_type_uint8=yes
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ac_cv_type_uint8=no
20745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20747 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20748 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20749 if test $ac_cv_type_uint8 = yes; then
20751 cat >>confdefs.h <<_ACEOF
20752 #define HAVE_UINT8 1
20757 echo "$as_me:$LINENO: checking for int64" >&5
20758 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20759 if test "${ac_cv_type_int64+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20769 #ifdef HAVE_SUPPORTDEFS_H
20770 #include <SupportDefs.h>
20778 if (sizeof (int64))
20784 rm -f conftest.$ac_objext
20785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20786 (eval $ac_compile) 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_c_werror_flag"
20794 || test ! -s conftest.err'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 ac_cv_type_int64=yes
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_cv_type_int64=no
20813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20816 echo "${ECHO_T}$ac_cv_type_int64" >&6
20817 if test $ac_cv_type_int64 = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define HAVE_INT64 1
20825 echo "$as_me:$LINENO: checking for uint64" >&5
20826 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20827 if test "${ac_cv_type_uint64+set}" = set; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 #ifdef HAVE_SUPPORTDEFS_H
20838 #include <SupportDefs.h>
20846 if (sizeof (uint64))
20852 rm -f conftest.$ac_objext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854 (eval $ac_compile) 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try='test -s conftest.$ac_objext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_type_uint64=yes
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_cv_type_uint64=no
20881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20883 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20884 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20885 if test $ac_cv_type_uint64 = yes; then
20887 cat >>confdefs.h <<_ACEOF
20888 #define HAVE_UINT64 1
20895 # We also check for sig_atomic_t, which *should* be defined per ANSI
20896 # C, but is missing on some old platforms.
20897 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20898 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20899 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 cat >conftest.$ac_ext <<_ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20908 #include <signal.h>
20913 if ((sig_atomic_t *) 0)
20915 if (sizeof (sig_atomic_t))
20921 rm -f conftest.$ac_objext
20922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20923 (eval $ac_compile) 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -z "$ac_c_werror_flag"
20931 || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_type_sig_atomic_t=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_type_sig_atomic_t=no
20950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20952 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20953 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20954 if test $ac_cv_type_sig_atomic_t = yes; then
20956 cat >>confdefs.h <<_ACEOF
20957 #define HAVE_SIG_ATOMIC_T 1
20965 if test x"$template" != x"win32"
20967 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20968 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20969 if test "${pgac_cv_func_posix_signals+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 #include <signal.h>
20983 struct sigaction act, oact;
20984 sigemptyset(&act.sa_mask);
20985 act.sa_flags = SA_RESTART;
20986 sigaction(0, &act, &oact);
20991 rm -f conftest.$ac_objext conftest$ac_exeext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20993 (eval $ac_link) 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag"
21001 || test ! -s conftest.err'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; } &&
21007 { ac_try='test -s conftest$ac_exeext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 pgac_cv_func_posix_signals=yes
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 pgac_cv_func_posix_signals=no
21020 rm -f conftest.err conftest.$ac_objext \
21021 conftest$ac_exeext conftest.$ac_ext
21023 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21024 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21025 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21027 cat >>confdefs.h <<\_ACEOF
21028 #define HAVE_POSIX_SIGNALS
21032 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21034 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21035 { { echo "$as_me:$LINENO: error:
21036 *** Thread-safety requires POSIX signals, which are not supported by your
21037 *** operating system.
21039 echo "$as_me: error:
21040 *** Thread-safety requires POSIX signals, which are not supported by your
21041 *** operating system.
21043 { (exit 1); exit 1; }; }
21047 if test $ac_cv_func_fseeko = yes; then
21048 # Check whether --enable-largefile or --disable-largefile was given.
21049 if test "${enable_largefile+set}" = set; then
21050 enableval="$enable_largefile"
21053 if test "$enable_largefile" != no; then
21055 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21056 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21057 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 ac_cv_sys_largefile_CC=no
21061 if test "$GCC" != yes; then
21064 # IRIX 6.2 and later do not support large files by default,
21065 # so use the C compiler's -n32 option if that helps.
21066 cat >conftest.$ac_ext <<_ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 #include <sys/types.h>
21073 /* Check that off_t can represent 2**63 - 1 correctly.
21074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21075 since some C++ compilers masquerading as C compilers
21076 incorrectly reject 9223372036854775807. */
21077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21079 && LARGE_OFF_T % 2147483647 == 1)
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_c_werror_flag"
21099 || test ! -s conftest.err'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21117 rm -f conftest.err conftest.$ac_objext
21119 rm -f conftest.$ac_objext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21121 (eval $ac_compile) 2>conftest.er1
21123 grep -v '^ *+' conftest.er1 >conftest.err
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
21128 { ac_try='test -z "$ac_c_werror_flag"
21129 || test ! -s conftest.err'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try='test -s conftest.$ac_objext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_cv_sys_largefile_CC=' -n32'; break
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21147 rm -f conftest.err conftest.$ac_objext
21151 rm -f conftest.$ac_ext
21154 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21155 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21156 if test "$ac_cv_sys_largefile_CC" != no; then
21157 CC=$CC$ac_cv_sys_largefile_CC
21160 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21161 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21162 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 ac_cv_sys_file_offset_bits=no
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <sys/types.h>
21174 /* Check that off_t can represent 2**63 - 1 correctly.
21175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21176 since some C++ compilers masquerading as C compilers
21177 incorrectly reject 9223372036854775807. */
21178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21180 && LARGE_OFF_T % 2147483647 == 1)
21190 rm -f conftest.$ac_objext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
21199 { ac_try='test -z "$ac_c_werror_flag"
21200 || test ! -s conftest.err'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try='test -s conftest.$ac_objext'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 #define _FILE_OFFSET_BITS 64
21226 #include <sys/types.h>
21227 /* Check that off_t can represent 2**63 - 1 correctly.
21228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21229 since some C++ compilers masquerading as C compilers
21230 incorrectly reject 9223372036854775807. */
21231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21233 && LARGE_OFF_T % 2147483647 == 1)
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>conftest.er1
21247 grep -v '^ *+' conftest.er1 >conftest.err
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try='test -z "$ac_c_werror_flag"
21253 || test ! -s conftest.err'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
21265 ac_cv_sys_file_offset_bits=64; break
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21275 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21276 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21277 if test "$ac_cv_sys_file_offset_bits" != no; then
21279 cat >>confdefs.h <<_ACEOF
21280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21285 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21286 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21287 if test "${ac_cv_sys_large_files+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 ac_cv_sys_large_files=no
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 #include <sys/types.h>
21299 /* Check that off_t can represent 2**63 - 1 correctly.
21300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21301 since some C++ compilers masquerading as C compilers
21302 incorrectly reject 9223372036854775807. */
21303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21305 && LARGE_OFF_T % 2147483647 == 1)
21315 rm -f conftest.$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317 (eval $ac_compile) 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
21324 { ac_try='test -z "$ac_c_werror_flag"
21325 || test ! -s conftest.err'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; } &&
21331 { ac_try='test -s conftest.$ac_objext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #define _LARGE_FILES 1
21351 #include <sys/types.h>
21352 /* Check that off_t can represent 2**63 - 1 correctly.
21353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21354 since some C++ compilers masquerading as C compilers
21355 incorrectly reject 9223372036854775807. */
21356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21358 && LARGE_OFF_T % 2147483647 == 1)
21368 rm -f conftest.$ac_objext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370 (eval $ac_compile) 2>conftest.er1
21372 grep -v '^ *+' conftest.er1 >conftest.err
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } &&
21377 { ac_try='test -z "$ac_c_werror_flag"
21378 || test ! -s conftest.err'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; } &&
21384 { ac_try='test -s conftest.$ac_objext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_sys_large_files=1; break
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21400 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21401 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21402 if test "$ac_cv_sys_large_files" != no; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define _LARGE_FILES $ac_cv_sys_large_files
21414 # SunOS doesn't handle negative byte comparisons properly with +/- return
21415 echo "$as_me:$LINENO: checking for working memcmp" >&5
21416 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21417 if test "${ac_cv_func_memcmp_working+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 if test "$cross_compiling" = yes; then
21421 ac_cv_func_memcmp_working=no
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 $ac_includes_default
21434 /* Some versions of memcmp are not 8-bit clean. */
21435 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21436 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21439 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21440 or more and with at least one buffer not starting on a 4-byte boundary.
21441 William Lewis provided this test program. */
21446 for (i = 0; i < 4; i++)
21450 strcpy (a, "--------01111111");
21451 strcpy (b, "--------10000000");
21452 if (memcmp (a, b, 16) >= 0)
21462 rm -f conftest$ac_exeext
21463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464 (eval $ac_link) 2>&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_cv_func_memcmp_working=yes
21475 echo "$as_me: program exited with status $ac_status" >&5
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ( exit $ac_status )
21480 ac_cv_func_memcmp_working=no
21482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21485 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21486 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21487 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21488 "memcmp.$ac_objext" | \
21489 *" memcmp.$ac_objext" | \
21490 "memcmp.$ac_objext "* | \
21491 *" memcmp.$ac_objext "* ) ;;
21492 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21498 # Select semaphore implementation type.
21499 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21501 cat >>confdefs.h <<\_ACEOF
21502 #define USE_NAMED_POSIX_SEMAPHORES 1
21505 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21507 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21513 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21516 cat >>confdefs.h <<\_ACEOF
21517 #define USE_SYSV_SEMAPHORES 1
21520 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21525 # Select shared-memory implementation type.
21527 cat >>confdefs.h <<\_ACEOF
21528 #define USE_SYSV_SHARED_MEMORY 1
21531 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21534 # If not set in template file, set bytes to use libc memset()
21535 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21536 MEMSET_LOOP_LIMIT=1024
21539 cat >>confdefs.h <<_ACEOF
21540 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21545 if test "$enable_nls" = yes ; then
21547 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21548 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21549 if test "${ac_cv_search_gettext+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 ac_func_search_save_LIBS=$LIBS
21553 ac_cv_search_gettext=no
21554 cat >conftest.$ac_ext <<_ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21561 /* Override any gcc2 internal prototype to avoid an error. */
21565 /* We use char because int might match the return type of a gcc2
21566 builtin and then its argument prototype would still apply. */
21576 rm -f conftest.$ac_objext conftest$ac_exeext
21577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>conftest.er1
21580 grep -v '^ *+' conftest.er1 >conftest.err
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
21585 { ac_try='test -z "$ac_c_werror_flag"
21586 || test ! -s conftest.err'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest$ac_exeext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ac_cv_search_gettext="none required"
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21604 rm -f conftest.err conftest.$ac_objext \
21605 conftest$ac_exeext conftest.$ac_ext
21606 if test "$ac_cv_search_gettext" = no; then
21607 for ac_lib in intl; do
21608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21616 /* Override any gcc2 internal prototype to avoid an error. */
21620 /* We use char because int might match the return type of a gcc2
21621 builtin and then its argument prototype would still apply. */
21631 rm -f conftest.$ac_objext conftest$ac_exeext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21633 (eval $ac_link) 2>conftest.er1
21635 grep -v '^ *+' conftest.er1 >conftest.err
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag"
21641 || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest$ac_exeext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 ac_cv_search_gettext="-l$ac_lib"
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21660 rm -f conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21664 LIBS=$ac_func_search_save_LIBS
21666 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21667 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21668 if test "$ac_cv_search_gettext" != no; then
21669 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21672 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21673 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21674 { (exit 1); exit 1; }; }
21677 if test "${ac_cv_header_libintl_h+set}" = set; then
21678 echo "$as_me:$LINENO: checking for libintl.h" >&5
21679 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21680 if test "${ac_cv_header_libintl_h+set}" = set; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21684 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21686 # Is the header compilable?
21687 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21688 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 $ac_includes_default
21696 #include <libintl.h>
21698 rm -f conftest.$ac_objext
21699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21700 (eval $ac_compile) 2>conftest.er1
21702 grep -v '^ *+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } &&
21707 { ac_try='test -z "$ac_c_werror_flag"
21708 || test ! -s conftest.err'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest.$ac_objext'
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; }; then
21720 ac_header_compiler=yes
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 ac_header_compiler=no
21727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21729 echo "${ECHO_T}$ac_header_compiler" >&6
21731 # Is the header present?
21732 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21733 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 #include <libintl.h>
21742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21745 grep -v '^ *+' conftest.er1 >conftest.err
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } >/dev/null; then
21750 if test -s conftest.err; then
21751 ac_cpp_err=$ac_c_preproc_warn_flag
21752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21759 if test -z "$ac_cpp_err"; then
21760 ac_header_preproc=yes
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ac_header_preproc=no
21767 rm -f conftest.err conftest.$ac_ext
21768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21769 echo "${ECHO_T}$ac_header_preproc" >&6
21771 # So? What about this header?
21772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21774 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21775 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21777 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21778 ac_header_preproc=yes
21781 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21782 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21784 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21786 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21788 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21790 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21792 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21795 ## ---------------------------------------- ##
21796 ## Report this to pgsql-bugs@postgresql.org ##
21797 ## ---------------------------------------- ##
21800 sed "s/^/$as_me: WARNING: /" >&2
21803 echo "$as_me:$LINENO: checking for libintl.h" >&5
21804 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21805 if test "${ac_cv_header_libintl_h+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 ac_cv_header_libintl_h=$ac_header_preproc
21810 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21811 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21814 if test $ac_cv_header_libintl_h = yes; then
21817 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21818 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21819 { (exit 1); exit 1; }; }
21823 for ac_prog in msgfmt
21825 # Extract the first word of "$ac_prog", so it can be a program name with args.
21826 set dummy $ac_prog; ac_word=$2
21827 echo "$as_me:$LINENO: checking for $ac_word" >&5
21828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21829 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 if test -n "$MSGFMT"; then
21833 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21836 for as_dir in $PATH
21839 test -z "$as_dir" && as_dir=.
21840 for ac_exec_ext in '' $ac_executable_extensions; do
21841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21842 ac_cv_prog_MSGFMT="$ac_prog"
21843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21851 MSGFMT=$ac_cv_prog_MSGFMT
21852 if test -n "$MSGFMT"; then
21853 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21854 echo "${ECHO_T}$MSGFMT" >&6
21856 echo "$as_me:$LINENO: result: no" >&5
21857 echo "${ECHO_T}no" >&6
21860 test -n "$MSGFMT" && break
21863 if test -z "$MSGFMT"; then
21864 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21865 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21866 { (exit 1); exit 1; }; }
21868 for ac_prog in msgmerge
21870 # Extract the first word of "$ac_prog", so it can be a program name with args.
21871 set dummy $ac_prog; ac_word=$2
21872 echo "$as_me:$LINENO: checking for $ac_word" >&5
21873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21874 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 if test -n "$MSGMERGE"; then
21878 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21881 for as_dir in $PATH
21884 test -z "$as_dir" && as_dir=.
21885 for ac_exec_ext in '' $ac_executable_extensions; do
21886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21887 ac_cv_prog_MSGMERGE="$ac_prog"
21888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21896 MSGMERGE=$ac_cv_prog_MSGMERGE
21897 if test -n "$MSGMERGE"; then
21898 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21899 echo "${ECHO_T}$MSGMERGE" >&6
21901 echo "$as_me:$LINENO: result: no" >&5
21902 echo "${ECHO_T}no" >&6
21905 test -n "$MSGMERGE" && break
21908 for ac_prog in xgettext
21910 # Extract the first word of "$ac_prog", so it can be a program name with args.
21911 set dummy $ac_prog; ac_word=$2
21912 echo "$as_me:$LINENO: checking for $ac_word" >&5
21913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21914 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 if test -n "$XGETTEXT"; then
21918 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21921 for as_dir in $PATH
21924 test -z "$as_dir" && as_dir=.
21925 for ac_exec_ext in '' $ac_executable_extensions; do
21926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21927 ac_cv_prog_XGETTEXT="$ac_prog"
21928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21936 XGETTEXT=$ac_cv_prog_XGETTEXT
21937 if test -n "$XGETTEXT"; then
21938 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21939 echo "${ECHO_T}$XGETTEXT" >&6
21941 echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6
21945 test -n "$XGETTEXT" && break
21949 # Note: share/locale is always the default, independent of $datadir
21950 localedir='${prefix}/share/locale'
21951 if test x"$prefix" = x"NONE"; then
21952 exp_localedir="$ac_default_prefix/share/locale"
21954 exp_localedir="$prefix/share/locale"
21959 cat >>confdefs.h <<_ACEOF
21960 #define LOCALEDIR "$exp_localedir"
21966 # Check for Tcl configuration script tclConfig.sh
21967 if test "$with_tcl" = yes; then
21968 for ac_prog in tclsh tcl
21970 # Extract the first word of "$ac_prog", so it can be a program name with args.
21971 set dummy $ac_prog; ac_word=$2
21972 echo "$as_me:$LINENO: checking for $ac_word" >&5
21973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21974 if test "${ac_cv_path_TCLSH+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21983 for as_dir in $PATH
21986 test -z "$as_dir" && as_dir=.
21987 for ac_exec_ext in '' $ac_executable_extensions; do
21988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21989 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21999 TCLSH=$ac_cv_path_TCLSH
22001 if test -n "$TCLSH"; then
22002 echo "$as_me:$LINENO: result: $TCLSH" >&5
22003 echo "${ECHO_T}$TCLSH" >&6
22005 echo "$as_me:$LINENO: result: no" >&5
22006 echo "${ECHO_T}no" >&6
22009 test -n "$TCLSH" && break
22012 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22013 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22014 # Let user override test
22015 if test -z "$TCL_CONFIG_SH"; then
22016 pgac_test_dirs="$with_tclconfig"
22018 set X $pgac_test_dirs; shift
22019 if test $# -eq 0; then
22020 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22021 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22022 { (exit 1); exit 1; }; }
22023 set X `echo 'puts $auto_path' | $TCLSH`; shift
22027 if test -r "$pgac_dir/tclConfig.sh"; then
22028 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22034 if test -z "$TCL_CONFIG_SH"; then
22035 echo "$as_me:$LINENO: result: no" >&5
22036 echo "${ECHO_T}no" >&6
22037 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22038 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22039 { (exit 1); exit 1; }; }
22041 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22042 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22048 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22049 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22050 eval TCL_LIBS=\"$TCL_LIBS\"
22051 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22052 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22054 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22055 ac_save_CPPFLAGS=$CPPFLAGS
22056 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22057 if test "${ac_cv_header_tcl_h+set}" = set; then
22058 echo "$as_me:$LINENO: checking for tcl.h" >&5
22059 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22060 if test "${ac_cv_header_tcl_h+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22064 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22066 # Is the header compilable?
22067 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22068 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22078 rm -f conftest.$ac_objext
22079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22080 (eval $ac_compile) 2>conftest.er1
22082 grep -v '^ *+' conftest.er1 >conftest.err
22084 cat conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } &&
22087 { ac_try='test -z "$ac_c_werror_flag"
22088 || test ! -s conftest.err'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; } &&
22094 { ac_try='test -s conftest.$ac_objext'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22100 ac_header_compiler=yes
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ac_header_compiler=no
22107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22109 echo "${ECHO_T}$ac_header_compiler" >&6
22111 # Is the header present?
22112 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22113 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null; then
22130 if test -s conftest.err; then
22131 ac_cpp_err=$ac_c_preproc_warn_flag
22132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22139 if test -z "$ac_cpp_err"; then
22140 ac_header_preproc=yes
22142 echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22145 ac_header_preproc=no
22147 rm -f conftest.err conftest.$ac_ext
22148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22149 echo "${ECHO_T}$ac_header_preproc" >&6
22151 # So? What about this header?
22152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22154 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22155 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22156 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22157 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22158 ac_header_preproc=yes
22161 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22162 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22164 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22166 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22168 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22169 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22170 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22171 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22172 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22175 ## ---------------------------------------- ##
22176 ## Report this to pgsql-bugs@postgresql.org ##
22177 ## ---------------------------------------- ##
22180 sed "s/^/$as_me: WARNING: /" >&2
22183 echo "$as_me:$LINENO: checking for tcl.h" >&5
22184 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22185 if test "${ac_cv_header_tcl_h+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 ac_cv_header_tcl_h=$ac_header_preproc
22190 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22191 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22194 if test $ac_cv_header_tcl_h = yes; then
22197 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22198 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22199 { (exit 1); exit 1; }; }
22203 CPPFLAGS=$ac_save_CPPFLAGS
22207 # Check for DocBook and tools
22209 for ac_prog in onsgmls nsgmls
22211 # Extract the first word of "$ac_prog", so it can be a program name with args.
22212 set dummy $ac_prog; ac_word=$2
22213 echo "$as_me:$LINENO: checking for $ac_word" >&5
22214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22215 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 if test -n "$NSGMLS"; then
22219 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22225 test -z "$as_dir" && as_dir=.
22226 for ac_exec_ext in '' $ac_executable_extensions; do
22227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228 ac_cv_prog_NSGMLS="$ac_prog"
22229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22237 NSGMLS=$ac_cv_prog_NSGMLS
22238 if test -n "$NSGMLS"; then
22239 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22240 echo "${ECHO_T}$NSGMLS" >&6
22242 echo "$as_me:$LINENO: result: no" >&5
22243 echo "${ECHO_T}no" >&6
22246 test -n "$NSGMLS" && break
22249 for ac_prog in openjade jade
22251 # Extract the first word of "$ac_prog", so it can be a program name with args.
22252 set dummy $ac_prog; ac_word=$2
22253 echo "$as_me:$LINENO: checking for $ac_word" >&5
22254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22255 if test "${ac_cv_prog_JADE+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 if test -n "$JADE"; then
22259 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22265 test -z "$as_dir" && as_dir=.
22266 for ac_exec_ext in '' $ac_executable_extensions; do
22267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22268 ac_cv_prog_JADE="$ac_prog"
22269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22277 JADE=$ac_cv_prog_JADE
22278 if test -n "$JADE"; then
22279 echo "$as_me:$LINENO: result: $JADE" >&5
22280 echo "${ECHO_T}$JADE" >&6
22282 echo "$as_me:$LINENO: result: no" >&5
22283 echo "${ECHO_T}no" >&6
22286 test -n "$JADE" && break
22290 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22291 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22292 if test "${pgac_cv_check_docbook+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22295 cat >conftest.sgml <<EOF
22296 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22298 <title>test</title>
22300 <title>random</title>
22302 <title>testsect</title>
22309 pgac_cv_check_docbook=no
22311 if test -n "$NSGMLS"; then
22312 $NSGMLS -s conftest.sgml 1>&5 2>&1
22313 if test $? -eq 0; then
22314 pgac_cv_check_docbook=yes
22317 rm -f conftest.sgml
22319 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22320 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22322 have_docbook=$pgac_cv_check_docbook
22325 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22326 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22327 if test "${pgac_cv_path_stylesheets+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 if test -n "$DOCBOOKSTYLE"; then
22331 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22333 for pgac_prefix in /usr /usr/local /opt; do
22334 for pgac_infix in share lib; do
22335 for pgac_postfix in \
22336 sgml/stylesheets/nwalsh-modular \
22337 sgml/stylesheets/docbook \
22338 sgml/docbook-dsssl \
22339 sgml/docbook/dsssl/modular \
22340 sgml/docbook/stylesheet/dsssl/modular \
22341 sgml/docbook/dsssl-stylesheets
22343 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22344 if test -r "$pgac_candidate/html/docbook.dsl" \
22345 && test -r "$pgac_candidate/print/docbook.dsl"
22347 pgac_cv_path_stylesheets=$pgac_candidate
22356 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22358 if test -n "$DOCBOOKSTYLE"; then
22359 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22360 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22362 echo "$as_me:$LINENO: result: no" >&5
22363 echo "${ECHO_T}no" >&6
22365 if test -n "$DOCBOOKSTYLE"; then
22366 for ac_prog in collateindex.pl
22368 # Extract the first word of "$ac_prog", so it can be a program name with args.
22369 set dummy $ac_prog; ac_word=$2
22370 echo "$as_me:$LINENO: checking for $ac_word" >&5
22371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22372 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 case $COLLATEINDEX in
22377 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22381 for as_dir in $DOCBOOKSTYLE/bin $PATH
22384 test -z "$as_dir" && as_dir=.
22385 for ac_exec_ext in '' $ac_executable_extensions; do
22386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22387 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22397 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22399 if test -n "$COLLATEINDEX"; then
22400 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22401 echo "${ECHO_T}$COLLATEINDEX" >&6
22403 echo "$as_me:$LINENO: result: no" >&5
22404 echo "${ECHO_T}no" >&6
22407 test -n "$COLLATEINDEX" && break
22411 for ac_prog in collateindex.pl
22413 # Extract the first word of "$ac_prog", so it can be a program name with args.
22414 set dummy $ac_prog; ac_word=$2
22415 echo "$as_me:$LINENO: checking for $ac_word" >&5
22416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22417 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22418 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 case $COLLATEINDEX in
22422 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22426 for as_dir in $PATH
22429 test -z "$as_dir" && as_dir=.
22430 for ac_exec_ext in '' $ac_executable_extensions; do
22431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22432 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22442 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22444 if test -n "$COLLATEINDEX"; then
22445 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22446 echo "${ECHO_T}$COLLATEINDEX" >&6
22448 echo "$as_me:$LINENO: result: no" >&5
22449 echo "${ECHO_T}no" >&6
22452 test -n "$COLLATEINDEX" && break
22456 for ac_prog in sgmlspl
22458 # Extract the first word of "$ac_prog", so it can be a program name with args.
22459 set dummy $ac_prog; ac_word=$2
22460 echo "$as_me:$LINENO: checking for $ac_word" >&5
22461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22462 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22465 if test -n "$SGMLSPL"; then
22466 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22469 for as_dir in $PATH
22472 test -z "$as_dir" && as_dir=.
22473 for ac_exec_ext in '' $ac_executable_extensions; do
22474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22475 ac_cv_prog_SGMLSPL="$ac_prog"
22476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22484 SGMLSPL=$ac_cv_prog_SGMLSPL
22485 if test -n "$SGMLSPL"; then
22486 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22487 echo "${ECHO_T}$SGMLSPL" >&6
22489 echo "$as_me:$LINENO: result: no" >&5
22490 echo "${ECHO_T}no" >&6
22493 test -n "$SGMLSPL" && break
22499 # We have to run the thread test near the end so we have all our symbols
22500 # defined. Cross compiling throws a warning.
22502 if test "$enable_thread_safety_force" = yes; then
22503 if test x"$template" != x"win32"
22505 { echo "$as_me:$LINENO: WARNING:
22506 *** Skipping thread test program. --enable-thread-safety-force was used.
22507 *** Run the program in src/test/thread on the your machine and add
22508 proper locking function calls to your applications to guarantee thread
22511 echo "$as_me: WARNING:
22512 *** Skipping thread test program. --enable-thread-safety-force was used.
22513 *** Run the program in src/test/thread on the your machine and add
22514 proper locking function calls to your applications to guarantee thread
22518 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22519 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22521 elif test "$enable_thread_safety" = yes; then
22522 if test x"$template" != x"win32"
22524 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22525 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22530 LIBS="$LIBS $PTHREAD_LIBS"
22531 if test "$cross_compiling" = yes; then
22532 echo "$as_me:$LINENO: result: maybe" >&5
22533 echo "${ECHO_T}maybe" >&6
22534 { echo "$as_me:$LINENO: WARNING:
22535 *** Skipping thread test program because of cross-compile build.
22536 *** Run the program in src/test/thread on the target machine.
22538 echo "$as_me: WARNING:
22539 *** Skipping thread test program because of cross-compile build.
22540 *** Run the program in src/test/thread on the target machine.
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 #include "$srcdir/src/test/thread/thread_test.c"
22551 rm -f conftest$ac_exeext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22553 (eval $ac_link) 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 echo "$as_me:$LINENO: result: yes" >&5
22563 echo "${ECHO_T}yes" >&6
22565 echo "$as_me: program exited with status $ac_status" >&5
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22569 ( exit $ac_status )
22570 echo "$as_me:$LINENO: result: no" >&5
22571 echo "${ECHO_T}no" >&6
22572 { { echo "$as_me:$LINENO: error:
22573 *** Thread test program failed. Your platform is not thread-safe.
22574 *** Check the file 'config.log'for the exact reason.
22576 *** You can use the configure option --enable-thread-safety-force
22577 *** to force threads to be enabled. However, you must then run
22578 *** the program in src/test/thread and add locking function calls
22579 *** to your applications to guarantee thread safety.
22581 echo "$as_me: error:
22582 *** Thread test program failed. Your platform is not thread-safe.
22583 *** Check the file 'config.log'for the exact reason.
22585 *** You can use the configure option --enable-thread-safety-force
22586 *** to force threads to be enabled. However, you must then run
22587 *** the program in src/test/thread and add locking function calls
22588 *** to your applications to guarantee thread safety.
22590 { (exit 1); exit 1; }; }
22592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22597 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22598 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22602 # prepare build tree if outside source tree
22603 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22604 # Note 2: /bin/pwd might be better than shell's built-in at getting
22605 # a symlink-free name.
22606 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22610 if test "$no_create" != yes; then
22611 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22612 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22613 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22614 || { { echo "$as_me:$LINENO: error: failed" >&5
22615 echo "$as_me: error: failed" >&2;}
22616 { (exit 1); exit 1; }; }
22617 echo "$as_me:$LINENO: result: done" >&5
22618 echo "${ECHO_T}done" >&6
22624 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22627 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}"
22630 if test "$PORTNAME" = "win32"; then
22631 ac_config_commands="$ac_config_commands check_win32_symlinks"
22635 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22638 cat >confcache <<\_ACEOF
22639 # This file is a shell script that caches the results of configure
22640 # tests run on this system so they can be shared between configure
22641 # scripts and configure runs, see configure's option --config-cache.
22642 # It is not useful on other systems. If it contains results you don't
22643 # want to keep, you may remove or edit it.
22645 # config.status only pays attention to the cache file if you give it
22646 # the --recheck option to rerun configure.
22648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22650 # following values.
22654 # The following way of writing the cache mishandles newlines in values,
22655 # but we know of no workaround that is simple, portable, and efficient.
22656 # So, don't put newlines in cache variables' values.
22657 # Ultrix sh set writes to stderr and can't be redirected directly,
22658 # and sets the high bit in the cache file unless we assign to the vars.
22661 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22663 # `set' does not quote correctly, so add quotes (double-quote
22664 # substitution turns \\\\ into \\, and sed turns \\ into \).
22667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22670 # `set' quotes correctly as required by POSIX, so do not add quotes.
22672 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22679 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22681 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22683 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22684 if test -w $cache_file; then
22685 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22686 cat confcache >$cache_file
22688 echo "not updating unwritable cache $cache_file"
22693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22694 # Let make expand exec_prefix.
22695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22697 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22698 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22699 # trailing colons and then remove the whole line if VPATH becomes empty
22700 # (actually we leave an empty line to preserve line numbers).
22701 if test "x$srcdir" = x.; then
22702 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22703 s/:*\$(srcdir):*/:/;
22704 s/:*\${srcdir}:*/:/;
22706 s/^\([^=]*=[ ]*\):*/\1/;
22712 DEFS=-DHAVE_CONFIG_H
22716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22717 # 1. Remove the extension, and $U if already installed.
22718 ac_i=`echo "$ac_i" |
22719 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22721 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22722 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22724 LIBOBJS=$ac_libobjs
22726 LTLIBOBJS=$ac_ltlibobjs
22730 : ${CONFIG_STATUS=./config.status}
22731 ac_clean_files_save=$ac_clean_files
22732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22735 cat >$CONFIG_STATUS <<_ACEOF
22737 # Generated by $as_me.
22738 # Run this file to recreate the current configuration.
22739 # Compiler output produced by configure, useful for debugging
22740 # configure, is in config.log if it exists.
22743 ac_cs_recheck=false
22745 SHELL=\${CONFIG_SHELL-$SHELL}
22748 cat >>$CONFIG_STATUS <<\_ACEOF
22749 ## --------------------- ##
22750 ## M4sh Initialization. ##
22751 ## --------------------- ##
22753 # Be Bourne compatible
22754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22757 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22758 # is contrary to our usage. Disable this feature.
22759 alias -g '${1+"$@"}'='"$@"'
22760 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22763 DUALCASE=1; export DUALCASE # for MKS sh
22765 # Support unset when possible.
22766 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22773 # Work around bugs in pre-3.0 UWIN ksh.
22774 $as_unset ENV MAIL MAILPATH
22781 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22782 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22783 LC_TELEPHONE LC_TIME
22785 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22786 eval $as_var=C; export $as_var
22792 # Required to use basename.
22793 if expr a : '\(a\)' >/dev/null 2>&1; then
22799 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22800 as_basename=basename
22806 # Name of the executable.
22807 as_me=`$as_basename "$0" ||
22808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22809 X"$0" : 'X\(//\)$' \| \
22810 X"$0" : 'X\(/\)$' \| \
22811 . : '\(.\)' 2>/dev/null ||
22813 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22814 /^X\/\(\/\/\)$/{ s//\1/; q; }
22815 /^X\/\(\/\).*/{ s//\1/; q; }
22819 # PATH needs CR, and LINENO needs CR and PATH.
22820 # Avoid depending upon Character Ranges.
22821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22824 as_cr_digits='0123456789'
22825 as_cr_alnum=$as_cr_Letters$as_cr_digits
22827 # The user is always right.
22828 if test "${PATH_SEPARATOR+set}" != set; then
22829 echo "#! /bin/sh" >conf$$.sh
22830 echo "exit 0" >>conf$$.sh
22832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22841 as_lineno_1=$LINENO
22842 as_lineno_2=$LINENO
22843 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22844 test "x$as_lineno_1" != "x$as_lineno_2" &&
22845 test "x$as_lineno_3" = "x$as_lineno_2" || {
22846 # Find who we are. Look in the path if we contain no path at all
22849 *[\\/]* ) as_myself=$0 ;;
22850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22851 for as_dir in $PATH
22854 test -z "$as_dir" && as_dir=.
22855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22860 # We did not find ourselves, most probably we were run as `sh COMMAND'
22861 # in which case we are not to be found in the path.
22862 if test "x$as_myself" = x; then
22865 if test ! -f "$as_myself"; then
22866 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22867 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22868 { (exit 1); exit 1; }; }
22870 case $CONFIG_SHELL in
22872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22873 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22876 test -z "$as_dir" && as_dir=.
22877 for as_base in sh bash ksh sh5; do
22880 if ("$as_dir/$as_base" -c '
22881 as_lineno_1=$LINENO
22882 as_lineno_2=$LINENO
22883 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22884 test "x$as_lineno_1" != "x$as_lineno_2" &&
22885 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22886 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22887 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22888 CONFIG_SHELL=$as_dir/$as_base
22889 export CONFIG_SHELL
22890 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22899 # uniformly replaced by the line number. The first 'sed' inserts a
22900 # line-number line before each line; the second 'sed' does the real
22901 # work. The second script uses 'N' to pair each line-number line
22902 # with the numbered line, and appends trailing '-' during
22903 # substitution so that $LINENO is not a special case at line end.
22904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22905 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22906 sed '=' <$as_myself |
22911 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22914 s,^['$as_cr_digits']*\n,,
22915 ' >$as_me.lineno &&
22916 chmod +x $as_me.lineno ||
22917 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22918 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22919 { (exit 1); exit 1; }; }
22921 # Don't try to exec as it changes $[0], causing all sort of problems
22922 # (the dirname of $[0] is not the place where we might find the
22923 # original and so on. Autoconf is especially sensible to this).
22925 # Exit status is that of the last command.
22930 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22931 *c*,-n*) ECHO_N= ECHO_C='
22933 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22934 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22937 if expr a : '\(a\)' >/dev/null 2>&1; then
22943 rm -f conf$$ conf$$.exe conf$$.file
22945 if ln -s conf$$.file conf$$ 2>/dev/null; then
22946 # We could just check for DJGPP; but this test a) works b) is more generic
22947 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22948 if test -f conf$$.exe; then
22949 # Don't use ln at all; we don't have any links
22954 elif ln conf$$.file conf$$ 2>/dev/null; then
22959 rm -f conf$$ conf$$.exe conf$$.file
22961 if mkdir -p . 2>/dev/null; then
22964 test -d ./-p && rmdir ./-p
22968 as_executable_p="test -f"
22970 # Sed expression to map a string onto a valid CPP name.
22971 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22973 # Sed expression to map a string onto a valid variable name.
22974 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22978 # We need space, tab and new line, in precisely that order.
22988 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22989 # report actual input values of CONFIG_FILES etc. instead of their
22990 # values after options handling. Logging --version etc. is OK.
22994 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22995 ## Running $as_me. ##
23000 This file was extended by PostgreSQL $as_me 8.2devel, which was
23001 generated by GNU Autoconf 2.59. Invocation command line was
23003 CONFIG_FILES = $CONFIG_FILES
23004 CONFIG_HEADERS = $CONFIG_HEADERS
23005 CONFIG_LINKS = $CONFIG_LINKS
23006 CONFIG_COMMANDS = $CONFIG_COMMANDS
23010 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23014 # Files that config.status was made for.
23015 if test -n "$ac_config_files"; then
23016 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23019 if test -n "$ac_config_headers"; then
23020 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23023 if test -n "$ac_config_links"; then
23024 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23027 if test -n "$ac_config_commands"; then
23028 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23031 cat >>$CONFIG_STATUS <<\_ACEOF
23034 \`$as_me' instantiates files from templates according to the
23035 current configuration.
23037 Usage: $0 [OPTIONS] [FILE]...
23039 -h, --help print this help, then exit
23040 -V, --version print version number, then exit
23041 -q, --quiet do not print progress messages
23042 -d, --debug don't remove temporary files
23043 --recheck update $as_me by reconfiguring in the same conditions
23044 --file=FILE[:TEMPLATE]
23045 instantiate the configuration file FILE
23046 --header=FILE[:TEMPLATE]
23047 instantiate the configuration header FILE
23049 Configuration files:
23052 Configuration headers:
23055 Configuration links:
23058 Configuration commands:
23061 Report bugs to <bug-autoconf@gnu.org>."
23064 cat >>$CONFIG_STATUS <<_ACEOF
23066 PostgreSQL config.status 8.2devel
23067 configured by $0, generated by GNU Autoconf 2.59,
23068 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23070 Copyright (C) 2003 Free Software Foundation, Inc.
23071 This config.status script is free software; the Free Software Foundation
23072 gives unlimited permission to copy, distribute and modify it."
23076 cat >>$CONFIG_STATUS <<\_ACEOF
23077 # If no file are specified by the user, then we need to provide default
23078 # value. By we need to know if files were specified by the user.
23084 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23085 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23093 *) # This is not an option, so the user has probably given explicit
23096 ac_need_defaults=false;;
23100 # Handling of the options.
23102 cat >>$CONFIG_STATUS <<\_ACEOF
23103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23105 --version | --vers* | -V )
23106 echo "$ac_cs_version"; exit 0 ;;
23108 # Conflict between --help and --header
23109 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23110 Try \`$0 --help' for more information." >&5
23111 echo "$as_me: error: ambiguous option: $1
23112 Try \`$0 --help' for more information." >&2;}
23113 { (exit 1); exit 1; }; };;
23114 --help | --hel | -h )
23115 echo "$ac_cs_usage"; exit 0 ;;
23116 --debug | --d* | -d )
23118 --file | --fil | --fi | --f )
23120 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23121 ac_need_defaults=false;;
23122 --header | --heade | --head | --hea )
23124 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23125 ac_need_defaults=false;;
23126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23130 # This is an error.
23131 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23132 Try \`$0 --help' for more information." >&5
23133 echo "$as_me: error: unrecognized option: $1
23134 Try \`$0 --help' for more information." >&2;}
23135 { (exit 1); exit 1; }; } ;;
23137 *) ac_config_targets="$ac_config_targets $1" ;;
23143 ac_configure_extra_args=
23145 if $ac_cs_silent; then
23147 ac_configure_extra_args="$ac_configure_extra_args --silent"
23151 cat >>$CONFIG_STATUS <<_ACEOF
23152 if \$ac_cs_recheck; then
23153 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23154 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23163 cat >>$CONFIG_STATUS <<\_ACEOF
23164 for ac_config_target in $ac_config_targets
23166 case "$ac_config_target" in
23167 # Handling of arguments.
23168 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23169 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23170 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23171 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23172 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23173 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23174 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23175 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23176 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23177 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23178 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23179 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23180 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23181 { (exit 1); exit 1; }; };;
23185 # If the user did not use the arguments to specify the items to instantiate,
23186 # then the envvar interface is used. Set only those that are not.
23187 # We use the long form for the default assignment because of an extremely
23188 # bizarre bug on SunOS 4.1.3.
23189 if $ac_need_defaults; then
23190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23192 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23196 # Have a temporary directory for convenience. Make it in the build tree
23197 # simply because there is no reason to put it here, and in addition,
23198 # creating and moving files from /tmp can sometimes cause problems.
23199 # Create a temporary directory, and hook for its removal unless debugging.
23202 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23203 trap '{ (exit 1); exit 1; }' 1 2 13 15
23206 # Create a (secure) tmp directory for tmp files.
23209 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23210 test -n "$tmp" && test -d "$tmp"
23213 tmp=./confstat$$-$RANDOM
23214 (umask 077 && mkdir $tmp)
23217 echo "$me: cannot create a temporary directory in ." >&2
23218 { (exit 1); exit 1; }
23223 cat >>$CONFIG_STATUS <<_ACEOF
23226 # CONFIG_FILES section.
23229 # No need to generate the scripts if there are no CONFIG_FILES.
23230 # This happens for instance when ./config.status config.h
23231 if test -n "\$CONFIG_FILES"; then
23232 # Protect against being on the right side of a sed subst in config.status.
23233 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23234 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23235 s,@SHELL@,$SHELL,;t t
23236 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23237 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23238 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23239 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23240 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23241 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23242 s,@exec_prefix@,$exec_prefix,;t t
23243 s,@prefix@,$prefix,;t t
23244 s,@program_transform_name@,$program_transform_name,;t t
23245 s,@bindir@,$bindir,;t t
23246 s,@sbindir@,$sbindir,;t t
23247 s,@libexecdir@,$libexecdir,;t t
23248 s,@datadir@,$datadir,;t t
23249 s,@sysconfdir@,$sysconfdir,;t t
23250 s,@sharedstatedir@,$sharedstatedir,;t t
23251 s,@localstatedir@,$localstatedir,;t t
23252 s,@libdir@,$libdir,;t t
23253 s,@includedir@,$includedir,;t t
23254 s,@oldincludedir@,$oldincludedir,;t t
23255 s,@infodir@,$infodir,;t t
23256 s,@mandir@,$mandir,;t t
23257 s,@build_alias@,$build_alias,;t t
23258 s,@host_alias@,$host_alias,;t t
23259 s,@target_alias@,$target_alias,;t t
23260 s,@DEFS@,$DEFS,;t t
23261 s,@ECHO_C@,$ECHO_C,;t t
23262 s,@ECHO_N@,$ECHO_N,;t t
23263 s,@ECHO_T@,$ECHO_T,;t t
23264 s,@LIBS@,$LIBS,;t t
23265 s,@configure_args@,$configure_args,;t t
23266 s,@build@,$build,;t t
23267 s,@build_cpu@,$build_cpu,;t t
23268 s,@build_vendor@,$build_vendor,;t t
23269 s,@build_os@,$build_os,;t t
23270 s,@host@,$host,;t t
23271 s,@host_cpu@,$host_cpu,;t t
23272 s,@host_vendor@,$host_vendor,;t t
23273 s,@host_os@,$host_os,;t t
23274 s,@PORTNAME@,$PORTNAME,;t t
23275 s,@docdir@,$docdir,;t t
23276 s,@enable_nls@,$enable_nls,;t t
23277 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23278 s,@default_port@,$default_port,;t t
23279 s,@enable_shared@,$enable_shared,;t t
23280 s,@enable_rpath@,$enable_rpath,;t t
23281 s,@enable_debug@,$enable_debug,;t t
23283 s,@CFLAGS@,$CFLAGS,;t t
23284 s,@LDFLAGS@,$LDFLAGS,;t t
23285 s,@CPPFLAGS@,$CPPFLAGS,;t t
23286 s,@ac_ct_CC@,$ac_ct_CC,;t t
23287 s,@EXEEXT@,$EXEEXT,;t t
23288 s,@OBJEXT@,$OBJEXT,;t t
23292 s,@autodepend@,$autodepend,;t t
23293 s,@INCLUDES@,$INCLUDES,;t t
23294 s,@enable_thread_safety@,$enable_thread_safety,;t t
23295 s,@with_tcl@,$with_tcl,;t t
23296 s,@with_perl@,$with_perl,;t t
23297 s,@with_python@,$with_python,;t t
23298 s,@with_krb5@,$with_krb5,;t t
23299 s,@krb_srvtab@,$krb_srvtab,;t t
23300 s,@with_pam@,$with_pam,;t t
23301 s,@with_ldap@,$with_ldap,;t t
23302 s,@with_bonjour@,$with_bonjour,;t t
23303 s,@with_openssl@,$with_openssl,;t t
23304 s,@with_zlib@,$with_zlib,;t t
23305 s,@EGREP@,$EGREP,;t t
23306 s,@ELF_SYS@,$ELF_SYS,;t t
23307 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23309 s,@FLEX@,$FLEX,;t t
23310 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23311 s,@LN_S@,$LN_S,;t t
23313 s,@with_gnu_ld@,$with_gnu_ld,;t t
23314 s,@ld_R_works@,$ld_R_works,;t t
23315 s,@RANLIB@,$RANLIB,;t t
23316 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23317 s,@LORDER@,$LORDER,;t t
23319 s,@STRIP@,$STRIP,;t t
23320 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23321 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23322 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23323 s,@YACC@,$YACC,;t t
23324 s,@YFLAGS@,$YFLAGS,;t t
23325 s,@PERL@,$PERL,;t t
23326 s,@perl_archlibexp@,$perl_archlibexp,;t t
23327 s,@perl_privlibexp@,$perl_privlibexp,;t t
23328 s,@perl_useshrplib@,$perl_useshrplib,;t t
23329 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23330 s,@PYTHON@,$PYTHON,;t t
23331 s,@python_version@,$python_version,;t t
23332 s,@python_configdir@,$python_configdir,;t t
23333 s,@python_includespec@,$python_includespec,;t t
23334 s,@python_libdir@,$python_libdir,;t t
23335 s,@python_libspec@,$python_libspec,;t t
23336 s,@python_additional_libs@,$python_additional_libs,;t t
23337 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23338 s,@LIBOBJS@,$LIBOBJS,;t t
23339 s,@acx_pthread_config@,$acx_pthread_config,;t t
23340 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23341 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23342 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23343 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23344 s,@MSGFMT@,$MSGFMT,;t t
23345 s,@MSGMERGE@,$MSGMERGE,;t t
23346 s,@XGETTEXT@,$XGETTEXT,;t t
23347 s,@localedir@,$localedir,;t t
23348 s,@TCLSH@,$TCLSH,;t t
23349 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23350 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23351 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23352 s,@TCL_LIBS@,$TCL_LIBS,;t t
23353 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23354 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23355 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23356 s,@NSGMLS@,$NSGMLS,;t t
23357 s,@JADE@,$JADE,;t t
23358 s,@have_docbook@,$have_docbook,;t t
23359 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23360 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23361 s,@SGMLSPL@,$SGMLSPL,;t t
23362 s,@vpath_build@,$vpath_build,;t t
23363 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23368 cat >>$CONFIG_STATUS <<\_ACEOF
23369 # Split the substitutions into bite-sized pieces for seds with
23370 # small command number limits, like on Digital OSF/1 and HP-UX.
23371 ac_max_sed_lines=48
23372 ac_sed_frag=1 # Number of current file.
23373 ac_beg=1 # First line for current file.
23374 ac_end=$ac_max_sed_lines # Line after last line for current file.
23377 while $ac_more_lines; do
23378 if test $ac_beg -gt 1; then
23379 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23381 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23383 if test ! -s $tmp/subs.frag; then
23384 ac_more_lines=false
23386 # The purpose of the label and of the branching condition is to
23387 # speed up the sed processing (if there are no `@' at all, there
23388 # is no need to browse any of the substitutions).
23389 # These are the two extra sed commands mentioned above.
23391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23392 if test -z "$ac_sed_cmds"; then
23393 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23395 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23397 ac_sed_frag=`expr $ac_sed_frag + 1`
23399 ac_end=`expr $ac_end + $ac_max_sed_lines`
23402 if test -z "$ac_sed_cmds"; then
23405 fi # test -n "$CONFIG_FILES"
23408 cat >>$CONFIG_STATUS <<\_ACEOF
23409 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23410 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23412 - | *:- | *:-:* ) # input from stdin
23414 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23416 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23418 * ) ac_file_in=$ac_file.in ;;
23421 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23422 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23424 X"$ac_file" : 'X\(//\)[^/]' \| \
23425 X"$ac_file" : 'X\(//\)$' \| \
23426 X"$ac_file" : 'X\(/\)' \| \
23427 . : '\(.\)' 2>/dev/null ||
23429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23431 /^X\(\/\/\)$/{ s//\1/; q; }
23432 /^X\(\/\).*/{ s//\1/; q; }
23434 { if $as_mkdir_p; then
23439 while test ! -d "$as_dir"; do
23440 as_dirs="$as_dir $as_dirs"
23441 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23443 X"$as_dir" : 'X\(//\)[^/]' \| \
23444 X"$as_dir" : 'X\(//\)$' \| \
23445 X"$as_dir" : 'X\(/\)' \| \
23446 . : '\(.\)' 2>/dev/null ||
23448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23450 /^X\(\/\/\)$/{ s//\1/; q; }
23451 /^X\(\/\).*/{ s//\1/; q; }
23454 test ! -n "$as_dirs" || mkdir $as_dirs
23455 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23456 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23457 { (exit 1); exit 1; }; }; }
23461 if test "$ac_dir" != .; then
23462 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23463 # A "../" for each directory in $ac_dir_suffix.
23464 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23466 ac_dir_suffix= ac_top_builddir=
23470 .) # No --srcdir option. We are building in place.
23472 if test -z "$ac_top_builddir"; then
23475 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23477 [\\/]* | ?:[\\/]* ) # Absolute path.
23478 ac_srcdir=$srcdir$ac_dir_suffix;
23479 ac_top_srcdir=$srcdir ;;
23480 *) # Relative path.
23481 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23482 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23485 # Do not use `cd foo && pwd` to compute absolute paths, because
23486 # the directories may not exist.
23488 .) ac_abs_builddir="$ac_dir";;
23491 .) ac_abs_builddir=`pwd`;;
23492 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23493 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23496 case $ac_abs_builddir in
23497 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23499 case ${ac_top_builddir}. in
23500 .) ac_abs_top_builddir=$ac_abs_builddir;;
23501 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23502 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23505 case $ac_abs_builddir in
23506 .) ac_abs_srcdir=$ac_srcdir;;
23509 .) ac_abs_srcdir=$ac_abs_builddir;;
23510 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23511 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23514 case $ac_abs_builddir in
23515 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23517 case $ac_top_srcdir in
23518 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23519 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23520 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23526 if test x"$ac_file" != x-; then
23527 { echo "$as_me:$LINENO: creating $ac_file" >&5
23528 echo "$as_me: creating $ac_file" >&6;}
23531 # Let's still pretend it is `configure' which instantiates (i.e., don't
23532 # use $as_me), people would be surprised to read:
23533 # /* config.h. Generated by config.status. */
23534 if test x"$ac_file" = x-; then
23537 configure_input="$ac_file. "
23539 configure_input=$configure_input"Generated from `echo $ac_file_in |
23540 sed 's,.*/,,'` by configure."
23542 # First look for the input files in the build tree, otherwise in the
23544 ac_file_inputs=`IFS=:
23545 for f in $ac_file_in; do
23547 -) echo $tmp/stdin ;;
23549 # Absolute (can't be DOS-style, as IFS=:)
23550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23551 echo "$as_me: error: cannot find input file: $f" >&2;}
23552 { (exit 1); exit 1; }; }
23555 if test -f "$f"; then
23558 elif test -f "$srcdir/$f"; then
23563 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23564 echo "$as_me: error: cannot find input file: $f" >&2;}
23565 { (exit 1); exit 1; }; }
23568 done` || { (exit 1); exit 1; }
23570 cat >>$CONFIG_STATUS <<_ACEOF
23574 cat >>$CONFIG_STATUS <<\_ACEOF
23576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23577 s,@configure_input@,$configure_input,;t t
23578 s,@srcdir@,$ac_srcdir,;t t
23579 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23580 s,@top_srcdir@,$ac_top_srcdir,;t t
23581 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23582 s,@builddir@,$ac_builddir,;t t
23583 s,@abs_builddir@,$ac_abs_builddir,;t t
23584 s,@top_builddir@,$ac_top_builddir,;t t
23585 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23586 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23588 if test x"$ac_file" != x-; then
23589 mv $tmp/out $ac_file
23597 cat >>$CONFIG_STATUS <<\_ACEOF
23600 # CONFIG_HEADER section.
23603 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23604 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23606 # ac_d sets the value in "#define NAME VALUE" lines.
23607 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23608 ac_dB='[ ].*$,\1#\2'
23611 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23612 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23613 ac_uB='$,\1#\2define\3'
23617 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23618 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23620 - | *:- | *:-:* ) # input from stdin
23622 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23624 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23626 * ) ac_file_in=$ac_file.in ;;
23629 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23630 echo "$as_me: creating $ac_file" >&6;}
23632 # First look for the input files in the build tree, otherwise in the
23634 ac_file_inputs=`IFS=:
23635 for f in $ac_file_in; do
23637 -) echo $tmp/stdin ;;
23639 # Absolute (can't be DOS-style, as IFS=:)
23640 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23641 echo "$as_me: error: cannot find input file: $f" >&2;}
23642 { (exit 1); exit 1; }; }
23643 # Do quote $f, to prevent DOS paths from being IFS'd.
23646 if test -f "$f"; then
23649 elif test -f "$srcdir/$f"; then
23654 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23655 echo "$as_me: error: cannot find input file: $f" >&2;}
23656 { (exit 1); exit 1; }; }
23659 done` || { (exit 1); exit 1; }
23660 # Remove the trailing spaces.
23661 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23665 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23666 # `conftest.undefs', that substitutes the proper values into
23667 # config.h.in to produce config.h. The first handles `#define'
23668 # templates, and the second `#undef' templates.
23669 # And first: Protect against being on the right side of a sed subst in
23670 # config.status. Protect against being in an unquoted here document
23671 # in config.status.
23672 rm -f conftest.defines conftest.undefs
23673 # Using a here document instead of a string reduces the quoting nightmare.
23674 # Putting comments in sed scripts is not portable.
23676 # `end' is used to avoid that the second main sed command (meant for
23677 # 0-ary CPP macros) applies to n-ary macro definitions.
23678 # See the Autoconf documentation for `clear'.
23679 cat >confdef2sed.sed <<\_ACEOF
23684 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23686 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23689 # If some macros were called several times there might be several times
23690 # the same #defines, which is useless. Nevertheless, we may not want to
23691 # sort them, since we want the *last* AC-DEFINE to be honored.
23692 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23693 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23694 rm -f confdef2sed.sed
23696 # This sed command replaces #undef with comments. This is necessary, for
23697 # example, in the case of _POSIX_SOURCE, which is predefined and required
23698 # on some systems where configure will not decide to define it.
23699 cat >>conftest.undefs <<\_ACEOF
23700 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23703 # Break up conftest.defines because some shells have a limit on the size
23704 # of here documents, and old seds have small limits too (100 cmds).
23705 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23706 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23707 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23708 echo ' :' >>$CONFIG_STATUS
23709 rm -f conftest.tail
23710 while grep . conftest.defines >/dev/null
23712 # Write a limited-size here document to $tmp/defines.sed.
23713 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23714 # Speed up: don't consider the non `#define' lines.
23715 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23716 # Work around the forget-to-reset-the-flag bug.
23717 echo 't clr' >>$CONFIG_STATUS
23718 echo ': clr' >>$CONFIG_STATUS
23719 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23721 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23723 mv $tmp/out $tmp/in
23725 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23726 rm -f conftest.defines
23727 mv conftest.tail conftest.defines
23729 rm -f conftest.defines
23730 echo ' fi # grep' >>$CONFIG_STATUS
23731 echo >>$CONFIG_STATUS
23733 # Break up conftest.undefs because some shells have a limit on the size
23734 # of here documents, and old seds have small limits too (100 cmds).
23735 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23736 rm -f conftest.tail
23737 while grep . conftest.undefs >/dev/null
23739 # Write a limited-size here document to $tmp/undefs.sed.
23740 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23741 # Speed up: don't consider the non `#undef'
23742 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23743 # Work around the forget-to-reset-the-flag bug.
23744 echo 't clr' >>$CONFIG_STATUS
23745 echo ': clr' >>$CONFIG_STATUS
23746 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23748 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23750 mv $tmp/out $tmp/in
23752 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23753 rm -f conftest.undefs
23754 mv conftest.tail conftest.undefs
23756 rm -f conftest.undefs
23758 cat >>$CONFIG_STATUS <<\_ACEOF
23759 # Let's still pretend it is `configure' which instantiates (i.e., don't
23760 # use $as_me), people would be surprised to read:
23761 # /* config.h. Generated by config.status. */
23762 if test x"$ac_file" = x-; then
23763 echo "/* Generated by configure. */" >$tmp/config.h
23765 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23767 cat $tmp/in >>$tmp/config.h
23769 if test x"$ac_file" != x-; then
23770 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23771 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23772 echo "$as_me: $ac_file is unchanged" >&6;}
23774 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776 X"$ac_file" : 'X\(//\)[^/]' \| \
23777 X"$ac_file" : 'X\(//\)$' \| \
23778 X"$ac_file" : 'X\(/\)' \| \
23779 . : '\(.\)' 2>/dev/null ||
23781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23783 /^X\(\/\/\)$/{ s//\1/; q; }
23784 /^X\(\/\).*/{ s//\1/; q; }
23786 { if $as_mkdir_p; then
23791 while test ! -d "$as_dir"; do
23792 as_dirs="$as_dir $as_dirs"
23793 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23795 X"$as_dir" : 'X\(//\)[^/]' \| \
23796 X"$as_dir" : 'X\(//\)$' \| \
23797 X"$as_dir" : 'X\(/\)' \| \
23798 . : '\(.\)' 2>/dev/null ||
23800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23802 /^X\(\/\/\)$/{ s//\1/; q; }
23803 /^X\(\/\).*/{ s//\1/; q; }
23806 test ! -n "$as_dirs" || mkdir $as_dirs
23807 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23808 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23809 { (exit 1); exit 1; }; }; }
23812 mv $tmp/config.h $ac_file
23816 rm -f $tmp/config.h
23818 # Run the commands associated with the file.
23820 src/include/pg_config.h )
23821 # Update timestamp for pg_config.h (see Makefile.global)
23822 echo >src/include/stamp-h
23827 cat >>$CONFIG_STATUS <<\_ACEOF
23830 # CONFIG_LINKS section.
23833 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23834 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23835 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23837 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23838 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23840 if test ! -r $srcdir/$ac_source; then
23841 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23842 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23843 { (exit 1); exit 1; }; }
23847 # Make relative symlinks.
23848 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23849 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23850 X"$ac_dest" : 'X\(//\)[^/]' \| \
23851 X"$ac_dest" : 'X\(//\)$' \| \
23852 X"$ac_dest" : 'X\(/\)' \| \
23853 . : '\(.\)' 2>/dev/null ||
23855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23857 /^X\(\/\/\)$/{ s//\1/; q; }
23858 /^X\(\/\).*/{ s//\1/; q; }
23860 { if $as_mkdir_p; then
23861 mkdir -p "$ac_dest_dir"
23863 as_dir="$ac_dest_dir"
23865 while test ! -d "$as_dir"; do
23866 as_dirs="$as_dir $as_dirs"
23867 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23869 X"$as_dir" : 'X\(//\)[^/]' \| \
23870 X"$as_dir" : 'X\(//\)$' \| \
23871 X"$as_dir" : 'X\(/\)' \| \
23872 . : '\(.\)' 2>/dev/null ||
23874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23876 /^X\(\/\/\)$/{ s//\1/; q; }
23877 /^X\(\/\).*/{ s//\1/; q; }
23880 test ! -n "$as_dirs" || mkdir $as_dirs
23881 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23882 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23883 { (exit 1); exit 1; }; }; }
23887 if test "$ac_dest_dir" != .; then
23888 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23889 # A "../" for each directory in $ac_dir_suffix.
23890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23892 ac_dir_suffix= ac_top_builddir=
23896 .) # No --srcdir option. We are building in place.
23898 if test -z "$ac_top_builddir"; then
23901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23903 [\\/]* | ?:[\\/]* ) # Absolute path.
23904 ac_srcdir=$srcdir$ac_dir_suffix;
23905 ac_top_srcdir=$srcdir ;;
23906 *) # Relative path.
23907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23911 # Do not use `cd foo && pwd` to compute absolute paths, because
23912 # the directories may not exist.
23914 .) ac_abs_builddir="$ac_dest_dir";;
23916 case "$ac_dest_dir" in
23917 .) ac_abs_builddir=`pwd`;;
23918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23919 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23922 case $ac_abs_builddir in
23923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23925 case ${ac_top_builddir}. in
23926 .) ac_abs_top_builddir=$ac_abs_builddir;;
23927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23931 case $ac_abs_builddir in
23932 .) ac_abs_srcdir=$ac_srcdir;;
23935 .) ac_abs_srcdir=$ac_abs_builddir;;
23936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23940 case $ac_abs_builddir in
23941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23943 case $ac_top_srcdir in
23944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23952 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23953 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23956 # Try a symlink, then a hard link, then a copy.
23957 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23958 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23959 cp -p $srcdir/$ac_source $ac_dest ||
23960 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23961 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23962 { (exit 1); exit 1; }; }
23965 cat >>$CONFIG_STATUS <<\_ACEOF
23968 # CONFIG_COMMANDS section.
23970 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23971 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23972 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23973 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23974 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23975 X"$ac_dest" : 'X\(//\)[^/]' \| \
23976 X"$ac_dest" : 'X\(//\)$' \| \
23977 X"$ac_dest" : 'X\(/\)' \| \
23978 . : '\(.\)' 2>/dev/null ||
23980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23982 /^X\(\/\/\)$/{ s//\1/; q; }
23983 /^X\(\/\).*/{ s//\1/; q; }
23985 { if $as_mkdir_p; then
23990 while test ! -d "$as_dir"; do
23991 as_dirs="$as_dir $as_dirs"
23992 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23994 X"$as_dir" : 'X\(//\)[^/]' \| \
23995 X"$as_dir" : 'X\(//\)$' \| \
23996 X"$as_dir" : 'X\(/\)' \| \
23997 . : '\(.\)' 2>/dev/null ||
23999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24001 /^X\(\/\/\)$/{ s//\1/; q; }
24002 /^X\(\/\).*/{ s//\1/; q; }
24005 test ! -n "$as_dirs" || mkdir $as_dirs
24006 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24007 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24008 { (exit 1); exit 1; }; }; }
24012 if test "$ac_dir" != .; then
24013 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24014 # A "../" for each directory in $ac_dir_suffix.
24015 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24017 ac_dir_suffix= ac_top_builddir=
24021 .) # No --srcdir option. We are building in place.
24023 if test -z "$ac_top_builddir"; then
24026 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24028 [\\/]* | ?:[\\/]* ) # Absolute path.
24029 ac_srcdir=$srcdir$ac_dir_suffix;
24030 ac_top_srcdir=$srcdir ;;
24031 *) # Relative path.
24032 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24033 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24036 # Do not use `cd foo && pwd` to compute absolute paths, because
24037 # the directories may not exist.
24039 .) ac_abs_builddir="$ac_dir";;
24042 .) ac_abs_builddir=`pwd`;;
24043 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24044 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24047 case $ac_abs_builddir in
24048 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24050 case ${ac_top_builddir}. in
24051 .) ac_abs_top_builddir=$ac_abs_builddir;;
24052 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24053 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24056 case $ac_abs_builddir in
24057 .) ac_abs_srcdir=$ac_srcdir;;
24060 .) ac_abs_srcdir=$ac_abs_builddir;;
24061 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24062 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24065 case $ac_abs_builddir in
24066 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24068 case $ac_top_srcdir in
24069 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24070 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24071 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24076 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24077 echo "$as_me: executing $ac_dest commands" >&6;}
24079 check_win32_symlinks )
24080 # Links sometimes fail undetected on Mingw -
24081 # so here we detect it and warn the user
24082 for FILE in $CONFIG_LINKS
24084 # test -e works for symlinks in the MinGW console
24085 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24086 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24093 cat >>$CONFIG_STATUS <<\_ACEOF
24095 { (exit 0); exit 0; }
24097 chmod +x $CONFIG_STATUS
24098 ac_clean_files=$ac_clean_files_save
24101 # configure is writing to config.log, and then calls config.status.
24102 # config.status does its own redirection, appending to config.log.
24103 # Unfortunately, on DOS this fails, as config.log is still kept open
24104 # by configure, so config.status won't be able to write to it; its
24105 # output is simply discarded. So we exec the FD to /dev/null,
24106 # effectively closing config.log, so it can be properly (re)opened and
24107 # appended to by config.status. When coming back to configure, we
24108 # need to make the FD available again.
24109 if test "$no_create" != yes; then
24111 ac_config_status_args=
24112 test "$silent" = yes &&
24113 ac_config_status_args="$ac_config_status_args --quiet"
24115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24118 # would make configure fail if this is the last instruction.
24119 $ac_cs_success || { (exit 1); exit 1; }