2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3beta1.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2007, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.3beta1'
275 PACKAGE_STRING='PostgreSQL 8.3beta1'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_gssapi with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_ossp_uuid XML2_CONFIG with_libxml with_libxslt with_system_tzdata with_zlib EGREP ELF_SYS LDFLAGS_SL LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB TAR LN_S AWK YACC YFLAGS FLEX FLEXFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.3beta1 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.3beta1:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-profiling build with profiling enabled
869 --enable-dtrace build with DTrace support
870 --enable-depend turn on automatic dependency tracking
871 --enable-cassert enable assertion checks (for debugging)
872 --enable-thread-safety make client libraries thread-safe
873 --enable-thread-safety-force force thread-safety despite thread test failure
874 --disable-largefile omit support for large files
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
881 --without-docdir do not install the documentation
882 --with-includes=DIRS look for additional header files in DIRS
883 --with-libraries=DIRS look for additional libraries in DIRS
884 --with-libs=DIRS alternative spelling of --with-libraries
885 --with-pgport=PORTNUM change default port number [5432]
886 --with-tcl build Tcl modules (PL/Tcl)
887 --with-tclconfig=DIR tclConfig.sh is in DIR
888 --with-perl build Perl modules (PL/Perl)
889 --with-python build Python modules (PL/Python)
890 --with-gssapi build with GSSAPI support
891 --with-krb5 build with Kerberos 5 support
892 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
893 --with-pam build with PAM support
894 --with-ldap build with LDAP support
895 --with-bonjour build with Bonjour support
896 --with-openssl build with OpenSSL support
897 --without-readline do not use GNU Readline nor BSD Libedit for editing
898 --with-libedit-preferred prefer BSD Libedit over GNU Readline
899 --with-ossp-uuid build with OSSP UUID library for UUID generation
900 --with-libxml build with XML support
901 --with-libxslt build with XSLT support
902 --with-system-tzdata=DIR use system time zone data in DIR
903 --without-zlib do not use Zlib
904 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
916 location of DocBook stylesheets
918 Use these variables to override the choices made by `configure' or to help
919 it to find libraries and programs with nonstandard names/locations.
921 Report bugs to <pgsql-bugs@postgresql.org>.
925 if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929 test -d $ac_dir || continue
932 if test "$ac_dir" != .; then
933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
937 ac_dir_suffix= ac_top_builddir=
941 .) # No --srcdir option. We are building in place.
943 if test -z "$ac_top_builddir"; then
946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
948 [\\/]* | ?:[\\/]* ) # Absolute path.
949 ac_srcdir=$srcdir$ac_dir_suffix;
950 ac_top_srcdir=$srcdir ;;
952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
959 .) ac_abs_builddir="$ac_dir";;
962 .) ac_abs_builddir=`pwd`;;
963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
970 case ${ac_top_builddir}. in
971 .) ac_abs_top_builddir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
980 .) ac_abs_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
988 case $ac_top_srcdir in
989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
996 # Check for guested configure; otherwise get Cygnus style configure.
997 if test -f $ac_srcdir/configure.gnu; then
999 $SHELL $ac_srcdir/configure.gnu --help=recursive
1000 elif test -f $ac_srcdir/configure; then
1002 $SHELL $ac_srcdir/configure --help=recursive
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.in; then
1006 $ac_configure --help
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1017 PostgreSQL configure 8.3beta1
1018 generated by GNU Autoconf 2.59
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1024 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1030 This file contains any messages produced by compilers while
1031 running configure, to aid debugging if configure makes a mistake.
1033 It was created by PostgreSQL $as_me 8.3beta1, which was
1034 generated by GNU Autoconf 2.59. Invocation command line was
1045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1057 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1068 test -z "$as_dir" && as_dir=.
1069 echo "PATH: $as_dir"
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Strip out --silent because we don't want to record it for future runs.
1087 # Also quote any args containing shell meta-characters.
1088 # Make two passes to allow for proper duplicate-argument suppression.
1093 ac_must_keep_next=false
1099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1103 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1107 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1109 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1110 if test $ac_must_keep_next = true; then
1111 ac_must_keep_next=false # Got value, back to normal.
1114 *=* | --config-cache | -C | -disable-* | --disable-* \
1115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1117 | -with-* | --with-* | -without-* | --without-* | --x)
1118 case "$ac_configure_args0 " in
1119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1122 -* ) ac_must_keep_next=true ;;
1125 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1126 # Get rid of the leading space.
1132 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1133 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1135 # When interrupted or exit'd, cleanup temporary files, and complete
1136 # config.log. We remove comments because anyway the quotes in there
1137 # would cause problems or look ugly.
1138 # WARNING: Be sure not to use single quotes in there, as some shells,
1139 # such as our DU 5.0 friend, will then `close' the trap.
1140 trap 'exit_status=$?
1141 # Save into config.log some information that might help in debugging.
1146 ## ---------------- ##
1147 ## Cache variables. ##
1148 ## ---------------- ##
1151 # The following way of writing the cache mishandles newlines in values,
1154 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1157 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1169 ## ----------------- ##
1170 ## Output variables. ##
1171 ## ----------------- ##
1174 for ac_var in $ac_subst_vars
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -n "$ac_subst_files"; then
1188 for ac_var in $ac_subst_files
1190 eval ac_val=$`echo $ac_var`
1191 echo "$ac_var='"'"'$ac_val'"'"'"
1196 if test -s confdefs.h; then
1203 sed "/^$/d" confdefs.h | sort
1206 test "$ac_signal" != 0 &&
1207 echo "$as_me: caught signal $ac_signal"
1208 echo "$as_me: exit $exit_status"
1210 rm -f core *.core &&
1211 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1214 for ac_signal in 1 2 13 15; do
1215 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1220 rm -rf conftest* confdefs.h
1221 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1224 # Predefined preprocessor variables.
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_NAME "$PACKAGE_NAME"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_STRING "$PACKAGE_STRING"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1251 # Let the site file select an alternate cache file if it wants to.
1252 # Prefer explicitly selected file to automatically selected ones.
1253 if test -z "$CONFIG_SITE"; then
1254 if test "x$prefix" != xNONE; then
1255 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1257 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1260 for ac_site_file in $CONFIG_SITE; do
1261 if test -r "$ac_site_file"; then
1262 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1263 echo "$as_me: loading site script $ac_site_file" >&6;}
1264 sed 's/^/| /' "$ac_site_file" >&5
1269 if test -r "$cache_file"; then
1270 # Some versions of bash will fail to source /dev/null (special
1271 # files actually), so we avoid doing that.
1272 if test -f "$cache_file"; then
1273 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1274 echo "$as_me: loading cache $cache_file" >&6;}
1276 [\\/]* | ?:[\\/]* ) . $cache_file;;
1277 *) . ./$cache_file;;
1281 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1282 echo "$as_me: creating cache $cache_file" >&6;}
1286 # Check that the precious variables saved in the cache have kept the same
1288 ac_cache_corrupted=false
1289 for ac_var in `(set) 2>&1 |
1290 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1291 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1292 eval ac_new_set=\$ac_env_${ac_var}_set
1293 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1294 eval ac_new_val="\$ac_env_${ac_var}_value"
1295 case $ac_old_set,$ac_new_set in
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1306 if test "x$ac_old_val" != "x$ac_new_val"; then
1307 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1308 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1309 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1310 echo "$as_me: former value: $ac_old_val" >&2;}
1311 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1312 echo "$as_me: current value: $ac_new_val" >&2;}
1313 ac_cache_corrupted=:
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1329 if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374 for ac_dir in config $srcdir/config; do
1375 if test -f $ac_dir/install-sh; then
1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 elif test -f $ac_dir/install.sh; then
1381 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 elif test -f $ac_dir/shtool; then
1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1389 if test -z "$ac_aux_dir"; then
1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1392 { (exit 1); exit 1; }; }
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399 configure_args=$ac_configure_args
1403 cat >>confdefs.h <<_ACEOF
1404 #define PG_VERSION "$PACKAGE_VERSION"
1408 # Make sure we can run config.sub.
1409 $ac_config_sub sun4 >/dev/null 2>&1 ||
1410 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1411 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1412 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: checking build system type" >&5
1415 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1416 if test "${ac_cv_build+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 ac_cv_build_alias=$build_alias
1420 test -z "$ac_cv_build_alias" &&
1421 ac_cv_build_alias=`$ac_config_guess`
1422 test -z "$ac_cv_build_alias" &&
1423 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1424 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1425 { (exit 1); exit 1; }; }
1426 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1429 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1433 echo "${ECHO_T}$ac_cv_build" >&6
1435 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440 echo "$as_me:$LINENO: checking host system type" >&5
1441 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1442 if test "${ac_cv_host+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_cv_host_alias=$host_alias
1446 test -z "$ac_cv_host_alias" &&
1447 ac_cv_host_alias=$ac_cv_build_alias
1448 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1455 echo "${ECHO_T}$ac_cv_host" >&6
1457 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking which template to use" >&5
1465 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1468 pgac_args="$pgac_args with_template"
1471 # Check whether --with-template or --without-template was given.
1472 if test "${with_template+set}" = set; then
1473 withval="$with_template"
1477 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1478 echo "$as_me: error: argument required for --with-template option" >&2;}
1479 { (exit 1); exit 1; }; }
1482 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1483 echo "$as_me: error: argument required for --with-template option" >&2;}
1484 { (exit 1); exit 1; }; }
1489 list) echo; ls "$srcdir/src/template"; exit;;
1490 *) if test -f "$srcdir/src/template/$with_template" ; then
1493 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1494 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1495 { (exit 1); exit 1; }; }
1504 # --with-template not given
1507 aix*) template=aix ;;
1508 bsdi*) template=bsdi ;;
1509 cygwin*) template=cygwin ;;
1510 darwin*) template=darwin ;;
1511 dgux*) template=dgux ;;
1512 freebsd*) template=freebsd ;;
1513 hpux*) template=hpux ;;
1514 irix*) template=irix ;;
1515 linux*|gnu*|k*bsd*-gnu)
1517 mingw*) template=win32 ;;
1518 netbsd*) template=netbsd ;;
1519 nextstep*) template=nextstep ;;
1520 openbsd*) template=openbsd ;;
1521 osf*) template=osf ;;
1522 sco*) template=sco ;;
1523 solaris*) template=solaris ;;
1524 sunos*) template=sunos4 ;;
1526 case $host_vendor in
1527 univel) template=univel ;;
1529 sysv4*) template=svr4 ;;
1530 sysv5*) template=unixware ;;
1531 ultrix*) template=ultrix4 ;;
1534 if test x"$template" = x"" ; then
1535 { { echo "$as_me:$LINENO: error:
1536 *******************************************************************
1537 PostgreSQL has apparently not been ported to your platform yet.
1538 To try a manual configuration, look into the src/template directory
1539 for a similar platform and use the '--with-template=' option.
1541 Please also contact <pgsql-ports@postgresql.org> to see about
1542 rectifying this. Include the above 'checking host system type...'
1544 *******************************************************************
1546 echo "$as_me: error:
1547 *******************************************************************
1548 PostgreSQL has apparently not been ported to your platform yet.
1549 To try a manual configuration, look into the src/template directory
1550 for a similar platform and use the '--with-template=' option.
1552 Please also contact <pgsql-ports@postgresql.org> to see about
1553 rectifying this. Include the above 'checking host system type...'
1555 *******************************************************************
1557 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $template" >&5
1565 echo "${ECHO_T}$template" >&6
1570 # Initialize default assumption that we do not need separate assembly code
1571 # for TAS (test-and-set). This can be overridden by the template file
1572 # when it's executed.
1579 ## Command line options
1583 # Installation directory for documentation
1586 pgac_args="$pgac_args with_docdir"
1589 # Check whether --with-docdir or --without-docdir was given.
1590 if test "${with_docdir+set}" = set; then
1591 withval="$with_docdir"
1595 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1596 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1597 { (exit 1); exit 1; }; }
1608 docdir='${prefix}/doc'
1615 # Add non-standard directories to the include path
1618 pgac_args="$pgac_args with_includes"
1621 # Check whether --with-includes or --without-includes was given.
1622 if test "${with_includes+set}" = set; then
1623 withval="$with_includes"
1627 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1628 echo "$as_me: error: argument required for --with-includes option" >&2;}
1629 { (exit 1); exit 1; }; }
1632 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1633 echo "$as_me: error: argument required for --with-includes option" >&2;}
1634 { (exit 1); exit 1; }; }
1646 # Add non-standard directories to the library search path
1649 pgac_args="$pgac_args with_libraries"
1652 # Check whether --with-libraries or --without-libraries was given.
1653 if test "${with_libraries+set}" = set; then
1654 withval="$with_libraries"
1658 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1659 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1660 { (exit 1); exit 1; }; }
1663 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1664 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1665 { (exit 1); exit 1; }; }
1668 LIBRARY_DIRS=$withval
1676 pgac_args="$pgac_args with_libs"
1679 # Check whether --with-libs or --without-libs was given.
1680 if test "${with_libs+set}" = set; then
1681 withval="$with_libs"
1685 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1686 echo "$as_me: error: argument required for --with-libs option" >&2;}
1687 { (exit 1); exit 1; }; }
1690 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1691 echo "$as_me: error: argument required for --with-libs option" >&2;}
1692 { (exit 1); exit 1; }; }
1695 LIBRARY_DIRS=$withval
1704 # 64-bit integer date/time storage (--enable-integer-datetimes)
1706 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1707 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1709 pgac_args="$pgac_args enable_integer_datetimes"
1711 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1712 if test "${enable_integer_datetimes+set}" = set; then
1713 enableval="$enable_integer_datetimes"
1718 cat >>confdefs.h <<\_ACEOF
1719 #define USE_INTEGER_DATETIMES 1
1727 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1728 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1729 { (exit 1); exit 1; }; }
1734 enable_integer_datetimes=no
1738 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1739 echo "${ECHO_T}$enable_integer_datetimes" >&6
1745 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1746 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1748 pgac_args="$pgac_args enable_nls"
1750 # Check whether --enable-nls or --disable-nls was given.
1751 if test "${enable_nls+set}" = set; then
1752 enableval="$enable_nls"
1763 WANTED_LANGUAGES=$enableval
1772 if test "$enable_nls" = yes; then
1774 cat >>confdefs.h <<\_ACEOF
1775 #define ENABLE_NLS 1
1780 echo "$as_me:$LINENO: result: $enable_nls" >&5
1781 echo "${ECHO_T}$enable_nls" >&6
1786 # Default port number (--with-pgport), default 5432
1788 echo "$as_me:$LINENO: checking for default port number" >&5
1789 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1791 pgac_args="$pgac_args with_pgport"
1794 # Check whether --with-pgport or --without-pgport was given.
1795 if test "${with_pgport+set}" = set; then
1796 withval="$with_pgport"
1800 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1801 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1802 { (exit 1); exit 1; }; }
1805 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1806 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1807 { (exit 1); exit 1; }; }
1810 default_port=$withval
1818 echo "$as_me:$LINENO: result: $default_port" >&5
1819 echo "${ECHO_T}$default_port" >&6
1820 # Need both of these because some places want an integer and some a string
1822 cat >>confdefs.h <<_ACEOF
1823 #define DEF_PGPORT ${default_port}
1827 cat >>confdefs.h <<_ACEOF
1828 #define DEF_PGPORT_STR "${default_port}"
1834 # Option to disable shared libraries
1837 pgac_args="$pgac_args enable_shared"
1839 # Check whether --enable-shared or --disable-shared was given.
1840 if test "${enable_shared+set}" = set; then
1841 enableval="$enable_shared"
1851 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1852 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1853 { (exit 1); exit 1; }; }
1865 # '-rpath'-like feature can be disabled
1868 pgac_args="$pgac_args enable_rpath"
1870 # Check whether --enable-rpath or --disable-rpath was given.
1871 if test "${enable_rpath+set}" = set; then
1872 enableval="$enable_rpath"
1882 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1883 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1884 { (exit 1); exit 1; }; }
1899 pgac_args="$pgac_args enable_spinlocks"
1901 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1902 if test "${enable_spinlocks+set}" = set; then
1903 enableval="$enable_spinlocks"
1913 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1914 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1915 { (exit 1); exit 1; }; }
1920 enable_spinlocks=yes
1926 # --enable-debug adds -g to compiler flags
1929 pgac_args="$pgac_args enable_debug"
1931 # Check whether --enable-debug or --disable-debug was given.
1932 if test "${enable_debug+set}" = set; then
1933 enableval="$enable_debug"
1943 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1944 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1945 { (exit 1); exit 1; }; }
1957 # --enable-profiling enables gcc profiling
1960 pgac_args="$pgac_args enable_profiling"
1962 # Check whether --enable-profiling or --disable-profiling was given.
1963 if test "${enable_profiling+set}" = set; then
1964 enableval="$enable_profiling"
1974 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1975 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1976 { (exit 1); exit 1; }; }
1991 pgac_args="$pgac_args enable_dtrace"
1993 # Check whether --enable-dtrace or --disable-dtrace was given.
1994 if test "${enable_dtrace+set}" = set; then
1995 enableval="$enable_dtrace"
2000 cat >>confdefs.h <<\_ACEOF
2001 #define ENABLE_DTRACE 1
2004 for ac_prog in dtrace
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_DTRACE+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$DTRACE"; then
2014 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_DTRACE="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 DTRACE=$ac_cv_prog_DTRACE
2033 if test -n "$DTRACE"; then
2034 echo "$as_me:$LINENO: result: $DTRACE" >&5
2035 echo "${ECHO_T}$DTRACE" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2041 test -n "$DTRACE" && break
2044 if test -z "$DTRACE"; then
2045 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2046 echo "$as_me: error: dtrace not found" >&2;}
2047 { (exit 1); exit 1; }; }
2055 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2056 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2057 { (exit 1); exit 1; }; }
2072 # For historical reasons you can also use --with-CC to specify the C compiler
2073 # to use, although the standard way to do this is to set the CC environment
2076 pgac_args="$pgac_args with_CC"
2079 # Check whether --with-CC or --without-CC was given.
2080 if test "${with_CC+set}" = set; then
2085 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2086 echo "$as_me: error: argument required for --with-CC option" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2091 echo "$as_me: error: argument required for --with-CC option" >&2;}
2092 { (exit 1); exit 1; }; }
2103 aix) pgac_cc_list="gcc xlc";;
2104 irix) pgac_cc_list="cc";; # no gcc
2105 *) pgac_cc_list="gcc cc";;
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114 for ac_prog in $pgac_cc_list
2116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$CC"; then
2124 ac_cv_prog_CC="$CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 if test -n "$CC"; then
2144 echo "$as_me:$LINENO: result: $CC" >&5
2145 echo "${ECHO_T}$CC" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2151 test -n "$CC" && break
2154 if test -z "$CC"; then
2156 for ac_prog in $pgac_cc_list
2158 # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$ac_ct_CC"; then
2166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_ac_ct_CC="$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185 if test -n "$ac_ct_CC"; then
2186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187 echo "${ECHO_T}$ac_ct_CC" >&6
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2193 test -n "$ac_ct_CC" && break
2200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: no acceptable C compiler found in \$PATH
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }
2206 # Provide some information about the compiler.
2207 echo "$as_me:$LINENO:" \
2208 "checking for C compiler version" >&5
2209 ac_compiler=`set X $ac_compile; echo $2`
2210 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2211 (eval $ac_compiler --version </dev/null >&5) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }
2215 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2216 (eval $ac_compiler -v </dev/null >&5) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }
2220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2221 (eval $ac_compiler -V </dev/null >&5) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }
2226 cat >conftest.$ac_ext <<_ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2241 ac_clean_files_save=$ac_clean_files
2242 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2243 # Try to create an executable without -o first, disregard a.out.
2244 # It will help us diagnose broken compilers, and finding out an intuition
2246 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2247 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2248 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2250 (eval $ac_link_default) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # Find the output, starting from the most likely. This scheme is
2255 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2258 # Be careful to initialize this variable, since it used to be cached.
2259 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2261 # b.out is created by i960 compilers.
2262 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2269 # This is the source file.
2272 # We found the default executable, but exeext='' is most
2276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277 # FIXME: I believe we export ac_cv_exeext for Libtool,
2278 # but it would be cool to find out if it's true. Does anybody
2279 # maintain Libtool? --akim.
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: C compiler cannot create executables
2293 See \`config.log' for more details." >&2;}
2294 { (exit 77); exit 77; }; }
2297 ac_exeext=$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_file" >&5
2299 echo "${ECHO_T}$ac_file" >&6
2301 # Check the compiler produces executables we can run. If not, either
2302 # the compiler is broken, or we cross compile.
2303 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2304 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2305 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2306 # If not cross compiling, check that we can run a simple program.
2307 if test "$cross_compiling" != yes; then
2308 if { ac_try='./$ac_file'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2316 if test "$cross_compiling" = maybe; then
2319 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot run C compiled programs.
2323 If you meant to cross compile, use \`--host'.
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2329 echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6
2332 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2333 ac_clean_files=$ac_clean_files_save
2334 # Check the compiler produces executables we can run. If not, either
2335 # the compiler is broken, or we cross compile.
2336 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2337 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2338 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2339 echo "${ECHO_T}$cross_compiling" >&6
2341 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2342 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2344 (eval $ac_link) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2349 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2350 # work properly (i.e., refer to `conftest.exe'), while it won't with
2352 for ac_file in conftest.exe conftest conftest.*; do
2353 test -f "$ac_file" || continue
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2356 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2370 rm -f conftest$ac_cv_exeext
2371 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2377 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2379 if test "${ac_cv_objext+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.$ac_ext <<_ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.o conftest.obj
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2406 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2423 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2424 echo "${ECHO_T}$ac_cv_objext" >&6
2425 OBJEXT=$ac_cv_objext
2427 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.$ac_ext <<_ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2450 rm -f conftest.$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>conftest.er1
2454 grep -v '^ *+' conftest.er1 >conftest.err
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2483 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2485 GCC=`test $ac_compiler_gnu = yes && echo yes`
2486 ac_test_CFLAGS=${CFLAGS+set}
2487 ac_save_CFLAGS=$CFLAGS
2489 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_g+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2513 grep -v '^ *+' conftest.er1 >conftest.err
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2542 if test "$ac_test_CFLAGS" = set; then
2543 CFLAGS=$ac_save_CFLAGS
2544 elif test $ac_cv_prog_cc_g = yes; then
2545 if test "$GCC" = yes; then
2551 if test "$GCC" = yes; then
2557 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2558 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 ac_cv_prog_cc_stdc=no
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2572 #include <sys/types.h>
2573 #include <sys/stat.h>
2574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2575 struct buf { int x; };
2576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2577 static char *e (p, i)
2583 static char *f (char * (*g) (char **, int), char **p, ...)
2588 s = g (p, va_arg (v,int));
2593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2594 function prototypes and stuff, but not '\xHH' hex character constants.
2595 These don't provoke an error unfortunately, instead are silently treated
2596 as 'x'. The following induces an error, until -std1 is added to get
2597 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2598 array size at least. It's necessary to write '\x00'==0 to get something
2599 that's true only with -std1. */
2600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX -qlanglvl=ansi
2619 # Ultrix and OSF/1 -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions -Aa -D_HPUX_SOURCE
2622 # SVR4 -Xc -D__EXTENSIONS__
2623 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625 CC="$ac_save_CC $ac_arg"
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1 >conftest.err
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_prog_cc_stdc=$ac_arg
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.err conftest.$ac_objext
2657 rm -f conftest.$ac_ext conftest.$ac_objext
2662 case "x$ac_cv_prog_cc_stdc" in
2664 echo "$as_me:$LINENO: result: none needed" >&5
2665 echo "${ECHO_T}none needed" >&6 ;;
2667 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2669 CC="$CC $ac_cv_prog_cc_stdc" ;;
2672 # Some people use a C++ compiler to compile C. Since we use `exit',
2673 # in C++ we need to declare it. In case someone uses the same compiler
2674 # for both compiling C and C++ we need to have the C++ compiler decide
2675 # the declaration of exit, since it's the most demanding environment.
2676 cat >conftest.$ac_ext <<_ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2685 grep -v '^ *+' conftest.er1 >conftest.err
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 for ac_declaration in \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
2823 # but has idiosyncrasies of its own. We assume icc will define
2824 # __INTEL_COMPILER regardless of CFLAGS.
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2836 #ifndef __INTEL_COMPILER
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879 . "$srcdir/src/template/$template" || exit
2881 # CFLAGS are selected so:
2882 # If the user specifies something in the environment, that is used.
2883 # else: If the template file set something, that is used.
2884 # else: If the compiler is GCC, then we use -O2.
2885 # else: If the compiler is something else, then we use -0.
2887 if test "$ac_env_CFLAGS_set" = set; then
2888 CFLAGS=$ac_env_CFLAGS_value
2889 elif test "${CFLAGS+set}" = set; then
2890 : # (keep what template set)
2891 elif test "$GCC" = yes; then
2894 # if the user selected debug mode, don't use -O
2895 if test "$enable_debug" != yes; then
2900 # Some versions of GCC support some additional useful warning flags.
2901 # Check whether they are supported, and add them to CFLAGS if so.
2902 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2904 if test "$GCC" = yes -a "$ICC" = no; then
2905 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2906 # These work in some but not all gcc versions
2907 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2908 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2909 pgac_save_CFLAGS=$CFLAGS
2910 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 CFLAGS="$pgac_save_CFLAGS"
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2961 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2962 pgac_save_CFLAGS=$CFLAGS
2963 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_c_werror_flag"
2989 || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 CFLAGS="$pgac_save_CFLAGS"
3008 echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 # Disable strict-aliasing rules; needed for gcc 3.3+
3014 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3015 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3016 pgac_save_CFLAGS=$CFLAGS
3017 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 CFLAGS="$pgac_save_CFLAGS"
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 elif test "$ICC" = yes; then
3068 # Intel's compiler has a bug/misoptimization in checking for
3069 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3070 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3071 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3072 pgac_save_CFLAGS=$CFLAGS
3073 CFLAGS="$pgac_save_CFLAGS -mp1"
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 CFLAGS="$pgac_save_CFLAGS"
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3123 # Make sure strict aliasing is off (though this is said to be the default)
3124 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3125 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3126 pgac_save_CFLAGS=$CFLAGS
3127 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 CFLAGS="$pgac_save_CFLAGS"
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 elif test x"${CC}" = x"xlc"; then
3178 # AIX xlc has to have strict aliasing turned off too
3179 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3180 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3181 pgac_save_CFLAGS=$CFLAGS
3182 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 echo "$as_me:$LINENO: result: yes" >&5
3221 echo "${ECHO_T}yes" >&6
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 CFLAGS="$pgac_save_CFLAGS"
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234 # supply -g if --enable-debug
3235 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3239 # enable profiling if --enable-profiling
3240 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3241 if test "$GCC" = yes; then
3243 cat >>confdefs.h <<\_ACEOF
3244 #define PROFILE_PID_DIR 1
3247 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3249 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3250 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3251 { (exit 1); exit 1; }; }
3255 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3256 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3258 # We already have this in Makefile.win32, but configure needs it too
3259 if test "$PORTNAME" = "win32"; then
3260 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3263 # Check if the compiler still works with the template settings
3264 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3265 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283 (eval $ac_link) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest$ac_exeext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3312 echo "$as_me: error: cannot proceed" >&2;}
3313 { (exit 1); exit 1; }; }
3315 rm -f conftest.err conftest.$ac_objext \
3316 conftest$ac_exeext conftest.$ac_ext
3318 # Defend against gcc -ffast-math
3319 if test "$GCC" = yes; then
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3330 #ifdef __FAST_MATH__
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag"
3347 || test ! -s conftest.err'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3365 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3366 { (exit 1); exit 1; }; }
3368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3382 if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3405 # include <limits.h>
3407 # include <assert.h>
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 if test -z "$ac_cpp_err"; then
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Broken: fails on valid input.
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether non-existent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3477 rm -f conftest.err conftest.$ac_ext
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3494 echo "$as_me:$LINENO: result: $CPP" >&5
3495 echo "${ECHO_T}$CPP" >&6
3497 for ac_c_preproc_warn_flag in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 # include <limits.h>
3514 # include <assert.h>
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 if test -z "$ac_cpp_err"; then
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether non-existent headers
3547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3574 # Broken: success on invalid input.
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Passes both tests.
3584 rm -f conftest.err conftest.$ac_ext
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 # Create compiler version string
3608 if test x"$GCC" = x"yes" ; then
3609 cc_string="GCC `${CC} --version | sed q`"
3614 cat >>confdefs.h <<_ACEOF
3615 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3621 # Set up TAS assembly code if needed; the template file has now had its
3622 # chance to request this.
3624 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3627 if test "$need_tas" = yes ; then
3636 # Automatic dependency tracking
3639 pgac_args="$pgac_args enable_depend"
3641 # Check whether --enable-depend or --disable-depend was given.
3642 if test "${enable_depend+set}" = set; then
3643 enableval="$enable_depend"
3653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3654 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3655 { (exit 1); exit 1; }; }
3668 # Enable assert checks
3671 pgac_args="$pgac_args enable_cassert"
3673 # Check whether --enable-cassert or --disable-cassert was given.
3674 if test "${enable_cassert+set}" = set; then
3675 enableval="$enable_cassert"
3680 cat >>confdefs.h <<\_ACEOF
3681 #define USE_ASSERT_CHECKING 1
3689 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3690 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3691 { (exit 1); exit 1; }; }
3703 # Include directories
3706 IFS="${IFS}${PATH_SEPARATOR}"
3707 # SRCH_INC comes from the template file
3708 for dir in $with_includes $SRCH_INC; do
3709 if test -d "$dir"; then
3710 INCLUDES="$INCLUDES -I$dir"
3712 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3713 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3721 # Library directories
3724 IFS="${IFS}${PATH_SEPARATOR}"
3725 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3726 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3727 if test -d "$dir"; then
3728 LIBDIRS="$LIBDIRS -L$dir"
3730 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3731 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3737 # Enable thread-safe client libraries
3739 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3740 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3741 if test "$PORTNAME" != "win32"; then
3743 pgac_args="$pgac_args enable_thread_safety"
3745 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3746 if test "${enable_thread_safety+set}" = set; then
3747 enableval="$enable_thread_safety"
3757 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3758 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3759 { (exit 1); exit 1; }; }
3764 enable_thread_safety=no
3769 # Win32 should always use threads
3771 pgac_args="$pgac_args enable_thread_safety"
3773 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3774 if test "${enable_thread_safety+set}" = set; then
3775 enableval="$enable_thread_safety"
3785 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3786 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3787 { (exit 1); exit 1; }; }
3792 enable_thread_safety=yes
3799 pgac_args="$pgac_args enable_thread_safety_force"
3801 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3802 if test "${enable_thread_safety_force+set}" = set; then
3803 enableval="$enable_thread_safety_force"
3813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3814 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3815 { (exit 1); exit 1; }; }
3820 enable_thread_safety_force=no
3824 if test "$enable_thread_safety" = yes -o \
3825 "$enable_thread_safety_force" = yes; then
3826 enable_thread_safety="yes" # for 'force'
3828 cat >>confdefs.h <<\_ACEOF
3829 #define ENABLE_THREAD_SAFETY 1
3833 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3834 echo "${ECHO_T}$enable_thread_safety" >&6
3838 # Optionally build Tcl modules (PL/Tcl)
3840 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3841 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3843 pgac_args="$pgac_args with_tcl"
3846 # Check whether --with-tcl or --without-tcl was given.
3847 if test "${with_tcl+set}" = set; then
3858 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3859 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3860 { (exit 1); exit 1; }; }
3869 echo "$as_me:$LINENO: result: $with_tcl" >&5
3870 echo "${ECHO_T}$with_tcl" >&6
3873 # We see if the path to the Tcl/Tk configuration scripts is specified.
3874 # This will override the use of tclsh to find the paths to search.
3877 pgac_args="$pgac_args with_tclconfig"
3880 # Check whether --with-tclconfig or --without-tclconfig was given.
3881 if test "${with_tclconfig+set}" = set; then
3882 withval="$with_tclconfig"
3886 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3887 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3888 { (exit 1); exit 1; }; }
3891 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3893 { (exit 1); exit 1; }; }
3904 # Optionally build Perl modules (PL/Perl)
3906 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3907 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3909 pgac_args="$pgac_args with_perl"
3912 # Check whether --with-perl or --without-perl was given.
3913 if test "${with_perl+set}" = set; then
3914 withval="$with_perl"
3924 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3925 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3926 { (exit 1); exit 1; }; }
3935 echo "$as_me:$LINENO: result: $with_perl" >&5
3936 echo "${ECHO_T}$with_perl" >&6
3940 # Optionally build Python modules (PL/Python)
3942 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3943 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3945 pgac_args="$pgac_args with_python"
3948 # Check whether --with-python or --without-python was given.
3949 if test "${with_python+set}" = set; then
3950 withval="$with_python"
3960 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3961 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3962 { (exit 1); exit 1; }; }
3971 echo "$as_me:$LINENO: result: $with_python" >&5
3972 echo "${ECHO_T}$with_python" >&6
3978 echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
3979 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6
3981 pgac_args="$pgac_args with_gssapi"
3984 # Check whether --with-gssapi or --without-gssapi was given.
3985 if test "${with_gssapi+set}" = set; then
3986 withval="$with_gssapi"
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_GSS 1
3996 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4003 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4004 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4005 { (exit 1); exit 1; }; }
4014 echo "$as_me:$LINENO: result: $with_gssapi" >&5
4015 echo "${ECHO_T}$with_gssapi" >&6
4021 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4022 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
4024 pgac_args="$pgac_args with_krb5"
4027 # Check whether --with-krb5 or --without-krb5 was given.
4028 if test "${with_krb5+set}" = set; then
4029 withval="$with_krb5"
4035 cat >>confdefs.h <<\_ACEOF
4039 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4046 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4047 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4048 { (exit 1); exit 1; }; }
4057 echo "$as_me:$LINENO: result: $with_krb5" >&5
4058 echo "${ECHO_T}$with_krb5" >&6
4066 # Kerberos configuration parameters
4069 pgac_args="$pgac_args with_krb_srvnam"
4072 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
4073 if test "${with_krb_srvnam+set}" = set; then
4074 withval="$with_krb_srvnam"
4078 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4079 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4080 { (exit 1); exit 1; }; }
4083 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4084 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4085 { (exit 1); exit 1; }; }
4093 with_krb_srvnam="postgres"
4097 cat >>confdefs.h <<_ACEOF
4098 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4106 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4107 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
4109 pgac_args="$pgac_args with_pam"
4112 # Check whether --with-pam or --without-pam was given.
4113 if test "${with_pam+set}" = set; then
4119 cat >>confdefs.h <<\_ACEOF
4128 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4129 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4130 { (exit 1); exit 1; }; }
4139 echo "$as_me:$LINENO: result: $with_pam" >&5
4140 echo "${ECHO_T}$with_pam" >&6
4147 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4148 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4150 pgac_args="$pgac_args with_ldap"
4153 # Check whether --with-ldap or --without-ldap was given.
4154 if test "${with_ldap+set}" = set; then
4155 withval="$with_ldap"
4160 cat >>confdefs.h <<\_ACEOF
4169 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4170 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4171 { (exit 1); exit 1; }; }
4180 echo "$as_me:$LINENO: result: $with_ldap" >&5
4181 echo "${ECHO_T}$with_ldap" >&6
4188 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4189 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4191 pgac_args="$pgac_args with_bonjour"
4194 # Check whether --with-bonjour or --without-bonjour was given.
4195 if test "${with_bonjour+set}" = set; then
4196 withval="$with_bonjour"
4201 cat >>confdefs.h <<\_ACEOF
4202 #define USE_BONJOUR 1
4210 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4211 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4212 { (exit 1); exit 1; }; }
4221 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4222 echo "${ECHO_T}$with_bonjour" >&6
4229 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4230 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4232 pgac_args="$pgac_args with_openssl"
4235 # Check whether --with-openssl or --without-openssl was given.
4236 if test "${with_openssl+set}" = set; then
4237 withval="$with_openssl"
4242 cat >>confdefs.h <<\_ACEOF
4251 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4252 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4253 { (exit 1); exit 1; }; }
4262 echo "$as_me:$LINENO: result: $with_openssl" >&5
4263 echo "${ECHO_T}$with_openssl" >&6
4271 pgac_args="$pgac_args with_readline"
4274 # Check whether --with-readline or --without-readline was given.
4275 if test "${with_readline+set}" = set; then
4276 withval="$with_readline"
4286 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4287 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4288 { (exit 1); exit 1; }; }
4297 # readline on MinGW has problems with backslashes in psql and other bugs.
4298 # This is particularly a problem with non-US code pages.
4299 # Therefore disable its use until we understand the cause. 2004-07-20
4300 if test "$PORTNAME" = "win32"; then
4301 if test "$with_readline" = yes; then
4302 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4303 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4313 pgac_args="$pgac_args with_libedit_preferred"
4316 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4317 if test "${with_libedit_preferred+set}" = set; then
4318 withval="$with_libedit_preferred"
4328 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4329 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4330 { (exit 1); exit 1; }; }
4335 with_libedit_preferred=no
4345 pgac_args="$pgac_args with_ossp_uuid"
4348 # Check whether --with-ossp-uuid or --without-ossp-uuid was given.
4349 if test "${with_ossp_uuid+set}" = set; then
4350 withval="$with_ossp_uuid"
4360 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4361 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4362 { (exit 1); exit 1; }; }
4378 pgac_args="$pgac_args with_libxml"
4381 # Check whether --with-libxml or --without-libxml was given.
4382 if test "${with_libxml+set}" = set; then
4383 withval="$with_libxml"
4388 cat >>confdefs.h <<\_ACEOF
4389 #define USE_LIBXML 1
4397 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4398 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4399 { (exit 1); exit 1; }; }
4409 if test "$with_libxml" = yes ; then
4410 for ac_prog in xml2-config
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 if test -n "$XML2_CONFIG"; then
4420 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_XML2_CONFIG="$ac_prog"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4439 if test -n "$XML2_CONFIG"; then
4440 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4441 echo "${ECHO_T}$XML2_CONFIG" >&6
4443 echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4447 test -n "$XML2_CONFIG" && break
4450 if test -n "$XML2_CONFIG"; then
4451 for pgac_option in `$XML2_CONFIG --cflags`; do
4452 case $pgac_option in
4453 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4456 for pgac_option in `$XML2_CONFIG --libs`; do
4457 case $pgac_option in
4458 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4470 pgac_args="$pgac_args with_libxslt"
4473 # Check whether --with-libxslt or --without-libxslt was given.
4474 if test "${with_libxslt+set}" = set; then
4475 withval="$with_libxslt"
4480 cat >>confdefs.h <<\_ACEOF
4481 #define USE_LIBXSLT 1
4489 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4490 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4491 { (exit 1); exit 1; }; }
4508 pgac_args="$pgac_args with_system_tzdata"
4511 # Check whether --with-system-tzdata or --without-system-tzdata was given.
4512 if test "${with_system_tzdata+set}" = set; then
4513 withval="$with_system_tzdata"
4517 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4518 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4519 { (exit 1); exit 1; }; }
4522 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4523 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4524 { (exit 1); exit 1; }; }
4539 pgac_args="$pgac_args with_zlib"
4542 # Check whether --with-zlib or --without-zlib was given.
4543 if test "${with_zlib+set}" = set; then
4544 withval="$with_zlib"
4554 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4555 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4556 { (exit 1); exit 1; }; }
4571 # Assume system is ELF if it predefines __ELF__ as 1,
4572 # otherwise believe host_os based default.
4574 freebsd1*|freebsd2*) elf=no;;
4575 freebsd3*|freebsd4*) elf=yes;;
4579 echo "$as_me:$LINENO: checking for egrep" >&5
4580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4581 if test "${ac_cv_prog_egrep+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4585 then ac_cv_prog_egrep='grep -E'
4586 else ac_cv_prog_egrep='egrep'
4589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4591 EGREP=$ac_cv_prog_egrep
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "yes" >/dev/null 2>&1; then
4609 if test "X$elf" = "Xyes" ; then
4623 CPPFLAGS="$CPPFLAGS $INCLUDES"
4624 LDFLAGS="$LDFLAGS $LIBDIRS"
4626 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4627 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4628 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4629 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then
4636 withval="$with_gnu_ld"
4637 test "$withval" = no || with_gnu_ld=yes
4642 if test "$GCC" = yes; then
4643 # Check if gcc -print-prog-name=ld gives a path.
4644 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4645 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4654 # Accept absolute paths.
4655 [\\/]* | [A-Za-z]:[\\/]*)
4656 re_direlt='/[^/][^/]*/\.\./'
4657 # Canonicalize the path of ld
4658 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4659 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4660 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4662 test -z "$LD" && LD="$ac_prog"
4665 # If it fails, then pretend we aren't using GCC.
4669 # If it is relative, then search for the first ld in PATH.
4673 elif test "$with_gnu_ld" = yes; then
4674 echo "$as_me:$LINENO: checking for GNU ld" >&5
4675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4677 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4680 if test "${ac_cv_path_LD+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -z "$LD"; then
4684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4685 for ac_dir in $PATH; do
4686 test -z "$ac_dir" && ac_dir=.
4687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4688 ac_cv_path_LD="$ac_dir/$ac_prog"
4689 # Check to see if the program is GNU ld. I'd rather use --version,
4690 # but apparently some GNU ld's only accept -v.
4691 # Break only if it was the GNU/non-GNU ld that we prefer.
4692 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4693 test "$with_gnu_ld" != no && break
4695 test "$with_gnu_ld" != yes && break
4701 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4706 if test -n "$LD"; then
4707 echo "$as_me:$LINENO: result: $LD" >&5
4708 echo "${ECHO_T}$LD" >&6
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4715 { (exit 1); exit 1; }; }
4716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4718 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4722 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4723 ac_cv_prog_gnu_ld=yes
4725 ac_cv_prog_gnu_ld=no
4728 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4729 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4730 with_gnu_ld=$ac_cv_prog_gnu_ld
4735 case $host_os in sysv5*)
4736 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4737 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4738 if test "${pgac_cv_prog_ld_R+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 pgac_cv_prog_ld_R=yes
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 pgac_cv_prog_ld_R=no
4787 rm -f conftest.err conftest.$ac_objext \
4788 conftest$ac_exeext conftest.$ac_ext
4789 LDFLAGS=$pgac_save_LDFLAGS
4792 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4793 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4794 ld_R_works=$pgac_cv_prog_ld_R
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_RANLIB+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 if test -n "$RANLIB"; then
4806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 RANLIB=$ac_cv_prog_RANLIB
4825 if test -n "$RANLIB"; then
4826 echo "$as_me:$LINENO: result: $RANLIB" >&5
4827 echo "${ECHO_T}$RANLIB" >&6
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4834 if test -z "$ac_cv_prog_RANLIB"; then
4835 ac_ct_RANLIB=$RANLIB
4836 # Extract the first word of "ranlib", so it can be a program name with args.
4837 set dummy ranlib; ac_word=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 if test -n "$ac_ct_RANLIB"; then
4844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_RANLIB="ranlib"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4864 if test -n "$ac_ct_RANLIB"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4866 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 RANLIB=$ac_ct_RANLIB
4874 RANLIB="$ac_cv_prog_RANLIB"
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}strip; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_STRIP+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$STRIP"; then
4887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 STRIP=$ac_cv_prog_STRIP
4906 if test -n "$STRIP"; then
4907 echo "$as_me:$LINENO: result: $STRIP" >&5
4908 echo "${ECHO_T}$STRIP" >&6
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4915 if test -z "$ac_cv_prog_STRIP"; then
4917 # Extract the first word of "strip", so it can be a program name with args.
4918 set dummy strip; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 if test -n "$ac_ct_STRIP"; then
4925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_STRIP="strip"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4945 if test -n "$ac_ct_STRIP"; then
4946 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4947 echo "${ECHO_T}$ac_ct_STRIP" >&6
4949 echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4955 STRIP="$ac_cv_prog_STRIP"
4959 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4960 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4961 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4962 STRIP_STATIC_LIB="$STRIP -x"
4963 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4969 echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4976 # Extract the first word of "tar", so it can be a program name with args.
4977 set dummy tar; ac_word=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_path_TAR+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 if test -n "$TAR"; then
5008 echo "$as_me:$LINENO: result: $TAR" >&5
5009 echo "${ECHO_T}$TAR" >&6
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5018 if test "$LN_S" = "ln -s"; then
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5022 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 echo "${ECHO_T}no, using $LN_S" >&6
5026 for ac_prog in gawk mawk nawk awk
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_AWK+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test -n "$AWK"; then
5036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_AWK="$ac_prog"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 if test -n "$AWK"; then
5056 echo "$as_me:$LINENO: result: $AWK" >&5
5057 echo "${ECHO_T}$AWK" >&6
5059 echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5063 test -n "$AWK" && break
5067 # Let the user override the search
5068 if test -z "$YACC"; then
5069 for ac_prog in 'bison -y'
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_YACC+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 if test -n "$YACC"; then
5079 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_YACC="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 YACC=$ac_cv_prog_YACC
5098 if test -n "$YACC"; then
5099 echo "$as_me:$LINENO: result: $YACC" >&5
5100 echo "${ECHO_T}$YACC" >&6
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5106 test -n "$YACC" && break
5111 if test "$YACC"; then
5112 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
5113 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5114 echo "$as_me: using $pgac_yacc_version" >&6;}
5115 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5117 { echo "$as_me:$LINENO: WARNING:
5118 *** The installed version of Bison is too old to use with PostgreSQL.
5119 *** Bison version 1.875 or later is required." >&5
5120 echo "$as_me: WARNING:
5121 *** The installed version of Bison is too old to use with PostgreSQL.
5122 *** Bison version 1.875 or later is required." >&2;}
5127 if test -z "$YACC"; then
5128 { echo "$as_me:$LINENO: WARNING:
5129 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5130 *** change any of the parser definition files. You can obtain Bison from
5131 *** a GNU mirror site. (If you are using the official distribution of
5132 *** PostgreSQL then you do not need to worry about this, because the Bison
5133 *** output is pre-generated.) To use a different yacc program (possible,
5134 *** but not recommended), set the environment variable YACC before running
5135 *** 'configure'." >&5
5136 echo "$as_me: WARNING:
5137 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5138 *** change any of the parser definition files. You can obtain Bison from
5139 *** a GNU mirror site. (If you are using the official distribution of
5140 *** PostgreSQL then you do not need to worry about this, because the Bison
5141 *** output is pre-generated.) To use a different yacc program (possible,
5142 *** but not recommended), set the environment variable YACC before running
5143 *** 'configure'." >&2;}
5145 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5148 echo "$as_me:$LINENO: checking for flex" >&5
5149 echo $ECHO_N "checking for flex... $ECHO_C" >&6
5150 if test "${pgac_cv_path_flex+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 # Let the user override the test
5154 if test -n "$FLEX"; then
5155 pgac_cv_path_flex=$FLEX
5159 for pgac_dir in $PATH; do
5161 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5164 for pgac_prog in flex lex; do
5165 pgac_candidate="$pgac_dir/$pgac_prog"
5166 if test -f "$pgac_candidate" \
5167 && $pgac_candidate --version </dev/null >/dev/null 2>&1
5169 echo '%%' > conftest.l
5170 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5171 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5172 pgac_broken_flex=$pgac_candidate
5176 pgac_cv_path_flex=$pgac_candidate
5182 rm -f conftest.l lex.yy.c
5183 : ${pgac_cv_path_flex=no}
5187 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5188 echo "${ECHO_T}$pgac_cv_path_flex" >&6
5189 if test x"$pgac_cv_path_flex" = x"no"; then
5190 if test -n "$pgac_broken_flex"; then
5191 { echo "$as_me:$LINENO: WARNING:
5192 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5193 *** should get version 2.5.4 or later." >&5
5194 echo "$as_me: WARNING:
5195 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5196 *** should get version 2.5.4 or later." >&2;}
5199 { echo "$as_me:$LINENO: WARNING:
5200 *** Without Flex you will not be able to build PostgreSQL from CVS or
5201 *** change any of the scanner definition files. You can obtain Flex from
5202 *** a GNU mirror site. (If you are using the official distribution of
5203 *** PostgreSQL then you do not need to worry about this because the Flex
5204 *** output is pre-generated.)" >&5
5205 echo "$as_me: WARNING:
5206 *** Without Flex you will not be able to build PostgreSQL from CVS or
5207 *** change any of the scanner definition files. You can obtain Flex from
5208 *** a GNU mirror site. (If you are using the official distribution of
5209 *** PostgreSQL then you do not need to worry about this because the Flex
5210 *** output is pre-generated.)" >&2;}
5214 FLEX=$pgac_cv_path_flex
5215 pgac_flex_version=`$FLEX -V 2>/dev/null`
5216 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5217 echo "$as_me: using $pgac_flex_version" >&6;}
5224 # Extract the first word of "perl", so it can be a program name with args.
5225 set dummy perl; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_path_PERL+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 PERL=$ac_cv_path_PERL
5255 if test -n "$PERL"; then
5256 echo "$as_me:$LINENO: result: $PERL" >&5
5257 echo "${ECHO_T}$PERL" >&6
5259 echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5263 if test "$with_perl" = yes; then
5265 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5266 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5267 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5268 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5269 echo "${ECHO_T}$perl_archlibexp" >&6
5270 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5271 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5272 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5273 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5274 echo "${ECHO_T}$perl_privlibexp" >&6
5275 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5276 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5277 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5278 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5279 echo "${ECHO_T}$perl_useshrplib" >&6
5281 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5282 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5283 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5284 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5285 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5286 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5287 echo "${ECHO_T}$perl_embed_ldflags" >&6
5290 if test "$with_python" = yes; then
5291 # Extract the first word of "python", so it can be a program name with args.
5292 set dummy python; ac_word=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_path_PYTHON+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 PYTHON=$ac_cv_path_PYTHON
5322 if test -n "$PYTHON"; then
5323 echo "$as_me:$LINENO: result: $PYTHON" >&5
5324 echo "${ECHO_T}$PYTHON" >&6
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5330 if test x"$PYTHON" = x""; then
5331 { { echo "$as_me:$LINENO: error: Python not found" >&5
5332 echo "$as_me: error: Python not found" >&2;}
5333 { (exit 1); exit 1; }; }
5337 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5338 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5339 if "${PYTHON}" 2>&- -c 'import distutils'
5341 echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5347 echo "$as_me: error: distutils module not found" >&2;}
5348 { (exit 1); exit 1; }; }
5350 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5351 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5352 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5353 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')"`
5354 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5356 # This should be enough of a message.
5357 echo "$as_me:$LINENO: result: $python_configdir" >&5
5358 echo "${ECHO_T}$python_configdir" >&6
5361 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5362 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5364 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5365 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5366 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5367 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5369 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5371 # New way: use the official shared library
5372 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5373 python_libspec="-L${python_libdir} -l${ldlibrary}"
5375 # Old way: use libpython from python_configdir
5376 python_libdir="${python_configdir}"
5377 python_libspec="-L${python_libdir} -lpython${python_version}"
5380 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5382 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5383 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5386 # threaded python is not supported on bsd's
5387 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5388 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5389 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5390 if test "$pythreads" = "1"; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392 echo "${ECHO_T}yes" >&6
5395 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5396 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5397 { (exit 1); exit 1; }; }
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5408 # Supply a numeric version string for use by 3rd party add-ons
5409 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5410 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
5412 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
5414 cat >>confdefs.h <<_ACEOF
5415 #define PG_VERSION_NUM $PG_VERSION_NUM
5422 ## Most libraries are included only if they demonstrably provide a function
5423 ## we need, but libm is an exception: always include it, because there are
5424 ## too many compilers that play cute optimization games that will break
5425 ## probes for standard functions such as pow().
5429 echo "$as_me:$LINENO: checking for main in -lm" >&5
5430 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5431 if test "${ac_cv_lib_m_main+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_check_lib_save_LIBS=$LIBS
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5452 rm -f conftest.$ac_objext conftest$ac_exeext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest$ac_exeext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_lib_m_main=yes
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5481 rm -f conftest.err conftest.$ac_objext \
5482 conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5485 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5486 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5487 if test $ac_cv_lib_m_main = yes; then
5488 cat >>confdefs.h <<_ACEOF
5496 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5497 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5498 if test "${ac_cv_search_setproctitle+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_func_search_save_LIBS=$LIBS
5502 ac_cv_search_setproctitle=no
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516 char setproctitle ();
5525 rm -f conftest.$ac_objext conftest$ac_exeext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>conftest.er1
5529 grep -v '^ *+' conftest.er1 >conftest.err
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_search_setproctitle="none required"
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5553 rm -f conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5555 if test "$ac_cv_search_setproctitle" = no; then
5556 for ac_lib in util; do
5557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5565 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5571 char setproctitle ();
5580 rm -f conftest.$ac_objext conftest$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -z "$ac_c_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_search_setproctitle="-l$ac_lib"
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5609 rm -f conftest.err conftest.$ac_objext \
5610 conftest$ac_exeext conftest.$ac_ext
5613 LIBS=$ac_func_search_save_LIBS
5615 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5616 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5617 if test "$ac_cv_search_setproctitle" != no; then
5618 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5622 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5623 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5624 if test "${ac_cv_search_dlopen+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_func_search_save_LIBS=$LIBS
5628 ac_cv_search_dlopen=no
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5636 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_search_dlopen="none required"
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5679 rm -f conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 if test "$ac_cv_search_dlopen" = no; then
5682 for ac_lib in dl; do
5683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag"
5716 || test ! -s conftest.err'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; } &&
5722 { ac_try='test -s conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_search_dlopen="-l$ac_lib"
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f conftest.err conftest.$ac_objext \
5736 conftest$ac_exeext conftest.$ac_ext
5739 LIBS=$ac_func_search_save_LIBS
5741 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5742 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5743 if test "$ac_cv_search_dlopen" != no; then
5744 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5748 echo "$as_me:$LINENO: checking for library containing socket" >&5
5749 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5750 if test "${ac_cv_search_socket+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 ac_func_search_save_LIBS=$LIBS
5754 ac_cv_search_socket=no
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5777 rm -f conftest.$ac_objext conftest$ac_exeext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest$ac_exeext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_search_socket="none required"
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5805 rm -f conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807 if test "$ac_cv_search_socket" = no; then
5808 for ac_lib in socket wsock32; do
5809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_search_socket="-l$ac_lib"
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5865 LIBS=$ac_func_search_save_LIBS
5867 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5868 echo "${ECHO_T}$ac_cv_search_socket" >&6
5869 if test "$ac_cv_search_socket" != no; then
5870 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5874 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5875 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5876 if test "${ac_cv_search_shl_load+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_func_search_save_LIBS=$LIBS
5880 ac_cv_search_shl_load=no
5881 cat >conftest.$ac_ext <<_ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_cv_search_shl_load="none required"
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5931 rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 if test "$ac_cv_search_shl_load" = no; then
5934 for ac_lib in dld; do
5935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5943 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5958 rm -f conftest.$ac_objext conftest$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag"
5968 || test ! -s conftest.err'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; } &&
5974 { ac_try='test -s conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_search_shl_load="-l$ac_lib"
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5987 rm -f conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5991 LIBS=$ac_func_search_save_LIBS
5993 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5994 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5995 if test "$ac_cv_search_shl_load" != no; then
5996 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
6000 # We only use libld in port/dynloader/aix.c
6003 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6004 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
6005 if test "${ac_cv_search_ldopen+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 ac_func_search_save_LIBS=$LIBS
6009 ac_cv_search_ldopen=no
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6017 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>conftest.er1
6036 grep -v '^ *+' conftest.er1 >conftest.err
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_search_ldopen="none required"
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -f conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_ldopen" = no; then
6063 for ac_lib in ld; do
6064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6072 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -z "$ac_c_werror_flag"
6097 || test ! -s conftest.err'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest$ac_exeext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 ac_cv_search_ldopen="-l$ac_lib"
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6116 rm -f conftest.err conftest.$ac_objext \
6117 conftest$ac_exeext conftest.$ac_ext
6120 LIBS=$ac_func_search_save_LIBS
6122 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6123 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
6124 if test "$ac_cv_search_ldopen" != no; then
6125 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
6131 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6132 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6133 if test "${ac_cv_search_getopt_long+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_func_search_save_LIBS=$LIBS
6137 ac_cv_search_getopt_long=no
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char getopt_long ();
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_getopt_long="none required"
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6190 if test "$ac_cv_search_getopt_long" = no; then
6191 for ac_lib in getopt gnugetopt; do
6192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6206 char getopt_long ();
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_cv_search_getopt_long="-l$ac_lib"
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6244 rm -f conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6248 LIBS=$ac_func_search_save_LIBS
6250 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6251 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6252 if test "$ac_cv_search_getopt_long" != no; then
6253 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6257 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6258 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6259 if test "${ac_cv_search_crypt+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 ac_func_search_save_LIBS=$LIBS
6263 ac_cv_search_crypt=no
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6271 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest$ac_exeext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_search_crypt="none required"
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6314 rm -f conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6316 if test "$ac_cv_search_crypt" = no; then
6317 for ac_lib in crypt; do
6318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_search_crypt="-l$ac_lib"
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6370 rm -f conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6374 LIBS=$ac_func_search_save_LIBS
6376 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6377 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6378 if test "$ac_cv_search_crypt" != no; then
6379 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6384 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6385 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6386 if test "${ac_cv_search_fdatasync+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_func_search_save_LIBS=$LIBS
6390 ac_cv_search_fdatasync=no
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -z "$ac_c_werror_flag"
6423 || test ! -s conftest.err'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_search_fdatasync="none required"
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f conftest.err conftest.$ac_objext \
6442 conftest$ac_exeext conftest.$ac_ext
6443 if test "$ac_cv_search_fdatasync" = no; then
6444 for ac_lib in rt posix4; do
6445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6446 cat >conftest.$ac_ext <<_ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_search_fdatasync="-l$ac_lib"
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6497 rm -f conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6501 LIBS=$ac_func_search_save_LIBS
6503 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6504 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6505 if test "$ac_cv_search_fdatasync" != no; then
6506 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6511 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6512 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6513 if test "${ac_cv_search_shmget+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_func_search_save_LIBS=$LIBS
6517 ac_cv_search_shmget=no
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_search_shmget="none required"
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6568 rm -f conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
6570 if test "$ac_cv_search_shmget" = no; then
6571 for ac_lib in cygipc; do
6572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6580 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_search_shmget="-l$ac_lib"
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6628 LIBS=$ac_func_search_save_LIBS
6630 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6631 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6632 if test "$ac_cv_search_shmget" != no; then
6633 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6638 if test "$with_readline" = yes; then
6641 if test "${pgac_cv_check_readline+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 pgac_cv_check_readline=no
6645 pgac_save_LIBS=$LIBS
6646 if test x"$with_libedit_preferred" != x"yes"
6647 then READLINE_ORDER="-lreadline -ledit"
6648 else READLINE_ORDER="-ledit -lreadline"
6650 for pgac_rllib in $READLINE_ORDER ; do
6651 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6652 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6653 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6654 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6700 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6701 # recognize dependent libraries; assume curses is needed if we didn't
6702 # find any dependency.
6704 netbsd* | openbsd* | irix*)
6705 if test x"$pgac_lib" = x"" ; then
6706 pgac_lib=" -lcurses"
6710 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6718 rm -f conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6721 if test "$pgac_cv_check_readline" != no ; then
6722 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6723 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6730 LIBS=$pgac_save_LIBS
6734 if test "$pgac_cv_check_readline" != no ; then
6735 LIBS="$pgac_cv_check_readline $LIBS"
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_LIBREADLINE 1
6744 if test x"$pgac_cv_check_readline" = x"no"; then
6745 { { echo "$as_me:$LINENO: error: readline library not found
6746 If you have readline already installed, see config.log for details on the
6747 failure. It is possible the compiler isn't looking in the proper directory.
6748 Use --without-readline to disable readline support." >&5
6749 echo "$as_me: error: readline library not found
6750 If you have readline already installed, see config.log for details on the
6751 failure. It is possible the compiler isn't looking in the proper directory.
6752 Use --without-readline to disable readline support." >&2;}
6753 { (exit 1); exit 1; }; }
6757 if test "$with_zlib" = yes; then
6759 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6760 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6761 if test "${ac_cv_lib_z_inflate+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_check_lib_save_LIBS=$LIBS
6766 cat >conftest.$ac_ext <<_ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6773 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_lib_z_inflate=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_cv_lib_z_inflate=no
6817 rm -f conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LIBS=$ac_check_lib_save_LIBS
6821 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6822 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6823 if test $ac_cv_lib_z_inflate = yes; then
6824 cat >>confdefs.h <<_ACEOF
6831 { { echo "$as_me:$LINENO: error: zlib library not found
6832 If you have zlib already installed, see config.log for details on the
6833 failure. It is possible the compiler isn't looking in the proper directory.
6834 Use --without-zlib to disable zlib support." >&5
6835 echo "$as_me: error: zlib library not found
6836 If you have zlib already installed, see config.log for details on the
6837 failure. It is possible the compiler isn't looking in the proper directory.
6838 Use --without-zlib to disable zlib support." >&2;}
6839 { (exit 1); exit 1; }; }
6844 if test "$enable_spinlocks" = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_SPINLOCKS 1
6851 { echo "$as_me:$LINENO: WARNING:
6852 *** Not using spinlocks will cause poor performance." >&5
6853 echo "$as_me: WARNING:
6854 *** Not using spinlocks will cause poor performance." >&2;}
6857 if test "$with_gssapi" = yes ; then
6858 if test "$PORTNAME" != "win32"; then
6859 echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
6860 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6
6861 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_func_search_save_LIBS=$LIBS
6865 ac_cv_search_gss_init_sec_context=no
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6873 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char gss_init_sec_context ();
6883 gss_init_sec_context ();
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest$ac_exeext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_cv_search_gss_init_sec_context="none required"
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6916 rm -f conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 if test "$ac_cv_search_gss_init_sec_context" = no; then
6919 for ac_lib in gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
6920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char gss_init_sec_context ();
6938 gss_init_sec_context ();
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_search_gss_init_sec_context="-l$ac_lib"
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6972 rm -f conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6976 LIBS=$ac_func_search_save_LIBS
6978 echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
6979 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6
6980 if test "$ac_cv_search_gss_init_sec_context" != no; then
6981 test "$ac_cv_search_gss_init_sec_context" = "none required" || LIBS="$ac_cv_search_gss_init_sec_context $LIBS"
6984 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
6985 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
6986 { (exit 1); exit 1; }; }
6990 LIBS="$LIBS -lgssapi32"
6994 if test "$with_krb5" = yes ; then
6995 if test "$PORTNAME" != "win32"; then
6996 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6997 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6998 if test "${ac_cv_search_com_err+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_func_search_save_LIBS=$LIBS
7002 ac_cv_search_com_err=no
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_cv_search_com_err="none required"
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 if test "$ac_cv_search_com_err" = no; then
7056 for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -z "$ac_c_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_search_com_err="-l$ac_lib"
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7109 rm -f conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7113 LIBS=$ac_func_search_save_LIBS
7115 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7116 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7117 if test "$ac_cv_search_com_err" != no; then
7118 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7121 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7122 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7123 { (exit 1); exit 1; }; }
7126 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7127 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7128 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_func_search_save_LIBS=$LIBS
7132 ac_cv_search_krb5_sendauth=no
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7140 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char krb5_sendauth ();
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157 (eval $ac_link) 2>conftest.er1
7159 grep -v '^ *+' conftest.er1 >conftest.err
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag"
7165 || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_search_krb5_sendauth="none required"
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 if test "$ac_cv_search_krb5_sendauth" = no; then
7186 for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7188 cat >conftest.$ac_ext <<_ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7195 /* Override any gcc2 internal prototype to avoid an error. */
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char krb5_sendauth ();
7210 rm -f conftest.$ac_objext conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_search_krb5_sendauth="-l$ac_lib"
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7239 rm -f conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7243 LIBS=$ac_func_search_save_LIBS
7245 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7246 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7247 if test "$ac_cv_search_krb5_sendauth" != no; then
7248 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7251 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7252 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7253 { (exit 1); exit 1; }; }
7257 echo "$as_me:$LINENO: checking for library containing com_err" >&5
7258 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
7259 if test "${ac_cv_search_com_err+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_func_search_save_LIBS=$LIBS
7263 ac_cv_search_com_err=no
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_search_com_err="none required"
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7314 rm -f conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 if test "$ac_cv_search_com_err" = no; then
7317 for ac_lib in 'comerr32 -lkrb5_32'; do
7318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 /* Override any gcc2 internal prototype to avoid an error. */
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343 (eval $ac_link) 2>conftest.er1
7345 grep -v '^ *+' conftest.er1 >conftest.err
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_search_com_err="-l$ac_lib"
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7370 rm -f conftest.err conftest.$ac_objext \
7371 conftest$ac_exeext conftest.$ac_ext
7374 LIBS=$ac_func_search_save_LIBS
7376 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7377 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7378 if test "$ac_cv_search_com_err" != no; then
7379 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7382 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7383 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7384 { (exit 1); exit 1; }; }
7390 if test "$with_openssl" = yes ; then
7391 if test "$PORTNAME" != "win32"; then
7393 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7394 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7395 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_check_lib_save_LIBS=$LIBS
7399 LIBS="-lcrypto $LIBS"
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7407 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char CRYPTO_new_ex_data ();
7417 CRYPTO_new_ex_data ();
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424 (eval $ac_link) 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest$ac_exeext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7451 rm -f conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453 LIBS=$ac_check_lib_save_LIBS
7455 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7456 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7457 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define HAVE_LIBCRYPTO 1
7462 LIBS="-lcrypto $LIBS"
7465 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7466 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7467 { (exit 1); exit 1; }; }
7471 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7472 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7473 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_check_lib_save_LIBS=$LIBS
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char SSL_library_init ();
7495 SSL_library_init ();
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_ssl_SSL_library_init=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_lib_ssl_SSL_library_init=no
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7534 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7535 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7536 cat >>confdefs.h <<_ACEOF
7537 #define HAVE_LIBSSL 1
7543 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7544 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7545 { (exit 1); exit 1; }; }
7550 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7551 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7552 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_check_lib_save_LIBS=$LIBS
7556 LIBS="-leay32 $LIBS"
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char CRYPTO_new_ex_data ();
7574 CRYPTO_new_ex_data ();
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -z "$ac_c_werror_flag"
7589 || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7608 rm -f conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7613 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7614 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7615 cat >>confdefs.h <<_ACEOF
7616 #define HAVE_LIBEAY32 1
7619 LIBS="-leay32 $LIBS"
7622 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7623 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7624 { (exit 1); exit 1; }; }
7628 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7629 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7630 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lssleay32 $LIBS"
7635 cat >conftest.$ac_ext <<_ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char SSL_library_init ();
7652 SSL_library_init ();
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_ssleay32_SSL_library_init=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_lib_ssleay32_SSL_library_init=no
7686 rm -f conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7691 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7692 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_LIBSSLEAY32 1
7697 LIBS="-lssleay32 $LIBS"
7700 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7701 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7702 { (exit 1); exit 1; }; }
7708 if test "$with_pam" = yes ; then
7710 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7711 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7712 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_check_lib_save_LIBS=$LIBS
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7724 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>conftest.er1
7743 grep -v '^ *+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -z "$ac_c_werror_flag"
7749 || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_lib_pam_pam_start=yes
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_cv_lib_pam_pam_start=no
7768 rm -f conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7773 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7774 if test $ac_cv_lib_pam_pam_start = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776 #define HAVE_LIBPAM 1
7782 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7783 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7784 { (exit 1); exit 1; }; }
7789 if test "$with_libxml" = yes ; then
7791 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7792 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7793 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_check_lib_save_LIBS=$LIBS
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811 char xmlSaveToBuffer ();
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 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_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_cv_lib_xml2_xmlSaveToBuffer=no
7849 rm -f conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7854 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7855 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define HAVE_LIBXML2 1
7863 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7864 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7865 { (exit 1); exit 1; }; }
7870 if test "$with_libxslt" = yes ; then
7872 echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7873 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6
7874 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_check_lib_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892 char xsltLibxmlVersion ();
7896 xsltLibxmlVersion ();
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_xslt_xsltLibxmlVersion=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_lib_xslt_xsltLibxmlVersion=no
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7935 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6
7936 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_LIBXSLT 1
7944 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7945 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7946 { (exit 1); exit 1; }; }
7956 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7958 if test "${ac_cv_header_stdc+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982 (eval $ac_compile) 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try='test -z "$ac_c_werror_flag"
7990 || test ! -s conftest.err'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_cv_header_stdc=yes
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_cv_header_stdc=no
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 if test $ac_cv_header_stdc = yes; then
8012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8023 $EGREP "memchr" >/dev/null 2>&1; then
8026 ac_cv_header_stdc=no
8032 if test $ac_cv_header_stdc = yes; then
8033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "free" >/dev/null 2>&1; then
8047 ac_cv_header_stdc=no
8053 if test $ac_cv_header_stdc = yes; then
8054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8055 if test "$cross_compiling" = yes; then
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8065 #if ((' ' & 0x0FF) == 0x020)
8066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8069 # define ISLOWER(c) \
8070 (('a' <= (c) && (c) <= 'i') \
8071 || ('j' <= (c) && (c) <= 'r') \
8072 || ('s' <= (c) && (c) <= 'z'))
8073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8081 for (i = 0; i < 256; i++)
8082 if (XOR (islower (i), ISLOWER (i))
8083 || toupper (i) != TOUPPER (i))
8088 rm -f conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8101 echo "$as_me: program exited with status $ac_status" >&5
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_header_stdc=no
8108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8112 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8113 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8114 if test $ac_cv_header_stdc = yes; then
8116 cat >>confdefs.h <<\_ACEOF
8117 #define STDC_HEADERS 1
8122 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8133 inttypes.h stdint.h unistd.h
8135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8136 echo "$as_me:$LINENO: checking for $ac_header" >&5
8137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8149 #include <$ac_header>
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_c_werror_flag"
8161 || test ! -s conftest.err'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 eval "$as_ac_Header=yes"
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 eval "$as_ac_Header=no"
8180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185 cat >>confdefs.h <<_ACEOF
8186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224 echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232 # Is the header compilable?
8233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8242 #include <$ac_header>
8244 rm -f conftest.$ac_objext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246 (eval $ac_compile) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest.$ac_objext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_header_compiler=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_header_compiler=no
8273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8275 echo "${ECHO_T}$ac_header_compiler" >&6
8277 # Is the header present?
8278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <$ac_header>
8288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } >/dev/null; then
8296 if test -s conftest.err; then
8297 ac_cpp_err=$ac_c_preproc_warn_flag
8298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8305 if test -z "$ac_cpp_err"; then
8306 ac_header_preproc=yes
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_header_preproc=no
8313 rm -f conftest.err conftest.$ac_ext
8314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8315 echo "${ECHO_T}$ac_header_preproc" >&6
8317 # So? What about this header?
8318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8324 ac_header_preproc=yes
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8341 ## ---------------------------------------- ##
8342 ## Report this to pgsql-bugs@postgresql.org ##
8343 ## ---------------------------------------- ##
8346 sed "s/^/$as_me: WARNING: /" >&2
8349 echo "$as_me:$LINENO: checking for $ac_header" >&5
8350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 eval "$as_ac_Header=\$ac_header_preproc"
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8370 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8371 # netinet/in.h is included first.
8373 for ac_header in netinet/in.h
8375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377 echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8385 # Is the header compilable?
8386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 #include <$ac_header>
8397 rm -f conftest.$ac_objext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_header_compiler=no
8426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 #include <$ac_header>
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev/null; then
8449 if test -s conftest.err; then
8450 ac_cpp_err=$ac_c_preproc_warn_flag
8451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8458 if test -z "$ac_cpp_err"; then
8459 ac_header_preproc=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_header_preproc=no
8466 rm -f conftest.err conftest.$ac_ext
8467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8468 echo "${ECHO_T}$ac_header_preproc" >&6
8470 # So? What about this header?
8471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8477 ac_header_preproc=yes
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8494 ## ---------------------------------------- ##
8495 ## Report this to pgsql-bugs@postgresql.org ##
8496 ## ---------------------------------------- ##
8499 sed "s/^/$as_me: WARNING: /" >&2
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 eval "$as_ac_Header=\$ac_header_preproc"
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514 cat >>confdefs.h <<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8523 for ac_header in netinet/tcp.h
8525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8526 echo "$as_me:$LINENO: checking for $ac_header" >&5
8527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8529 echo $ECHO_N "(cached) $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 $ac_includes_default
8538 #ifdef HAVE_NETINET_IN_H
8539 #include <netinet/in.h>
8543 #include <$ac_header>
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 eval "$as_ac_Header=yes"
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 eval "$as_ac_Header=no"
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8579 cat >>confdefs.h <<_ACEOF
8580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8588 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8590 for ac_header in readline/readline.h
8592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 # Is the header compilable?
8603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8605 cat >conftest.$ac_ext <<_ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8611 $ac_includes_default
8612 #include <$ac_header>
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_header_compiler=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ac_header_compiler=no
8643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6
8647 # Is the header present?
8648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <$ac_header>
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } >/dev/null; then
8666 if test -s conftest.err; then
8667 ac_cpp_err=$ac_c_preproc_warn_flag
8668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8675 if test -z "$ac_cpp_err"; then
8676 ac_header_preproc=yes
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_header_preproc=no
8683 rm -f conftest.err conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 echo "${ECHO_T}$ac_header_preproc" >&6
8687 # So? What about this header?
8688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8694 ac_header_preproc=yes
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8711 ## ---------------------------------------- ##
8712 ## Report this to pgsql-bugs@postgresql.org ##
8713 ## ---------------------------------------- ##
8716 sed "s/^/$as_me: WARNING: /" >&2
8719 echo "$as_me:$LINENO: checking for $ac_header" >&5
8720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 eval "$as_ac_Header=\$ac_header_preproc"
8726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8731 cat >>confdefs.h <<_ACEOF
8732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8737 for ac_header in readline.h
8739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749 # Is the header compilable?
8750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 #include <$ac_header>
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>conftest.er1
8765 grep -v '^ *+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_c_werror_flag"
8771 || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_header_compiler=yes
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_header_compiler=no
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792 echo "${ECHO_T}$ac_header_compiler" >&6
8794 # Is the header present?
8795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 #include <$ac_header>
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev/null; then
8813 if test -s conftest.err; then
8814 ac_cpp_err=$ac_c_preproc_warn_flag
8815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8822 if test -z "$ac_cpp_err"; then
8823 ac_header_preproc=yes
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8828 ac_header_preproc=no
8830 rm -f conftest.err conftest.$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832 echo "${ECHO_T}$ac_header_preproc" >&6
8834 # So? What about this header?
8835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841 ac_header_preproc=yes
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8858 ## ---------------------------------------- ##
8859 ## Report this to pgsql-bugs@postgresql.org ##
8860 ## ---------------------------------------- ##
8863 sed "s/^/$as_me: WARNING: /" >&2
8866 echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 eval "$as_ac_Header=\$ac_header_preproc"
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878 cat >>confdefs.h <<_ACEOF
8879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883 { { echo "$as_me:$LINENO: error: readline header not found
8884 If you have readline already installed, see config.log for details on the
8885 failure. It is possible the compiler isn't looking in the proper directory.
8886 Use --without-readline to disable readline support." >&5
8887 echo "$as_me: error: readline header not found
8888 If you have readline already installed, see config.log for details on the
8889 failure. It is possible the compiler isn't looking in the proper directory.
8890 Use --without-readline to disable readline support." >&2;}
8891 { (exit 1); exit 1; }; }
8901 for ac_header in readline/history.h
8903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913 # Is the header compilable?
8914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 #include <$ac_header>
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1 >conftest.err
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_header_compiler=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_header_compiler=no
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 echo "${ECHO_T}$ac_header_compiler" >&6
8958 # Is the header present?
8959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <$ac_header>
8969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } >/dev/null; then
8977 if test -s conftest.err; then
8978 ac_cpp_err=$ac_c_preproc_warn_flag
8979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8986 if test -z "$ac_cpp_err"; then
8987 ac_header_preproc=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_header_preproc=no
8994 rm -f conftest.err conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996 echo "${ECHO_T}$ac_header_preproc" >&6
8998 # So? What about this header?
8999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005 ac_header_preproc=yes
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9022 ## ---------------------------------------- ##
9023 ## Report this to pgsql-bugs@postgresql.org ##
9024 ## ---------------------------------------- ##
9027 sed "s/^/$as_me: WARNING: /" >&2
9030 echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 eval "$as_ac_Header=\$ac_header_preproc"
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9048 for ac_header in history.h
9050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060 # Is the header compilable?
9061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 $ac_includes_default
9070 #include <$ac_header>
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1 >conftest.err
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_header_compiler=no
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <$ac_header>
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } >/dev/null; then
9124 if test -s conftest.err; then
9125 ac_cpp_err=$ac_c_preproc_warn_flag
9126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc=yes
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_header_preproc=no
9141 rm -f conftest.err conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152 ac_header_preproc=yes
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9169 ## ---------------------------------------- ##
9170 ## Report this to pgsql-bugs@postgresql.org ##
9171 ## ---------------------------------------- ##
9174 sed "s/^/$as_me: WARNING: /" >&2
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 eval "$as_ac_Header=\$ac_header_preproc"
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 { { echo "$as_me:$LINENO: error: history header not found
9195 If you have readline already installed, see config.log for details on the
9196 failure. It is possible the compiler isn't looking in the proper directory.
9197 Use --without-readline to disable readline support." >&5
9198 echo "$as_me: error: history header not found
9199 If you have readline already installed, see config.log for details on the
9200 failure. It is possible the compiler isn't looking in the proper directory.
9201 Use --without-readline to disable readline support." >&2;}
9202 { (exit 1); exit 1; }; }
9213 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9214 # Some installations of libedit usurp /usr/include/readline/, which seems
9215 # bad practice, since in combined installations readline will have its headers
9216 # there. We might have to resort to AC_EGREP checks to make sure we found
9217 # the proper header...
9219 for ac_header in editline/readline.h
9221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223 echo "$as_me:$LINENO: checking for $ac_header" >&5
9224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9231 # Is the header compilable?
9232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9241 #include <$ac_header>
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245 (eval $ac_compile) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest.$ac_objext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_header_compiler=no
9272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9274 echo "${ECHO_T}$ac_header_compiler" >&6
9276 # Is the header present?
9277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <$ac_header>
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null; then
9295 if test -s conftest.err; then
9296 ac_cpp_err=$ac_c_preproc_warn_flag
9297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9304 if test -z "$ac_cpp_err"; then
9305 ac_header_preproc=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 ac_header_preproc=no
9312 rm -f conftest.err conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314 echo "${ECHO_T}$ac_header_preproc" >&6
9316 # So? What about this header?
9317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9323 ac_header_preproc=yes
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9340 ## ---------------------------------------- ##
9341 ## Report this to pgsql-bugs@postgresql.org ##
9342 ## ---------------------------------------- ##
9345 sed "s/^/$as_me: WARNING: /" >&2
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 eval "$as_ac_Header=\$ac_header_preproc"
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9366 for ac_header in readline.h
9368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370 echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 # Is the header compilable?
9379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 #include <$ac_header>
9390 rm -f conftest.$ac_objext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try='test -s conftest.$ac_objext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_header_compiler=yes
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_header_compiler=no
9419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421 echo "${ECHO_T}$ac_header_compiler" >&6
9423 # Is the header present?
9424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 #include <$ac_header>
9434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9437 grep -v '^ *+' conftest.er1 >conftest.err
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } >/dev/null; then
9442 if test -s conftest.err; then
9443 ac_cpp_err=$ac_c_preproc_warn_flag
9444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9451 if test -z "$ac_cpp_err"; then
9452 ac_header_preproc=yes
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9457 ac_header_preproc=no
9459 rm -f conftest.err conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9461 echo "${ECHO_T}$ac_header_preproc" >&6
9463 # So? What about this header?
9464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9470 ac_header_preproc=yes
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9487 ## ---------------------------------------- ##
9488 ## Report this to pgsql-bugs@postgresql.org ##
9489 ## ---------------------------------------- ##
9492 sed "s/^/$as_me: WARNING: /" >&2
9495 echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 eval "$as_ac_Header=\$ac_header_preproc"
9502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9507 cat >>confdefs.h <<_ACEOF
9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513 for ac_header in readline/readline.h
9515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517 echo "$as_me:$LINENO: checking for $ac_header" >&5
9518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9525 # Is the header compilable?
9526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <$ac_header>
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>conftest.er1
9541 grep -v '^ *+' conftest.er1 >conftest.err
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag"
9547 || test ! -s conftest.err'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest.$ac_objext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_header_compiler=yes
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_header_compiler=no
9566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9568 echo "${ECHO_T}$ac_header_compiler" >&6
9570 # Is the header present?
9571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 #include <$ac_header>
9581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } >/dev/null; then
9589 if test -s conftest.err; then
9590 ac_cpp_err=$ac_c_preproc_warn_flag
9591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9598 if test -z "$ac_cpp_err"; then
9599 ac_header_preproc=yes
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_header_preproc=no
9606 rm -f conftest.err conftest.$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9608 echo "${ECHO_T}$ac_header_preproc" >&6
9610 # So? What about this header?
9611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9617 ac_header_preproc=yes
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9634 ## ---------------------------------------- ##
9635 ## Report this to pgsql-bugs@postgresql.org ##
9636 ## ---------------------------------------- ##
9639 sed "s/^/$as_me: WARNING: /" >&2
9642 echo "$as_me:$LINENO: checking for $ac_header" >&5
9643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 eval "$as_ac_Header=\$ac_header_preproc"
9649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9654 cat >>confdefs.h <<_ACEOF
9655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659 { { echo "$as_me:$LINENO: error: readline header not found
9660 If you have libedit already installed, see config.log for details on the
9661 failure. It is possible the compiler isn't looking in the proper directory.
9662 Use --without-readline to disable libedit support." >&5
9663 echo "$as_me: error: readline header not found
9664 If you have libedit already installed, see config.log for details on the
9665 failure. It is possible the compiler isn't looking in the proper directory.
9666 Use --without-readline to disable libedit support." >&2;}
9667 { (exit 1); exit 1; }; }
9680 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9681 # not be there at all. Hence, don't complain if not found. We must check
9682 # though, since in yet other versions it is an independent header.
9684 for ac_header in editline/history.h
9686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696 # Is the header compilable?
9697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_header_compiler=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_header_compiler=no
9737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9739 echo "${ECHO_T}$ac_header_compiler" >&6
9741 # Is the header present?
9742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #include <$ac_header>
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } >/dev/null; then
9760 if test -s conftest.err; then
9761 ac_cpp_err=$ac_c_preproc_warn_flag
9762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9769 if test -z "$ac_cpp_err"; then
9770 ac_header_preproc=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_header_preproc=no
9777 rm -f conftest.err conftest.$ac_ext
9778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6
9781 # So? What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788 ac_header_preproc=yes
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9805 ## ---------------------------------------- ##
9806 ## Report this to pgsql-bugs@postgresql.org ##
9807 ## ---------------------------------------- ##
9810 sed "s/^/$as_me: WARNING: /" >&2
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 eval "$as_ac_Header=\$ac_header_preproc"
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h <<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9831 for ac_header in history.h
9833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835 echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9843 # Is the header compilable?
9844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 $ac_includes_default
9853 #include <$ac_header>
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_header_compiler=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_header_compiler=no
9884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <$ac_header>
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev/null; then
9907 if test -s conftest.err; then
9908 ac_cpp_err=$ac_c_preproc_warn_flag
9909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_preproc=no
9924 rm -f conftest.err conftest.$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9935 ac_header_preproc=yes
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9952 ## ---------------------------------------- ##
9953 ## Report this to pgsql-bugs@postgresql.org ##
9954 ## ---------------------------------------- ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 echo "$as_me:$LINENO: checking for $ac_header" >&5
9961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 eval "$as_ac_Header=\$ac_header_preproc"
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9972 cat >>confdefs.h <<_ACEOF
9973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9978 for ac_header in readline/history.h
9980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9982 echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990 # Is the header compilable?
9991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 $ac_includes_default
10000 #include <$ac_header>
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_header_compiler=yes
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 ac_header_compiler=no
10031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10033 echo "${ECHO_T}$ac_header_compiler" >&6
10035 # Is the header present?
10036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 #include <$ac_header>
10046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10049 grep -v '^ *+' conftest.er1 >conftest.err
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } >/dev/null; then
10054 if test -s conftest.err; then
10055 ac_cpp_err=$ac_c_preproc_warn_flag
10056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10063 if test -z "$ac_cpp_err"; then
10064 ac_header_preproc=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_header_preproc=no
10071 rm -f conftest.err conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10073 echo "${ECHO_T}$ac_header_preproc" >&6
10075 # So? What about this header?
10076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10082 ac_header_preproc=yes
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10099 ## ---------------------------------------- ##
10100 ## Report this to pgsql-bugs@postgresql.org ##
10101 ## ---------------------------------------- ##
10104 sed "s/^/$as_me: WARNING: /" >&2
10107 echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 eval "$as_ac_Header=\$ac_header_preproc"
10114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10119 cat >>confdefs.h <<_ACEOF
10120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10137 if test "$with_zlib" = yes; then
10138 if test "${ac_cv_header_zlib_h+set}" = set; then
10139 echo "$as_me:$LINENO: checking for zlib.h" >&5
10140 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10141 if test "${ac_cv_header_zlib_h+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10145 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10147 # Is the header compilable?
10148 echo "$as_me:$LINENO: checking zlib.h usability" >&5
10149 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 $ac_includes_default
10159 rm -f conftest.$ac_objext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161 (eval $ac_compile) 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try='test -z "$ac_c_werror_flag"
10169 || test ! -s conftest.err'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; } &&
10175 { ac_try='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_header_compiler=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_header_compiler=no
10188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10190 echo "${ECHO_T}$ac_header_compiler" >&6
10192 # Is the header present?
10193 echo "$as_me:$LINENO: checking zlib.h presence" >&5
10194 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1 >conftest.err
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } >/dev/null; then
10211 if test -s conftest.err; then
10212 ac_cpp_err=$ac_c_preproc_warn_flag
10213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10220 if test -z "$ac_cpp_err"; then
10221 ac_header_preproc=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_header_preproc=no
10228 rm -f conftest.err conftest.$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10230 echo "${ECHO_T}$ac_header_preproc" >&6
10232 # So? What about this header?
10233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10235 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10236 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10238 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10239 ac_header_preproc=yes
10242 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10243 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10245 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10247 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10249 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10251 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10253 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10256 ## ---------------------------------------- ##
10257 ## Report this to pgsql-bugs@postgresql.org ##
10258 ## ---------------------------------------- ##
10261 sed "s/^/$as_me: WARNING: /" >&2
10264 echo "$as_me:$LINENO: checking for zlib.h" >&5
10265 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10266 if test "${ac_cv_header_zlib_h+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 ac_cv_header_zlib_h=$ac_header_preproc
10271 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10272 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10275 if test $ac_cv_header_zlib_h = yes; then
10278 { { echo "$as_me:$LINENO: error: zlib header not found
10279 If you have zlib already installed, see config.log for details on the
10280 failure. It is possible the compiler isn't looking in the proper directory.
10281 Use --without-zlib to disable zlib support." >&5
10282 echo "$as_me: error: zlib header not found
10283 If you have zlib already installed, see config.log for details on the
10284 failure. It is possible the compiler isn't looking in the proper directory.
10285 Use --without-zlib to disable zlib support." >&2;}
10286 { (exit 1); exit 1; }; }
10292 if test "$with_gssapi" = yes ; then
10294 for ac_header in gssapi/gssapi.h
10296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10298 echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10306 # Is the header compilable?
10307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 $ac_includes_default
10316 #include <$ac_header>
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_header_compiler=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_header_compiler=no
10347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10349 echo "${ECHO_T}$ac_header_compiler" >&6
10351 # Is the header present?
10352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10354 cat >conftest.$ac_ext <<_ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 #include <$ac_header>
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } >/dev/null; then
10370 if test -s conftest.err; then
10371 ac_cpp_err=$ac_c_preproc_warn_flag
10372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10379 if test -z "$ac_cpp_err"; then
10380 ac_header_preproc=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_header_preproc=no
10387 rm -f conftest.err conftest.$ac_ext
10388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10389 echo "${ECHO_T}$ac_header_preproc" >&6
10391 # So? What about this header?
10392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10398 ac_header_preproc=yes
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10415 ## ---------------------------------------- ##
10416 ## Report this to pgsql-bugs@postgresql.org ##
10417 ## ---------------------------------------- ##
10420 sed "s/^/$as_me: WARNING: /" >&2
10423 echo "$as_me:$LINENO: checking for $ac_header" >&5
10424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 eval "$as_ac_Header=\$ac_header_preproc"
10430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10435 cat >>confdefs.h <<_ACEOF
10436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10441 for ac_header in gssapi.h
10443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10445 echo "$as_me:$LINENO: checking for $ac_header" >&5
10446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453 # Is the header compilable?
10454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10456 cat >conftest.$ac_ext <<_ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462 $ac_includes_default
10463 #include <$ac_header>
10465 rm -f conftest.$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_header_compiler=yes
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 ac_header_compiler=no
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10496 echo "${ECHO_T}$ac_header_compiler" >&6
10498 # Is the header present?
10499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10501 cat >conftest.$ac_ext <<_ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 #include <$ac_header>
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev/null; then
10517 if test -s conftest.err; then
10518 ac_cpp_err=$ac_c_preproc_warn_flag
10519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10526 if test -z "$ac_cpp_err"; then
10527 ac_header_preproc=yes
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_header_preproc=no
10534 rm -f conftest.err conftest.$ac_ext
10535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10536 echo "${ECHO_T}$ac_header_preproc" >&6
10538 # So? What about this header?
10539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10545 ac_header_preproc=yes
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10562 ## ---------------------------------------- ##
10563 ## Report this to pgsql-bugs@postgresql.org ##
10564 ## ---------------------------------------- ##
10567 sed "s/^/$as_me: WARNING: /" >&2
10570 echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 eval "$as_ac_Header=\$ac_header_preproc"
10577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10582 cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10587 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10588 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10589 { (exit 1); exit 1; }; }
10600 if test "$with_krb5" = yes ; then
10601 if test "${ac_cv_header_krb5_h+set}" = set; then
10602 echo "$as_me:$LINENO: checking for krb5.h" >&5
10603 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10604 if test "${ac_cv_header_krb5_h+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10608 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10610 # Is the header compilable?
10611 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10612 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 $ac_includes_default
10622 rm -f conftest.$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624 (eval $ac_compile) 2>conftest.er1
10626 grep -v '^ *+' conftest.er1 >conftest.err
10628 cat conftest.err >&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } &&
10631 { ac_try='test -z "$ac_c_werror_flag"
10632 || test ! -s conftest.err'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try='test -s conftest.$ac_objext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_header_compiler=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_header_compiler=no
10651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10653 echo "${ECHO_T}$ac_header_compiler" >&6
10655 # Is the header present?
10656 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10657 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10669 grep -v '^ *+' conftest.er1 >conftest.err
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } >/dev/null; then
10674 if test -s conftest.err; then
10675 ac_cpp_err=$ac_c_preproc_warn_flag
10676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10683 if test -z "$ac_cpp_err"; then
10684 ac_header_preproc=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ac_header_preproc=no
10691 rm -f conftest.err conftest.$ac_ext
10692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10693 echo "${ECHO_T}$ac_header_preproc" >&6
10695 # So? What about this header?
10696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10698 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10699 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10701 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10702 ac_header_preproc=yes
10705 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10706 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10708 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10710 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10712 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10714 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10716 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10719 ## ---------------------------------------- ##
10720 ## Report this to pgsql-bugs@postgresql.org ##
10721 ## ---------------------------------------- ##
10724 sed "s/^/$as_me: WARNING: /" >&2
10727 echo "$as_me:$LINENO: checking for krb5.h" >&5
10728 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10729 if test "${ac_cv_header_krb5_h+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 ac_cv_header_krb5_h=$ac_header_preproc
10734 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10735 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10738 if test $ac_cv_header_krb5_h = yes; then
10741 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10742 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10743 { (exit 1); exit 1; }; }
10749 if test "$with_openssl" = yes ; then
10750 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10751 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10752 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10753 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10757 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10759 # Is the header compilable?
10760 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10761 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10769 #include <openssl/ssl.h>
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_header_compiler=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_header_compiler=no
10800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6
10804 # Is the header present?
10805 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10806 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <openssl/ssl.h>
10815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } >/dev/null; then
10823 if test -s conftest.err; then
10824 ac_cpp_err=$ac_c_preproc_warn_flag
10825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10832 if test -z "$ac_cpp_err"; then
10833 ac_header_preproc=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_header_preproc=no
10840 rm -f conftest.err conftest.$ac_ext
10841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10842 echo "${ECHO_T}$ac_header_preproc" >&6
10844 # So? What about this header?
10845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10848 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10850 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10851 ac_header_preproc=yes
10854 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10855 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10857 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10859 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10861 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10863 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10865 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10868 ## ---------------------------------------- ##
10869 ## Report this to pgsql-bugs@postgresql.org ##
10870 ## ---------------------------------------- ##
10873 sed "s/^/$as_me: WARNING: /" >&2
10876 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10877 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10878 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10883 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10884 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10887 if test $ac_cv_header_openssl_ssl_h = yes; then
10890 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10891 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10892 { (exit 1); exit 1; }; }
10896 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10897 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10898 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10899 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10903 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10905 # Is the header compilable?
10906 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10907 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10915 #include <openssl/err.h>
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>conftest.er1
10921 grep -v '^ *+' conftest.er1 >conftest.err
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -z "$ac_c_werror_flag"
10927 || test ! -s conftest.err'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest.$ac_objext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_header_compiler=yes
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_header_compiler=no
10946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948 echo "${ECHO_T}$ac_header_compiler" >&6
10950 # Is the header present?
10951 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10952 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <openssl/err.h>
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10964 grep -v '^ *+' conftest.er1 >conftest.err
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev/null; then
10969 if test -s conftest.err; then
10970 ac_cpp_err=$ac_c_preproc_warn_flag
10971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10978 if test -z "$ac_cpp_err"; then
10979 ac_header_preproc=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_header_preproc=no
10986 rm -f conftest.err conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 echo "${ECHO_T}$ac_header_preproc" >&6
10990 # So? What about this header?
10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10993 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10994 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10996 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10997 ac_header_preproc=yes
11000 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11005 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11007 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11009 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11011 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11014 ## ---------------------------------------- ##
11015 ## Report this to pgsql-bugs@postgresql.org ##
11016 ## ---------------------------------------- ##
11019 sed "s/^/$as_me: WARNING: /" >&2
11022 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11023 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
11024 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 ac_cv_header_openssl_err_h=$ac_header_preproc
11029 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
11033 if test $ac_cv_header_openssl_err_h = yes; then
11036 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11037 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11038 { (exit 1); exit 1; }; }
11043 for ac_func in ERR_set_mark
11045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046 echo "$as_me:$LINENO: checking for $ac_func" >&5
11047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11048 if eval "test \"\${$as_ac_var+set}\" = set"; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11059 #define $ac_func innocuous_$ac_func
11061 /* System header to define __stub macros and hopefully few prototypes,
11062 which can conflict with char $ac_func (); below.
11063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11064 <limits.h> exists even on freestanding compilers. */
11067 # include <limits.h>
11069 # include <assert.h>
11074 /* Override any gcc2 internal prototype to avoid an error. */
11079 /* We use char because int might match the return type of a gcc2
11080 builtin and then its argument prototype would still apply. */
11082 /* The GNU C library defines this for functions which it implements
11083 to always fail with ENOSYS. Some functions are actually named
11084 something starting with __ and the normal name is an alias. */
11085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11088 char (*f) () = $ac_func;
11097 return f != $ac_func;
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 eval "$as_ac_var=yes"
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 eval "$as_ac_var=no"
11131 rm -f conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11136 if test `eval echo '${'$as_ac_var'}'` = yes; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11146 if test "$with_pam" = yes ; then
11148 for ac_header in security/pam_appl.h
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11152 echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11160 # Is the header compilable?
11161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_header_compiler=yes
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_header_compiler=no
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6
11205 # Is the header present?
11206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <$ac_header>
11216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev/null; then
11224 if test -s conftest.err; then
11225 ac_cpp_err=$ac_c_preproc_warn_flag
11226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11233 if test -z "$ac_cpp_err"; then
11234 ac_header_preproc=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_preproc=no
11241 rm -f conftest.err conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6
11245 # So? What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11252 ac_header_preproc=yes
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11269 ## ---------------------------------------- ##
11270 ## Report this to pgsql-bugs@postgresql.org ##
11271 ## ---------------------------------------- ##
11274 sed "s/^/$as_me: WARNING: /" >&2
11277 echo "$as_me:$LINENO: checking for $ac_header" >&5
11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 eval "$as_ac_Header=\$ac_header_preproc"
11284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11289 cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11295 for ac_header in pam/pam_appl.h
11297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11299 echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11307 # Is the header compilable?
11308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11317 #include <$ac_header>
11319 rm -f conftest.$ac_objext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_header_compiler=yes
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 ac_header_compiler=no
11348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350 echo "${ECHO_T}$ac_header_compiler" >&6
11352 # Is the header present?
11353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11355 cat >conftest.$ac_ext <<_ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <$ac_header>
11363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11366 grep -v '^ *+' conftest.er1 >conftest.err
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null; then
11371 if test -s conftest.err; then
11372 ac_cpp_err=$ac_c_preproc_warn_flag
11373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11380 if test -z "$ac_cpp_err"; then
11381 ac_header_preproc=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_header_preproc=no
11388 rm -f conftest.err conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390 echo "${ECHO_T}$ac_header_preproc" >&6
11392 # So? What about this header?
11393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc=yes
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11416 ## ---------------------------------------- ##
11417 ## Report this to pgsql-bugs@postgresql.org ##
11418 ## ---------------------------------------- ##
11421 sed "s/^/$as_me: WARNING: /" >&2
11424 echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 eval "$as_ac_Header=\$ac_header_preproc"
11431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11442 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11443 { (exit 1); exit 1; }; }
11454 if test "$with_libxml" = yes ; then
11455 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11456 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11457 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11458 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11462 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11464 # Is the header compilable?
11465 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11466 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <libxml/parser.h>
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -z "$ac_c_werror_flag"
11486 || test ! -s conftest.err'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; } &&
11492 { ac_try='test -s conftest.$ac_objext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ac_header_compiler=yes
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ac_header_compiler=no
11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507 echo "${ECHO_T}$ac_header_compiler" >&6
11509 # Is the header present?
11510 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11511 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 #include <libxml/parser.h>
11520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null; then
11528 if test -s conftest.err; then
11529 ac_cpp_err=$ac_c_preproc_warn_flag
11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11537 if test -z "$ac_cpp_err"; then
11538 ac_header_preproc=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_preproc=no
11545 rm -f conftest.err conftest.$ac_ext
11546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11547 echo "${ECHO_T}$ac_header_preproc" >&6
11549 # So? What about this header?
11550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11553 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11555 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11556 ac_header_preproc=yes
11559 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11560 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11562 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11564 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11566 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11568 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11570 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11573 ## ---------------------------------------- ##
11574 ## Report this to pgsql-bugs@postgresql.org ##
11575 ## ---------------------------------------- ##
11578 sed "s/^/$as_me: WARNING: /" >&2
11581 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11582 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11583 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 ac_cv_header_libxml_parser_h=$ac_header_preproc
11588 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11589 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11592 if test $ac_cv_header_libxml_parser_h = yes; then
11595 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11596 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11597 { (exit 1); exit 1; }; }
11603 if test "$with_libxslt" = yes ; then
11604 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11605 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11606 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11607 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11611 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11613 # Is the header compilable?
11614 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11615 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
11616 cat >conftest.$ac_ext <<_ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11622 $ac_includes_default
11623 #include <libxslt/xslt.h>
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627 (eval $ac_compile) 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag"
11635 || test ! -s conftest.err'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; } &&
11641 { ac_try='test -s conftest.$ac_objext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_header_compiler=no
11654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11656 echo "${ECHO_T}$ac_header_compiler" >&6
11658 # Is the header present?
11659 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11660 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 #include <libxslt/xslt.h>
11669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } >/dev/null; then
11677 if test -s conftest.err; then
11678 ac_cpp_err=$ac_c_preproc_warn_flag
11679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 if test -z "$ac_cpp_err"; then
11687 ac_header_preproc=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_preproc=no
11694 rm -f conftest.err conftest.$ac_ext
11695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 echo "${ECHO_T}$ac_header_preproc" >&6
11698 # So? What about this header?
11699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11702 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11704 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11705 ac_header_preproc=yes
11708 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11709 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11711 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11713 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11715 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11717 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11719 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11722 ## ---------------------------------------- ##
11723 ## Report this to pgsql-bugs@postgresql.org ##
11724 ## ---------------------------------------- ##
11727 sed "s/^/$as_me: WARNING: /" >&2
11730 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11731 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11732 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11737 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11738 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11741 if test $ac_cv_header_libxslt_xslt_h = yes; then
11744 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11745 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11746 { (exit 1); exit 1; }; }
11752 if test "$with_ldap" = yes ; then
11753 if test "$PORTNAME" != "win32"; then
11755 for ac_header in ldap.h
11757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11759 echo "$as_me:$LINENO: checking for $ac_header" >&5
11760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11767 # Is the header compilable?
11768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <$ac_header>
11779 rm -f conftest.$ac_objext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest.$ac_objext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_header_compiler=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11810 echo "${ECHO_T}$ac_header_compiler" >&6
11812 # Is the header present?
11813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <$ac_header>
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null; then
11831 if test -s conftest.err; then
11832 ac_cpp_err=$ac_c_preproc_warn_flag
11833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 if test -z "$ac_cpp_err"; then
11841 ac_header_preproc=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_header_preproc=no
11848 rm -f conftest.err conftest.$ac_ext
11849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11850 echo "${ECHO_T}$ac_header_preproc" >&6
11852 # So? What about this header?
11853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11859 ac_header_preproc=yes
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11876 ## ---------------------------------------- ##
11877 ## Report this to pgsql-bugs@postgresql.org ##
11878 ## ---------------------------------------- ##
11881 sed "s/^/$as_me: WARNING: /" >&2
11884 echo "$as_me:$LINENO: checking for $ac_header" >&5
11885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 eval "$as_ac_Header=\$ac_header_preproc"
11891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11896 cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11901 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11902 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11903 { (exit 1); exit 1; }; }
11910 for ac_header in winldap.h
11912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11913 echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11925 #include <windows.h>
11928 #include <$ac_header>
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932 (eval $ac_compile) 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_Header=yes"
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_Header=no"
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11964 cat >>confdefs.h <<_ACEOF
11965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11969 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
11970 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
11971 { (exit 1); exit 1; }; }
11979 if test "$with_bonjour" = yes ; then
11980 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11981 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11982 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11983 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11987 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11989 # Is the header compilable?
11990 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
11991 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
11999 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_header_compiler=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_header_compiler=no
12030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032 echo "${ECHO_T}$ac_header_compiler" >&6
12034 # Is the header present?
12035 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12036 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12048 grep -v '^ *+' conftest.er1 >conftest.err
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } >/dev/null; then
12053 if test -s conftest.err; then
12054 ac_cpp_err=$ac_c_preproc_warn_flag
12055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12062 if test -z "$ac_cpp_err"; then
12063 ac_header_preproc=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_header_preproc=no
12070 rm -f conftest.err conftest.$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12072 echo "${ECHO_T}$ac_header_preproc" >&6
12074 # So? What about this header?
12075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12077 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12078 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12080 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12081 ac_header_preproc=yes
12084 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12085 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12087 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12089 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12091 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12093 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12095 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12098 ## ---------------------------------------- ##
12099 ## Report this to pgsql-bugs@postgresql.org ##
12100 ## ---------------------------------------- ##
12103 sed "s/^/$as_me: WARNING: /" >&2
12106 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12107 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
12108 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12113 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12114 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
12117 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12120 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12121 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12122 { (exit 1); exit 1; }; }
12130 ## Types, structures, compiler characteristics
12133 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12135 if test "${ac_cv_c_bigendian+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 # See if sys/param.h defines the BYTE_ORDER macro.
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 #include <sys/types.h>
12146 #include <sys/param.h>
12151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12152 bogus endian macros
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 # It does; now see whether it defined to BIG_ENDIAN or not.
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <sys/types.h>
12189 #include <sys/param.h>
12194 #if BYTE_ORDER != BIG_ENDIAN
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_c_bigendian=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_cv_c_bigendian=no
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 # It does not; compile a test program.
12237 if test "$cross_compiling" = yes; then
12238 # try to guess the endianness by grepping values into an object file
12239 ac_cv_c_bigendian=unknown
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12247 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12248 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12249 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12250 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12251 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12255 _ascii (); _ebcdic ();
12260 rm -f conftest.$ac_objext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12262 (eval $ac_compile) 2>conftest.er1
12264 grep -v '^ *+' conftest.er1 >conftest.err
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12283 ac_cv_c_bigendian=yes
12285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12286 if test "$ac_cv_c_bigendian" = unknown; then
12287 ac_cv_c_bigendian=no
12289 # finding both strings is unlikely to happen, but who knows?
12290 ac_cv_c_bigendian=unknown
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12309 /* Are we little or big endian? From Harbison&Steele. */
12313 char c[sizeof (long)];
12316 exit (u.c[sizeof (long) - 1] == 1);
12319 rm -f conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_c_bigendian=no
12332 echo "$as_me: program exited with status $ac_status" >&5
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ( exit $ac_status )
12337 ac_cv_c_bigendian=yes
12339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12344 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12345 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12346 case $ac_cv_c_bigendian in
12349 cat >>confdefs.h <<\_ACEOF
12350 #define WORDS_BIGENDIAN 1
12356 { { echo "$as_me:$LINENO: error: unknown endianness
12357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12358 echo "$as_me: error: unknown endianness
12359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12360 { (exit 1); exit 1; }; } ;;
12363 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12365 if test "${ac_cv_c_const+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12378 /* FIXME: Include the comments suggested by Paul. */
12379 #ifndef __cplusplus
12380 /* Ultrix mips cc rejects this. */
12381 typedef int charset[2];
12383 /* SunOS 4.1.1 cc rejects this. */
12384 char const *const *ccp;
12386 /* NEC SVR4.0.2 mips cc rejects this. */
12387 struct point {int x, y;};
12388 static struct point const zero = {0,0};
12389 /* AIX XL C 1.02.0.0 rejects this.
12390 It does not let you subtract one const X* pointer from another in
12391 an arm of an if-expression whose if-part is not a constant
12393 const char *g = "string";
12394 ccp = &g + (g ? g-g : 0);
12395 /* HPUX 7.0 cc rejects these. */
12398 ccp = (char const *const *) p;
12399 { /* SCO 3.2v4 cc rejects this. */
12401 char const *s = 0 ? (char *) 0 : (char const *) 0;
12405 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12406 int x[] = {25, 17};
12407 const int *foo = &x[0];
12410 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12411 typedef const int *iptr;
12415 { /* AIX XL C 1.02.0.0 rejects this saying
12416 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12417 struct s { int j; const int *ap[3]; };
12418 struct s *b; b->j = 5;
12420 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12421 const int foo = 10;
12429 rm -f conftest.$ac_objext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12431 (eval $ac_compile) 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest.$ac_objext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12461 echo "${ECHO_T}$ac_cv_c_const" >&6
12462 if test $ac_cv_c_const = no; then
12464 cat >>confdefs.h <<\_ACEOF
12471 echo "$as_me:$LINENO: checking for inline" >&5
12472 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12473 if test "${ac_cv_c_inline+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 for ac_kw in inline __inline__ __inline; do
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 #ifndef __cplusplus
12486 static $ac_kw foo_t static_foo () {return 0; }
12487 $ac_kw int foo () {return 0; }
12491 rm -f conftest.$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_c_werror_flag"
12501 || test ! -s conftest.err'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_c_inline=$ac_kw; break
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12524 echo "${ECHO_T}$ac_cv_c_inline" >&6
12525 case $ac_cv_c_inline in
12528 cat >>confdefs.h <<\_ACEOF
12532 *) cat >>confdefs.h <<_ACEOF
12533 #define inline $ac_cv_c_inline
12538 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12539 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12540 if test "${ac_cv_c_stringize+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12551 char *s = x(teststring);
12553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12554 $EGREP "#teststring" >/dev/null 2>&1; then
12555 ac_cv_c_stringize=no
12557 ac_cv_c_stringize=yes
12562 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12563 echo "${ECHO_T}$ac_cv_c_stringize" >&6
12564 if test $ac_cv_c_stringize = yes; then
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_STRINGIZE 1
12572 echo "$as_me:$LINENO: checking for signed types" >&5
12573 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
12574 if test "${pgac_cv_c_signed+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12587 signed char c; signed short s; signed int i;
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 pgac_cv_c_signed=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 pgac_cv_c_signed=no
12621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12623 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
12624 echo "${ECHO_T}$pgac_cv_c_signed" >&6
12625 if test x"$pgac_cv_c_signed" = xno ; then
12627 cat >>confdefs.h <<\_ACEOF
12632 echo "$as_me:$LINENO: checking for working volatile" >&5
12633 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
12634 if test "${ac_cv_c_volatile+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12654 rm -f conftest.$ac_objext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656 (eval $ac_compile) 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag"
12664 || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest.$ac_objext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_c_volatile=yes
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 ac_cv_c_volatile=no
12683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12686 echo "${ECHO_T}$ac_cv_c_volatile" >&6
12687 if test $ac_cv_c_volatile = no; then
12689 cat >>confdefs.h <<\_ACEOF
12695 echo "$as_me:$LINENO: checking for __func__" >&5
12696 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
12697 if test "${pgac_cv_funcname_func_support+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 cat >conftest.$ac_ext <<_ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12710 printf("%s\n", __func__);
12715 rm -f conftest.$ac_objext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12717 (eval $ac_compile) 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag"
12725 || test ! -s conftest.err'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest.$ac_objext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 pgac_cv_funcname_func_support=yes
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 pgac_cv_funcname_func_support=no
12744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12746 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
12747 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
12748 if test x"$pgac_cv_funcname_func_support" = xyes ; then
12750 cat >>confdefs.h <<\_ACEOF
12751 #define HAVE_FUNCNAME__FUNC 1
12755 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
12756 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
12757 if test "${pgac_cv_funcname_function_support+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12770 printf("%s\n", __FUNCTION__);
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>conftest.er1
12779 grep -v '^ *+' conftest.er1 >conftest.err
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest.$ac_objext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 pgac_cv_funcname_function_support=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 pgac_cv_funcname_function_support=no
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
12807 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
12808 if test x"$pgac_cv_funcname_function_support" = xyes ; then
12810 cat >>confdefs.h <<\_ACEOF
12811 #define HAVE_FUNCNAME__FUNCTION 1
12816 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12817 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12818 if test "${ac_cv_struct_tm+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12827 #include <sys/types.h>
12833 struct tm *tp; tp->tm_sec;
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840 (eval $ac_compile) 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_struct_tm=time.h
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_struct_tm=sys/time.h
12867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12870 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12871 if test $ac_cv_struct_tm = sys/time.h; then
12873 cat >>confdefs.h <<\_ACEOF
12874 #define TM_IN_SYS_TIME 1
12879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 #include <sys/types.h>
12891 #include <$ac_cv_struct_tm>
12897 static struct tm ac_aggr;
12898 if (ac_aggr.tm_zone)
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_c_werror_flag"
12914 || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest.$ac_objext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_member_struct_tm_tm_zone=yes
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <sys/types.h>
12938 #include <$ac_cv_struct_tm>
12944 static struct tm ac_aggr;
12945 if (sizeof ac_aggr.tm_zone)
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12955 grep -v '^ *+' conftest.er1 >conftest.err
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_member_struct_tm_tm_zone=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_cv_member_struct_tm_tm_zone=no
12980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12985 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12986 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989 #define HAVE_STRUCT_TM_TM_ZONE 1
12995 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12997 cat >>confdefs.h <<\_ACEOF
12998 #define HAVE_TM_ZONE 1
13002 echo "$as_me:$LINENO: checking for tzname" >&5
13003 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13004 if test "${ac_cv_var_tzname+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13014 #ifndef tzname /* For SGI. */
13015 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13026 rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_var_tzname=yes
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13053 ac_cv_var_tzname=no
13055 rm -f conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13058 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13059 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13060 if test $ac_cv_var_tzname = yes; then
13062 cat >>confdefs.h <<\_ACEOF
13063 #define HAVE_TZNAME 1
13068 echo "$as_me:$LINENO: checking for union semun" >&5
13069 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
13070 if test "${ac_cv_type_union_semun+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <sys/types.h>
13080 #include <sys/ipc.h>
13081 #include <sys/sem.h>
13086 if ((union semun *) 0)
13088 if (sizeof (union semun))
13094 rm -f conftest.$ac_objext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag"
13104 || test ! -s conftest.err'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest.$ac_objext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_cv_type_union_semun=yes
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_cv_type_union_semun=no
13123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13126 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
13127 if test $ac_cv_type_union_semun = yes; then
13129 cat >>confdefs.h <<_ACEOF
13130 #define HAVE_UNION_SEMUN 1
13136 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13137 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
13138 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <sys/types.h>
13148 #ifdef HAVE_SYS_UN_H
13149 #include <sys/un.h>
13156 if ((struct sockaddr_un *) 0)
13158 if (sizeof (struct sockaddr_un))
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>conftest.er1
13168 grep -v '^ *+' conftest.er1 >conftest.err
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 ac_cv_type_struct_sockaddr_un=yes
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13191 ac_cv_type_struct_sockaddr_un=no
13193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13196 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
13197 if test $ac_cv_type_struct_sockaddr_un = yes; then
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_STRUCT_SOCKADDR_UN 1
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_UNIX_SOCKETS 1
13210 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13211 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13212 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 #include <sys/types.h>
13222 #ifdef HAVE_SYS_SOCKET_H
13223 #include <sys/socket.h>
13230 if ((struct sockaddr_storage *) 0)
13232 if (sizeof (struct sockaddr_storage))
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_type_struct_sockaddr_storage=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_type_struct_sockaddr_storage=no
13267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13269 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13270 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
13271 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13280 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13281 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
13282 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <sys/types.h>
13292 #ifdef HAVE_SYS_SOCKET_H
13293 #include <sys/socket.h>
13300 static struct sockaddr_storage ac_aggr;
13301 if (ac_aggr.ss_family)
13307 rm -f conftest.$ac_objext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309 (eval $ac_compile) 2>conftest.er1
13311 grep -v '^ *+' conftest.er1 >conftest.err
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_c_werror_flag"
13317 || test ! -s conftest.err'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest.$ac_objext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 #include <sys/types.h>
13341 #ifdef HAVE_SYS_SOCKET_H
13342 #include <sys/socket.h>
13349 static struct sockaddr_storage ac_aggr;
13350 if (sizeof ac_aggr.ss_family)
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13360 grep -v '^ *+' conftest.er1 >conftest.err
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_cv_member_struct_sockaddr_storage_ss_family=no
13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13390 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
13391 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13399 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13400 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
13401 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <sys/types.h>
13411 #ifdef HAVE_SYS_SOCKET_H
13412 #include <sys/socket.h>
13419 static struct sockaddr_storage ac_aggr;
13420 if (ac_aggr.__ss_family)
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag"
13436 || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 #include <sys/types.h>
13460 #ifdef HAVE_SYS_SOCKET_H
13461 #include <sys/socket.h>
13468 static struct sockaddr_storage ac_aggr;
13469 if (sizeof ac_aggr.__ss_family)
13475 rm -f conftest.$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477 (eval $ac_compile) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_cv_member_struct_sockaddr_storage___ss_family=no
13504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13508 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13509 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
13510 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13518 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13519 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
13520 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 cat >conftest.$ac_ext <<_ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 #include <sys/types.h>
13530 #ifdef HAVE_SYS_SOCKET_H
13531 #include <sys/socket.h>
13538 static struct sockaddr_storage ac_aggr;
13539 if (ac_aggr.ss_len)
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #include <sys/types.h>
13579 #ifdef HAVE_SYS_SOCKET_H
13580 #include <sys/socket.h>
13587 static struct sockaddr_storage ac_aggr;
13588 if (sizeof ac_aggr.ss_len)
13594 rm -f conftest.$ac_objext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596 (eval $ac_compile) 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_member_struct_sockaddr_storage_ss_len=no
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
13628 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
13629 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
13637 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
13638 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
13639 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <sys/types.h>
13649 #ifdef HAVE_SYS_SOCKET_H
13650 #include <sys/socket.h>
13657 static struct sockaddr_storage ac_aggr;
13658 if (ac_aggr.__ss_len)
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest.$ac_objext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_member_struct_sockaddr_storage___ss_len=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 #include <sys/types.h>
13698 #ifdef HAVE_SYS_SOCKET_H
13699 #include <sys/socket.h>
13706 static struct sockaddr_storage ac_aggr;
13707 if (sizeof ac_aggr.__ss_len)
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_member_struct_sockaddr_storage___ss_len=yes
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_cv_member_struct_sockaddr_storage___ss_len=no
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
13747 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
13748 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13756 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13757 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13758 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <sys/types.h>
13768 #ifdef HAVE_SYS_SOCKET_H
13769 #include <sys/socket.h>
13776 static struct sockaddr ac_aggr;
13777 if (ac_aggr.sa_len)
13783 rm -f conftest.$ac_objext
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -z "$ac_c_werror_flag"
13793 || test ! -s conftest.err'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_cv_member_struct_sockaddr_sa_len=yes
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <sys/types.h>
13817 #ifdef HAVE_SYS_SOCKET_H
13818 #include <sys/socket.h>
13825 static struct sockaddr ac_aggr;
13826 if (sizeof ac_aggr.sa_len)
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_member_struct_sockaddr_sa_len=yes
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_cv_member_struct_sockaddr_sa_len=no
13861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13865 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13866 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13867 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13876 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13877 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13878 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 cat >conftest.$ac_ext <<_ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <sys/types.h>
13888 #include <sys/socket.h>
13895 if ((struct addrinfo *) 0)
13897 if (sizeof (struct addrinfo))
13903 rm -f conftest.$ac_objext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905 (eval $ac_compile) 2>conftest.er1
13907 grep -v '^ *+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
13912 { ac_try='test -z "$ac_c_werror_flag"
13913 || test ! -s conftest.err'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } &&
13919 { ac_try='test -s conftest.$ac_objext'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 ac_cv_type_struct_addrinfo=yes
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13930 ac_cv_type_struct_addrinfo=no
13932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13934 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13935 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
13936 if test $ac_cv_type_struct_addrinfo = yes; then
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_STRUCT_ADDRINFO 1
13946 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
13947 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
13948 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 #include <sys/param.h>
13958 #include <sys/types.h>
13959 #include <sys/socket.h>
13960 #include <sys/ucred.h>
13965 if ((struct cmsgcred *) 0)
13967 if (sizeof (struct cmsgcred))
13973 rm -f conftest.$ac_objext
13974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975 (eval $ac_compile) 2>conftest.er1
13977 grep -v '^ *+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try='test -z "$ac_c_werror_flag"
13983 || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_type_struct_cmsgcred=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_cv_type_struct_cmsgcred=no
14002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14005 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
14006 if test $ac_cv_type_struct_cmsgcred = yes; then
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_STRUCT_CMSGCRED 1
14014 echo "$as_me:$LINENO: checking for struct fcred" >&5
14015 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
14016 if test "${ac_cv_type_struct_fcred+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <sys/param.h>
14026 #include <sys/types.h>
14027 #include <sys/socket.h>
14028 #include <sys/ucred.h>
14033 if ((struct fcred *) 0)
14035 if (sizeof (struct fcred))
14041 rm -f conftest.$ac_objext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14043 (eval $ac_compile) 2>conftest.er1
14045 grep -v '^ *+' conftest.er1 >conftest.err
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try='test -z "$ac_c_werror_flag"
14051 || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_type_struct_fcred=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_type_struct_fcred=no
14070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14072 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14073 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
14074 if test $ac_cv_type_struct_fcred = yes; then
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_STRUCT_FCRED 1
14082 echo "$as_me:$LINENO: checking for struct sockcred" >&5
14083 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
14084 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.$ac_ext <<_ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <sys/param.h>
14094 #include <sys/types.h>
14095 #include <sys/socket.h>
14096 #include <sys/ucred.h>
14101 if ((struct sockcred *) 0)
14103 if (sizeof (struct sockcred))
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111 (eval $ac_compile) 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
14118 { ac_try='test -z "$ac_c_werror_flag"
14119 || test ! -s conftest.err'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest.$ac_objext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_cv_type_struct_sockcred=yes
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 ac_cv_type_struct_sockcred=no
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14141 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
14142 if test $ac_cv_type_struct_sockcred = yes; then
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_STRUCT_SOCKCRED 1
14152 echo "$as_me:$LINENO: checking for struct option" >&5
14153 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
14154 if test "${ac_cv_type_struct_option+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 cat >conftest.$ac_ext <<_ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163 #ifdef HAVE_GETOPT_H
14164 #include <getopt.h>
14170 if ((struct option *) 0)
14172 if (sizeof (struct option))
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_type_struct_option=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_cv_type_struct_option=no
14207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14210 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
14211 if test $ac_cv_type_struct_option = yes; then
14213 cat >>confdefs.h <<_ACEOF
14214 #define HAVE_STRUCT_OPTION 1
14221 if test "$with_zlib" = yes; then
14222 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14223 # did not). While we could work around the lack of z_streamp, it
14224 # seems unwise to encourage people to use such old zlib versions...
14225 echo "$as_me:$LINENO: checking for z_streamp" >&5
14226 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
14227 if test "${ac_cv_type_z_streamp+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14241 if ((z_streamp *) 0)
14243 if (sizeof (z_streamp))
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251 (eval $ac_compile) 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_type_z_streamp=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_type_z_streamp=no
14278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14281 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
14282 if test $ac_cv_type_z_streamp = yes; then
14285 { { echo "$as_me:$LINENO: error: zlib version is too old
14286 Use --without-zlib to disable zlib support." >&5
14287 echo "$as_me: error: zlib version is too old
14288 Use --without-zlib to disable zlib support." >&2;}
14289 { (exit 1); exit 1; }; }
14294 if test "$with_krb5" = yes; then
14295 # Check for differences between MIT and Heimdal (KTH) releases
14296 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14297 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
14298 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 cat >conftest.$ac_ext <<_ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14312 static krb5_ticket ac_aggr;
14313 if (ac_aggr.enc_part2)
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_member_krb5_ticket_enc_part2=yes
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 cat >conftest.$ac_ext <<_ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14357 static krb5_ticket ac_aggr;
14358 if (sizeof ac_aggr.enc_part2)
14364 rm -f conftest.$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_member_krb5_ticket_enc_part2=yes
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_cv_member_krb5_ticket_enc_part2=no
14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14398 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
14399 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14401 cat >>confdefs.h <<_ACEOF
14402 #define HAVE_KRB5_TICKET_ENC_PART2 1
14407 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14408 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
14409 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14423 static krb5_ticket ac_aggr;
14424 if (ac_aggr.client)
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -z "$ac_c_werror_flag"
14440 || test ! -s conftest.err'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest.$ac_objext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 ac_cv_member_krb5_ticket_client=yes
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14468 static krb5_ticket ac_aggr;
14469 if (sizeof ac_aggr.client)
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_member_krb5_ticket_client=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_member_krb5_ticket_client=no
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14508 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14509 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
14510 if test $ac_cv_member_krb5_ticket_client = yes; then
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_KRB5_TICKET_CLIENT 1
14518 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14519 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14520 { (exit 1); exit 1; }; }
14525 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14526 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
14527 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14541 static krb5_error ac_aggr;
14542 if (ac_aggr.text.data)
14548 rm -f conftest.$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 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_objext'
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 ac_cv_member_krb5_error_text_data=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14586 static krb5_error ac_aggr;
14587 if (sizeof ac_aggr.text.data)
14593 rm -f conftest.$ac_objext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595 (eval $ac_compile) 2>conftest.er1
14597 grep -v '^ *+' conftest.er1 >conftest.err
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } &&
14602 { ac_try='test -z "$ac_c_werror_flag"
14603 || test ! -s conftest.err'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_member_krb5_error_text_data=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_member_krb5_error_text_data=no
14622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14626 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14627 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
14628 if test $ac_cv_member_krb5_error_text_data = yes; then
14630 cat >>confdefs.h <<_ACEOF
14631 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14636 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14637 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
14638 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 cat >conftest.$ac_ext <<_ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14652 static krb5_error ac_aggr;
14653 if (ac_aggr.e_data)
14659 rm -f conftest.$ac_objext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -z "$ac_c_werror_flag"
14669 || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_member_krb5_error_e_data=yes
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 cat >conftest.$ac_ext <<_ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14697 static krb5_error ac_aggr;
14698 if (sizeof ac_aggr.e_data)
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag"
14714 || test ! -s conftest.err'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_cv_member_krb5_error_e_data=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ac_cv_member_krb5_error_e_data=no
14733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14738 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
14739 if test $ac_cv_member_krb5_error_e_data = yes; then
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_KRB5_ERROR_E_DATA 1
14747 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14748 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14749 { (exit 1); exit 1; }; }
14755 # Win32 requires headers to be loaded for __stdcall, so can't use
14756 # AC_CHECK_FUNCS here.
14757 echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
14758 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14769 krb5_free_unparsed_name(NULL,NULL);
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14797 cat >>confdefs.h <<\_ACEOF
14798 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
14801 echo "$as_me:$LINENO: result: yes" >&5
14802 echo "${ECHO_T}yes" >&6
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 echo "$as_me:$LINENO: result: no" >&5
14808 echo "${ECHO_T}no" >&6
14810 rm -f conftest.err conftest.$ac_objext \
14811 conftest$ac_exeext conftest.$ac_ext
14816 ## Functions, global variables
14819 echo "$as_me:$LINENO: checking for int timezone" >&5
14820 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
14821 if test "${pgac_cv_var_int_timezone+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14836 res = timezone / 60;
14838 res = _timezone / 60;
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846 (eval $ac_link) 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -z "$ac_c_werror_flag"
14854 || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 pgac_cv_var_int_timezone=yes
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14871 pgac_cv_var_int_timezone=no
14873 rm -f conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14876 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
14877 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
14878 if test x"$pgac_cv_var_int_timezone" = xyes ; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_INT_TIMEZONE
14885 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
14886 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
14887 if test "${ac_cv_func_accept_return+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 if test "${ac_cv_func_accept_arg1+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 if test "${ac_cv_func_accept_arg2+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 if test "${ac_cv_func_accept_arg3+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14900 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14901 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14902 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #ifdef HAVE_SYS_TYPES_H
14910 #include <sys/types.h>
14912 #ifdef HAVE_SYS_SOCKET_H
14913 #include <sys/socket.h>
14915 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 ac_not_found=no; break 4
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14958 if test "$ac_not_found" = yes; then
14959 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
14960 echo "$as_me: error: could not determine argument types" >&2;}
14961 { (exit 1); exit 1; }; }
14963 if test "$ac_cv_func_accept_arg3" = "void"; then
14964 ac_cv_func_accept_arg3=int
14974 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
14975 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
14977 cat >>confdefs.h <<_ACEOF
14978 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14982 cat >>confdefs.h <<_ACEOF
14983 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14987 cat >>confdefs.h <<_ACEOF
14988 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14992 cat >>confdefs.h <<_ACEOF
14993 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14997 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
14998 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
14999 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 cat >conftest.$ac_ext <<_ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <sys/time.h>
15012 struct timeval *tp;
15013 struct timezone *tzp;
15014 gettimeofday(tp,tzp);
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021 (eval $ac_compile) 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 pgac_cv_func_gettimeofday_1arg=no
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 pgac_cv_func_gettimeofday_1arg=yes
15048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15051 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
15052 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15054 cat >>confdefs.h <<\_ACEOF
15055 #define GETTIMEOFDAY_1ARG
15082 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15085 echo "$as_me:$LINENO: checking for $ac_func" >&5
15086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15087 if eval "test \"\${$as_ac_var+set}\" = set"; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15098 #define $ac_func innocuous_$ac_func
15100 /* System header to define __stub macros and hopefully few prototypes,
15101 which can conflict with char $ac_func (); below.
15102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15103 <limits.h> exists even on freestanding compilers. */
15106 # include <limits.h>
15108 # include <assert.h>
15113 /* Override any gcc2 internal prototype to avoid an error. */
15118 /* We use char because int might match the return type of a gcc2
15119 builtin and then its argument prototype would still apply. */
15121 /* The GNU C library defines this for functions which it implements
15122 to always fail with ENOSYS. Some functions are actually named
15123 something starting with __ and the normal name is an alias. */
15124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15127 char (*f) () = $ac_func;
15136 return f != $ac_func;
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag"
15151 || test ! -s conftest.err'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 eval "$as_ac_var=yes"
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 eval "$as_ac_var=no"
15170 rm -f conftest.err conftest.$ac_objext \
15171 conftest$ac_exeext conftest.$ac_ext
15173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15175 if test `eval echo '${'$as_ac_var'}'` = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15184 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15185 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
15186 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <unistd.h>
15201 char *p = (char *) fdatasync;
15208 rm -f conftest.$ac_objext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15210 (eval $ac_compile) 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_objext'
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
15230 ac_cv_have_decl_fdatasync=yes
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_cv_have_decl_fdatasync=no
15237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15239 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15240 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
15241 if test $ac_cv_have_decl_fdatasync = yes; then
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_DECL_FDATASYNC 1
15249 cat >>confdefs.h <<_ACEOF
15250 #define HAVE_DECL_FDATASYNC 0
15257 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15258 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
15259 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15273 #ifndef posix_fadvise
15274 char *p = (char *) posix_fadvise;
15281 rm -f conftest.$ac_objext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15283 (eval $ac_compile) 2>conftest.er1
15285 grep -v '^ *+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -z "$ac_c_werror_flag"
15291 || test ! -s conftest.err'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_cv_have_decl_posix_fadvise=yes
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_cv_have_decl_posix_fadvise=no
15310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15312 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15313 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
15314 if test $ac_cv_have_decl_posix_fadvise = yes; then
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_DECL_POSIX_FADVISE 1
15322 cat >>confdefs.h <<_ACEOF
15323 #define HAVE_DECL_POSIX_FADVISE 0
15330 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15331 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
15332 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 cat >conftest.$ac_ext <<_ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15341 $ac_includes_default
15346 char *p = (char *) strlcat;
15353 rm -f conftest.$ac_objext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15355 (eval $ac_compile) 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -z "$ac_c_werror_flag"
15363 || test ! -s conftest.err'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15375 ac_cv_have_decl_strlcat=yes
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ac_cv_have_decl_strlcat=no
15382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15385 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
15386 if test $ac_cv_have_decl_strlcat = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_DECL_STRLCAT 1
15394 cat >>confdefs.h <<_ACEOF
15395 #define HAVE_DECL_STRLCAT 0
15400 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15401 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
15402 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15416 char *p = (char *) strlcpy;
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_cv_have_decl_strlcpy=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_cv_have_decl_strlcpy=no
15452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15454 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15455 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
15456 if test $ac_cv_have_decl_strlcpy = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459 #define HAVE_DECL_STRLCPY 1
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_DECL_STRLCPY 0
15472 # This is probably only present on Darwin, but may as well check always
15473 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15474 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
15475 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15489 #ifndef F_FULLFSYNC
15490 char *p = (char *) F_FULLFSYNC;
15497 rm -f conftest.$ac_objext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499 (eval $ac_compile) 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag"
15507 || test ! -s conftest.err'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest.$ac_objext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_have_decl_F_FULLFSYNC=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_have_decl_F_FULLFSYNC=no
15526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15529 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
15530 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15532 cat >>confdefs.h <<_ACEOF
15533 #define HAVE_DECL_F_FULLFSYNC 1
15538 cat >>confdefs.h <<_ACEOF
15539 #define HAVE_DECL_F_FULLFSYNC 0
15548 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15549 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
15550 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 #include <netinet/in.h>
15565 if ((struct sockaddr_in6 *) 0)
15567 if (sizeof (struct sockaddr_in6))
15573 rm -f conftest.$ac_objext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15575 (eval $ac_compile) 2>conftest.er1
15577 grep -v '^ *+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_type_struct_sockaddr_in6=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_type_struct_sockaddr_in6=no
15602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15604 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15605 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
15606 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15608 cat >>confdefs.h <<\_ACEOF
15609 #define HAVE_IPV6 1
15617 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15618 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
15619 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #include <machine/vmparam.h>
15629 #include <sys/exec.h>
15634 PS_STRINGS->ps_nargvstr = 1;
15635 PS_STRINGS->ps_argvstr = "foo";
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642 (eval $ac_link) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag"
15650 || test ! -s conftest.err'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest$ac_exeext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 pgac_cv_var_PS_STRINGS=yes
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 pgac_cv_var_PS_STRINGS=no
15669 rm -f conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15672 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15673 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
15674 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15676 cat >>confdefs.h <<\_ACEOF
15677 #define HAVE_PS_STRINGS
15683 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15684 # is missing. Yes, there are machines that have only one. We may
15685 # also decide to use snprintf.c if snprintf() is present but does not
15686 # have all the features we need --- see below.
15688 if test "$PORTNAME" = "win32"; then
15689 # Win32 gets snprintf.c built unconditionally.
15691 # To properly translate all NLS languages strings, we must support the
15692 # *printf() %$ format, which allows *printf() arguments to be selected
15693 # by position in the translated string.
15695 # libintl versions < 0.13 use the native *printf() functions, and Win32
15696 # *printf() doesn't understand %$, so we must use our /port versions,
15697 # which do understand %$. libintl versions >= 0.13 include their own
15698 # *printf versions on Win32. The libintl 0.13 release note text is:
15700 # C format strings with positions, as they arise when a translator
15701 # needs to reorder a sentence, are now supported on all platforms.
15702 # On those few platforms (NetBSD and Woe32) for which the native
15703 # printf()/fprintf()/... functions don't support such format
15704 # strings, replacements are provided through <libintl.h>.
15706 # We could use libintl >= 0.13's *printf() if we were sure that we had
15707 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15708 # to guarantee that, it is best to just use our own, so we are sure to
15709 # get %$ support. In include/port.h we disable the *printf() macros
15710 # that might have been defined by libintl.
15712 # We do this unconditionally whether NLS is used or not so we are sure
15713 # that all Win32 libraries and binaries behave the same.
15714 pgac_need_repl_snprintf=yes
15716 pgac_need_repl_snprintf=no
15718 for ac_func in snprintf
15720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15721 echo "$as_me:$LINENO: checking for $ac_func" >&5
15722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15723 if eval "test \"\${$as_ac_var+set}\" = set"; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15734 #define $ac_func innocuous_$ac_func
15736 /* System header to define __stub macros and hopefully few prototypes,
15737 which can conflict with char $ac_func (); below.
15738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15739 <limits.h> exists even on freestanding compilers. */
15742 # include <limits.h>
15744 # include <assert.h>
15749 /* Override any gcc2 internal prototype to avoid an error. */
15754 /* We use char because int might match the return type of a gcc2
15755 builtin and then its argument prototype would still apply. */
15757 /* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
15760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15763 char (*f) () = $ac_func;
15772 return f != $ac_func;
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779 (eval $ac_link) 2>conftest.er1
15781 grep -v '^ *+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
15786 { ac_try='test -z "$ac_c_werror_flag"
15787 || test ! -s conftest.err'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; } &&
15793 { ac_try='test -s conftest$ac_exeext'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 eval "$as_ac_var=yes"
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 eval "$as_ac_var=no"
15806 rm -f conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
15809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15811 if test `eval echo '${'$as_ac_var'}'` = yes; then
15812 cat >>confdefs.h <<_ACEOF
15813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15817 pgac_need_repl_snprintf=yes
15822 for ac_func in vsnprintf
15824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15825 echo "$as_me:$LINENO: checking for $ac_func" >&5
15826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15827 if eval "test \"\${$as_ac_var+set}\" = set"; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15838 #define $ac_func innocuous_$ac_func
15840 /* System header to define __stub macros and hopefully few prototypes,
15841 which can conflict with char $ac_func (); below.
15842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15843 <limits.h> exists even on freestanding compilers. */
15846 # include <limits.h>
15848 # include <assert.h>
15853 /* Override any gcc2 internal prototype to avoid an error. */
15858 /* We use char because int might match the return type of a gcc2
15859 builtin and then its argument prototype would still apply. */
15861 /* The GNU C library defines this for functions which it implements
15862 to always fail with ENOSYS. Some functions are actually named
15863 something starting with __ and the normal name is an alias. */
15864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15867 char (*f) () = $ac_func;
15876 return f != $ac_func;
15881 rm -f conftest.$ac_objext conftest$ac_exeext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15883 (eval $ac_link) 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest$ac_exeext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 eval "$as_ac_var=yes"
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 eval "$as_ac_var=no"
15910 rm -f conftest.err conftest.$ac_objext \
15911 conftest$ac_exeext conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15915 if test `eval echo '${'$as_ac_var'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15921 pgac_need_repl_snprintf=yes
15928 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15929 # include/c.h will provide declarations. Note this is a separate test
15930 # from whether the functions exist in the C library --- there are
15931 # systems that have the functions but don't bother to declare them :-(
15933 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15934 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15935 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 $ac_includes_default
15949 char *p = (char *) snprintf;
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_have_decl_snprintf=yes
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_cv_have_decl_snprintf=no
15985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15988 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15989 if test $ac_cv_have_decl_snprintf = yes; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define HAVE_DECL_SNPRINTF 1
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_DECL_SNPRINTF 0
16003 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16004 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16005 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16019 char *p = (char *) vsnprintf;
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_cv_have_decl_vsnprintf=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_cv_have_decl_vsnprintf=no
16055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16058 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16059 if test $ac_cv_have_decl_vsnprintf = yes; then
16061 cat >>confdefs.h <<_ACEOF
16062 #define HAVE_DECL_VSNPRINTF 1
16067 cat >>confdefs.h <<_ACEOF
16068 #define HAVE_DECL_VSNPRINTF 0
16077 echo "$as_me:$LINENO: checking for isinf" >&5
16078 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
16079 if test "${ac_cv_func_isinf+set}" = set; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16090 double glob_double;
16095 return isinf(glob_double) ? 0 : 1;
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>conftest.er1
16104 grep -v '^ *+' conftest.er1 >conftest.err
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -z "$ac_c_werror_flag"
16110 || test ! -s conftest.err'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest$ac_exeext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122 ac_cv_func_isinf=yes
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_cv_func_isinf=no
16129 rm -f conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16132 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16133 echo "${ECHO_T}$ac_cv_func_isinf" >&6
16135 if test $ac_cv_func_isinf = yes ; then
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_ISINF 1
16143 "isinf.$ac_objext" | \
16144 *" isinf.$ac_objext" | \
16145 "isinf.$ac_objext "* | \
16146 *" isinf.$ac_objext "* ) ;;
16147 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
16150 # Look for a way to implement a substitute for isinf()
16155 for ac_func in fpclass fp_class fp_class_d class
16157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16158 echo "$as_me:$LINENO: checking for $ac_func" >&5
16159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16160 if eval "test \"\${$as_ac_var+set}\" = set"; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16171 #define $ac_func innocuous_$ac_func
16173 /* System header to define __stub macros and hopefully few prototypes,
16174 which can conflict with char $ac_func (); below.
16175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16176 <limits.h> exists even on freestanding compilers. */
16179 # include <limits.h>
16181 # include <assert.h>
16186 /* Override any gcc2 internal prototype to avoid an error. */
16191 /* We use char because int might match the return type of a gcc2
16192 builtin and then its argument prototype would still apply. */
16194 /* The GNU C library defines this for functions which it implements
16195 to always fail with ENOSYS. Some functions are actually named
16196 something starting with __ and the normal name is an alias. */
16197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16200 char (*f) () = $ac_func;
16209 return f != $ac_func;
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16216 (eval $ac_link) 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -z "$ac_c_werror_flag"
16224 || test ! -s conftest.err'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest$ac_exeext'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 eval "$as_ac_var=yes"
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 eval "$as_ac_var=no"
16243 rm -f conftest.err conftest.$ac_objext \
16244 conftest$ac_exeext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16248 if test `eval echo '${'$as_ac_var'}'` = yes; then
16249 cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16258 # Some versions of libedit contain strlcpy(); so disregard that library while
16259 # checking for these standard libc functions.
16260 pgac_save_LIBS="$LIBS"
16261 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16278 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16281 echo "$as_me:$LINENO: checking for $ac_func" >&5
16282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_var+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16294 #define $ac_func innocuous_$ac_func
16296 /* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func (); below.
16298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299 <limits.h> exists even on freestanding compilers. */
16302 # include <limits.h>
16304 # include <assert.h>
16309 /* Override any gcc2 internal prototype to avoid an error. */
16314 /* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16317 /* The GNU C library defines this for functions which it implements
16318 to always fail with ENOSYS. Some functions are actually named
16319 something starting with __ and the normal name is an alias. */
16320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16323 char (*f) () = $ac_func;
16332 return f != $ac_func;
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>conftest.er1
16341 grep -v '^ *+' conftest.er1 >conftest.err
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag"
16347 || test ! -s conftest.err'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 eval "$as_ac_var=yes"
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 eval "$as_ac_var=no"
16366 rm -f conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16371 if test `eval echo '${'$as_ac_var'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16378 "$ac_func.$ac_objext" | \
16379 *" $ac_func.$ac_objext" | \
16380 "$ac_func.$ac_objext "* | \
16381 *" $ac_func.$ac_objext "* ) ;;
16382 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16390 LIBS="$pgac_save_LIBS"
16392 # System's version of getaddrinfo(), if any, may be used only if we found
16393 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16394 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16395 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16396 # because we want to use our own getaddrinfo.c on Windows anyway.)
16397 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16399 for ac_func in getaddrinfo
16401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16402 echo "$as_me:$LINENO: checking for $ac_func" >&5
16403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16404 if eval "test \"\${$as_ac_var+set}\" = set"; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16415 #define $ac_func innocuous_$ac_func
16417 /* System header to define __stub macros and hopefully few prototypes,
16418 which can conflict with char $ac_func (); below.
16419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16420 <limits.h> exists even on freestanding compilers. */
16423 # include <limits.h>
16425 # include <assert.h>
16430 /* Override any gcc2 internal prototype to avoid an error. */
16435 /* We use char because int might match the return type of a gcc2
16436 builtin and then its argument prototype would still apply. */
16438 /* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16444 char (*f) () = $ac_func;
16453 return f != $ac_func;
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag"
16468 || test ! -s conftest.err'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; } &&
16474 { ac_try='test -s conftest$ac_exeext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 eval "$as_ac_var=yes"
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 eval "$as_ac_var=no"
16487 rm -f conftest.err conftest.$ac_objext \
16488 conftest$ac_exeext conftest.$ac_ext
16490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16492 if test `eval echo '${'$as_ac_var'}'` = yes; then
16493 cat >>confdefs.h <<_ACEOF
16494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16499 "$ac_func.$ac_objext" | \
16500 *" $ac_func.$ac_objext" | \
16501 "$ac_func.$ac_objext "* | \
16502 *" $ac_func.$ac_objext "* ) ;;
16503 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16512 "getaddrinfo.$ac_objext" | \
16513 *" getaddrinfo.$ac_objext" | \
16514 "getaddrinfo.$ac_objext "* | \
16515 *" getaddrinfo.$ac_objext "* ) ;;
16516 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
16521 # similarly, use system's getopt_long() only if system provides struct option.
16522 if test x"$ac_cv_type_struct_option" = xyes ; then
16524 for ac_func in getopt_long
16526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16527 echo "$as_me:$LINENO: checking for $ac_func" >&5
16528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16529 if eval "test \"\${$as_ac_var+set}\" = set"; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16540 #define $ac_func innocuous_$ac_func
16542 /* System header to define __stub macros and hopefully few prototypes,
16543 which can conflict with char $ac_func (); below.
16544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16545 <limits.h> exists even on freestanding compilers. */
16548 # include <limits.h>
16550 # include <assert.h>
16555 /* Override any gcc2 internal prototype to avoid an error. */
16560 /* We use char because int might match the return type of a gcc2
16561 builtin and then its argument prototype would still apply. */
16563 /* The GNU C library defines this for functions which it implements
16564 to always fail with ENOSYS. Some functions are actually named
16565 something starting with __ and the normal name is an alias. */
16566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16569 char (*f) () = $ac_func;
16578 return f != $ac_func;
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag"
16593 || test ! -s conftest.err'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 eval "$as_ac_var=yes"
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 eval "$as_ac_var=no"
16612 rm -f conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
16615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16617 if test `eval echo '${'$as_ac_var'}'` = yes; then
16618 cat >>confdefs.h <<_ACEOF
16619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16624 "$ac_func.$ac_objext" | \
16625 *" $ac_func.$ac_objext" | \
16626 "$ac_func.$ac_objext "* | \
16627 *" $ac_func.$ac_objext "* ) ;;
16628 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16637 "getopt_long.$ac_objext" | \
16638 *" getopt_long.$ac_objext" | \
16639 "getopt_long.$ac_objext "* | \
16640 *" getopt_long.$ac_objext "* ) ;;
16641 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
16646 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
16647 # We override the previous test that said fseeko/ftello didn't exist
16648 # OS tests are also done in include/c.h and port/fseeko.c
16649 case $host_os in bsdi*|netbsd*)
16650 ac_cv_func_fseeko=yes
16654 if test "$PORTNAME" = "win32"; then
16656 "gettimeofday.$ac_objext" | \
16657 *" gettimeofday.$ac_objext" | \
16658 "gettimeofday.$ac_objext "* | \
16659 *" gettimeofday.$ac_objext "* ) ;;
16660 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
16664 "kill.$ac_objext" | \
16665 *" kill.$ac_objext" | \
16666 "kill.$ac_objext "* | \
16667 *" kill.$ac_objext "* ) ;;
16668 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
16672 "open.$ac_objext" | \
16673 *" open.$ac_objext" | \
16674 "open.$ac_objext "* | \
16675 *" open.$ac_objext "* ) ;;
16676 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
16680 "rand.$ac_objext" | \
16681 *" rand.$ac_objext" | \
16682 "rand.$ac_objext "* | \
16683 *" rand.$ac_objext "* ) ;;
16684 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
16688 "win32error.$ac_objext" | \
16689 *" win32error.$ac_objext" | \
16690 "win32error.$ac_objext "* | \
16691 *" win32error.$ac_objext "* ) ;;
16692 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
16696 cat >>confdefs.h <<\_ACEOF
16697 #define HAVE_SYMLINK 1
16702 if test "$with_readline" = yes; then
16703 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16704 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 #ifdef HAVE_READLINE_READLINE_H
16713 # include <readline/readline.h>
16714 #elif defined(HAVE_READLINE_H)
16715 # include <readline.h>
16721 rl_completion_append_character = 'x';
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>conftest.er1
16730 grep -v '^ *+' conftest.er1 >conftest.err
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 echo "$as_me:$LINENO: result: yes" >&5
16749 echo "${ECHO_T}yes" >&6
16751 cat >>confdefs.h <<\_ACEOF
16752 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 echo "$as_me:$LINENO: result: no" >&5
16760 echo "${ECHO_T}no" >&6
16762 rm -f conftest.err conftest.$ac_objext \
16763 conftest$ac_exeext conftest.$ac_ext
16766 for ac_func in rl_completion_matches rl_filename_completion_function
16768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16771 if eval "test \"\${$as_ac_var+set}\" = set"; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782 #define $ac_func innocuous_$ac_func
16784 /* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char $ac_func (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16790 # include <limits.h>
16792 # include <assert.h>
16797 /* Override any gcc2 internal prototype to avoid an error. */
16802 /* We use char because int might match the return type of a gcc2
16803 builtin and then its argument prototype would still apply. */
16805 /* The GNU C library defines this for functions which it implements
16806 to always fail with ENOSYS. Some functions are actually named
16807 something starting with __ and the normal name is an alias. */
16808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16811 char (*f) () = $ac_func;
16820 return f != $ac_func;
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827 (eval $ac_link) 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -z "$ac_c_werror_flag"
16835 || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest$ac_exeext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 eval "$as_ac_var=yes"
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 eval "$as_ac_var=no"
16854 rm -f conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16859 if test `eval echo '${'$as_ac_var'}'` = yes; then
16860 cat >>confdefs.h <<_ACEOF
16861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16868 for ac_func in replace_history_entry
16870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16871 echo "$as_me:$LINENO: checking for $ac_func" >&5
16872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16873 if eval "test \"\${$as_ac_var+set}\" = set"; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16884 #define $ac_func innocuous_$ac_func
16886 /* System header to define __stub macros and hopefully few prototypes,
16887 which can conflict with char $ac_func (); below.
16888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889 <limits.h> exists even on freestanding compilers. */
16892 # include <limits.h>
16894 # include <assert.h>
16899 /* Override any gcc2 internal prototype to avoid an error. */
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16907 /* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
16910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16913 char (*f) () = $ac_func;
16922 return f != $ac_func;
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 eval "$as_ac_var=yes"
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 eval "$as_ac_var=no"
16956 rm -f conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16972 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16973 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 #include <setjmp.h>
16984 sigjmp_buf x; sigsetjmp(x, 1);
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991 (eval $ac_link) 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_c_werror_flag"
16999 || test ! -s conftest.err'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_SIGSETJMP 1
17016 echo "$as_me:$LINENO: result: yes" >&5
17017 echo "${ECHO_T}yes" >&6
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 echo "$as_me:$LINENO: result: no" >&5
17023 echo "${ECHO_T}no" >&6
17025 rm -f conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17028 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17029 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
17030 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 #include <signal.h>
17040 /* NetBSD declares sys_siglist in unistd.h. */
17042 # include <unistd.h>
17049 #ifndef sys_siglist
17050 char *p = (char *) sys_siglist;
17057 rm -f conftest.$ac_objext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17059 (eval $ac_compile) 2>conftest.er1
17061 grep -v '^ *+' conftest.er1 >conftest.err
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -z "$ac_c_werror_flag"
17067 || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest.$ac_objext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_have_decl_sys_siglist=yes
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 ac_cv_have_decl_sys_siglist=no
17086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17088 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17089 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
17090 if test $ac_cv_have_decl_sys_siglist = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_DECL_SYS_SIGLIST 1
17098 cat >>confdefs.h <<_ACEOF
17099 #define HAVE_DECL_SYS_SIGLIST 0
17108 echo "$as_me:$LINENO: checking for syslog" >&5
17109 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
17110 if test "${ac_cv_func_syslog+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121 #define syslog innocuous_syslog
17123 /* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char syslog (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17129 # include <limits.h>
17131 # include <assert.h>
17136 /* Override any gcc2 internal prototype to avoid an error. */
17141 /* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17144 /* The GNU C library defines this for functions which it implements
17145 to always fail with ENOSYS. Some functions are actually named
17146 something starting with __ and the normal name is an alias. */
17147 #if defined (__stub_syslog) || defined (__stub___syslog)
17150 char (*f) () = syslog;
17159 return f != syslog;
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166 (eval $ac_link) 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag"
17174 || test ! -s conftest.err'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_func_syslog=yes
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 ac_cv_func_syslog=no
17193 rm -f conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17196 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17197 echo "${ECHO_T}$ac_cv_func_syslog" >&6
17198 if test $ac_cv_func_syslog = yes; then
17199 if test "${ac_cv_header_syslog_h+set}" = set; then
17200 echo "$as_me:$LINENO: checking for syslog.h" >&5
17201 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17202 if test "${ac_cv_header_syslog_h+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17206 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17208 # Is the header compilable?
17209 echo "$as_me:$LINENO: checking syslog.h usability" >&5
17210 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $ac_includes_default
17218 #include <syslog.h>
17220 rm -f conftest.$ac_objext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17222 (eval $ac_compile) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest.$ac_objext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_header_compiler=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_header_compiler=no
17249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17251 echo "${ECHO_T}$ac_header_compiler" >&6
17253 # Is the header present?
17254 echo "$as_me:$LINENO: checking syslog.h presence" >&5
17255 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 #include <syslog.h>
17264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } >/dev/null; then
17272 if test -s conftest.err; then
17273 ac_cpp_err=$ac_c_preproc_warn_flag
17274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17281 if test -z "$ac_cpp_err"; then
17282 ac_header_preproc=yes
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_preproc=no
17289 rm -f conftest.err conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17291 echo "${ECHO_T}$ac_header_preproc" >&6
17293 # So? What about this header?
17294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17296 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17297 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17299 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17300 ac_header_preproc=yes
17303 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17304 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17306 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17308 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17309 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17310 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17311 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17312 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17314 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17317 ## ---------------------------------------- ##
17318 ## Report this to pgsql-bugs@postgresql.org ##
17319 ## ---------------------------------------- ##
17322 sed "s/^/$as_me: WARNING: /" >&2
17325 echo "$as_me:$LINENO: checking for syslog.h" >&5
17326 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17327 if test "${ac_cv_header_syslog_h+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 ac_cv_header_syslog_h=$ac_header_preproc
17332 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17333 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17336 if test $ac_cv_header_syslog_h = yes; then
17338 cat >>confdefs.h <<\_ACEOF
17339 #define HAVE_SYSLOG 1
17348 echo "$as_me:$LINENO: checking for optreset" >&5
17349 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
17350 if test "${pgac_cv_var_int_optreset+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 cat >conftest.$ac_ext <<_ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <unistd.h>
17363 extern int optreset; optreset = 1;
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370 (eval $ac_link) 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag"
17378 || test ! -s conftest.err'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest$ac_exeext'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 pgac_cv_var_int_optreset=yes
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17395 pgac_cv_var_int_optreset=no
17397 rm -f conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
17400 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17401 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
17402 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_INT_OPTRESET 1
17412 for ac_func in strtoll strtoq
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17417 if eval "test \"\${$as_ac_var+set}\" = set"; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17436 # include <limits.h>
17438 # include <assert.h>
17443 /* Override any gcc2 internal prototype to avoid an error. */
17448 /* We use char because int might match the return type of a gcc2
17449 builtin and then its argument prototype would still apply. */
17451 /* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17457 char (*f) () = $ac_func;
17466 return f != $ac_func;
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17473 (eval $ac_link) 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s 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 eval "$as_ac_var=yes"
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 eval "$as_ac_var=no"
17500 rm -f conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 for ac_func in strtoull strtouq
17517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17518 echo "$as_me:$LINENO: checking for $ac_func" >&5
17519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17520 if eval "test \"\${$as_ac_var+set}\" = set"; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17531 #define $ac_func innocuous_$ac_func
17533 /* System header to define __stub macros and hopefully few prototypes,
17534 which can conflict with char $ac_func (); below.
17535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536 <limits.h> exists even on freestanding compilers. */
17539 # include <limits.h>
17541 # include <assert.h>
17546 /* Override any gcc2 internal prototype to avoid an error. */
17551 /* We use char because int might match the return type of a gcc2
17552 builtin and then its argument prototype would still apply. */
17554 /* The GNU C library defines this for functions which it implements
17555 to always fail with ENOSYS. Some functions are actually named
17556 something starting with __ and the normal name is an alias. */
17557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17560 char (*f) () = $ac_func;
17569 return f != $ac_func;
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576 (eval $ac_link) 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 eval "$as_ac_var=yes"
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 eval "$as_ac_var=no"
17603 rm -f conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17608 if test `eval echo '${'$as_ac_var'}'` = yes; then
17609 cat >>confdefs.h <<_ACEOF
17610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17617 # Check for one of atexit() or on_exit()
17619 for ac_func in atexit
17621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17622 echo "$as_me:$LINENO: checking for $ac_func" >&5
17623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17624 if eval "test \"\${$as_ac_var+set}\" = set"; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17635 #define $ac_func innocuous_$ac_func
17637 /* System header to define __stub macros and hopefully few prototypes,
17638 which can conflict with char $ac_func (); below.
17639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640 <limits.h> exists even on freestanding compilers. */
17643 # include <limits.h>
17645 # include <assert.h>
17650 /* Override any gcc2 internal prototype to avoid an error. */
17655 /* We use char because int might match the return type of a gcc2
17656 builtin and then its argument prototype would still apply. */
17658 /* The GNU C library defines this for functions which it implements
17659 to always fail with ENOSYS. Some functions are actually named
17660 something starting with __ and the normal name is an alias. */
17661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17664 char (*f) () = $ac_func;
17673 return f != $ac_func;
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest$ac_exeext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 eval "$as_ac_var=yes"
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 eval "$as_ac_var=no"
17707 rm -f conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17712 if test `eval echo '${'$as_ac_var'}'` = yes; then
17713 cat >>confdefs.h <<_ACEOF
17714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17719 for ac_func in on_exit
17721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17722 echo "$as_me:$LINENO: checking for $ac_func" >&5
17723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17724 if eval "test \"\${$as_ac_var+set}\" = set"; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17735 #define $ac_func innocuous_$ac_func
17737 /* System header to define __stub macros and hopefully few prototypes,
17738 which can conflict with char $ac_func (); below.
17739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17740 <limits.h> exists even on freestanding compilers. */
17743 # include <limits.h>
17745 # include <assert.h>
17750 /* Override any gcc2 internal prototype to avoid an error. */
17755 /* We use char because int might match the return type of a gcc2
17756 builtin and then its argument prototype would still apply. */
17758 /* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
17761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17764 char (*f) () = $ac_func;
17773 return f != $ac_func;
17778 rm -f conftest.$ac_objext conftest$ac_exeext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17780 (eval $ac_link) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest$ac_exeext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 eval "$as_ac_var=yes"
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 eval "$as_ac_var=no"
17807 rm -f conftest.err conftest.$ac_objext \
17808 conftest$ac_exeext conftest.$ac_ext
17810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17812 if test `eval echo '${'$as_ac_var'}'` = yes; then
17813 cat >>confdefs.h <<_ACEOF
17814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17818 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17819 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17820 { (exit 1); exit 1; }; }
17828 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17829 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17830 if test "${ac_cv_sys_largefile_source+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 ac_cv_sys_largefile_source=no
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17850 rm -f conftest.$ac_objext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17852 (eval $ac_compile) 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_c_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 #define _LARGEFILE_SOURCE 1
17895 rm -f conftest.$ac_objext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17897 (eval $ac_compile) 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag"
17905 || test ! -s conftest.err'
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); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_cv_sys_largefile_source=1; break
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17927 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17928 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17929 if test "$ac_cv_sys_largefile_source" != no; then
17931 cat >>confdefs.h <<_ACEOF
17932 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17938 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17939 # in glibc 2.1.3, but that breaks too many other things.
17940 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17941 echo "$as_me:$LINENO: checking for fseeko" >&5
17942 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17943 if test "${ac_cv_func_fseeko+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17956 return fseeko && fseeko (stdin, 0, 0);
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963 (eval $ac_link) 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_c_werror_flag"
17971 || test ! -s conftest.err'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest$ac_exeext'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_cv_func_fseeko=yes
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 ac_cv_func_fseeko=no
17990 rm -f conftest.err conftest.$ac_objext \
17991 conftest$ac_exeext conftest.$ac_ext
17993 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17994 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17995 if test $ac_cv_func_fseeko = yes; then
17997 cat >>confdefs.h <<\_ACEOF
17998 #define HAVE_FSEEKO 1
18007 # For each platform, we need to know about any special compile and link
18008 # libraries, and whether the normal C function names are thread-safe.
18009 # See the comment at the top of src/port/thread.c for more information.
18010 # WIN32 doesn't need the pthread tests; it always uses threads
18011 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18017 ac_cpp='$CPP $CPPFLAGS'
18018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18024 # We used to check for pthread.h first, but this fails if pthread.h
18025 # requires special compiler flags (e.g. on True64 or Sequent).
18026 # It gets checked for in the link test anyway.
18028 # First of all, check if the user has set any of the PTHREAD_LIBS,
18029 # etcetera environment variables, and if threads linking works using
18031 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18032 save_CFLAGS="$CFLAGS"
18033 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18035 LIBS="$PTHREAD_LIBS $LIBS"
18036 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18037 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 /* Override any gcc2 internal prototype to avoid an error. */
18049 /* We use char because int might match the return type of a gcc2
18050 builtin and then its argument prototype would still apply. */
18051 char pthread_join ();
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062 (eval $ac_link) 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_c_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest$ac_exeext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18088 rm -f conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18091 echo "${ECHO_T}$acx_pthread_ok" >&6
18092 if test x"$acx_pthread_ok" = xno; then
18097 CFLAGS="$save_CFLAGS"
18100 # We must check for the threads library under a number of different
18101 # names; the ordering is very important because some systems
18102 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18103 # libraries is broken (non-POSIX).
18105 # Create a list of thread flags to try. Items starting with a "-" are
18106 # C compiler flags, and other items are library names, except for "none"
18107 # which indicates that we try without any flags at all, and "pthread-config"
18108 # which is a program returning the flags for the Pth emulation library.
18110 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18112 # The ordering *is* (sometimes) important. Some notes on the
18113 # individual items follow:
18115 # pthreads: AIX (must check this before -lpthread)
18116 # none: in case threads are in libc; should be tried before -Kthread and
18117 # other compiler flags to prevent continual compiler warnings
18118 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18119 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18120 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18121 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18122 # -pthreads: Solaris/gcc
18123 # -mthreads: Mingw32/gcc, Lynx/gcc
18124 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18125 # doesn't hurt to check since this sometimes defines pthreads too;
18126 # also defines -D_REENTRANT)
18127 # pthread: Linux, etcetera
18128 # --thread-safe: KAI C++
18129 # pthread-config: use pthread-config program (for GNU Pth library)
18131 case "${host_cpu}-${host_os}" in
18134 # On Solaris (at least, for some versions), libc contains stubbed
18135 # (non-functional) versions of the pthreads routines, so link-based
18136 # tests will erroneously succeed. (We need to link with -pthread or
18137 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18138 # a function called by this macro, so we could check for that, but
18139 # who knows whether they'll stub that too in a future libc.) So,
18140 # we'll just look for -pthreads and -lpthread first:
18142 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18146 if test x"$acx_pthread_ok" = xno; then
18147 for flag in $acx_pthread_flags; do
18149 tryPTHREAD_CFLAGS=""
18153 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18154 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
18158 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18159 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
18160 tryPTHREAD_CFLAGS="$flag"
18164 # skip this if we already have flags defined, for PostgreSQL
18165 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18166 # Extract the first word of "pthread-config", so it can be a program name with args.
18167 set dummy pthread-config; ac_word=$2
18168 echo "$as_me:$LINENO: checking for $ac_word" >&5
18169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18170 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 if test -n "$acx_pthread_config"; then
18174 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18177 for as_dir in $PATH
18180 test -z "$as_dir" && as_dir=.
18181 for ac_exec_ext in '' $ac_executable_extensions; do
18182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18183 ac_cv_prog_acx_pthread_config="yes"
18184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18190 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18193 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18194 if test -n "$acx_pthread_config"; then
18195 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18196 echo "${ECHO_T}$acx_pthread_config" >&6
18198 echo "$as_me:$LINENO: result: no" >&5
18199 echo "${ECHO_T}no" >&6
18202 if test x"$acx_pthread_config" = xno; then continue; fi
18203 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18204 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18208 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18209 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
18210 tryPTHREAD_LIBS="-l$flag"
18215 save_CFLAGS="$CFLAGS"
18216 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18217 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18219 # Check for various functions. We must include pthread.h,
18220 # since some functions may be macros. (On the Sequent, we
18221 # need a special flag -Kthread to make this header compile.)
18222 # We check for pthread_join because it is in -lpthread on IRIX
18223 # while pthread_create is in libc. We check for pthread_attr_init
18224 # due to DEC craziness with -lpthreads. We check for
18225 # pthread_cleanup_push because it is one of the few pthread
18226 # functions on Solaris that doesn't have a non-functional libc stub.
18227 # We try pthread_create on general principles.
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 #include <pthread.h>
18238 pthread_t th; pthread_join(th, 0);
18239 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18240 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18247 (eval $ac_link) 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18274 rm -f conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18277 if test "x$acx_pthread_ok" = xyes; then
18278 # Don't use options that are ignored by the compiler.
18279 # We find them by checking stderror.
18280 cat >conftest.$ac_ext <<_ACEOF
18282 main (int argc, char **argv)
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18291 # we continue with more flags because Linux needs -lpthread
18292 # for libpq builds on PostgreSQL. The test above only
18293 # tests for building binaries, not shared libraries.
18294 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18295 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18296 else acx_pthread_ok=no
18301 CFLAGS="$save_CFLAGS"
18303 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18304 echo "${ECHO_T}$acx_pthread_ok" >&6
18308 # Various other checks:
18309 if test "x$acx_pthread_ok" = xyes; then
18311 LIBS="$PTHREAD_LIBS $LIBS"
18312 save_CFLAGS="$CFLAGS"
18313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18315 # Detect AIX lossage: threads are created detached by default
18316 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18317 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18318 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
18319 cat >conftest.$ac_ext <<_ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18325 #include <pthread.h>
18329 int attr=PTHREAD_CREATE_JOINABLE;
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336 (eval $ac_link) 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_c_werror_flag"
18344 || test ! -s conftest.err'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; } &&
18350 { ac_try='test -s conftest$ac_exeext'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 ok=PTHREAD_CREATE_JOINABLE
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18363 rm -f conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18365 if test x"$ok" = xunknown; then
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <pthread.h>
18376 int attr=PTHREAD_CREATE_UNDETACHED;
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18383 (eval $ac_link) 2>conftest.er1
18385 grep -v '^ *+' conftest.er1 >conftest.err
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } &&
18390 { ac_try='test -z "$ac_c_werror_flag"
18391 || test ! -s conftest.err'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest$ac_exeext'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ok=PTHREAD_CREATE_UNDETACHED
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18410 rm -f conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18413 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18415 cat >>confdefs.h <<\_ACEOF
18416 #define PTHREAD_CREATE_JOINABLE $ok
18420 echo "$as_me:$LINENO: result: ${ok}" >&5
18421 echo "${ECHO_T}${ok}" >&6
18422 if test x"$ok" = xunknown; then
18423 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18424 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18427 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18428 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
18430 # We always add these in PostgreSQL
18431 # case "${host_cpu}-${host_os}" in
18432 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18433 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18435 echo "$as_me:$LINENO: result: ${flag}" >&5
18436 echo "${ECHO_T}${flag}" >&6
18437 if test "x$flag" != xno; then
18438 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18442 CFLAGS="$save_CFLAGS"
18444 # Supporting cc_r would require a special CC in all places that
18445 # use libpq, and that is ugly, so we don't do it. Users can still
18446 # define their compiler as cc_r to do thread builds of everything.
18447 # More AIX lossage: must compile with cc_r
18448 # Extract the first word of "cc_r", so it can be a program name with args.
18449 set dummy cc_r; ac_word=$2
18450 echo "$as_me:$LINENO: checking for $ac_word" >&5
18451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18452 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 if test -n "$PTHREAD_CC"; then
18456 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18459 for as_dir in $PATH
18462 test -z "$as_dir" && as_dir=.
18463 for ac_exec_ext in '' $ac_executable_extensions; do
18464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18465 ac_cv_prog_PTHREAD_CC="cc_r"
18466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18472 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18475 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18476 if test -n "$PTHREAD_CC"; then
18477 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18478 echo "${ECHO_T}$PTHREAD_CC" >&6
18480 echo "$as_me:$LINENO: result: no" >&5
18481 echo "${ECHO_T}no" >&6
18492 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18493 if test x"$acx_pthread_ok" = xyes; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_PTHREAD 1
18505 ac_cpp='$CPP $CPPFLAGS'
18506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18512 # Some platforms use these, so just defineed them. They can't hurt if they
18513 # are not supported.
18514 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18517 # At this point, we don't want to muck with the compiler name for threading.
18518 # Let's see who fails, perhaps AIX. 2004-04-23
18519 if test "$PTHREAD_CC" != "$CC"; then
18520 { { echo "$as_me:$LINENO: error:
18521 PostgreSQL does not support platforms that require a special compiler
18522 for thread safety." >&5
18523 echo "$as_me: error:
18524 PostgreSQL does not support platforms that require a special compiler
18525 for thread safety." >&2;}
18526 { (exit 1); exit 1; }; }
18529 if test "$THREAD_SUPPORT" = no; then
18530 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18531 This platform is known to not support thread-safe programs. For details,
18532 compile and run src/bin/pg_thread_test." >&5
18533 echo "$as_me: error: cannot enable threads on this platform
18534 This platform is known to not support thread-safe programs. For details,
18535 compile and run src/bin/pg_thread_test." >&2;}
18536 { (exit 1); exit 1; }; }
18539 # Check for *_r functions
18542 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18543 LIBS="$LIBS $PTHREAD_LIBS"
18545 if test "$PORTNAME" != "win32"; then
18546 if test "${ac_cv_header_pthread_h+set}" = set; then
18547 echo "$as_me:$LINENO: checking for pthread.h" >&5
18548 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18549 if test "${ac_cv_header_pthread_h+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18553 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18555 # Is the header compilable?
18556 echo "$as_me:$LINENO: checking pthread.h usability" >&5
18557 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
18558 cat >conftest.$ac_ext <<_ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 $ac_includes_default
18565 #include <pthread.h>
18567 rm -f conftest.$ac_objext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569 (eval $ac_compile) 2>conftest.er1
18571 grep -v '^ *+' conftest.er1 >conftest.err
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag"
18577 || test ! -s conftest.err'
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); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_header_compiler=yes
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_header_compiler=no
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18598 echo "${ECHO_T}$ac_header_compiler" >&6
18600 # Is the header present?
18601 echo "$as_me:$LINENO: checking pthread.h presence" >&5
18602 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
18603 cat >conftest.$ac_ext <<_ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 #include <pthread.h>
18611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18614 grep -v '^ *+' conftest.er1 >conftest.err
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } >/dev/null; then
18619 if test -s conftest.err; then
18620 ac_cpp_err=$ac_c_preproc_warn_flag
18621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18628 if test -z "$ac_cpp_err"; then
18629 ac_header_preproc=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_header_preproc=no
18636 rm -f conftest.err conftest.$ac_ext
18637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18638 echo "${ECHO_T}$ac_header_preproc" >&6
18640 # So? What about this header?
18641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18643 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18644 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18645 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18646 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18647 ac_header_preproc=yes
18650 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18651 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
18653 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18655 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18656 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
18657 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
18658 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18659 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18660 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18661 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18664 ## ---------------------------------------- ##
18665 ## Report this to pgsql-bugs@postgresql.org ##
18666 ## ---------------------------------------- ##
18669 sed "s/^/$as_me: WARNING: /" >&2
18672 echo "$as_me:$LINENO: checking for pthread.h" >&5
18673 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18674 if test "${ac_cv_header_pthread_h+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 ac_cv_header_pthread_h=$ac_header_preproc
18679 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18680 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18683 if test $ac_cv_header_pthread_h = yes; then
18686 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18687 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18688 { (exit 1); exit 1; }; }
18697 for ac_func in strerror_r getpwuid_r gethostbyname_r
18699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18700 echo "$as_me:$LINENO: checking for $ac_func" >&5
18701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18702 if eval "test \"\${$as_ac_var+set}\" = set"; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 cat >conftest.$ac_ext <<_ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18713 #define $ac_func innocuous_$ac_func
18715 /* System header to define __stub macros and hopefully few prototypes,
18716 which can conflict with char $ac_func (); below.
18717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18718 <limits.h> exists even on freestanding compilers. */
18721 # include <limits.h>
18723 # include <assert.h>
18728 /* Override any gcc2 internal prototype to avoid an error. */
18733 /* We use char because int might match the return type of a gcc2
18734 builtin and then its argument prototype would still apply. */
18736 /* The GNU C library defines this for functions which it implements
18737 to always fail with ENOSYS. Some functions are actually named
18738 something starting with __ and the normal name is an alias. */
18739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18742 char (*f) () = $ac_func;
18751 return f != $ac_func;
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18758 (eval $ac_link) 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
18765 { ac_try='test -z "$ac_c_werror_flag"
18766 || test ! -s conftest.err'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; } &&
18772 { ac_try='test -s conftest$ac_exeext'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 eval "$as_ac_var=yes"
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 eval "$as_ac_var=no"
18785 rm -f conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18790 if test `eval echo '${'$as_ac_var'}'` = yes; then
18791 cat >>confdefs.h <<_ACEOF
18792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18799 # Do test here with the proper thread flags
18800 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18801 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
18802 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 #include <sys/types.h>
18817 struct passwd *space;
18820 struct passwd **result;
18821 getpwuid_r(uid, space, buf, bufsize, result);
18826 rm -f conftest.$ac_objext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18828 (eval $ac_compile) 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -z "$ac_c_werror_flag"
18836 || test ! -s conftest.err'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest.$ac_objext'
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 pgac_func_getpwuid_r_5arg=yes
18850 echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18853 pgac_func_getpwuid_r_5arg=no
18855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18857 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18858 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
18859 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
18861 cat >>confdefs.h <<\_ACEOF
18862 #define GETPWUID_R_5ARG
18867 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18868 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
18869 if test "${pgac_func_strerror_r_int+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #include <string.h>
18883 int strerror_r(int, char *, size_t);
18885 /* Older AIX has 'int' for the third argument so we don't test the args. */
18892 rm -f conftest.$ac_objext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18894 (eval $ac_compile) 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try='test -z "$ac_c_werror_flag"
18902 || test ! -s conftest.err'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try='test -s conftest.$ac_objext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 pgac_func_strerror_r_int=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 pgac_func_strerror_r_int=no
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18924 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
18925 if test x"$pgac_func_strerror_r_int" = xyes ; then
18927 cat >>confdefs.h <<\_ACEOF
18928 #define STRERROR_R_INT
18938 # do not use values from template file
18947 # We can test for libldap_r only after we know PTHREAD_LIBS
18948 if test "$with_ldap" = yes ; then
18950 if test "$PORTNAME" != "win32"; then
18952 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18953 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
18954 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_check_lib_save_LIBS=$LIBS
18958 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18966 /* Override any gcc2 internal prototype to avoid an error. */
18970 /* We use char because int might match the return type of a gcc2
18971 builtin and then its argument prototype would still apply. */
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983 (eval $ac_link) 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest$ac_exeext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 ac_cv_lib_ldap_ldap_bind=yes
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ac_cv_lib_ldap_ldap_bind=no
19010 rm -f conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012 LIBS=$ac_check_lib_save_LIBS
19014 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19015 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
19016 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_LIBLDAP 1
19021 LIBS="-lldap $LIBS"
19024 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19025 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19026 { (exit 1); exit 1; }; }
19029 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19030 if test "$enable_thread_safety" = yes; then
19031 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19033 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19034 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
19035 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 ac_check_lib_save_LIBS=$LIBS
19039 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19047 /* Override any gcc2 internal prototype to avoid an error. */
19051 /* We use char because int might match the return type of a gcc2
19052 builtin and then its argument prototype would still apply. */
19053 char ldap_simple_bind ();
19057 ldap_simple_bind ();
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064 (eval $ac_link) 2>conftest.er1
19066 grep -v '^ *+' conftest.er1 >conftest.err
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
19071 { ac_try='test -z "$ac_c_werror_flag"
19072 || test ! -s conftest.err'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest$ac_exeext'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19086 echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19089 ac_cv_lib_ldap_r_ldap_simple_bind=no
19091 rm -f conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_check_lib_save_LIBS
19095 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19096 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
19097 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099 #define HAVE_LIBLDAP_R 1
19102 LIBS="-lldap_r $LIBS"
19105 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19106 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19107 { (exit 1); exit 1; }; }
19110 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19112 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19116 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19117 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
19118 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 ac_check_lib_save_LIBS=$LIBS
19122 LIBS="-lwldap32 $LIBS"
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19130 /* Override any gcc2 internal prototype to avoid an error. */
19134 /* We use char because int might match the return type of a gcc2
19135 builtin and then its argument prototype would still apply. */
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag"
19155 || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest$ac_exeext'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_lib_wldap32_ldap_bind=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_lib_wldap32_ldap_bind=no
19174 rm -f conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19179 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
19180 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19181 cat >>confdefs.h <<_ACEOF
19182 #define HAVE_LIBWLDAP32 1
19185 LIBS="-lwldap32 $LIBS"
19188 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19189 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19190 { (exit 1); exit 1; }; }
19193 LDAP_LIBS_FE="-lwldap32"
19194 LDAP_LIBS_BE="-lwldap32"
19202 # This test makes sure that run tests work at all. Sometimes a shared
19203 # library is found by the linker, but the runtime linker can't find it.
19204 # This check should come after all modifications of compiler or linker
19205 # variables, and before any other run tests.
19206 echo "$as_me:$LINENO: checking test program" >&5
19207 echo $ECHO_N "checking test program... $ECHO_C" >&6
19208 if test "$cross_compiling" = yes; then
19209 echo "$as_me:$LINENO: result: cross-compiling" >&5
19210 echo "${ECHO_T}cross-compiling" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 int main() { return 0; }
19220 rm -f conftest$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222 (eval $ac_link) 2>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 echo "$as_me:$LINENO: result: ok" >&5
19232 echo "${ECHO_T}ok" >&6
19234 echo "$as_me: program exited with status $ac_status" >&5
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ( exit $ac_status )
19239 echo "$as_me:$LINENO: result: failed" >&5
19240 echo "${ECHO_T}failed" >&6
19241 { { echo "$as_me:$LINENO: error:
19242 Could not execute a simple test program. This may be a problem
19243 related to locating shared libraries. Check the file 'config.log'
19244 for the exact reason." >&5
19245 echo "$as_me: error:
19246 Could not execute a simple test program. This may be a problem
19247 related to locating shared libraries. Check the file 'config.log'
19248 for the exact reason." >&2;}
19249 { (exit 1); exit 1; }; }
19251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19254 # --------------------
19255 # Run tests below here
19256 # --------------------
19258 # Force use of our snprintf if system's doesn't do arg control
19259 # See comment above at snprintf test for details.
19260 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19261 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19262 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
19263 if test "${pgac_cv_printf_arg_control+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 if test "$cross_compiling" = yes; then
19267 pgac_cv_printf_arg_control=cross
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 #include <string.h>
19282 /* can it swap arguments? */
19283 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19284 if (strcmp(buf, "4 3") != 0)
19289 rm -f conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291 (eval $ac_link) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 pgac_cv_printf_arg_control=yes
19302 echo "$as_me: program exited with status $ac_status" >&5
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ( exit $ac_status )
19307 pgac_cv_printf_arg_control=no
19309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19313 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19314 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
19316 if test $pgac_cv_printf_arg_control != yes ; then
19317 pgac_need_repl_snprintf=yes
19323 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19324 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
19325 if test "${pgac_cv_type_long_int_64+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 if test "$cross_compiling" = yes; then
19329 # If cross-compiling, check the size reported by the compiler and
19330 # trust that the arithmetic works.
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19341 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19348 rm -f conftest.$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19352 grep -v '^ *+' conftest.er1 >conftest.err
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 pgac_cv_type_long_int_64=yes
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 pgac_cv_type_long_int_64=no
19377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 typedef long int ac_int64;
19388 * These are globals to discourage the compiler from folding all the
19389 * arithmetic tests down to compile-time constants.
19391 ac_int64 a = 20000001;
19392 ac_int64 b = 40000005;
19394 int does_int64_work()
19398 if (sizeof(ac_int64) != 8)
19399 return 0; /* definitely not the right size */
19401 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19409 exit(! does_int64_work());
19412 rm -f conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 pgac_cv_type_long_int_64=yes
19425 echo "$as_me: program exited with status $ac_status" >&5
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ( exit $ac_status )
19430 pgac_cv_type_long_int_64=no
19432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19435 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19436 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
19438 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19439 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_LONG_INT_64
19448 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19449 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19450 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
19451 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 if test "$cross_compiling" = yes; then
19455 # If cross-compiling, check the size reported by the compiler and
19456 # trust that the arithmetic works.
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19467 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476 (eval $ac_compile) 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 pgac_cv_type_long_long_int_64=yes
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 pgac_cv_type_long_long_int_64=no
19503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 typedef long long int ac_int64;
19514 * These are globals to discourage the compiler from folding all the
19515 * arithmetic tests down to compile-time constants.
19517 ac_int64 a = 20000001;
19518 ac_int64 b = 40000005;
19520 int does_int64_work()
19524 if (sizeof(ac_int64) != 8)
19525 return 0; /* definitely not the right size */
19527 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19535 exit(! does_int64_work());
19538 rm -f conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 pgac_cv_type_long_long_int_64=yes
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ( exit $ac_status )
19556 pgac_cv_type_long_long_int_64=no
19558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19561 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19562 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
19564 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19565 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_LONG_LONG_INT_64
19577 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19578 cat >conftest.$ac_ext <<_ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19585 #define INT64CONST(x) x##LL
19586 long long int foo = INT64CONST(0x1234567890123456);
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>conftest.er1
19600 grep -v '^ *+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_c_werror_flag"
19606 || test ! -s conftest.err'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest.$ac_objext'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19619 cat >>confdefs.h <<\_ACEOF
19620 #define HAVE_LL_CONSTANTS 1
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19632 # If we found "long int" is 64 bits, assume snprintf handles it. If
19633 # we found we need to use "long long int", better check. We cope with
19634 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
19635 # work, fall back to our own snprintf emulation (which we know uses %lld).
19637 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19638 if test $pgac_need_repl_snprintf = no; then
19639 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19640 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
19641 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 for pgac_format in '%lld' '%qd' '%I64d'; do
19645 if test "$cross_compiling" = yes; then
19646 pgac_cv_snprintf_long_long_int_format=cross; break
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19655 typedef long long int ac_int64;
19656 #define INT64_FORMAT "$pgac_format"
19658 ac_int64 a = 20000001;
19659 ac_int64 b = 40000005;
19661 int does_int64_snprintf_work()
19666 if (sizeof(ac_int64) != 8)
19667 return 0; /* doesn't look like the right size */
19670 snprintf(buf, 100, INT64_FORMAT, c);
19671 if (strcmp(buf, "800000140000005") != 0)
19672 return 0; /* either multiply or snprintf is busted */
19676 exit(! does_int64_snprintf_work());
19679 rm -f conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
19692 echo "$as_me: program exited with status $ac_status" >&5
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19702 LONG_LONG_INT_FORMAT=''
19704 case $pgac_cv_snprintf_long_long_int_format in
19705 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19706 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
19707 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19708 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
19709 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
19710 *) echo "$as_me:$LINENO: result: none" >&5
19711 echo "${ECHO_T}none" >&6;;
19713 if test "$LONG_LONG_INT_FORMAT" = ""; then
19714 # Force usage of our own snprintf, since system snprintf is broken
19715 pgac_need_repl_snprintf=yes
19716 LONG_LONG_INT_FORMAT='%lld'
19719 # Here if we previously decided we needed to use our own snprintf
19720 LONG_LONG_INT_FORMAT='%lld'
19722 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19723 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
19724 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
19726 # Here if we are not using 'long long int' at all
19727 INT64_FORMAT='"%ld"'
19728 UINT64_FORMAT='"%lu"'
19732 cat >>confdefs.h <<_ACEOF
19733 #define INT64_FORMAT $INT64_FORMAT
19738 cat >>confdefs.h <<_ACEOF
19739 #define UINT64_FORMAT $UINT64_FORMAT
19743 # Now we have checked all the reasons to replace snprintf
19744 if test $pgac_need_repl_snprintf = yes; then
19746 cat >>confdefs.h <<\_ACEOF
19747 #define USE_REPL_SNPRINTF 1
19751 "snprintf.$ac_objext" | \
19752 *" snprintf.$ac_objext" | \
19753 "snprintf.$ac_objext "* | \
19754 *" snprintf.$ac_objext "* ) ;;
19755 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
19760 # Need a #define for the size of Datum (unsigned long)
19761 echo "$as_me:$LINENO: checking for unsigned long" >&5
19762 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19763 if test "${ac_cv_type_unsigned_long+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 $ac_includes_default
19776 if ((unsigned long *) 0)
19778 if (sizeof (unsigned long))
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag"
19794 || test ! -s conftest.err'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_cv_type_unsigned_long=yes
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19811 ac_cv_type_unsigned_long=no
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19816 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19818 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19819 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19820 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 if test "$ac_cv_type_unsigned_long" = yes; then
19824 # The cast to unsigned long works around a bug in the HP C Compiler
19825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19827 # This bug is HP SR number 8606223364.
19828 if test "$cross_compiling" = yes; then
19829 # Depending upon the size, compute the lo and hi bounds.
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 $ac_includes_default
19840 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19847 rm -f conftest.$ac_objext
19848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19849 (eval $ac_compile) 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -z "$ac_c_werror_flag"
19857 || test ! -s conftest.err'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 $ac_includes_default
19881 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19888 rm -f conftest.$ac_objext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19890 (eval $ac_compile) 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
19897 { ac_try='test -z "$ac_c_werror_flag"
19898 || test ! -s conftest.err'
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 ac_hi=$ac_mid; break
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_lo=`expr $ac_mid + 1`
19916 if test $ac_lo -le $ac_mid; then
19920 ac_mid=`expr 2 '*' $ac_mid + 1`
19922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 $ac_includes_default
19938 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19945 rm -f conftest.$ac_objext
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19947 (eval $ac_compile) 2>conftest.er1
19949 grep -v '^ *+' conftest.er1 >conftest.err
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try='test -z "$ac_c_werror_flag"
19955 || test ! -s conftest.err'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19979 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19986 rm -f conftest.$ac_objext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19988 (eval $ac_compile) 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 ac_lo=$ac_mid; break
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 ac_hi=`expr '(' $ac_mid ')' - 1`
20014 if test $ac_mid -le $ac_hi; then
20018 ac_mid=`expr 2 '*' $ac_mid`
20020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 # Binary search between lo and hi bounds.
20032 while test "x$ac_lo" != "x$ac_hi"; do
20033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 $ac_includes_default
20044 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
20051 rm -f conftest.$ac_objext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053 (eval $ac_compile) 2>conftest.er1
20055 grep -v '^ *+' conftest.er1 >conftest.err
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -z "$ac_c_werror_flag"
20061 || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_lo=`expr '(' $ac_mid ')' + 1`
20080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20083 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20085 See \`config.log' for more details." >&5
20086 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20087 See \`config.log' for more details." >&2;}
20088 { (exit 1); exit 1; }; } ;;
20091 if test "$cross_compiling" = yes; then
20092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20093 See \`config.log' for more details." >&5
20094 echo "$as_me: error: cannot run test program while cross compiling
20095 See \`config.log' for more details." >&2;}
20096 { (exit 1); exit 1; }; }
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 $ac_includes_default
20105 long longval () { return (long) (sizeof (unsigned long)); }
20106 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
20108 #include <stdlib.h>
20113 FILE *f = fopen ("conftest.val", "w");
20116 if (((long) (sizeof (unsigned long))) < 0)
20118 long i = longval ();
20119 if (i != ((long) (sizeof (unsigned long))))
20121 fprintf (f, "%ld\n", i);
20125 unsigned long i = ulongval ();
20126 if (i != ((long) (sizeof (unsigned long))))
20128 fprintf (f, "%lu\n", i);
20130 exit (ferror (f) || fclose (f) != 0);
20136 rm -f conftest$ac_exeext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20138 (eval $ac_link) 2>&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20149 echo "$as_me: program exited with status $ac_status" >&5
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ( exit $ac_status )
20154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20155 See \`config.log' for more details." >&5
20156 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20157 See \`config.log' for more details." >&2;}
20158 { (exit 1); exit 1; }; }
20160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20165 ac_cv_sizeof_unsigned_long=0
20168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20169 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20170 cat >>confdefs.h <<_ACEOF
20171 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20176 # And one for the size of size_t (enables tweaks for > 32bit address space)
20177 echo "$as_me:$LINENO: checking for size_t" >&5
20178 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20179 if test "${ac_cv_type_size_t+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 $ac_includes_default
20194 if (sizeof (size_t))
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_cv_type_size_t=yes
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_cv_type_size_t=no
20229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20232 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20234 echo "$as_me:$LINENO: checking size of size_t" >&5
20235 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20236 if test "${ac_cv_sizeof_size_t+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 if test "$ac_cv_type_size_t" = yes; then
20240 # The cast to unsigned long works around a bug in the HP C Compiler
20241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20243 # This bug is HP SR number 8606223364.
20244 if test "$cross_compiling" = yes; then
20245 # Depending upon the size, compute the lo and hi bounds.
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20256 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag"
20273 || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 $ac_includes_default
20297 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20304 rm -f conftest.$ac_objext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20306 (eval $ac_compile) 2>conftest.er1
20308 grep -v '^ *+' conftest.er1 >conftest.err
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_c_werror_flag"
20314 || test ! -s conftest.err'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest.$ac_objext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_hi=$ac_mid; break
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_lo=`expr $ac_mid + 1`
20332 if test $ac_lo -le $ac_mid; then
20336 ac_mid=`expr 2 '*' $ac_mid + 1`
20338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 $ac_includes_default
20354 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 $ac_includes_default
20395 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_lo=$ac_mid; break
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_hi=`expr '(' $ac_mid ')' - 1`
20430 if test $ac_mid -le $ac_hi; then
20434 ac_mid=`expr 2 '*' $ac_mid`
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20447 # Binary search between lo and hi bounds.
20448 while test "x$ac_lo" != "x$ac_hi"; do
20449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 $ac_includes_default
20460 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20467 rm -f conftest.$ac_objext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469 (eval $ac_compile) 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag"
20477 || test ! -s conftest.err'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest.$ac_objext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_lo=`expr '(' $ac_mid ')' + 1`
20496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20499 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20501 See \`config.log' for more details." >&5
20502 echo "$as_me: error: cannot compute sizeof (size_t), 77
20503 See \`config.log' for more details." >&2;}
20504 { (exit 1); exit 1; }; } ;;
20507 if test "$cross_compiling" = yes; then
20508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20509 See \`config.log' for more details." >&5
20510 echo "$as_me: error: cannot run test program while cross compiling
20511 See \`config.log' for more details." >&2;}
20512 { (exit 1); exit 1; }; }
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 $ac_includes_default
20521 long longval () { return (long) (sizeof (size_t)); }
20522 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20524 #include <stdlib.h>
20529 FILE *f = fopen ("conftest.val", "w");
20532 if (((long) (sizeof (size_t))) < 0)
20534 long i = longval ();
20535 if (i != ((long) (sizeof (size_t))))
20537 fprintf (f, "%ld\n", i);
20541 unsigned long i = ulongval ();
20542 if (i != ((long) (sizeof (size_t))))
20544 fprintf (f, "%lu\n", i);
20546 exit (ferror (f) || fclose (f) != 0);
20552 rm -f conftest$ac_exeext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20554 (eval $ac_link) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_cv_sizeof_size_t=`cat conftest.val`
20565 echo "$as_me: program exited with status $ac_status" >&5
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ( exit $ac_status )
20570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20571 See \`config.log' for more details." >&5
20572 echo "$as_me: error: cannot compute sizeof (size_t), 77
20573 See \`config.log' for more details." >&2;}
20574 { (exit 1); exit 1; }; }
20576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20581 ac_cv_sizeof_size_t=0
20584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20585 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20586 cat >>confdefs.h <<_ACEOF
20587 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20592 # Determine memory alignment requirements for the basic C data types.
20594 echo "$as_me:$LINENO: checking for short" >&5
20595 echo $ECHO_N "checking for short... $ECHO_C" >&6
20596 if test "${ac_cv_type_short+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20611 if (sizeof (short))
20617 rm -f conftest.$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619 (eval $ac_compile) 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_cv_type_short=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_cv_type_short=no
20646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20648 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20649 echo "${ECHO_T}$ac_cv_type_short" >&6
20651 echo "$as_me:$LINENO: checking alignment of short" >&5
20652 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
20653 if test "${pgac_cv_alignof_short+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 if test "$ac_cv_type_short" = yes; then
20657 if test "$cross_compiling" = yes; then
20658 # Depending upon the size, compute the lo and hi bounds.
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 $ac_includes_default
20666 struct { char filler; short field; } pgac_struct;
20670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20677 rm -f conftest.$ac_objext
20678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679 (eval $ac_compile) 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag"
20687 || test ! -s conftest.err'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; } &&
20693 { ac_try='test -s conftest.$ac_objext'
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 $ac_includes_default
20708 struct { char filler; short field; } pgac_struct;
20712 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20719 rm -f conftest.$ac_objext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721 (eval $ac_compile) 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag"
20729 || test ! -s conftest.err'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; } &&
20735 { ac_try='test -s conftest.$ac_objext'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20741 ac_hi=$ac_mid; break
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20746 ac_lo=`expr $ac_mid + 1`
20747 if test $ac_lo -le $ac_mid; then
20751 ac_mid=`expr 2 '*' $ac_mid + 1`
20753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 cat >conftest.$ac_ext <<_ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 $ac_includes_default
20766 struct { char filler; short field; } pgac_struct;
20770 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20777 rm -f conftest.$ac_objext
20778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20779 (eval $ac_compile) 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
20786 { ac_try='test -z "$ac_c_werror_flag"
20787 || test ! -s conftest.err'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; } &&
20793 { ac_try='test -s conftest.$ac_objext'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 $ac_includes_default
20808 struct { char filler; short field; } pgac_struct;
20812 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821 (eval $ac_compile) 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_c_werror_flag"
20829 || test ! -s conftest.err'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; } &&
20835 { ac_try='test -s conftest.$ac_objext'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 ac_lo=$ac_mid; break
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_hi=`expr '(' $ac_mid ')' - 1`
20847 if test $ac_mid -le $ac_hi; then
20851 ac_mid=`expr 2 '*' $ac_mid`
20853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 # Binary search between lo and hi bounds.
20865 while test "x$ac_lo" != "x$ac_hi"; do
20866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 struct { char filler; short field; } pgac_struct;
20878 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20885 rm -f conftest.$ac_objext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20887 (eval $ac_compile) 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
20894 { ac_try='test -z "$ac_c_werror_flag"
20895 || test ! -s conftest.err'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest.$ac_objext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ac_lo=`expr '(' $ac_mid ')' + 1`
20914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20917 ?*) pgac_cv_alignof_short=$ac_lo;;
20918 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20919 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20920 { (exit 1); exit 1; }; } ;;
20923 if test "$cross_compiling" = yes; then
20924 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20925 See \`config.log' for more details." >&5
20926 echo "$as_me: error: cannot run test program while cross compiling
20927 See \`config.log' for more details." >&2;}
20928 { (exit 1); exit 1; }; }
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 $ac_includes_default
20937 struct { char filler; short field; } pgac_struct;
20938 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20939 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20941 #include <stdlib.h>
20946 FILE *f = fopen ("conftest.val", "w");
20949 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20951 long i = longval ();
20952 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20954 fprintf (f, "%ld\n", i);
20958 unsigned long i = ulongval ();
20959 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20961 fprintf (f, "%lu\n", i);
20963 exit (ferror (f) || fclose (f) != 0);
20969 rm -f conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971 (eval $ac_link) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 pgac_cv_alignof_short=`cat conftest.val`
20982 echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ( exit $ac_status )
20987 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20988 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20989 { (exit 1); exit 1; }; }
20991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996 pgac_cv_alignof_short=0
20999 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
21000 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
21001 cat >>confdefs.h <<_ACEOF
21002 #define ALIGNOF_SHORT $pgac_cv_alignof_short
21006 echo "$as_me:$LINENO: checking for int" >&5
21007 echo $ECHO_N "checking for int... $ECHO_C" >&6
21008 if test "${ac_cv_type_int+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 $ac_includes_default
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
21038 { ac_try='test -z "$ac_c_werror_flag"
21039 || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21060 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21061 echo "${ECHO_T}$ac_cv_type_int" >&6
21063 echo "$as_me:$LINENO: checking alignment of int" >&5
21064 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
21065 if test "${pgac_cv_alignof_int+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 if test "$ac_cv_type_int" = yes; then
21069 if test "$cross_compiling" = yes; then
21070 # Depending upon the size, compute the lo and hi bounds.
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 $ac_includes_default
21078 struct { char filler; int field; } pgac_struct;
21082 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
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 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 struct { char filler; int field; } pgac_struct;
21124 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21131 rm -f conftest.$ac_objext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133 (eval $ac_compile) 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_hi=$ac_mid; break
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_lo=`expr $ac_mid + 1`
21159 if test $ac_lo -le $ac_mid; then
21163 ac_mid=`expr 2 '*' $ac_mid + 1`
21165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 $ac_includes_default
21178 struct { char filler; int field; } pgac_struct;
21182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21189 rm -f conftest.$ac_objext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21191 (eval $ac_compile) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21213 cat >conftest.$ac_ext <<_ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21220 struct { char filler; int field; } pgac_struct;
21224 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233 (eval $ac_compile) 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
21240 { ac_try='test -z "$ac_c_werror_flag"
21241 || test ! -s conftest.err'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest.$ac_objext'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_lo=$ac_mid; break
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_hi=`expr '(' $ac_mid ')' - 1`
21259 if test $ac_mid -le $ac_hi; then
21263 ac_mid=`expr 2 '*' $ac_mid`
21265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 # Binary search between lo and hi bounds.
21277 while test "x$ac_lo" != "x$ac_hi"; do
21278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 struct { char filler; int field; } pgac_struct;
21290 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_lo=`expr '(' $ac_mid ')' + 1`
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21329 ?*) pgac_cv_alignof_int=$ac_lo;;
21330 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21331 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21332 { (exit 1); exit 1; }; } ;;
21335 if test "$cross_compiling" = yes; then
21336 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21337 See \`config.log' for more details." >&5
21338 echo "$as_me: error: cannot run test program while cross compiling
21339 See \`config.log' for more details." >&2;}
21340 { (exit 1); exit 1; }; }
21342 cat >conftest.$ac_ext <<_ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 $ac_includes_default
21349 struct { char filler; int field; } pgac_struct;
21350 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21351 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21353 #include <stdlib.h>
21358 FILE *f = fopen ("conftest.val", "w");
21361 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21363 long i = longval ();
21364 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21366 fprintf (f, "%ld\n", i);
21370 unsigned long i = ulongval ();
21371 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21373 fprintf (f, "%lu\n", i);
21375 exit (ferror (f) || fclose (f) != 0);
21381 rm -f conftest$ac_exeext
21382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21383 (eval $ac_link) 2>&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }; }; then
21392 pgac_cv_alignof_int=`cat conftest.val`
21394 echo "$as_me: program exited with status $ac_status" >&5
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ( exit $ac_status )
21399 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21400 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21401 { (exit 1); exit 1; }; }
21403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21408 pgac_cv_alignof_int=0
21411 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
21412 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
21413 cat >>confdefs.h <<_ACEOF
21414 #define ALIGNOF_INT $pgac_cv_alignof_int
21418 echo "$as_me:$LINENO: checking for long" >&5
21419 echo $ECHO_N "checking for long... $ECHO_C" >&6
21420 if test "${ac_cv_type_long+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
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
21441 rm -f conftest.$ac_objext
21442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21443 (eval $ac_compile) 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try='test -z "$ac_c_werror_flag"
21451 || test ! -s conftest.err'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; } &&
21457 { ac_try='test -s conftest.$ac_objext'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_cv_type_long=yes
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21472 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21473 echo "${ECHO_T}$ac_cv_type_long" >&6
21475 echo "$as_me:$LINENO: checking alignment of long" >&5
21476 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
21477 if test "${pgac_cv_alignof_long+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 if test "$ac_cv_type_long" = yes; then
21481 if test "$cross_compiling" = yes; then
21482 # Depending upon the size, compute the lo and hi bounds.
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21489 $ac_includes_default
21490 struct { char filler; long field; } pgac_struct;
21494 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -z "$ac_c_werror_flag"
21511 || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 $ac_includes_default
21532 struct { char filler; long field; } pgac_struct;
21536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545 (eval $ac_compile) 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
21552 { ac_try='test -z "$ac_c_werror_flag"
21553 || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_hi=$ac_mid; break
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_lo=`expr $ac_mid + 1`
21571 if test $ac_lo -le $ac_mid; then
21575 ac_mid=`expr 2 '*' $ac_mid + 1`
21577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 struct { char filler; long field; } pgac_struct;
21594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21601 rm -f conftest.$ac_objext
21602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21603 (eval $ac_compile) 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } &&
21610 { ac_try='test -z "$ac_c_werror_flag"
21611 || test ! -s conftest.err'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; } &&
21617 { ac_try='test -s conftest.$ac_objext'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21625 cat >conftest.$ac_ext <<_ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631 $ac_includes_default
21632 struct { char filler; long field; } pgac_struct;
21636 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_lo=$ac_mid; break
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ac_hi=`expr '(' $ac_mid ')' - 1`
21671 if test $ac_mid -le $ac_hi; then
21675 ac_mid=`expr 2 '*' $ac_mid`
21677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 # Binary search between lo and hi bounds.
21689 while test "x$ac_lo" != "x$ac_hi"; do
21690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 $ac_includes_default
21698 struct { char filler; long field; } pgac_struct;
21702 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21709 rm -f conftest.$ac_objext
21710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21711 (eval $ac_compile) 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } &&
21718 { ac_try='test -z "$ac_c_werror_flag"
21719 || test ! -s conftest.err'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; } &&
21725 { ac_try='test -s conftest.$ac_objext'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_lo=`expr '(' $ac_mid ')' + 1`
21738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21741 ?*) pgac_cv_alignof_long=$ac_lo;;
21742 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21743 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21744 { (exit 1); exit 1; }; } ;;
21747 if test "$cross_compiling" = yes; then
21748 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21749 See \`config.log' for more details." >&5
21750 echo "$as_me: error: cannot run test program while cross compiling
21751 See \`config.log' for more details." >&2;}
21752 { (exit 1); exit 1; }; }
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 struct { char filler; long field; } pgac_struct;
21762 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21763 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21765 #include <stdlib.h>
21770 FILE *f = fopen ("conftest.val", "w");
21773 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21775 long i = longval ();
21776 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21778 fprintf (f, "%ld\n", i);
21782 unsigned long i = ulongval ();
21783 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21785 fprintf (f, "%lu\n", i);
21787 exit (ferror (f) || fclose (f) != 0);
21793 rm -f conftest$ac_exeext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21795 (eval $ac_link) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 pgac_cv_alignof_long=`cat conftest.val`
21806 echo "$as_me: program exited with status $ac_status" >&5
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ( exit $ac_status )
21811 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21812 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21813 { (exit 1); exit 1; }; }
21815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21820 pgac_cv_alignof_long=0
21823 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
21824 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
21825 cat >>confdefs.h <<_ACEOF
21826 #define ALIGNOF_LONG $pgac_cv_alignof_long
21830 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
21831 echo "$as_me:$LINENO: checking for long long int" >&5
21832 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
21833 if test "${ac_cv_type_long_long_int+set}" = set; then
21834 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 $ac_includes_default
21846 if ((long long int *) 0)
21848 if (sizeof (long long int))
21854 rm -f conftest.$ac_objext
21855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21856 (eval $ac_compile) 2>conftest.er1
21858 grep -v '^ *+' conftest.er1 >conftest.err
21860 cat conftest.err >&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } &&
21863 { ac_try='test -z "$ac_c_werror_flag"
21864 || test ! -s conftest.err'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; } &&
21870 { ac_try='test -s conftest.$ac_objext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 ac_cv_type_long_long_int=yes
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_cv_type_long_long_int=no
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21885 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21886 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
21888 echo "$as_me:$LINENO: checking alignment of long long int" >&5
21889 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
21890 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 if test "$ac_cv_type_long_long_int" = yes; then
21894 if test "$cross_compiling" = yes; then
21895 # Depending upon the size, compute the lo and hi bounds.
21896 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 $ac_includes_default
21903 struct { char filler; long long int field; } pgac_struct;
21907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21914 rm -f conftest.$ac_objext
21915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21916 (eval $ac_compile) 2>conftest.er1
21918 grep -v '^ *+' conftest.er1 >conftest.err
21920 cat conftest.err >&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } &&
21923 { ac_try='test -z "$ac_c_werror_flag"
21924 || test ! -s conftest.err'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; } &&
21930 { ac_try='test -s conftest.$ac_objext'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; }; then
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 $ac_includes_default
21945 struct { char filler; long long int field; } pgac_struct;
21949 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21956 rm -f conftest.$ac_objext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958 (eval $ac_compile) 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
21965 { ac_try='test -z "$ac_c_werror_flag"
21966 || test ! -s conftest.err'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; } &&
21972 { ac_try='test -s conftest.$ac_objext'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }; then
21978 ac_hi=$ac_mid; break
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_lo=`expr $ac_mid + 1`
21984 if test $ac_lo -le $ac_mid; then
21988 ac_mid=`expr 2 '*' $ac_mid + 1`
21990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 $ac_includes_default
22003 struct { char filler; long long int field; } pgac_struct;
22007 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22014 rm -f conftest.$ac_objext
22015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22016 (eval $ac_compile) 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
22023 { ac_try='test -z "$ac_c_werror_flag"
22024 || test ! -s conftest.err'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; } &&
22030 { ac_try='test -s conftest.$ac_objext'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 $ac_includes_default
22045 struct { char filler; long long int field; } pgac_struct;
22049 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22056 rm -f conftest.$ac_objext
22057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22058 (eval $ac_compile) 2>conftest.er1
22060 grep -v '^ *+' conftest.er1 >conftest.err
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } &&
22065 { ac_try='test -z "$ac_c_werror_flag"
22066 || test ! -s conftest.err'
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; } &&
22072 { ac_try='test -s conftest.$ac_objext'
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; }; then
22078 ac_lo=$ac_mid; break
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ac_hi=`expr '(' $ac_mid ')' - 1`
22084 if test $ac_mid -le $ac_hi; then
22088 ac_mid=`expr 2 '*' $ac_mid`
22090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22101 # Binary search between lo and hi bounds.
22102 while test "x$ac_lo" != "x$ac_hi"; do
22103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 $ac_includes_default
22111 struct { char filler; long long int field; } pgac_struct;
22115 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22122 rm -f conftest.$ac_objext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22124 (eval $ac_compile) 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -z "$ac_c_werror_flag"
22132 || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest.$ac_objext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ac_lo=`expr '(' $ac_mid ')' + 1`
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22154 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
22155 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22156 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22157 { (exit 1); exit 1; }; } ;;
22160 if test "$cross_compiling" = yes; then
22161 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22162 See \`config.log' for more details." >&5
22163 echo "$as_me: error: cannot run test program while cross compiling
22164 See \`config.log' for more details." >&2;}
22165 { (exit 1); exit 1; }; }
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 $ac_includes_default
22174 struct { char filler; long long int field; } pgac_struct;
22175 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22176 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22178 #include <stdlib.h>
22183 FILE *f = fopen ("conftest.val", "w");
22186 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22188 long i = longval ();
22189 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22191 fprintf (f, "%ld\n", i);
22195 unsigned long i = ulongval ();
22196 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22198 fprintf (f, "%lu\n", i);
22200 exit (ferror (f) || fclose (f) != 0);
22206 rm -f conftest$ac_exeext
22207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22208 (eval $ac_link) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; }; then
22217 pgac_cv_alignof_long_long_int=`cat conftest.val`
22219 echo "$as_me: program exited with status $ac_status" >&5
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ( exit $ac_status )
22224 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22225 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22226 { (exit 1); exit 1; }; }
22228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22233 pgac_cv_alignof_long_long_int=0
22236 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
22237 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
22238 cat >>confdefs.h <<_ACEOF
22239 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
22244 echo "$as_me:$LINENO: checking for double" >&5
22245 echo $ECHO_N "checking for double... $ECHO_C" >&6
22246 if test "${ac_cv_type_double+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 $ac_includes_default
22261 if (sizeof (double))
22267 rm -f conftest.$ac_objext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269 (eval $ac_compile) 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -z "$ac_c_werror_flag"
22277 || test ! -s conftest.err'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try='test -s conftest.$ac_objext'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289 ac_cv_type_double=yes
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ac_cv_type_double=no
22296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22298 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22299 echo "${ECHO_T}$ac_cv_type_double" >&6
22301 echo "$as_me:$LINENO: checking alignment of double" >&5
22302 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
22303 if test "${pgac_cv_alignof_double+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22306 if test "$ac_cv_type_double" = yes; then
22307 if test "$cross_compiling" = yes; then
22308 # Depending upon the size, compute the lo and hi bounds.
22309 cat >conftest.$ac_ext <<_ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 $ac_includes_default
22316 struct { char filler; double field; } pgac_struct;
22320 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22327 rm -f conftest.$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 (eval $ac_compile) 2>conftest.er1
22331 grep -v '^ *+' conftest.er1 >conftest.err
22333 cat conftest.err >&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
22336 { ac_try='test -z "$ac_c_werror_flag"
22337 || test ! -s conftest.err'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try='test -s conftest.$ac_objext'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22358 struct { char filler; double field; } pgac_struct;
22362 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22369 rm -f conftest.$ac_objext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22371 (eval $ac_compile) 2>conftest.er1
22373 grep -v '^ *+' conftest.er1 >conftest.err
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_c_werror_flag"
22379 || test ! -s conftest.err'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; } &&
22385 { ac_try='test -s conftest.$ac_objext'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; }; then
22391 ac_hi=$ac_mid; break
22393 echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ac_lo=`expr $ac_mid + 1`
22397 if test $ac_lo -le $ac_mid; then
22401 ac_mid=`expr 2 '*' $ac_mid + 1`
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 $ac_includes_default
22416 struct { char filler; double field; } pgac_struct;
22420 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22427 rm -f conftest.$ac_objext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22429 (eval $ac_compile) 2>conftest.er1
22431 grep -v '^ *+' conftest.er1 >conftest.err
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -z "$ac_c_werror_flag"
22437 || test ! -s conftest.err'
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest.$ac_objext'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 $ac_includes_default
22458 struct { char filler; double field; } pgac_struct;
22462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22469 rm -f conftest.$ac_objext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22471 (eval $ac_compile) 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } &&
22478 { ac_try='test -z "$ac_c_werror_flag"
22479 || test ! -s conftest.err'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; } &&
22485 { ac_try='test -s conftest.$ac_objext'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ac_lo=$ac_mid; break
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ac_hi=`expr '(' $ac_mid ')' - 1`
22497 if test $ac_mid -le $ac_hi; then
22501 ac_mid=`expr 2 '*' $ac_mid`
22503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22514 # Binary search between lo and hi bounds.
22515 while test "x$ac_lo" != "x$ac_hi"; do
22516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22517 cat >conftest.$ac_ext <<_ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 $ac_includes_default
22524 struct { char filler; double field; } pgac_struct;
22528 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22535 rm -f conftest.$ac_objext
22536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22537 (eval $ac_compile) 2>conftest.er1
22539 grep -v '^ *+' conftest.er1 >conftest.err
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } &&
22544 { ac_try='test -z "$ac_c_werror_flag"
22545 || test ! -s conftest.err'
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; } &&
22551 { ac_try='test -s conftest.$ac_objext'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22562 ac_lo=`expr '(' $ac_mid ')' + 1`
22564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22567 ?*) pgac_cv_alignof_double=$ac_lo;;
22568 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22569 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22570 { (exit 1); exit 1; }; } ;;
22573 if test "$cross_compiling" = yes; then
22574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22575 See \`config.log' for more details." >&5
22576 echo "$as_me: error: cannot run test program while cross compiling
22577 See \`config.log' for more details." >&2;}
22578 { (exit 1); exit 1; }; }
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22587 struct { char filler; double field; } pgac_struct;
22588 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22589 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22591 #include <stdlib.h>
22596 FILE *f = fopen ("conftest.val", "w");
22599 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22601 long i = longval ();
22602 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22604 fprintf (f, "%ld\n", i);
22608 unsigned long i = ulongval ();
22609 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22611 fprintf (f, "%lu\n", i);
22613 exit (ferror (f) || fclose (f) != 0);
22619 rm -f conftest$ac_exeext
22620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621 (eval $ac_link) 2>&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 pgac_cv_alignof_double=`cat conftest.val`
22632 echo "$as_me: program exited with status $ac_status" >&5
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ( exit $ac_status )
22637 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22638 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22639 { (exit 1); exit 1; }; }
22641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22646 pgac_cv_alignof_double=0
22649 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
22650 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
22651 cat >>confdefs.h <<_ACEOF
22652 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
22657 # Compute maximum alignment of any basic type.
22658 # We assume long's alignment is at least as strong as char, short, or int;
22659 # but we must check long long (if it exists) and double.
22661 MAX_ALIGNOF=$pgac_cv_alignof_long
22662 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
22663 MAX_ALIGNOF=$pgac_cv_alignof_double
22665 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
22666 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
22669 cat >>confdefs.h <<_ACEOF
22670 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
22675 # Some platforms predefine the types int8, int16, etc. Only check
22676 # a (hopefully) representative subset.
22677 echo "$as_me:$LINENO: checking for int8" >&5
22678 echo $ECHO_N "checking for int8... $ECHO_C" >&6
22679 if test "${ac_cv_type_int8+set}" = set; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22689 #ifdef HAVE_SUPPORTDEFS_H
22690 #include <SupportDefs.h>
22704 rm -f conftest.$ac_objext
22705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22706 (eval $ac_compile) 2>conftest.er1
22708 grep -v '^ *+' conftest.er1 >conftest.err
22710 cat conftest.err >&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); } &&
22713 { ac_try='test -z "$ac_c_werror_flag"
22714 || test ! -s conftest.err'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; } &&
22720 { ac_try='test -s conftest.$ac_objext'
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; }; then
22726 ac_cv_type_int8=yes
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22735 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
22736 echo "${ECHO_T}$ac_cv_type_int8" >&6
22737 if test $ac_cv_type_int8 = yes; then
22739 cat >>confdefs.h <<_ACEOF
22740 #define HAVE_INT8 1
22745 echo "$as_me:$LINENO: checking for uint8" >&5
22746 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
22747 if test "${ac_cv_type_uint8+set}" = set; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 cat >conftest.$ac_ext <<_ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22757 #ifdef HAVE_SUPPORTDEFS_H
22758 #include <SupportDefs.h>
22766 if (sizeof (uint8))
22772 rm -f conftest.$ac_objext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22774 (eval $ac_compile) 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } &&
22781 { ac_try='test -z "$ac_c_werror_flag"
22782 || test ! -s conftest.err'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; } &&
22788 { ac_try='test -s conftest.$ac_objext'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 ac_cv_type_uint8=yes
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ac_cv_type_uint8=no
22801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22803 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22804 echo "${ECHO_T}$ac_cv_type_uint8" >&6
22805 if test $ac_cv_type_uint8 = yes; then
22807 cat >>confdefs.h <<_ACEOF
22808 #define HAVE_UINT8 1
22813 echo "$as_me:$LINENO: checking for int64" >&5
22814 echo $ECHO_N "checking for int64... $ECHO_C" >&6
22815 if test "${ac_cv_type_int64+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22825 #ifdef HAVE_SUPPORTDEFS_H
22826 #include <SupportDefs.h>
22834 if (sizeof (int64))
22840 rm -f conftest.$ac_objext
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842 (eval $ac_compile) 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } &&
22849 { ac_try='test -z "$ac_c_werror_flag"
22850 || test ! -s conftest.err'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; } &&
22856 { ac_try='test -s conftest.$ac_objext'
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; }; then
22862 ac_cv_type_int64=yes
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 ac_cv_type_int64=no
22869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22871 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22872 echo "${ECHO_T}$ac_cv_type_int64" >&6
22873 if test $ac_cv_type_int64 = yes; then
22875 cat >>confdefs.h <<_ACEOF
22876 #define HAVE_INT64 1
22881 echo "$as_me:$LINENO: checking for uint64" >&5
22882 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
22883 if test "${ac_cv_type_uint64+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 cat >conftest.$ac_ext <<_ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22893 #ifdef HAVE_SUPPORTDEFS_H
22894 #include <SupportDefs.h>
22902 if (sizeof (uint64))
22908 rm -f conftest.$ac_objext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22910 (eval $ac_compile) 2>conftest.er1
22912 grep -v '^ *+' conftest.er1 >conftest.err
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } &&
22917 { ac_try='test -z "$ac_c_werror_flag"
22918 || test ! -s conftest.err'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; } &&
22924 { ac_try='test -s conftest.$ac_objext'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ac_cv_type_uint64=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_cv_type_uint64=no
22937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22939 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
22940 echo "${ECHO_T}$ac_cv_type_uint64" >&6
22941 if test $ac_cv_type_uint64 = yes; then
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_UINT64 1
22951 # We also check for sig_atomic_t, which *should* be defined per ANSI
22952 # C, but is missing on some old platforms.
22953 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22954 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22955 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22956 echo $ECHO_N "(cached) $ECHO_C" >&6
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964 #include <signal.h>
22969 if ((sig_atomic_t *) 0)
22971 if (sizeof (sig_atomic_t))
22977 rm -f conftest.$ac_objext
22978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22979 (eval $ac_compile) 2>conftest.er1
22981 grep -v '^ *+' conftest.er1 >conftest.err
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } &&
22986 { ac_try='test -z "$ac_c_werror_flag"
22987 || test ! -s conftest.err'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 ac_cv_type_sig_atomic_t=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 ac_cv_type_sig_atomic_t=no
23006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23008 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23009 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
23010 if test $ac_cv_type_sig_atomic_t = yes; then
23012 cat >>confdefs.h <<_ACEOF
23013 #define HAVE_SIG_ATOMIC_T 1
23021 if test "$PORTNAME" != "win32"
23023 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23024 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
23025 if test "${pgac_cv_func_posix_signals+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 cat >conftest.$ac_ext <<_ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h. */
23034 #include <signal.h>
23039 struct sigaction act, oact;
23040 sigemptyset(&act.sa_mask);
23041 act.sa_flags = SA_RESTART;
23042 sigaction(0, &act, &oact);
23047 rm -f conftest.$ac_objext conftest$ac_exeext
23048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23049 (eval $ac_link) 2>conftest.er1
23051 grep -v '^ *+' conftest.er1 >conftest.err
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } &&
23056 { ac_try='test -z "$ac_c_werror_flag"
23057 || test ! -s conftest.err'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; } &&
23063 { ac_try='test -s conftest$ac_exeext'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065 (eval $ac_try) 2>&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; }; then
23069 pgac_cv_func_posix_signals=yes
23071 echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 pgac_cv_func_posix_signals=no
23076 rm -f conftest.err conftest.$ac_objext \
23077 conftest$ac_exeext conftest.$ac_ext
23079 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23080 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
23081 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23083 cat >>confdefs.h <<\_ACEOF
23084 #define HAVE_POSIX_SIGNALS
23088 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23090 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23091 { { echo "$as_me:$LINENO: error:
23092 Thread-safety requires POSIX signals, which are not supported by this
23093 operating system." >&5
23094 echo "$as_me: error:
23095 Thread-safety requires POSIX signals, which are not supported by this
23096 operating system." >&2;}
23097 { (exit 1); exit 1; }; }
23101 if test $ac_cv_func_fseeko = yes; then
23102 # Check whether --enable-largefile or --disable-largefile was given.
23103 if test "${enable_largefile+set}" = set; then
23104 enableval="$enable_largefile"
23107 if test "$enable_largefile" != no; then
23109 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23110 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
23111 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 ac_cv_sys_largefile_CC=no
23115 if test "$GCC" != yes; then
23118 # IRIX 6.2 and later do not support large files by default,
23119 # so use the C compiler's -n32 option if that helps.
23120 cat >conftest.$ac_ext <<_ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <sys/types.h>
23127 /* Check that off_t can represent 2**63 - 1 correctly.
23128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23129 since some C++ compilers masquerading as C compilers
23130 incorrectly reject 9223372036854775807. */
23131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23133 && LARGE_OFF_T % 2147483647 == 1)
23143 rm -f conftest.$ac_objext
23144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23145 (eval $ac_compile) 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } &&
23152 { ac_try='test -z "$ac_c_werror_flag"
23153 || test ! -s conftest.err'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest.$ac_objext'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23167 echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23171 rm -f conftest.err conftest.$ac_objext
23173 rm -f conftest.$ac_objext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23175 (eval $ac_compile) 2>conftest.er1
23177 grep -v '^ *+' conftest.er1 >conftest.err
23179 cat conftest.err >&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } &&
23182 { ac_try='test -z "$ac_c_werror_flag"
23183 || test ! -s conftest.err'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; } &&
23189 { ac_try='test -s conftest.$ac_objext'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_cv_sys_largefile_CC=' -n32'; break
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23201 rm -f conftest.err conftest.$ac_objext
23205 rm -f conftest.$ac_ext
23208 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23209 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
23210 if test "$ac_cv_sys_largefile_CC" != no; then
23211 CC=$CC$ac_cv_sys_largefile_CC
23214 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23215 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
23216 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23220 ac_cv_sys_file_offset_bits=no
23221 cat >conftest.$ac_ext <<_ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 #include <sys/types.h>
23228 /* Check that off_t can represent 2**63 - 1 correctly.
23229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23230 since some C++ compilers masquerading as C compilers
23231 incorrectly reject 9223372036854775807. */
23232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23234 && LARGE_OFF_T % 2147483647 == 1)
23244 rm -f conftest.$ac_objext
23245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23246 (eval $ac_compile) 2>conftest.er1
23248 grep -v '^ *+' conftest.er1 >conftest.err
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } &&
23253 { ac_try='test -z "$ac_c_werror_flag"
23254 || test ! -s conftest.err'
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; } &&
23260 { ac_try='test -s conftest.$ac_objext'
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 #define _FILE_OFFSET_BITS 64
23280 #include <sys/types.h>
23281 /* Check that off_t can represent 2**63 - 1 correctly.
23282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23283 since some C++ compilers masquerading as C compilers
23284 incorrectly reject 9223372036854775807. */
23285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23287 && LARGE_OFF_T % 2147483647 == 1)
23297 rm -f conftest.$ac_objext
23298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23299 (eval $ac_compile) 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
23306 { ac_try='test -z "$ac_c_werror_flag"
23307 || test ! -s conftest.err'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; } &&
23313 { ac_try='test -s conftest.$ac_objext'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; }; then
23319 ac_cv_sys_file_offset_bits=64; break
23321 echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23329 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23330 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
23331 if test "$ac_cv_sys_file_offset_bits" != no; then
23333 cat >>confdefs.h <<_ACEOF
23334 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23339 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23340 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
23341 if test "${ac_cv_sys_large_files+set}" = set; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23345 ac_cv_sys_large_files=no
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 #include <sys/types.h>
23353 /* Check that off_t can represent 2**63 - 1 correctly.
23354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23355 since some C++ compilers masquerading as C compilers
23356 incorrectly reject 9223372036854775807. */
23357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23359 && LARGE_OFF_T % 2147483647 == 1)
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag"
23379 || test ! -s conftest.err'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; } &&
23385 { ac_try='test -s conftest.$ac_objext'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }; then
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23398 cat >conftest.$ac_ext <<_ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 #define _LARGE_FILES 1
23405 #include <sys/types.h>
23406 /* Check that off_t can represent 2**63 - 1 correctly.
23407 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23408 since some C++ compilers masquerading as C compilers
23409 incorrectly reject 9223372036854775807. */
23410 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23411 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23412 && LARGE_OFF_T % 2147483647 == 1)
23422 rm -f conftest.$ac_objext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23424 (eval $ac_compile) 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } &&
23431 { ac_try='test -z "$ac_c_werror_flag"
23432 || test ! -s conftest.err'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest.$ac_objext'
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; }; then
23444 ac_cv_sys_large_files=1; break
23446 echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23454 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23455 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
23456 if test "$ac_cv_sys_large_files" != no; then
23458 cat >>confdefs.h <<_ACEOF
23459 #define _LARGE_FILES $ac_cv_sys_large_files
23468 # SunOS doesn't handle negative byte comparisons properly with +/- return
23469 echo "$as_me:$LINENO: checking for working memcmp" >&5
23470 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23471 if test "${ac_cv_func_memcmp_working+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23474 if test "$cross_compiling" = yes; then
23475 ac_cv_func_memcmp_working=no
23477 cat >conftest.$ac_ext <<_ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483 $ac_includes_default
23488 /* Some versions of memcmp are not 8-bit clean. */
23489 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23490 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23493 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23494 or more and with at least one buffer not starting on a 4-byte boundary.
23495 William Lewis provided this test program. */
23500 for (i = 0; i < 4; i++)
23504 strcpy (a, "--------01111111");
23505 strcpy (b, "--------10000000");
23506 if (memcmp (a, b, 16) >= 0)
23516 rm -f conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 ac_cv_func_memcmp_working=yes
23529 echo "$as_me: program exited with status $ac_status" >&5
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ( exit $ac_status )
23534 ac_cv_func_memcmp_working=no
23536 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23539 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23540 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23541 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
23542 "memcmp.$ac_objext" | \
23543 *" memcmp.$ac_objext" | \
23544 "memcmp.$ac_objext "* | \
23545 *" memcmp.$ac_objext "* ) ;;
23546 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
23552 # Select semaphore implementation type.
23553 if test "$PORTNAME" != "win32"; then
23554 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
23556 cat >>confdefs.h <<\_ACEOF
23557 #define USE_NAMED_POSIX_SEMAPHORES 1
23560 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23562 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
23564 cat >>confdefs.h <<\_ACEOF
23565 #define USE_UNNAMED_POSIX_SEMAPHORES 1
23568 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23571 cat >>confdefs.h <<\_ACEOF
23572 #define USE_SYSV_SEMAPHORES 1
23575 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
23580 cat >>confdefs.h <<\_ACEOF
23581 #define USE_WIN32_SEMAPHORES 1
23584 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
23588 # Select shared-memory implementation type.
23589 if test "$PORTNAME" != "win32"; then
23591 cat >>confdefs.h <<\_ACEOF
23592 #define USE_SYSV_SHARED_MEMORY 1
23595 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
23598 cat >>confdefs.h <<\_ACEOF
23599 #define USE_WIN32_SHARED_MEMORY 1
23602 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
23605 # If not set in template file, set bytes to use libc memset()
23606 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
23607 MEMSET_LOOP_LIMIT=1024
23610 cat >>confdefs.h <<_ACEOF
23611 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
23616 if test "$enable_nls" = yes ; then
23618 echo "$as_me:$LINENO: checking for library containing gettext" >&5
23619 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
23620 if test "${ac_cv_search_gettext+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23623 ac_func_search_save_LIBS=$LIBS
23624 ac_cv_search_gettext=no
23625 cat >conftest.$ac_ext <<_ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23632 /* Override any gcc2 internal prototype to avoid an error. */
23636 /* We use char because int might match the return type of a gcc2
23637 builtin and then its argument prototype would still apply. */
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23649 (eval $ac_link) 2>conftest.er1
23651 grep -v '^ *+' conftest.er1 >conftest.err
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -z "$ac_c_werror_flag"
23657 || test ! -s conftest.err'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; } &&
23663 { ac_try='test -s conftest$ac_exeext'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669 ac_cv_search_gettext="none required"
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23675 rm -f conftest.err conftest.$ac_objext \
23676 conftest$ac_exeext conftest.$ac_ext
23677 if test "$ac_cv_search_gettext" = no; then
23678 for ac_lib in intl; do
23679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23687 /* Override any gcc2 internal prototype to avoid an error. */
23691 /* We use char because int might match the return type of a gcc2
23692 builtin and then its argument prototype would still apply. */
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704 (eval $ac_link) 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } &&
23711 { ac_try='test -z "$ac_c_werror_flag"
23712 || test ! -s conftest.err'
23713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714 (eval $ac_try) 2>&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; } &&
23718 { ac_try='test -s conftest$ac_exeext'
23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720 (eval $ac_try) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 ac_cv_search_gettext="-l$ac_lib"
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23731 rm -f conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
23735 LIBS=$ac_func_search_save_LIBS
23737 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
23738 echo "${ECHO_T}$ac_cv_search_gettext" >&6
23739 if test "$ac_cv_search_gettext" != no; then
23740 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
23743 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23744 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23745 { (exit 1); exit 1; }; }
23748 if test "${ac_cv_header_libintl_h+set}" = set; then
23749 echo "$as_me:$LINENO: checking for libintl.h" >&5
23750 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23751 if test "${ac_cv_header_libintl_h+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23755 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23757 # Is the header compilable?
23758 echo "$as_me:$LINENO: checking libintl.h usability" >&5
23759 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 $ac_includes_default
23767 #include <libintl.h>
23769 rm -f conftest.$ac_objext
23770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23771 (eval $ac_compile) 2>conftest.er1
23773 grep -v '^ *+' conftest.er1 >conftest.err
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
23778 { ac_try='test -z "$ac_c_werror_flag"
23779 || test ! -s conftest.err'
23780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781 (eval $ac_try) 2>&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); }; } &&
23785 { ac_try='test -s conftest.$ac_objext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_header_compiler=yes
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_header_compiler=no
23798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23800 echo "${ECHO_T}$ac_header_compiler" >&6
23802 # Is the header present?
23803 echo "$as_me:$LINENO: checking libintl.h presence" >&5
23804 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 #include <libintl.h>
23813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23816 grep -v '^ *+' conftest.er1 >conftest.err
23818 cat conftest.err >&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } >/dev/null; then
23821 if test -s conftest.err; then
23822 ac_cpp_err=$ac_c_preproc_warn_flag
23823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23830 if test -z "$ac_cpp_err"; then
23831 ac_header_preproc=yes
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23836 ac_header_preproc=no
23838 rm -f conftest.err conftest.$ac_ext
23839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23840 echo "${ECHO_T}$ac_header_preproc" >&6
23842 # So? What about this header?
23843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23845 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23846 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23847 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23848 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23849 ac_header_preproc=yes
23852 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23853 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23854 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
23855 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
23856 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23857 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23858 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
23859 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23860 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23861 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23862 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23863 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23866 ## ---------------------------------------- ##
23867 ## Report this to pgsql-bugs@postgresql.org ##
23868 ## ---------------------------------------- ##
23871 sed "s/^/$as_me: WARNING: /" >&2
23874 echo "$as_me:$LINENO: checking for libintl.h" >&5
23875 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23876 if test "${ac_cv_header_libintl_h+set}" = set; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
23879 ac_cv_header_libintl_h=$ac_header_preproc
23881 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23882 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23885 if test $ac_cv_header_libintl_h = yes; then
23888 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23889 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23890 { (exit 1); exit 1; }; }
23894 for ac_prog in msgfmt
23896 # Extract the first word of "$ac_prog", so it can be a program name with args.
23897 set dummy $ac_prog; ac_word=$2
23898 echo "$as_me:$LINENO: checking for $ac_word" >&5
23899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23900 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23901 echo $ECHO_N "(cached) $ECHO_C" >&6
23903 if test -n "$MSGFMT"; then
23904 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907 for as_dir in $PATH
23910 test -z "$as_dir" && as_dir=.
23911 for ac_exec_ext in '' $ac_executable_extensions; do
23912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23913 ac_cv_prog_MSGFMT="$ac_prog"
23914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23922 MSGFMT=$ac_cv_prog_MSGFMT
23923 if test -n "$MSGFMT"; then
23924 echo "$as_me:$LINENO: result: $MSGFMT" >&5
23925 echo "${ECHO_T}$MSGFMT" >&6
23927 echo "$as_me:$LINENO: result: no" >&5
23928 echo "${ECHO_T}no" >&6
23931 test -n "$MSGFMT" && break
23934 if test -z "$MSGFMT"; then
23935 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23936 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23937 { (exit 1); exit 1; }; }
23939 for ac_prog in msgmerge
23941 # Extract the first word of "$ac_prog", so it can be a program name with args.
23942 set dummy $ac_prog; ac_word=$2
23943 echo "$as_me:$LINENO: checking for $ac_word" >&5
23944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23945 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 if test -n "$MSGMERGE"; then
23949 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23952 for as_dir in $PATH
23955 test -z "$as_dir" && as_dir=.
23956 for ac_exec_ext in '' $ac_executable_extensions; do
23957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23958 ac_cv_prog_MSGMERGE="$ac_prog"
23959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23967 MSGMERGE=$ac_cv_prog_MSGMERGE
23968 if test -n "$MSGMERGE"; then
23969 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23970 echo "${ECHO_T}$MSGMERGE" >&6
23972 echo "$as_me:$LINENO: result: no" >&5
23973 echo "${ECHO_T}no" >&6
23976 test -n "$MSGMERGE" && break
23979 for ac_prog in xgettext
23981 # Extract the first word of "$ac_prog", so it can be a program name with args.
23982 set dummy $ac_prog; ac_word=$2
23983 echo "$as_me:$LINENO: checking for $ac_word" >&5
23984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23985 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 if test -n "$XGETTEXT"; then
23989 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
23991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23992 for as_dir in $PATH
23995 test -z "$as_dir" && as_dir=.
23996 for ac_exec_ext in '' $ac_executable_extensions; do
23997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23998 ac_cv_prog_XGETTEXT="$ac_prog"
23999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24007 XGETTEXT=$ac_cv_prog_XGETTEXT
24008 if test -n "$XGETTEXT"; then
24009 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24010 echo "${ECHO_T}$XGETTEXT" >&6
24012 echo "$as_me:$LINENO: result: no" >&5
24013 echo "${ECHO_T}no" >&6
24016 test -n "$XGETTEXT" && break
24020 # Note: share/locale is always the default, independent of $datadir
24021 localedir='${prefix}/share/locale'
24026 # Check for Tcl configuration script tclConfig.sh
24027 if test "$with_tcl" = yes; then
24028 for ac_prog in tclsh tcl
24030 # Extract the first word of "$ac_prog", so it can be a program name with args.
24031 set dummy $ac_prog; ac_word=$2
24032 echo "$as_me:$LINENO: checking for $ac_word" >&5
24033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24034 if test "${ac_cv_path_TCLSH+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24039 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
24042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24043 for as_dir in $PATH
24046 test -z "$as_dir" && as_dir=.
24047 for ac_exec_ext in '' $ac_executable_extensions; do
24048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24049 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
24050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24059 TCLSH=$ac_cv_path_TCLSH
24061 if test -n "$TCLSH"; then
24062 echo "$as_me:$LINENO: result: $TCLSH" >&5
24063 echo "${ECHO_T}$TCLSH" >&6
24065 echo "$as_me:$LINENO: result: no" >&5
24066 echo "${ECHO_T}no" >&6
24069 test -n "$TCLSH" && break
24072 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24073 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
24074 # Let user override test
24075 if test -z "$TCL_CONFIG_SH"; then
24076 pgac_test_dirs="$with_tclconfig"
24078 set X $pgac_test_dirs; shift
24079 if test $# -eq 0; then
24080 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24081 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24082 { (exit 1); exit 1; }; }
24083 set X `echo 'puts $auto_path' | $TCLSH`; shift
24087 if test -r "$pgac_dir/tclConfig.sh"; then
24088 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
24094 if test -z "$TCL_CONFIG_SH"; then
24095 echo "$as_me:$LINENO: result: no" >&5
24096 echo "${ECHO_T}no" >&6
24097 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24098 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24099 { (exit 1); exit 1; }; }
24101 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24102 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
24108 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24109 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24110 eval TCL_LIBS=\"$TCL_LIBS\"
24111 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24112 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24114 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24115 ac_save_CPPFLAGS=$CPPFLAGS
24116 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24117 if test "${ac_cv_header_tcl_h+set}" = set; then
24118 echo "$as_me:$LINENO: checking for tcl.h" >&5
24119 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24120 if test "${ac_cv_header_tcl_h+set}" = set; then
24121 echo $ECHO_N "(cached) $ECHO_C" >&6
24123 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24124 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24126 # Is the header compilable?
24127 echo "$as_me:$LINENO: checking tcl.h usability" >&5
24128 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 $ac_includes_default
24138 rm -f conftest.$ac_objext
24139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24140 (eval $ac_compile) 2>conftest.er1
24142 grep -v '^ *+' conftest.er1 >conftest.err
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
24147 { ac_try='test -z "$ac_c_werror_flag"
24148 || test ! -s conftest.err'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; } &&
24154 { ac_try='test -s conftest.$ac_objext'
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 ac_header_compiler=yes
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24165 ac_header_compiler=no
24167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24169 echo "${ECHO_T}$ac_header_compiler" >&6
24171 # Is the header present?
24172 echo "$as_me:$LINENO: checking tcl.h presence" >&5
24173 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
24174 cat >conftest.$ac_ext <<_ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } >/dev/null; then
24190 if test -s conftest.err; then
24191 ac_cpp_err=$ac_c_preproc_warn_flag
24192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24199 if test -z "$ac_cpp_err"; then
24200 ac_header_preproc=yes
24202 echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ac_header_preproc=no
24207 rm -f conftest.err conftest.$ac_ext
24208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24209 echo "${ECHO_T}$ac_header_preproc" >&6
24211 # So? What about this header?
24212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24214 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24215 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24216 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24217 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24218 ac_header_preproc=yes
24221 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24222 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24223 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
24224 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
24225 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24226 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24227 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
24228 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24230 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24231 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24232 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24235 ## ---------------------------------------- ##
24236 ## Report this to pgsql-bugs@postgresql.org ##
24237 ## ---------------------------------------- ##
24240 sed "s/^/$as_me: WARNING: /" >&2
24243 echo "$as_me:$LINENO: checking for tcl.h" >&5
24244 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24245 if test "${ac_cv_header_tcl_h+set}" = set; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24248 ac_cv_header_tcl_h=$ac_header_preproc
24250 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24251 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24254 if test $ac_cv_header_tcl_h = yes; then
24257 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24258 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24259 { (exit 1); exit 1; }; }
24263 CPPFLAGS=$ac_save_CPPFLAGS
24267 # Check for DocBook and tools
24269 for ac_prog in onsgmls nsgmls
24271 # Extract the first word of "$ac_prog", so it can be a program name with args.
24272 set dummy $ac_prog; ac_word=$2
24273 echo "$as_me:$LINENO: checking for $ac_word" >&5
24274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24275 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24278 if test -n "$NSGMLS"; then
24279 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
24281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24282 for as_dir in $PATH
24285 test -z "$as_dir" && as_dir=.
24286 for ac_exec_ext in '' $ac_executable_extensions; do
24287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24288 ac_cv_prog_NSGMLS="$ac_prog"
24289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24297 NSGMLS=$ac_cv_prog_NSGMLS
24298 if test -n "$NSGMLS"; then
24299 echo "$as_me:$LINENO: result: $NSGMLS" >&5
24300 echo "${ECHO_T}$NSGMLS" >&6
24302 echo "$as_me:$LINENO: result: no" >&5
24303 echo "${ECHO_T}no" >&6
24306 test -n "$NSGMLS" && break
24309 for ac_prog in openjade jade
24311 # Extract the first word of "$ac_prog", so it can be a program name with args.
24312 set dummy $ac_prog; ac_word=$2
24313 echo "$as_me:$LINENO: checking for $ac_word" >&5
24314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24315 if test "${ac_cv_prog_JADE+set}" = set; then
24316 echo $ECHO_N "(cached) $ECHO_C" >&6
24318 if test -n "$JADE"; then
24319 ac_cv_prog_JADE="$JADE" # Let the user override the test.
24321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24322 for as_dir in $PATH
24325 test -z "$as_dir" && as_dir=.
24326 for ac_exec_ext in '' $ac_executable_extensions; do
24327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24328 ac_cv_prog_JADE="$ac_prog"
24329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24337 JADE=$ac_cv_prog_JADE
24338 if test -n "$JADE"; then
24339 echo "$as_me:$LINENO: result: $JADE" >&5
24340 echo "${ECHO_T}$JADE" >&6
24342 echo "$as_me:$LINENO: result: no" >&5
24343 echo "${ECHO_T}no" >&6
24346 test -n "$JADE" && break
24350 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
24351 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
24352 if test "${pgac_cv_check_docbook+set}" = set; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24355 cat >conftest.sgml <<EOF
24356 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
24358 <title>test</title>
24360 <title>random</title>
24362 <title>testsect</title>
24369 pgac_cv_check_docbook=no
24371 if test -n "$NSGMLS"; then
24372 $NSGMLS -s conftest.sgml 1>&5 2>&1
24373 if test $? -eq 0; then
24374 pgac_cv_check_docbook=yes
24377 rm -f conftest.sgml
24379 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
24380 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
24382 have_docbook=$pgac_cv_check_docbook
24385 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
24386 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
24387 if test "${pgac_cv_path_stylesheets+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 if test -n "$DOCBOOKSTYLE"; then
24391 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
24393 for pgac_prefix in /usr /usr/local /opt; do
24394 for pgac_infix in share lib; do
24395 for pgac_postfix in \
24396 sgml/stylesheets/nwalsh-modular \
24397 sgml/stylesheets/docbook \
24398 sgml/stylesheets/dsssl/docbook \
24399 sgml/docbook-dsssl \
24400 sgml/docbook/dsssl/modular \
24401 sgml/docbook/stylesheet/dsssl/modular \
24402 sgml/docbook/dsssl-stylesheets
24404 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
24405 if test -r "$pgac_candidate/html/docbook.dsl" \
24406 && test -r "$pgac_candidate/print/docbook.dsl"
24408 pgac_cv_path_stylesheets=$pgac_candidate
24417 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
24419 if test -n "$DOCBOOKSTYLE"; then
24420 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
24421 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
24423 echo "$as_me:$LINENO: result: no" >&5
24424 echo "${ECHO_T}no" >&6
24426 if test -n "$DOCBOOKSTYLE"; then
24427 for ac_prog in collateindex.pl
24429 # Extract the first word of "$ac_prog", so it can be a program name with args.
24430 set dummy $ac_prog; ac_word=$2
24431 echo "$as_me:$LINENO: checking for $ac_word" >&5
24432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24433 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 case $COLLATEINDEX in
24438 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24442 for as_dir in $DOCBOOKSTYLE/bin $PATH
24445 test -z "$as_dir" && as_dir=.
24446 for ac_exec_ext in '' $ac_executable_extensions; do
24447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24448 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24458 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24460 if test -n "$COLLATEINDEX"; then
24461 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24462 echo "${ECHO_T}$COLLATEINDEX" >&6
24464 echo "$as_me:$LINENO: result: no" >&5
24465 echo "${ECHO_T}no" >&6
24468 test -n "$COLLATEINDEX" && break
24472 for ac_prog in collateindex.pl
24474 # Extract the first word of "$ac_prog", so it can be a program name with args.
24475 set dummy $ac_prog; ac_word=$2
24476 echo "$as_me:$LINENO: checking for $ac_word" >&5
24477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24478 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 case $COLLATEINDEX in
24483 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24487 for as_dir in $PATH
24490 test -z "$as_dir" && as_dir=.
24491 for ac_exec_ext in '' $ac_executable_extensions; do
24492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24493 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24503 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24505 if test -n "$COLLATEINDEX"; then
24506 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24507 echo "${ECHO_T}$COLLATEINDEX" >&6
24509 echo "$as_me:$LINENO: result: no" >&5
24510 echo "${ECHO_T}no" >&6
24513 test -n "$COLLATEINDEX" && break
24517 for ac_prog in sgmlspl
24519 # Extract the first word of "$ac_prog", so it can be a program name with args.
24520 set dummy $ac_prog; ac_word=$2
24521 echo "$as_me:$LINENO: checking for $ac_word" >&5
24522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24523 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
24524 echo $ECHO_N "(cached) $ECHO_C" >&6
24526 if test -n "$SGMLSPL"; then
24527 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
24529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24530 for as_dir in $PATH
24533 test -z "$as_dir" && as_dir=.
24534 for ac_exec_ext in '' $ac_executable_extensions; do
24535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24536 ac_cv_prog_SGMLSPL="$ac_prog"
24537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24545 SGMLSPL=$ac_cv_prog_SGMLSPL
24546 if test -n "$SGMLSPL"; then
24547 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
24548 echo "${ECHO_T}$SGMLSPL" >&6
24550 echo "$as_me:$LINENO: result: no" >&5
24551 echo "${ECHO_T}no" >&6
24554 test -n "$SGMLSPL" && break
24560 # We have to run the thread test near the end so we have all our symbols
24561 # defined. Cross compiling throws a warning.
24563 if test "$enable_thread_safety_force" = yes; then
24564 if test "$PORTNAME" != "win32"
24566 { echo "$as_me:$LINENO: WARNING:
24567 *** Skipping thread test program. --enable-thread-safety-force was used.
24568 *** Run the program in src/test/thread on the your machine and add proper
24569 *** locking function calls to your applications to guarantee thread safety.
24571 echo "$as_me: WARNING:
24572 *** Skipping thread test program. --enable-thread-safety-force was used.
24573 *** Run the program in src/test/thread on the your machine and add proper
24574 *** locking function calls to your applications to guarantee thread safety.
24577 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24578 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24580 elif test "$enable_thread_safety" = yes; then
24581 if test "$PORTNAME" != "win32"
24583 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
24584 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
24588 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
24589 LIBS="$LIBS $PTHREAD_LIBS"
24590 if test "$cross_compiling" = yes; then
24591 echo "$as_me:$LINENO: result: maybe" >&5
24592 echo "${ECHO_T}maybe" >&6
24593 { echo "$as_me:$LINENO: WARNING:
24594 *** Skipping thread test program because of cross-compile build.
24595 *** Run the program in src/test/thread on the target machine.
24597 echo "$as_me: WARNING:
24598 *** Skipping thread test program because of cross-compile build.
24599 *** Run the program in src/test/thread on the target machine.
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 #include "$srcdir/src/test/thread/thread_test.c"
24610 rm -f conftest$ac_exeext
24611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24612 (eval $ac_link) 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 echo "$as_me:$LINENO: result: yes" >&5
24622 echo "${ECHO_T}yes" >&6
24624 echo "$as_me: program exited with status $ac_status" >&5
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24628 ( exit $ac_status )
24629 echo "$as_me:$LINENO: result: no" >&5
24630 echo "${ECHO_T}no" >&6
24631 { { echo "$as_me:$LINENO: error: thread test program failed
24632 This platform is not thread-safe. Check the file 'config.log'for the
24635 You can use the configure option --enable-thread-safety-force to force
24636 threads to be enabled. But you must then run the program in
24637 src/test/thread and add locking function calls to your applications to
24638 guarantee thread safety." >&5
24639 echo "$as_me: error: thread test program failed
24640 This platform is not thread-safe. Check the file 'config.log'for the
24643 You can use the configure option --enable-thread-safety-force to force
24644 threads to be enabled. But you must then run the program in
24645 src/test/thread and add locking function calls to your applications to
24646 guarantee thread safety." >&2;}
24647 { (exit 1); exit 1; }; }
24649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24654 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24655 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24659 # prepare build tree if outside source tree
24660 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
24661 # Note 2: /bin/pwd might be better than shell's built-in at getting
24662 # a symlink-free name.
24663 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
24667 if test "$no_create" != yes; then
24668 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
24669 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
24670 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
24671 || { { echo "$as_me:$LINENO: error: failed" >&5
24672 echo "$as_me: error: failed" >&2;}
24673 { (exit 1); exit 1; }; }
24674 echo "$as_me:$LINENO: result: done" >&5
24675 echo "${ECHO_T}done" >&6
24681 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
24684 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}"
24687 if test "$PORTNAME" = "win32"; then
24688 ac_config_commands="$ac_config_commands check_win32_symlinks"
24692 ac_config_headers="$ac_config_headers src/include/pg_config.h"
24695 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
24698 cat >confcache <<\_ACEOF
24699 # This file is a shell script that caches the results of configure
24700 # tests run on this system so they can be shared between configure
24701 # scripts and configure runs, see configure's option --config-cache.
24702 # It is not useful on other systems. If it contains results you don't
24703 # want to keep, you may remove or edit it.
24705 # config.status only pays attention to the cache file if you give it
24706 # the --recheck option to rerun configure.
24708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24710 # following values.
24714 # The following way of writing the cache mishandles newlines in values,
24715 # but we know of no workaround that is simple, portable, and efficient.
24716 # So, don't put newlines in cache variables' values.
24717 # Ultrix sh set writes to stderr and can't be redirected directly,
24718 # and sets the high bit in the cache file unless we assign to the vars.
24721 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24723 # `set' does not quote correctly, so add quotes (double-quote
24724 # substitution turns \\\\ into \\, and sed turns \\ into \).
24727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24730 # `set' quotes correctly as required by POSIX, so do not add quotes.
24732 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24741 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24743 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24744 if test -w $cache_file; then
24745 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24746 cat confcache >$cache_file
24748 echo "not updating unwritable cache $cache_file"
24753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24754 # Let make expand exec_prefix.
24755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24757 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24758 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24759 # trailing colons and then remove the whole line if VPATH becomes empty
24760 # (actually we leave an empty line to preserve line numbers).
24761 if test "x$srcdir" = x.; then
24762 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24763 s/:*\$(srcdir):*/:/;
24764 s/:*\${srcdir}:*/:/;
24766 s/^\([^=]*=[ ]*\):*/\1/;
24772 DEFS=-DHAVE_CONFIG_H
24776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24777 # 1. Remove the extension, and $U if already installed.
24778 ac_i=`echo "$ac_i" |
24779 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24781 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24782 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24784 LIBOBJS=$ac_libobjs
24786 LTLIBOBJS=$ac_ltlibobjs
24790 : ${CONFIG_STATUS=./config.status}
24791 ac_clean_files_save=$ac_clean_files
24792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24795 cat >$CONFIG_STATUS <<_ACEOF
24797 # Generated by $as_me.
24798 # Run this file to recreate the current configuration.
24799 # Compiler output produced by configure, useful for debugging
24800 # configure, is in config.log if it exists.
24803 ac_cs_recheck=false
24805 SHELL=\${CONFIG_SHELL-$SHELL}
24808 cat >>$CONFIG_STATUS <<\_ACEOF
24809 ## --------------------- ##
24810 ## M4sh Initialization. ##
24811 ## --------------------- ##
24813 # Be Bourne compatible
24814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24818 # is contrary to our usage. Disable this feature.
24819 alias -g '${1+"$@"}'='"$@"'
24820 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24823 DUALCASE=1; export DUALCASE # for MKS sh
24825 # Support unset when possible.
24826 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24833 # Work around bugs in pre-3.0 UWIN ksh.
24834 $as_unset ENV MAIL MAILPATH
24841 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24842 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24843 LC_TELEPHONE LC_TIME
24845 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24846 eval $as_var=C; export $as_var
24852 # Required to use basename.
24853 if expr a : '\(a\)' >/dev/null 2>&1; then
24859 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24860 as_basename=basename
24866 # Name of the executable.
24867 as_me=`$as_basename "$0" ||
24868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24869 X"$0" : 'X\(//\)$' \| \
24870 X"$0" : 'X\(/\)$' \| \
24871 . : '\(.\)' 2>/dev/null ||
24873 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24874 /^X\/\(\/\/\)$/{ s//\1/; q; }
24875 /^X\/\(\/\).*/{ s//\1/; q; }
24879 # PATH needs CR, and LINENO needs CR and PATH.
24880 # Avoid depending upon Character Ranges.
24881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24884 as_cr_digits='0123456789'
24885 as_cr_alnum=$as_cr_Letters$as_cr_digits
24887 # The user is always right.
24888 if test "${PATH_SEPARATOR+set}" != set; then
24889 echo "#! /bin/sh" >conf$$.sh
24890 echo "exit 0" >>conf$$.sh
24892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24901 as_lineno_1=$LINENO
24902 as_lineno_2=$LINENO
24903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24904 test "x$as_lineno_1" != "x$as_lineno_2" &&
24905 test "x$as_lineno_3" = "x$as_lineno_2" || {
24906 # Find who we are. Look in the path if we contain no path at all
24909 *[\\/]* ) as_myself=$0 ;;
24910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24911 for as_dir in $PATH
24914 test -z "$as_dir" && as_dir=.
24915 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24920 # We did not find ourselves, most probably we were run as `sh COMMAND'
24921 # in which case we are not to be found in the path.
24922 if test "x$as_myself" = x; then
24925 if test ! -f "$as_myself"; then
24926 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24927 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24928 { (exit 1); exit 1; }; }
24930 case $CONFIG_SHELL in
24932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24933 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24936 test -z "$as_dir" && as_dir=.
24937 for as_base in sh bash ksh sh5; do
24940 if ("$as_dir/$as_base" -c '
24941 as_lineno_1=$LINENO
24942 as_lineno_2=$LINENO
24943 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24944 test "x$as_lineno_1" != "x$as_lineno_2" &&
24945 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24946 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24947 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24948 CONFIG_SHELL=$as_dir/$as_base
24949 export CONFIG_SHELL
24950 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24958 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24959 # uniformly replaced by the line number. The first 'sed' inserts a
24960 # line-number line before each line; the second 'sed' does the real
24961 # work. The second script uses 'N' to pair each line-number line
24962 # with the numbered line, and appends trailing '-' during
24963 # substitution so that $LINENO is not a special case at line end.
24964 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24965 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24966 sed '=' <$as_myself |
24971 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24974 s,^['$as_cr_digits']*\n,,
24975 ' >$as_me.lineno &&
24976 chmod +x $as_me.lineno ||
24977 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24978 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24979 { (exit 1); exit 1; }; }
24981 # Don't try to exec as it changes $[0], causing all sort of problems
24982 # (the dirname of $[0] is not the place where we might find the
24983 # original and so on. Autoconf is especially sensible to this).
24985 # Exit status is that of the last command.
24990 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24991 *c*,-n*) ECHO_N= ECHO_C='
24993 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24994 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24997 if expr a : '\(a\)' >/dev/null 2>&1; then
25003 rm -f conf$$ conf$$.exe conf$$.file
25005 if ln -s conf$$.file conf$$ 2>/dev/null; then
25006 # We could just check for DJGPP; but this test a) works b) is more generic
25007 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25008 if test -f conf$$.exe; then
25009 # Don't use ln at all; we don't have any links
25014 elif ln conf$$.file conf$$ 2>/dev/null; then
25019 rm -f conf$$ conf$$.exe conf$$.file
25021 if mkdir -p . 2>/dev/null; then
25024 test -d ./-p && rmdir ./-p
25028 as_executable_p="test -f"
25030 # Sed expression to map a string onto a valid CPP name.
25031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25033 # Sed expression to map a string onto a valid variable name.
25034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25038 # We need space, tab and new line, in precisely that order.
25048 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25049 # report actual input values of CONFIG_FILES etc. instead of their
25050 # values after options handling. Logging --version etc. is OK.
25054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25055 ## Running $as_me. ##
25060 This file was extended by PostgreSQL $as_me 8.3beta1, which was
25061 generated by GNU Autoconf 2.59. Invocation command line was
25063 CONFIG_FILES = $CONFIG_FILES
25064 CONFIG_HEADERS = $CONFIG_HEADERS
25065 CONFIG_LINKS = $CONFIG_LINKS
25066 CONFIG_COMMANDS = $CONFIG_COMMANDS
25070 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25074 # Files that config.status was made for.
25075 if test -n "$ac_config_files"; then
25076 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25079 if test -n "$ac_config_headers"; then
25080 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25083 if test -n "$ac_config_links"; then
25084 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25087 if test -n "$ac_config_commands"; then
25088 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25091 cat >>$CONFIG_STATUS <<\_ACEOF
25094 \`$as_me' instantiates files from templates according to the
25095 current configuration.
25097 Usage: $0 [OPTIONS] [FILE]...
25099 -h, --help print this help, then exit
25100 -V, --version print version number, then exit
25101 -q, --quiet do not print progress messages
25102 -d, --debug don't remove temporary files
25103 --recheck update $as_me by reconfiguring in the same conditions
25104 --file=FILE[:TEMPLATE]
25105 instantiate the configuration file FILE
25106 --header=FILE[:TEMPLATE]
25107 instantiate the configuration header FILE
25109 Configuration files:
25112 Configuration headers:
25115 Configuration links:
25118 Configuration commands:
25121 Report bugs to <bug-autoconf@gnu.org>."
25124 cat >>$CONFIG_STATUS <<_ACEOF
25126 PostgreSQL config.status 8.3beta1
25127 configured by $0, generated by GNU Autoconf 2.59,
25128 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25130 Copyright (C) 2003 Free Software Foundation, Inc.
25131 This config.status script is free software; the Free Software Foundation
25132 gives unlimited permission to copy, distribute and modify it."
25136 cat >>$CONFIG_STATUS <<\_ACEOF
25137 # If no file are specified by the user, then we need to provide default
25138 # value. By we need to know if files were specified by the user.
25144 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25145 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25153 *) # This is not an option, so the user has probably given explicit
25156 ac_need_defaults=false;;
25160 # Handling of the options.
25162 cat >>$CONFIG_STATUS <<\_ACEOF
25163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25165 --version | --vers* | -V )
25166 echo "$ac_cs_version"; exit 0 ;;
25168 # Conflict between --help and --header
25169 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25170 Try \`$0 --help' for more information." >&5
25171 echo "$as_me: error: ambiguous option: $1
25172 Try \`$0 --help' for more information." >&2;}
25173 { (exit 1); exit 1; }; };;
25174 --help | --hel | -h )
25175 echo "$ac_cs_usage"; exit 0 ;;
25176 --debug | --d* | -d )
25178 --file | --fil | --fi | --f )
25180 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25181 ac_need_defaults=false;;
25182 --header | --heade | --head | --hea )
25184 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25185 ac_need_defaults=false;;
25186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25190 # This is an error.
25191 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25192 Try \`$0 --help' for more information." >&5
25193 echo "$as_me: error: unrecognized option: $1
25194 Try \`$0 --help' for more information." >&2;}
25195 { (exit 1); exit 1; }; } ;;
25197 *) ac_config_targets="$ac_config_targets $1" ;;
25203 ac_configure_extra_args=
25205 if $ac_cs_silent; then
25207 ac_configure_extra_args="$ac_configure_extra_args --silent"
25211 cat >>$CONFIG_STATUS <<_ACEOF
25212 if \$ac_cs_recheck; then
25213 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25214 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25223 cat >>$CONFIG_STATUS <<\_ACEOF
25224 for ac_config_target in $ac_config_targets
25226 case "$ac_config_target" in
25227 # Handling of arguments.
25228 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
25229 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
25230 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25231 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25232 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25233 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25234 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25235 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25236 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25237 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
25238 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
25239 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25242 { (exit 1); exit 1; }; };;
25246 # If the user did not use the arguments to specify the items to instantiate,
25247 # then the envvar interface is used. Set only those that are not.
25248 # We use the long form for the default assignment because of an extremely
25249 # bizarre bug on SunOS 4.1.3.
25250 if $ac_need_defaults; then
25251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25253 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25257 # Have a temporary directory for convenience. Make it in the build tree
25258 # simply because there is no reason to put it here, and in addition,
25259 # creating and moving files from /tmp can sometimes cause problems.
25260 # Create a temporary directory, and hook for its removal unless debugging.
25263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25264 trap '{ (exit 1); exit 1; }' 1 2 13 15
25267 # Create a (secure) tmp directory for tmp files.
25270 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25271 test -n "$tmp" && test -d "$tmp"
25274 tmp=./confstat$$-$RANDOM
25275 (umask 077 && mkdir $tmp)
25278 echo "$me: cannot create a temporary directory in ." >&2
25279 { (exit 1); exit 1; }
25284 cat >>$CONFIG_STATUS <<_ACEOF
25287 # CONFIG_FILES section.
25290 # No need to generate the scripts if there are no CONFIG_FILES.
25291 # This happens for instance when ./config.status config.h
25292 if test -n "\$CONFIG_FILES"; then
25293 # Protect against being on the right side of a sed subst in config.status.
25294 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25295 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25296 s,@SHELL@,$SHELL,;t t
25297 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25298 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25299 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25300 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25301 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25302 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25303 s,@exec_prefix@,$exec_prefix,;t t
25304 s,@prefix@,$prefix,;t t
25305 s,@program_transform_name@,$program_transform_name,;t t
25306 s,@bindir@,$bindir,;t t
25307 s,@sbindir@,$sbindir,;t t
25308 s,@libexecdir@,$libexecdir,;t t
25309 s,@datadir@,$datadir,;t t
25310 s,@sysconfdir@,$sysconfdir,;t t
25311 s,@sharedstatedir@,$sharedstatedir,;t t
25312 s,@localstatedir@,$localstatedir,;t t
25313 s,@libdir@,$libdir,;t t
25314 s,@includedir@,$includedir,;t t
25315 s,@oldincludedir@,$oldincludedir,;t t
25316 s,@infodir@,$infodir,;t t
25317 s,@mandir@,$mandir,;t t
25318 s,@build_alias@,$build_alias,;t t
25319 s,@host_alias@,$host_alias,;t t
25320 s,@target_alias@,$target_alias,;t t
25321 s,@DEFS@,$DEFS,;t t
25322 s,@ECHO_C@,$ECHO_C,;t t
25323 s,@ECHO_N@,$ECHO_N,;t t
25324 s,@ECHO_T@,$ECHO_T,;t t
25325 s,@LIBS@,$LIBS,;t t
25326 s,@configure_args@,$configure_args,;t t
25327 s,@build@,$build,;t t
25328 s,@build_cpu@,$build_cpu,;t t
25329 s,@build_vendor@,$build_vendor,;t t
25330 s,@build_os@,$build_os,;t t
25331 s,@host@,$host,;t t
25332 s,@host_cpu@,$host_cpu,;t t
25333 s,@host_vendor@,$host_vendor,;t t
25334 s,@host_os@,$host_os,;t t
25335 s,@PORTNAME@,$PORTNAME,;t t
25336 s,@docdir@,$docdir,;t t
25337 s,@enable_nls@,$enable_nls,;t t
25338 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
25339 s,@default_port@,$default_port,;t t
25340 s,@enable_shared@,$enable_shared,;t t
25341 s,@enable_rpath@,$enable_rpath,;t t
25342 s,@enable_debug@,$enable_debug,;t t
25343 s,@enable_profiling@,$enable_profiling,;t t
25344 s,@DTRACE@,$DTRACE,;t t
25345 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
25346 s,@enable_dtrace@,$enable_dtrace,;t t
25348 s,@CFLAGS@,$CFLAGS,;t t
25349 s,@LDFLAGS@,$LDFLAGS,;t t
25350 s,@CPPFLAGS@,$CPPFLAGS,;t t
25351 s,@ac_ct_CC@,$ac_ct_CC,;t t
25352 s,@EXEEXT@,$EXEEXT,;t t
25353 s,@OBJEXT@,$OBJEXT,;t t
25357 s,@autodepend@,$autodepend,;t t
25358 s,@INCLUDES@,$INCLUDES,;t t
25359 s,@enable_thread_safety@,$enable_thread_safety,;t t
25360 s,@with_tcl@,$with_tcl,;t t
25361 s,@with_perl@,$with_perl,;t t
25362 s,@with_python@,$with_python,;t t
25363 s,@with_gssapi@,$with_gssapi,;t t
25364 s,@with_krb5@,$with_krb5,;t t
25365 s,@krb_srvtab@,$krb_srvtab,;t t
25366 s,@with_pam@,$with_pam,;t t
25367 s,@with_ldap@,$with_ldap,;t t
25368 s,@with_bonjour@,$with_bonjour,;t t
25369 s,@with_openssl@,$with_openssl,;t t
25370 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
25371 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25372 s,@with_libxml@,$with_libxml,;t t
25373 s,@with_libxslt@,$with_libxslt,;t t
25374 s,@with_system_tzdata@,$with_system_tzdata,;t t
25375 s,@with_zlib@,$with_zlib,;t t
25376 s,@EGREP@,$EGREP,;t t
25377 s,@ELF_SYS@,$ELF_SYS,;t t
25378 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
25380 s,@with_gnu_ld@,$with_gnu_ld,;t t
25381 s,@ld_R_works@,$ld_R_works,;t t
25382 s,@RANLIB@,$RANLIB,;t t
25383 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25384 s,@STRIP@,$STRIP,;t t
25385 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25386 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
25387 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
25389 s,@LN_S@,$LN_S,;t t
25391 s,@YACC@,$YACC,;t t
25392 s,@YFLAGS@,$YFLAGS,;t t
25393 s,@FLEX@,$FLEX,;t t
25394 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
25395 s,@PERL@,$PERL,;t t
25396 s,@perl_archlibexp@,$perl_archlibexp,;t t
25397 s,@perl_privlibexp@,$perl_privlibexp,;t t
25398 s,@perl_useshrplib@,$perl_useshrplib,;t t
25399 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
25400 s,@PYTHON@,$PYTHON,;t t
25401 s,@python_version@,$python_version,;t t
25402 s,@python_configdir@,$python_configdir,;t t
25403 s,@python_includespec@,$python_includespec,;t t
25404 s,@python_libdir@,$python_libdir,;t t
25405 s,@python_libspec@,$python_libspec,;t t
25406 s,@python_additional_libs@,$python_additional_libs,;t t
25407 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
25408 s,@LIBOBJS@,$LIBOBJS,;t t
25409 s,@acx_pthread_config@,$acx_pthread_config,;t t
25410 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25411 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25412 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25413 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
25414 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
25415 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
25416 s,@MSGFMT@,$MSGFMT,;t t
25417 s,@MSGMERGE@,$MSGMERGE,;t t
25418 s,@XGETTEXT@,$XGETTEXT,;t t
25419 s,@localedir@,$localedir,;t t
25420 s,@TCLSH@,$TCLSH,;t t
25421 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
25422 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
25423 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
25424 s,@TCL_LIBS@,$TCL_LIBS,;t t
25425 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25426 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
25427 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25428 s,@NSGMLS@,$NSGMLS,;t t
25429 s,@JADE@,$JADE,;t t
25430 s,@have_docbook@,$have_docbook,;t t
25431 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
25432 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
25433 s,@SGMLSPL@,$SGMLSPL,;t t
25434 s,@vpath_build@,$vpath_build,;t t
25435 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25440 cat >>$CONFIG_STATUS <<\_ACEOF
25441 # Split the substitutions into bite-sized pieces for seds with
25442 # small command number limits, like on Digital OSF/1 and HP-UX.
25443 ac_max_sed_lines=48
25444 ac_sed_frag=1 # Number of current file.
25445 ac_beg=1 # First line for current file.
25446 ac_end=$ac_max_sed_lines # Line after last line for current file.
25449 while $ac_more_lines; do
25450 if test $ac_beg -gt 1; then
25451 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25453 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25455 if test ! -s $tmp/subs.frag; then
25456 ac_more_lines=false
25458 # The purpose of the label and of the branching condition is to
25459 # speed up the sed processing (if there are no `@' at all, there
25460 # is no need to browse any of the substitutions).
25461 # These are the two extra sed commands mentioned above.
25463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25464 if test -z "$ac_sed_cmds"; then
25465 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25467 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25469 ac_sed_frag=`expr $ac_sed_frag + 1`
25471 ac_end=`expr $ac_end + $ac_max_sed_lines`
25474 if test -z "$ac_sed_cmds"; then
25477 fi # test -n "$CONFIG_FILES"
25480 cat >>$CONFIG_STATUS <<\_ACEOF
25481 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25484 - | *:- | *:-:* ) # input from stdin
25486 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25488 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25490 * ) ac_file_in=$ac_file.in ;;
25493 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25494 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25496 X"$ac_file" : 'X\(//\)[^/]' \| \
25497 X"$ac_file" : 'X\(//\)$' \| \
25498 X"$ac_file" : 'X\(/\)' \| \
25499 . : '\(.\)' 2>/dev/null ||
25501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25503 /^X\(\/\/\)$/{ s//\1/; q; }
25504 /^X\(\/\).*/{ s//\1/; q; }
25506 { if $as_mkdir_p; then
25511 while test ! -d "$as_dir"; do
25512 as_dirs="$as_dir $as_dirs"
25513 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25515 X"$as_dir" : 'X\(//\)[^/]' \| \
25516 X"$as_dir" : 'X\(//\)$' \| \
25517 X"$as_dir" : 'X\(/\)' \| \
25518 . : '\(.\)' 2>/dev/null ||
25520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25522 /^X\(\/\/\)$/{ s//\1/; q; }
25523 /^X\(\/\).*/{ s//\1/; q; }
25526 test ! -n "$as_dirs" || mkdir $as_dirs
25527 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25529 { (exit 1); exit 1; }; }; }
25533 if test "$ac_dir" != .; then
25534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25535 # A "../" for each directory in $ac_dir_suffix.
25536 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25538 ac_dir_suffix= ac_top_builddir=
25542 .) # No --srcdir option. We are building in place.
25544 if test -z "$ac_top_builddir"; then
25547 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25549 [\\/]* | ?:[\\/]* ) # Absolute path.
25550 ac_srcdir=$srcdir$ac_dir_suffix;
25551 ac_top_srcdir=$srcdir ;;
25552 *) # Relative path.
25553 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25554 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25557 # Do not use `cd foo && pwd` to compute absolute paths, because
25558 # the directories may not exist.
25560 .) ac_abs_builddir="$ac_dir";;
25563 .) ac_abs_builddir=`pwd`;;
25564 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25565 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25568 case $ac_abs_builddir in
25569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25571 case ${ac_top_builddir}. in
25572 .) ac_abs_top_builddir=$ac_abs_builddir;;
25573 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25574 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25577 case $ac_abs_builddir in
25578 .) ac_abs_srcdir=$ac_srcdir;;
25581 .) ac_abs_srcdir=$ac_abs_builddir;;
25582 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25583 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25586 case $ac_abs_builddir in
25587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25589 case $ac_top_srcdir in
25590 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25591 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25592 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25598 if test x"$ac_file" != x-; then
25599 { echo "$as_me:$LINENO: creating $ac_file" >&5
25600 echo "$as_me: creating $ac_file" >&6;}
25603 # Let's still pretend it is `configure' which instantiates (i.e., don't
25604 # use $as_me), people would be surprised to read:
25605 # /* config.h. Generated by config.status. */
25606 if test x"$ac_file" = x-; then
25609 configure_input="$ac_file. "
25611 configure_input=$configure_input"Generated from `echo $ac_file_in |
25612 sed 's,.*/,,'` by configure."
25614 # First look for the input files in the build tree, otherwise in the
25616 ac_file_inputs=`IFS=:
25617 for f in $ac_file_in; do
25619 -) echo $tmp/stdin ;;
25621 # Absolute (can't be DOS-style, as IFS=:)
25622 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25623 echo "$as_me: error: cannot find input file: $f" >&2;}
25624 { (exit 1); exit 1; }; }
25627 if test -f "$f"; then
25630 elif test -f "$srcdir/$f"; then
25635 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25636 echo "$as_me: error: cannot find input file: $f" >&2;}
25637 { (exit 1); exit 1; }; }
25640 done` || { (exit 1); exit 1; }
25642 cat >>$CONFIG_STATUS <<_ACEOF
25646 cat >>$CONFIG_STATUS <<\_ACEOF
25648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25649 s,@configure_input@,$configure_input,;t t
25650 s,@srcdir@,$ac_srcdir,;t t
25651 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25652 s,@top_srcdir@,$ac_top_srcdir,;t t
25653 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25654 s,@builddir@,$ac_builddir,;t t
25655 s,@abs_builddir@,$ac_abs_builddir,;t t
25656 s,@top_builddir@,$ac_top_builddir,;t t
25657 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25660 if test x"$ac_file" != x-; then
25661 mv $tmp/out $ac_file
25669 cat >>$CONFIG_STATUS <<\_ACEOF
25672 # CONFIG_HEADER section.
25675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25678 # ac_d sets the value in "#define NAME VALUE" lines.
25679 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25680 ac_dB='[ ].*$,\1#\2'
25683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25684 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25685 ac_uB='$,\1#\2define\3'
25689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25692 - | *:- | *:-:* ) # input from stdin
25694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25698 * ) ac_file_in=$ac_file.in ;;
25701 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25702 echo "$as_me: creating $ac_file" >&6;}
25704 # First look for the input files in the build tree, otherwise in the
25706 ac_file_inputs=`IFS=:
25707 for f in $ac_file_in; do
25709 -) echo $tmp/stdin ;;
25711 # Absolute (can't be DOS-style, as IFS=:)
25712 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25713 echo "$as_me: error: cannot find input file: $f" >&2;}
25714 { (exit 1); exit 1; }; }
25715 # Do quote $f, to prevent DOS paths from being IFS'd.
25718 if test -f "$f"; then
25721 elif test -f "$srcdir/$f"; then
25726 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25727 echo "$as_me: error: cannot find input file: $f" >&2;}
25728 { (exit 1); exit 1; }; }
25731 done` || { (exit 1); exit 1; }
25732 # Remove the trailing spaces.
25733 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25737 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25738 # `conftest.undefs', that substitutes the proper values into
25739 # config.h.in to produce config.h. The first handles `#define'
25740 # templates, and the second `#undef' templates.
25741 # And first: Protect against being on the right side of a sed subst in
25742 # config.status. Protect against being in an unquoted here document
25743 # in config.status.
25744 rm -f conftest.defines conftest.undefs
25745 # Using a here document instead of a string reduces the quoting nightmare.
25746 # Putting comments in sed scripts is not portable.
25748 # `end' is used to avoid that the second main sed command (meant for
25749 # 0-ary CPP macros) applies to n-ary macro definitions.
25750 # See the Autoconf documentation for `clear'.
25751 cat >confdef2sed.sed <<\_ACEOF
25756 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25758 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25761 # If some macros were called several times there might be several times
25762 # the same #defines, which is useless. Nevertheless, we may not want to
25763 # sort them, since we want the *last* AC-DEFINE to be honored.
25764 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25765 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25766 rm -f confdef2sed.sed
25768 # This sed command replaces #undef with comments. This is necessary, for
25769 # example, in the case of _POSIX_SOURCE, which is predefined and required
25770 # on some systems where configure will not decide to define it.
25771 cat >>conftest.undefs <<\_ACEOF
25772 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25775 # Break up conftest.defines because some shells have a limit on the size
25776 # of here documents, and old seds have small limits too (100 cmds).
25777 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25778 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25779 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25780 echo ' :' >>$CONFIG_STATUS
25781 rm -f conftest.tail
25782 while grep . conftest.defines >/dev/null
25784 # Write a limited-size here document to $tmp/defines.sed.
25785 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25786 # Speed up: don't consider the non `#define' lines.
25787 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25788 # Work around the forget-to-reset-the-flag bug.
25789 echo 't clr' >>$CONFIG_STATUS
25790 echo ': clr' >>$CONFIG_STATUS
25791 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25793 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25795 mv $tmp/out $tmp/in
25797 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25798 rm -f conftest.defines
25799 mv conftest.tail conftest.defines
25801 rm -f conftest.defines
25802 echo ' fi # grep' >>$CONFIG_STATUS
25803 echo >>$CONFIG_STATUS
25805 # Break up conftest.undefs because some shells have a limit on the size
25806 # of here documents, and old seds have small limits too (100 cmds).
25807 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25808 rm -f conftest.tail
25809 while grep . conftest.undefs >/dev/null
25811 # Write a limited-size here document to $tmp/undefs.sed.
25812 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25813 # Speed up: don't consider the non `#undef'
25814 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25815 # Work around the forget-to-reset-the-flag bug.
25816 echo 't clr' >>$CONFIG_STATUS
25817 echo ': clr' >>$CONFIG_STATUS
25818 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25820 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25822 mv $tmp/out $tmp/in
25824 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25825 rm -f conftest.undefs
25826 mv conftest.tail conftest.undefs
25828 rm -f conftest.undefs
25830 cat >>$CONFIG_STATUS <<\_ACEOF
25831 # Let's still pretend it is `configure' which instantiates (i.e., don't
25832 # use $as_me), people would be surprised to read:
25833 # /* config.h. Generated by config.status. */
25834 if test x"$ac_file" = x-; then
25835 echo "/* Generated by configure. */" >$tmp/config.h
25837 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25839 cat $tmp/in >>$tmp/config.h
25841 if test x"$ac_file" != x-; then
25842 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25843 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25844 echo "$as_me: $ac_file is unchanged" >&6;}
25846 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25848 X"$ac_file" : 'X\(//\)[^/]' \| \
25849 X"$ac_file" : 'X\(//\)$' \| \
25850 X"$ac_file" : 'X\(/\)' \| \
25851 . : '\(.\)' 2>/dev/null ||
25853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25855 /^X\(\/\/\)$/{ s//\1/; q; }
25856 /^X\(\/\).*/{ s//\1/; q; }
25858 { if $as_mkdir_p; then
25863 while test ! -d "$as_dir"; do
25864 as_dirs="$as_dir $as_dirs"
25865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25867 X"$as_dir" : 'X\(//\)[^/]' \| \
25868 X"$as_dir" : 'X\(//\)$' \| \
25869 X"$as_dir" : 'X\(/\)' \| \
25870 . : '\(.\)' 2>/dev/null ||
25872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25874 /^X\(\/\/\)$/{ s//\1/; q; }
25875 /^X\(\/\).*/{ s//\1/; q; }
25878 test ! -n "$as_dirs" || mkdir $as_dirs
25879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25881 { (exit 1); exit 1; }; }; }
25884 mv $tmp/config.h $ac_file
25888 rm -f $tmp/config.h
25890 # Run the commands associated with the file.
25892 src/include/pg_config.h )
25893 # Update timestamp for pg_config.h (see Makefile.global)
25894 echo >src/include/stamp-h
25899 cat >>$CONFIG_STATUS <<\_ACEOF
25902 # CONFIG_LINKS section.
25905 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25906 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25907 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25909 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25910 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25912 if test ! -r $srcdir/$ac_source; then
25913 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25914 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25915 { (exit 1); exit 1; }; }
25919 # Make relative symlinks.
25920 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25921 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25922 X"$ac_dest" : 'X\(//\)[^/]' \| \
25923 X"$ac_dest" : 'X\(//\)$' \| \
25924 X"$ac_dest" : 'X\(/\)' \| \
25925 . : '\(.\)' 2>/dev/null ||
25927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25929 /^X\(\/\/\)$/{ s//\1/; q; }
25930 /^X\(\/\).*/{ s//\1/; q; }
25932 { if $as_mkdir_p; then
25933 mkdir -p "$ac_dest_dir"
25935 as_dir="$ac_dest_dir"
25937 while test ! -d "$as_dir"; do
25938 as_dirs="$as_dir $as_dirs"
25939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25941 X"$as_dir" : 'X\(//\)[^/]' \| \
25942 X"$as_dir" : 'X\(//\)$' \| \
25943 X"$as_dir" : 'X\(/\)' \| \
25944 . : '\(.\)' 2>/dev/null ||
25946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25948 /^X\(\/\/\)$/{ s//\1/; q; }
25949 /^X\(\/\).*/{ s//\1/; q; }
25952 test ! -n "$as_dirs" || mkdir $as_dirs
25953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25954 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25955 { (exit 1); exit 1; }; }; }
25959 if test "$ac_dest_dir" != .; then
25960 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25961 # A "../" for each directory in $ac_dir_suffix.
25962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25964 ac_dir_suffix= ac_top_builddir=
25968 .) # No --srcdir option. We are building in place.
25970 if test -z "$ac_top_builddir"; then
25973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25975 [\\/]* | ?:[\\/]* ) # Absolute path.
25976 ac_srcdir=$srcdir$ac_dir_suffix;
25977 ac_top_srcdir=$srcdir ;;
25978 *) # Relative path.
25979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25983 # Do not use `cd foo && pwd` to compute absolute paths, because
25984 # the directories may not exist.
25986 .) ac_abs_builddir="$ac_dest_dir";;
25988 case "$ac_dest_dir" in
25989 .) ac_abs_builddir=`pwd`;;
25990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25991 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25994 case $ac_abs_builddir in
25995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25997 case ${ac_top_builddir}. in
25998 .) ac_abs_top_builddir=$ac_abs_builddir;;
25999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26003 case $ac_abs_builddir in
26004 .) ac_abs_srcdir=$ac_srcdir;;
26007 .) ac_abs_srcdir=$ac_abs_builddir;;
26008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26012 case $ac_abs_builddir in
26013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26015 case $ac_top_srcdir in
26016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26024 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26025 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26028 # Try a symlink, then a hard link, then a copy.
26029 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26030 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26031 cp -p $srcdir/$ac_source $ac_dest ||
26032 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26033 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26034 { (exit 1); exit 1; }; }
26037 cat >>$CONFIG_STATUS <<\_ACEOF
26040 # CONFIG_COMMANDS section.
26042 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26043 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26044 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26045 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26046 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26047 X"$ac_dest" : 'X\(//\)[^/]' \| \
26048 X"$ac_dest" : 'X\(//\)$' \| \
26049 X"$ac_dest" : 'X\(/\)' \| \
26050 . : '\(.\)' 2>/dev/null ||
26052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26054 /^X\(\/\/\)$/{ s//\1/; q; }
26055 /^X\(\/\).*/{ s//\1/; q; }
26057 { if $as_mkdir_p; then
26062 while test ! -d "$as_dir"; do
26063 as_dirs="$as_dir $as_dirs"
26064 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26066 X"$as_dir" : 'X\(//\)[^/]' \| \
26067 X"$as_dir" : 'X\(//\)$' \| \
26068 X"$as_dir" : 'X\(/\)' \| \
26069 . : '\(.\)' 2>/dev/null ||
26071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26073 /^X\(\/\/\)$/{ s//\1/; q; }
26074 /^X\(\/\).*/{ s//\1/; q; }
26077 test ! -n "$as_dirs" || mkdir $as_dirs
26078 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26079 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26080 { (exit 1); exit 1; }; }; }
26084 if test "$ac_dir" != .; then
26085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26086 # A "../" for each directory in $ac_dir_suffix.
26087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26089 ac_dir_suffix= ac_top_builddir=
26093 .) # No --srcdir option. We are building in place.
26095 if test -z "$ac_top_builddir"; then
26098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26100 [\\/]* | ?:[\\/]* ) # Absolute path.
26101 ac_srcdir=$srcdir$ac_dir_suffix;
26102 ac_top_srcdir=$srcdir ;;
26103 *) # Relative path.
26104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26108 # Do not use `cd foo && pwd` to compute absolute paths, because
26109 # the directories may not exist.
26111 .) ac_abs_builddir="$ac_dir";;
26114 .) ac_abs_builddir=`pwd`;;
26115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26119 case $ac_abs_builddir in
26120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26122 case ${ac_top_builddir}. in
26123 .) ac_abs_top_builddir=$ac_abs_builddir;;
26124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26128 case $ac_abs_builddir in
26129 .) ac_abs_srcdir=$ac_srcdir;;
26132 .) ac_abs_srcdir=$ac_abs_builddir;;
26133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26137 case $ac_abs_builddir in
26138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26140 case $ac_top_srcdir in
26141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26148 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26149 echo "$as_me: executing $ac_dest commands" >&6;}
26151 check_win32_symlinks )
26152 # Links sometimes fail undetected on Mingw -
26153 # so here we detect it and warn the user
26154 for FILE in $CONFIG_LINKS
26156 # test -e works for symlinks in the MinGW console
26157 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26158 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26165 cat >>$CONFIG_STATUS <<\_ACEOF
26167 { (exit 0); exit 0; }
26169 chmod +x $CONFIG_STATUS
26170 ac_clean_files=$ac_clean_files_save
26173 # configure is writing to config.log, and then calls config.status.
26174 # config.status does its own redirection, appending to config.log.
26175 # Unfortunately, on DOS this fails, as config.log is still kept open
26176 # by configure, so config.status won't be able to write to it; its
26177 # output is simply discarded. So we exec the FD to /dev/null,
26178 # effectively closing config.log, so it can be properly (re)opened and
26179 # appended to by config.status. When coming back to configure, we
26180 # need to make the FD available again.
26181 if test "$no_create" != yes; then
26183 ac_config_status_args=
26184 test "$silent" = yes &&
26185 ac_config_status_args="$ac_config_status_args --quiet"
26187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26190 # would make configure fail if this is the last instruction.
26191 $ac_cs_success || { (exit 1); exit 1; }
26195 # Warn about unknown options
26196 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26197 for pgac_arg in $pgac_args with_gnu_ld; do
26198 if test "$pgac_var" = "$pgac_arg"; then
26202 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26203 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26204 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}