2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2005, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB LORDER TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.2devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.2devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-depend turn on automatic dependency tracking
869 --enable-cassert enable assertion checks (for debugging)
870 --enable-thread-safety make client libraries thread-safe
871 --enable-thread-safety-force force thread-safety in spite of thread test failure
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
879 --without-docdir do not install the documentation
880 --with-includes=DIRS look for additional header files in DIRS
881 --with-libraries=DIRS look for additional libraries in DIRS
882 --with-libs=DIRS alternative spelling of --with-libraries
883 --with-pgport=PORTNUM change default port number [5432]
884 --with-tcl build Tcl modules (PL/Tcl)
885 --with-tclconfig=DIR tclConfig.sh is in DIR
886 --with-perl build Perl modules (PL/Perl)
887 --with-python build Python modules (PL/Python)
888 --with-krb5 build with Kerberos 5 support
889 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
890 --with-pam build with PAM support
891 --with-bonjour build with Bonjour support
892 --with-openssl build with OpenSSL support
893 --with-libedit-preferred prefer BSD Libedit over GNU Readline
894 --without-readline do not use GNU Readline / BSD Libedit line editing
895 --without-zlib do not use Zlib
896 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
908 location of DocBook stylesheets
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
913 Report bugs to <pgsql-bugs@postgresql.org>.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1009 PostgreSQL configure 8.2devel
1010 generated by GNU Autoconf 2.59
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1016 Copyright (c) 1996-2005, PostgreSQL Global Development Group
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by PostgreSQL $as_me 8.2devel, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next=false
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next=true ;;
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 for ac_dir in config $srcdir/config; do
1367 if test -f $ac_dir/install-sh; then
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 elif test -f $ac_dir/install.sh; then
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 elif test -f $ac_dir/shtool; then
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 configure_args=$ac_configure_args
1395 cat >>confdefs.h <<_ACEOF
1396 #define PG_VERSION "$PACKAGE_VERSION"
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456 echo "$as_me:$LINENO: checking which template to use" >&5
1457 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1462 # Check whether --with-template or --without-template was given.
1463 if test "${with_template+set}" = set; then
1464 withval="$with_template"
1468 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1469 echo "$as_me: error: argument required for --with-template option" >&2;}
1470 { (exit 1); exit 1; }; }
1473 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1474 echo "$as_me: error: argument required for --with-template option" >&2;}
1475 { (exit 1); exit 1; }; }
1480 list) echo; ls "$srcdir/src/template"; exit;;
1481 *) if test -f "$srcdir/src/template/$with_template" ; then
1484 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1485 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1486 { (exit 1); exit 1; }; }
1495 # --with-template not given
1498 aix*) template=aix ;;
1499 bsdi*) template=bsdi ;;
1500 cygwin*) template=cygwin ;;
1501 darwin*) template=darwin ;;
1502 dgux*) template=dgux ;;
1503 freebsd*) template=freebsd ;;
1504 hpux*) template=hpux ;;
1505 irix*) template=irix ;;
1506 linux*|gnu*|k*bsd*-gnu)
1508 mingw*) template=win32 ;;
1509 netbsd*) template=netbsd ;;
1510 nextstep*) template=nextstep ;;
1511 openbsd*) template=openbsd ;;
1512 osf*) template=osf ;;
1513 sco*) template=sco ;;
1514 solaris*) template=solaris ;;
1515 sunos*) template=sunos4 ;;
1517 case $host_vendor in
1518 univel) template=univel ;;
1520 sysv4*) template=svr4 ;;
1521 sysv5*) template=unixware ;;
1522 ultrix*) template=ultrix4 ;;
1525 if test x"$template" = x"" ; then
1526 { { echo "$as_me:$LINENO: error:
1527 *******************************************************************
1528 PostgreSQL has apparently not been ported to your platform yet.
1529 To try a manual configuration, look into the src/template directory
1530 for a similar platform and use the '--with-template=' option.
1532 Please also contact <pgsql-ports@postgresql.org> to see about
1533 rectifying this. Include the above 'checking host system type...'
1535 *******************************************************************
1537 echo "$as_me: error:
1538 *******************************************************************
1539 PostgreSQL has apparently not been ported to your platform yet.
1540 To try a manual configuration, look into the src/template directory
1541 for a similar platform and use the '--with-template=' option.
1543 Please also contact <pgsql-ports@postgresql.org> to see about
1544 rectifying this. Include the above 'checking host system type...'
1546 *******************************************************************
1548 { (exit 1); exit 1; }; }
1555 echo "$as_me:$LINENO: result: $template" >&5
1556 echo "${ECHO_T}$template" >&6
1561 # Initialize default assumption that we do not need separate assembly code
1562 # for TAS (test-and-set). This can be overridden by the template file
1563 # when it's executed.
1570 ## Command line options
1574 # Installation directory for documentation
1579 # Check whether --with-docdir or --without-docdir was given.
1580 if test "${with_docdir+set}" = set; then
1581 withval="$with_docdir"
1585 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1586 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1587 { (exit 1); exit 1; }; }
1598 docdir='${prefix}/doc'
1605 # Add non-standard directories to the include path
1610 # Check whether --with-includes or --without-includes was given.
1611 if test "${with_includes+set}" = set; then
1612 withval="$with_includes"
1616 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1617 echo "$as_me: error: argument required for --with-includes option" >&2;}
1618 { (exit 1); exit 1; }; }
1621 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1622 echo "$as_me: error: argument required for --with-includes option" >&2;}
1623 { (exit 1); exit 1; }; }
1635 # Add non-standard directories to the library search path
1640 # Check whether --with-libraries or --without-libraries was given.
1641 if test "${with_libraries+set}" = set; then
1642 withval="$with_libraries"
1646 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1647 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1648 { (exit 1); exit 1; }; }
1651 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1652 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1653 { (exit 1); exit 1; }; }
1656 LIBRARY_DIRS=$withval
1666 # Check whether --with-libs or --without-libs was given.
1667 if test "${with_libs+set}" = set; then
1668 withval="$with_libs"
1672 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1673 echo "$as_me: error: argument required for --with-libs option" >&2;}
1674 { (exit 1); exit 1; }; }
1677 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1678 echo "$as_me: error: argument required for --with-libs option" >&2;}
1679 { (exit 1); exit 1; }; }
1682 LIBRARY_DIRS=$withval
1691 # 64-bit integer date/time storage (--enable-integer-datetimes)
1693 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1694 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1697 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1698 if test "${enable_integer_datetimes+set}" = set; then
1699 enableval="$enable_integer_datetimes"
1704 cat >>confdefs.h <<\_ACEOF
1705 #define USE_INTEGER_DATETIMES 1
1713 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1714 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1715 { (exit 1); exit 1; }; }
1720 enable_integer_datetimes=no
1724 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1725 echo "${ECHO_T}$enable_integer_datetimes" >&6
1731 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1732 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1735 # Check whether --enable-nls or --disable-nls was given.
1736 if test "${enable_nls+set}" = set; then
1737 enableval="$enable_nls"
1748 WANTED_LANGUAGES=$enableval
1757 if test "$enable_nls" = yes; then
1759 cat >>confdefs.h <<\_ACEOF
1760 #define ENABLE_NLS 1
1765 echo "$as_me:$LINENO: result: $enable_nls" >&5
1766 echo "${ECHO_T}$enable_nls" >&6
1771 # Default port number (--with-pgport), default 5432
1773 echo "$as_me:$LINENO: checking for default port number" >&5
1774 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1778 # Check whether --with-pgport or --without-pgport was given.
1779 if test "${with_pgport+set}" = set; then
1780 withval="$with_pgport"
1784 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1785 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1786 { (exit 1); exit 1; }; }
1789 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1790 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1791 { (exit 1); exit 1; }; }
1794 default_port=$withval
1802 echo "$as_me:$LINENO: result: $default_port" >&5
1803 echo "${ECHO_T}$default_port" >&6
1804 # Need both of these because some places want an integer and some a string
1806 cat >>confdefs.h <<_ACEOF
1807 #define DEF_PGPORT ${default_port}
1811 cat >>confdefs.h <<_ACEOF
1812 #define DEF_PGPORT_STR "${default_port}"
1818 # Option to disable shared libraries
1822 # Check whether --enable-shared or --disable-shared was given.
1823 if test "${enable_shared+set}" = set; then
1824 enableval="$enable_shared"
1834 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1835 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1836 { (exit 1); exit 1; }; }
1848 # '-rpath'-like feature can be disabled
1852 # Check whether --enable-rpath or --disable-rpath was given.
1853 if test "${enable_rpath+set}" = set; then
1854 enableval="$enable_rpath"
1864 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1865 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1866 { (exit 1); exit 1; }; }
1882 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1883 if test "${enable_spinlocks+set}" = set; then
1884 enableval="$enable_spinlocks"
1894 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1895 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1896 { (exit 1); exit 1; }; }
1901 enable_spinlocks=yes
1907 # --enable-debug adds -g to compiler flags
1911 # Check whether --enable-debug or --disable-debug was given.
1912 if test "${enable_debug+set}" = set; then
1913 enableval="$enable_debug"
1923 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1924 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1925 { (exit 1); exit 1; }; }
1940 # For historical reasons you can also use --with-CC to specify the C compiler
1941 # to use, although the standard way to do this is to set the CC environment
1946 # Check whether --with-CC or --without-CC was given.
1947 if test "${with_CC+set}" = set; then
1952 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1953 echo "$as_me: error: argument required for --with-CC option" >&2;}
1954 { (exit 1); exit 1; }; }
1957 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1958 echo "$as_me: error: argument required for --with-CC option" >&2;}
1959 { (exit 1); exit 1; }; }
1970 aix) pgac_cc_list="gcc xlc";;
1971 irix) pgac_cc_list="cc";; # no gcc
1972 *) pgac_cc_list="gcc cc";;
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in $pgac_cc_list
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2018 test -n "$CC" && break
2021 if test -z "$CC"; then
2023 for ac_prog in $pgac_cc_list
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$ac_ct_CC" && break
2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO:" \
2075 "checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2078 (eval $ac_compiler --version </dev/null >&5) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2083 (eval $ac_compiler -v </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2088 (eval $ac_compiler -V </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2093 cat >conftest.$ac_ext <<_ACEOF
2096 cat confdefs.h >>conftest.$ac_ext
2097 cat >>conftest.$ac_ext <<_ACEOF
2098 /* end confdefs.h. */
2108 ac_clean_files_save=$ac_clean_files
2109 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2110 # Try to create an executable without -o first, disregard a.out.
2111 # It will help us diagnose broken compilers, and finding out an intuition
2113 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2114 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2115 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2117 (eval $ac_link_default) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 # Find the output, starting from the most likely. This scheme is
2122 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125 # Be careful to initialize this variable, since it used to be cached.
2126 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2128 # b.out is created by i960 compilers.
2129 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2131 test -f "$ac_file" || continue
2133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2136 # This is the source file.
2139 # We found the default executable, but exeext='' is most
2143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144 # FIXME: I believe we export ac_cv_exeext for Libtool,
2145 # but it would be cool to find out if it's true. Does anybody
2146 # maintain Libtool? --akim.
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&2;}
2161 { (exit 77); exit 77; }; }
2164 ac_exeext=$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 echo "${ECHO_T}$ac_file" >&6
2168 # Check the compiler produces executables we can run. If not, either
2169 # the compiler is broken, or we cross compile.
2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173 # If not cross compiling, check that we can run a simple program.
2174 if test "$cross_compiling" != yes; then
2175 if { ac_try='./$ac_file'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2183 if test "$cross_compiling" = maybe; then
2186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'.
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2196 echo "$as_me:$LINENO: result: yes" >&5
2197 echo "${ECHO_T}yes" >&6
2199 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2200 ac_clean_files=$ac_clean_files_save
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2205 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2206 echo "${ECHO_T}$cross_compiling" >&6
2208 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2211 (eval $ac_link) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2217 # work properly (i.e., refer to `conftest.exe'), while it won't with
2219 for ac_file in conftest.exe conftest conftest.*; do
2220 test -f "$ac_file" || continue
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2237 rm -f conftest$ac_cv_exeext
2238 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2239 echo "${ECHO_T}$ac_cv_exeext" >&6
2241 rm -f conftest.$ac_ext
2242 EXEEXT=$ac_cv_exeext
2244 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2245 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2246 if test "${ac_cv_objext+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 cat >conftest.$ac_ext <<_ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2264 rm -f conftest.o conftest.obj
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278 echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2290 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2291 echo "${ECHO_T}$ac_cv_objext" >&6
2292 OBJEXT=$ac_cv_objext
2294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2321 grep -v '^ *+' conftest.er1 >conftest.err
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2350 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2352 GCC=`test $ac_compiler_gnu = yes && echo yes`
2353 ac_test_CFLAGS=${CFLAGS+set}
2354 ac_save_CFLAGS=$CFLAGS
2356 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2358 if test "${ac_cv_prog_cc_g+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2409 if test "$ac_test_CFLAGS" = set; then
2410 CFLAGS=$ac_save_CFLAGS
2411 elif test $ac_cv_prog_cc_g = yes; then
2412 if test "$GCC" = yes; then
2418 if test "$GCC" = yes; then
2424 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 ac_cv_prog_cc_stdc=no
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2439 #include <sys/types.h>
2440 #include <sys/stat.h>
2441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2442 struct buf { int x; };
2443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2444 static char *e (p, i)
2450 static char *f (char * (*g) (char **, int), char **p, ...)
2455 s = g (p, va_arg (v,int));
2460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2461 function prototypes and stuff, but not '\xHH' hex character constants.
2462 These don't provoke an error unfortunately, instead are silently treated
2463 as 'x'. The following induces an error, until -std1 is added to get
2464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2465 array size at least. It's necessary to write '\x00'==0 to get something
2466 that's true only with -std1. */
2467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2469 int test (int i, double x);
2470 struct s1 {int (*f) (int a);};
2471 struct s2 {int (*f) (double a);};
2472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX 10.20 and later -Ae
2488 # HP-UX older versions -Aa -D_HPUX_SOURCE
2489 # SVR4 -Xc -D__EXTENSIONS__
2490 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2492 CC="$ac_save_CC $ac_arg"
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1 >conftest.err
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_prog_cc_stdc=$ac_arg
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 rm -f conftest.err conftest.$ac_objext
2524 rm -f conftest.$ac_ext conftest.$ac_objext
2529 case "x$ac_cv_prog_cc_stdc" in
2531 echo "$as_me:$LINENO: result: none needed" >&5
2532 echo "${ECHO_T}none needed" >&6 ;;
2534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536 CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 # Some people use a C++ compiler to compile C. Since we use `exit',
2540 # in C++ we need to declare it. In case someone uses the same compiler
2541 # for both compiling C and C++ we need to have the C++ compiler decide
2542 # the declaration of exit, since it's the most demanding environment.
2543 cat >conftest.$ac_ext <<_ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2552 grep -v '^ *+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 for ac_declaration in \
2572 'extern "C" void std::exit (int) throw (); using std::exit;' \
2573 'extern "C" void std::exit (int); using std::exit;' \
2574 'extern "C" void exit (int) throw ();' \
2575 'extern "C" void exit (int);' \
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 if test -n "$ac_declaration"; then
2671 echo '#ifdef __cplusplus' >>confdefs.h
2672 echo $ac_declaration >>confdefs.h
2673 echo '#endif' >>confdefs.h
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 . "$srcdir/src/template/$template" || exit
2696 # CFLAGS are selected so:
2697 # If the user specifies something in the environment, that is used.
2698 # else: If the template file set something, that is used.
2699 # else: If the compiler is GCC, then we use -O2.
2700 # else: If the compiler is something else, then we use -0.
2702 if test "$ac_env_CFLAGS_set" = set; then
2703 CFLAGS=$ac_env_CFLAGS_value
2704 elif test "${CFLAGS+set}" = set; then
2705 : # (keep what template set)
2706 elif test "$GCC" = yes; then
2709 # if the user selected debug mode, don't use -O
2710 if test "$enable_debug" != yes; then
2715 if test "$GCC" = yes; then
2716 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2718 # Some versions of GCC support some additional useful warning flags.
2719 # Check whether they are supported, and add them to CFLAGS if so.
2720 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2721 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2722 pgac_save_CFLAGS=$CFLAGS
2723 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 CFLAGS="$pgac_save_CFLAGS"
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2774 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2775 pgac_save_CFLAGS=$CFLAGS
2776 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 CFLAGS="$pgac_save_CFLAGS"
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 # Disable strict-aliasing rules; needed for gcc 3.3+
2828 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2829 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2830 pgac_save_CFLAGS=$CFLAGS
2831 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2875 CFLAGS="$pgac_save_CFLAGS"
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883 # supply -g if --enable-debug
2884 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2888 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2889 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2891 # We already have this in Makefile.win32, but configure needs it too
2892 if test "$PORTNAME" = "win32"; then
2893 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2896 # Check if the compiler still works with the template settings
2897 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2898 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2915 rm -f conftest.$ac_objext conftest$ac_exeext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917 (eval $ac_link) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -z "$ac_c_werror_flag"
2925 || test ! -s conftest.err'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; } &&
2931 { ac_try='test -s conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938 echo "${ECHO_T}yes" >&6
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2946 echo "$as_me: error: cannot proceed" >&2;}
2947 { (exit 1); exit 1; }; }
2949 rm -f conftest.err conftest.$ac_objext \
2950 conftest$ac_exeext conftest.$ac_ext
2952 # Defend against gcc -ffast-math
2953 if test "$GCC" = yes; then
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2964 #ifdef __FAST_MATH__
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2999 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3000 { (exit 1); exit 1; }; }
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3011 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3012 # On Suns, sometimes $CPP names a directory.
3013 if test -n "$CPP" && test -d "$CPP"; then
3016 if test -z "$CPP"; then
3017 if test "${ac_cv_prog_CPP+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 # Double quotes because CPP needs to be expanded
3021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3128 echo "$as_me:$LINENO: result: $CPP" >&5
3129 echo "${ECHO_T}$CPP" >&6
3131 for ac_c_preproc_warn_flag in '' yes
3133 # Use a header file that comes with gcc, so configuring glibc
3134 # with a fresh cross-compiler works.
3135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136 # <limits.h> exists even on freestanding compilers.
3137 # On the NeXT, cc -E runs the code through the compiler's parser,
3138 # not just through cpp. "Syntax error" is here to catch this case.
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3146 # include <limits.h>
3148 # include <assert.h>
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169 if test -z "$ac_cpp_err"; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 # Broken: fails on valid input.
3178 rm -f conftest.err conftest.$ac_ext
3180 # OK, works on sane cases. Now check whether non-existent headers
3181 # can be detected and how.
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <ac_nonexistent.h>
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207 if test -z "$ac_cpp_err"; then
3208 # Broken: success on invalid input.
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Passes both tests.
3218 rm -f conftest.err conftest.$ac_ext
3221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222 rm -f conftest.err conftest.$ac_ext
3223 if $ac_preproc_ok; then
3226 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 # Create compiler version string
3242 if test x"$GCC" = x"yes" ; then
3243 cc_string="GCC `${CC} --version | sed q`"
3248 cat >>confdefs.h <<_ACEOF
3249 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3255 # Set up TAS assembly code if needed; the template file has now had its
3256 # chance to request this.
3258 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3261 if test "$need_tas" = yes ; then
3270 # Automatic dependency tracking
3274 # Check whether --enable-depend or --disable-depend was given.
3275 if test "${enable_depend+set}" = set; then
3276 enableval="$enable_depend"
3286 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3287 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3288 { (exit 1); exit 1; }; }
3301 # Enable assert checks
3305 # Check whether --enable-cassert or --disable-cassert was given.
3306 if test "${enable_cassert+set}" = set; then
3307 enableval="$enable_cassert"
3312 cat >>confdefs.h <<\_ACEOF
3313 #define USE_ASSERT_CHECKING 1
3321 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3322 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3323 { (exit 1); exit 1; }; }
3335 # Include directories
3338 IFS="${IFS}${PATH_SEPARATOR}"
3339 # SRCH_INC comes from the template file
3340 for dir in $with_includes $SRCH_INC; do
3341 if test -d "$dir"; then
3342 INCLUDES="$INCLUDES -I$dir"
3344 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3345 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3353 # Library directories
3356 IFS="${IFS}${PATH_SEPARATOR}"
3357 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3358 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3359 if test -d "$dir"; then
3360 LIBDIRS="$LIBDIRS -L$dir"
3362 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3363 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3369 # Enable thread-safe client libraries
3371 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3372 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3375 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3376 if test "${enable_thread_safety+set}" = set; then
3377 enableval="$enable_thread_safety"
3387 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3388 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3389 { (exit 1); exit 1; }; }
3394 enable_thread_safety=no
3400 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3401 if test "${enable_thread_safety_force+set}" = set; then
3402 enableval="$enable_thread_safety_force"
3412 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3413 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3414 { (exit 1); exit 1; }; }
3419 enable_thread_safety_force=no
3423 if test "$enable_thread_safety" = yes -o \
3424 "$enable_thread_safety_force" = yes; then
3425 enable_thread_safety="yes" # for 'force'
3427 cat >>confdefs.h <<\_ACEOF
3428 #define ENABLE_THREAD_SAFETY 1
3432 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3433 echo "${ECHO_T}$enable_thread_safety" >&6
3437 # Optionally build Tcl modules (PL/Tcl)
3439 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3440 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3444 # Check whether --with-tcl or --without-tcl was given.
3445 if test "${with_tcl+set}" = set; then
3456 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3457 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3458 { (exit 1); exit 1; }; }
3467 echo "$as_me:$LINENO: result: $with_tcl" >&5
3468 echo "${ECHO_T}$with_tcl" >&6
3471 # We see if the path to the Tcl/Tk configuration scripts is specified.
3472 # This will override the use of tclsh to find the paths to search.
3477 # Check whether --with-tclconfig or --without-tclconfig was given.
3478 if test "${with_tclconfig+set}" = set; then
3479 withval="$with_tclconfig"
3483 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3484 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3485 { (exit 1); exit 1; }; }
3488 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3489 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3490 { (exit 1); exit 1; }; }
3501 # Optionally build Perl modules (PL/Perl)
3503 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3504 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3508 # Check whether --with-perl or --without-perl was given.
3509 if test "${with_perl+set}" = set; then
3510 withval="$with_perl"
3520 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3521 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3522 { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: result: $with_perl" >&5
3532 echo "${ECHO_T}$with_perl" >&6
3536 # Optionally build Python modules (PL/Python)
3538 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3539 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3543 # Check whether --with-python or --without-python was given.
3544 if test "${with_python+set}" = set; then
3545 withval="$with_python"
3555 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3556 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3557 { (exit 1); exit 1; }; }
3566 echo "$as_me:$LINENO: result: $with_python" >&5
3567 echo "${ECHO_T}$with_python" >&6
3573 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3574 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3578 # Check whether --with-krb5 or --without-krb5 was given.
3579 if test "${with_krb5+set}" = set; then
3580 withval="$with_krb5"
3586 cat >>confdefs.h <<\_ACEOF
3590 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3597 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3598 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3599 { (exit 1); exit 1; }; }
3608 echo "$as_me:$LINENO: result: $with_krb5" >&5
3609 echo "${ECHO_T}$with_krb5" >&6
3617 # Kerberos configuration parameters
3622 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3623 if test "${with_krb_srvnam+set}" = set; then
3624 withval="$with_krb_srvnam"
3628 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3629 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3630 { (exit 1); exit 1; }; }
3633 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3634 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3635 { (exit 1); exit 1; }; }
3643 with_krb_srvnam="postgres"
3647 cat >>confdefs.h <<_ACEOF
3648 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3656 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3657 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3661 # Check whether --with-pam or --without-pam was given.
3662 if test "${with_pam+set}" = set; then
3668 cat >>confdefs.h <<\_ACEOF
3677 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3678 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3679 { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: result: $with_pam" >&5
3689 echo "${ECHO_T}$with_pam" >&6
3696 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3697 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3701 # Check whether --with-bonjour or --without-bonjour was given.
3702 if test "${with_bonjour+set}" = set; then
3703 withval="$with_bonjour"
3708 cat >>confdefs.h <<\_ACEOF
3709 #define USE_BONJOUR 1
3717 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3718 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3719 { (exit 1); exit 1; }; }
3728 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3729 echo "${ECHO_T}$with_bonjour" >&6
3736 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3737 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3741 # Check whether --with-openssl or --without-openssl was given.
3742 if test "${with_openssl+set}" = set; then
3743 withval="$with_openssl"
3748 cat >>confdefs.h <<\_ACEOF
3757 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3758 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3759 { (exit 1); exit 1; }; }
3768 echo "$as_me:$LINENO: result: $with_openssl" >&5
3769 echo "${ECHO_T}$with_openssl" >&6
3779 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3780 if test "${with_libedit_preferred+set}" = set; then
3781 withval="$with_libedit_preferred"
3791 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3792 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3793 { (exit 1); exit 1; }; }
3798 with_libedit_preferred=no
3810 # Check whether --with-readline or --without-readline was given.
3811 if test "${with_readline+set}" = set; then
3812 withval="$with_readline"
3822 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3823 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3824 { (exit 1); exit 1; }; }
3833 # readline on MinGW has problems with backslashes in psql and other bugs.
3834 # This is particularly a problem with non-US code pages.
3835 # Therefore disable its use until we understand the cause. 2004-07-20
3836 if test "$PORTNAME" = "win32"; then
3837 if test "$with_readline" = yes; then
3838 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3839 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3851 # Check whether --with-zlib or --without-zlib was given.
3852 if test "${with_zlib+set}" = set; then
3853 withval="$with_zlib"
3863 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3864 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3865 { (exit 1); exit 1; }; }
3880 # Assume system is ELF if it predefines __ELF__ as 1,
3881 # otherwise believe host_os based default.
3883 freebsd1*|freebsd2*) elf=no;;
3884 freebsd3*|freebsd4*) elf=yes;;
3888 echo "$as_me:$LINENO: checking for egrep" >&5
3889 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3890 if test "${ac_cv_prog_egrep+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3894 then ac_cv_prog_egrep='grep -E'
3895 else ac_cv_prog_egrep='egrep'
3898 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3899 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3900 EGREP=$ac_cv_prog_egrep
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "yes" >/dev/null 2>&1; then
3918 if test "X$elf" = "Xyes" ; then
3932 CPPFLAGS="$CPPFLAGS $INCLUDES"
3933 LDFLAGS="$LDFLAGS $LIBDIRS"
3935 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3936 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3937 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3938 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3942 for ac_prog in gawk mawk nawk awk
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_prog_AWK+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test -n "$AWK"; then
3952 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_AWK="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test -n "$AWK"; then
3972 echo "$as_me:$LINENO: result: $AWK" >&5
3973 echo "${ECHO_T}$AWK" >&6
3975 echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3979 test -n "$AWK" && break
3982 echo "$as_me:$LINENO: checking for flex" >&5
3983 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3984 if test "${pgac_cv_path_flex+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 # Let the user override the test
3988 if test -n "$FLEX"; then
3989 pgac_cv_path_flex=$FLEX
3993 for pgac_dir in $PATH; do
3995 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3998 for pgac_prog in flex lex; do
3999 pgac_candidate="$pgac_dir/$pgac_prog"
4000 if test -f "$pgac_candidate" \
4001 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4003 echo '%%' > conftest.l
4004 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4005 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4006 pgac_broken_flex=$pgac_candidate
4010 pgac_cv_path_flex=$pgac_candidate
4016 rm -f conftest.l lex.yy.c
4017 : ${pgac_cv_path_flex=no}
4021 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4022 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4023 if test x"$pgac_cv_path_flex" = x"no"; then
4024 if test -n "$pgac_broken_flex"; then
4025 { echo "$as_me:$LINENO: WARNING:
4026 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4027 *** should get version 2.5.4 or later." >&5
4028 echo "$as_me: WARNING:
4029 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4030 *** should get version 2.5.4 or later." >&2;}
4033 { echo "$as_me:$LINENO: WARNING:
4034 *** Without Flex you will not be able to build PostgreSQL from CVS or
4035 *** change any of the scanner definition files. You can obtain Flex from
4036 *** a GNU mirror site. (If you are using the official distribution of
4037 *** PostgreSQL then you do not need to worry about this because the Flex
4038 *** output is pre-generated.)" >&5
4039 echo "$as_me: WARNING:
4040 *** Without Flex you will not be able to build PostgreSQL from CVS or
4041 *** change any of the scanner definition files. You can obtain Flex from
4042 *** a GNU mirror site. (If you are using the official distribution of
4043 *** PostgreSQL then you do not need to worry about this because the Flex
4044 *** output is pre-generated.)" >&2;}
4047 if test x"$pgac_cv_path_flex" = x"no"; then
4050 FLEX=$pgac_cv_path_flex
4056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4059 if test "$LN_S" = "ln -s"; then
4060 echo "$as_me:$LINENO: result: yes" >&5
4061 echo "${ECHO_T}yes" >&6
4063 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4064 echo "${ECHO_T}no, using $LN_S" >&6
4068 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4069 if test "${with_gnu_ld+set}" = set; then
4070 withval="$with_gnu_ld"
4071 test "$withval" = no || with_gnu_ld=yes
4076 if test "$GCC" = yes; then
4077 # Check if gcc -print-prog-name=ld gives a path.
4078 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4079 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4082 # gcc leaves a trailing carriage return which upsets mingw
4083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4088 # Accept absolute paths.
4089 [\\/]* | [A-Za-z]:[\\/]*)
4090 re_direlt='/[^/][^/]*/\.\./'
4091 # Canonicalize the path of ld
4092 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4093 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4094 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4096 test -z "$LD" && LD="$ac_prog"
4099 # If it fails, then pretend we aren't using GCC.
4103 # If it is relative, then search for the first ld in PATH.
4107 elif test "$with_gnu_ld" = yes; then
4108 echo "$as_me:$LINENO: checking for GNU ld" >&5
4109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4111 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4114 if test "${ac_cv_path_LD+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -z "$LD"; then
4118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4119 for ac_dir in $PATH; do
4120 test -z "$ac_dir" && ac_dir=.
4121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4122 ac_cv_path_LD="$ac_dir/$ac_prog"
4123 # Check to see if the program is GNU ld. I'd rather use --version,
4124 # but apparently some GNU ld's only accept -v.
4125 # Break only if it was the GNU/non-GNU ld that we prefer.
4126 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4127 test "$with_gnu_ld" != no && break
4129 test "$with_gnu_ld" != yes && break
4135 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4140 if test -n "$LD"; then
4141 echo "$as_me:$LINENO: result: $LD" >&5
4142 echo "${ECHO_T}$LD" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4149 { (exit 1); exit 1; }; }
4150 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4152 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4156 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4157 ac_cv_prog_gnu_ld=yes
4159 ac_cv_prog_gnu_ld=no
4162 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4164 with_gnu_ld=$ac_cv_prog_gnu_ld
4169 case $host_os in sysv5*)
4170 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4171 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4172 if test "${pgac_cv_prog_ld_R+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194 (eval $ac_link) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 pgac_cv_prog_ld_R=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 pgac_cv_prog_ld_R=no
4221 rm -f conftest.err conftest.$ac_objext \
4222 conftest$ac_exeext conftest.$ac_ext
4223 LDFLAGS=$pgac_save_LDFLAGS
4226 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4227 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4228 ld_R_works=$pgac_cv_prog_ld_R
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_RANLIB+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test -n "$RANLIB"; then
4240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 RANLIB=$ac_cv_prog_RANLIB
4259 if test -n "$RANLIB"; then
4260 echo "$as_me:$LINENO: result: $RANLIB" >&5
4261 echo "${ECHO_T}$RANLIB" >&6
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4268 if test -z "$ac_cv_prog_RANLIB"; then
4269 ac_ct_RANLIB=$RANLIB
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 if test -n "$ac_ct_RANLIB"; then
4278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_RANLIB="ranlib"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4298 if test -n "$ac_ct_RANLIB"; then
4299 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4300 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 RANLIB=$ac_ct_RANLIB
4308 RANLIB="$ac_cv_prog_RANLIB"
4311 for ac_prog in lorder
4313 # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 echo "$as_me:$LINENO: checking for $ac_word" >&5
4316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317 if test "${ac_cv_prog_LORDER+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 if test -n "$LORDER"; then
4321 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_LORDER="$ac_prog"
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 LORDER=$ac_cv_prog_LORDER
4340 if test -n "$LORDER"; then
4341 echo "$as_me:$LINENO: result: $LORDER" >&5
4342 echo "${ECHO_T}$LORDER" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 test -n "$LORDER" && break
4351 # Extract the first word of "tar", so it can be a program name with args.
4352 set dummy tar; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_path_TAR+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 if test -n "$TAR"; then
4383 echo "$as_me:$LINENO: result: $TAR" >&5
4384 echo "${ECHO_T}$TAR" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4393 set dummy ${ac_tool_prefix}strip; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_STRIP+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$STRIP"; then
4400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 STRIP=$ac_cv_prog_STRIP
4419 if test -n "$STRIP"; then
4420 echo "$as_me:$LINENO: result: $STRIP" >&5
4421 echo "${ECHO_T}$STRIP" >&6
4423 echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4428 if test -z "$ac_cv_prog_STRIP"; then
4430 # Extract the first word of "strip", so it can be a program name with args.
4431 set dummy strip; ac_word=$2
4432 echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$ac_ct_STRIP"; then
4438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_STRIP="strip"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4458 if test -n "$ac_ct_STRIP"; then
4459 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4460 echo "${ECHO_T}$ac_ct_STRIP" >&6
4462 echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4468 STRIP="$ac_cv_prog_STRIP"
4472 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4473 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4474 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4475 STRIP_STATIC_LIB="$STRIP -x"
4476 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4477 echo "$as_me:$LINENO: result: yes" >&5
4478 echo "${ECHO_T}yes" >&6
4482 echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4489 for ac_prog in 'bison -y'
4491 # Extract the first word of "$ac_prog", so it can be a program name with args.
4492 set dummy $ac_prog; ac_word=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_prog_YACC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$YACC"; then
4499 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_YACC="$ac_prog"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 YACC=$ac_cv_prog_YACC
4518 if test -n "$YACC"; then
4519 echo "$as_me:$LINENO: result: $YACC" >&5
4520 echo "${ECHO_T}$YACC" >&6
4522 echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4526 test -n "$YACC" && break
4530 if test "$YACC"; then
4531 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4532 { echo "$as_me:$LINENO: WARNING:
4533 *** If you are going to modify the grammar files or build from CVS, the installed
4534 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4535 echo "$as_me: WARNING:
4536 *** If you are going to modify the grammar files or build from CVS, the installed
4537 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4541 if test -z "$YACC"; then
4542 { echo "$as_me:$LINENO: WARNING:
4543 *** Without Bison you will not be able to build PostgreSQL from CVS or
4544 *** change any of the parser definition files. You can obtain Bison from
4545 *** a GNU mirror site. (If you are using the official distribution of
4546 *** PostgreSQL then you do not need to worry about this because the Bison
4547 *** output is pre-generated.) To use a different yacc program (possible,
4548 *** but not recommended), set the environment variable YACC before running
4549 *** 'configure'." >&5
4550 echo "$as_me: WARNING:
4551 *** Without Bison you will not be able to build PostgreSQL from CVS or
4552 *** change any of the parser definition files. You can obtain Bison from
4553 *** a GNU mirror site. (If you are using the official distribution of
4554 *** PostgreSQL then you do not need to worry about this because the Bison
4555 *** output is pre-generated.) To use a different yacc program (possible,
4556 *** but not recommended), set the environment variable YACC before running
4557 *** 'configure'." >&2;}
4561 # Extract the first word of "perl", so it can be a program name with args.
4562 set dummy perl; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_path_PERL+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 PERL=$ac_cv_path_PERL
4592 if test -n "$PERL"; then
4593 echo "$as_me:$LINENO: result: $PERL" >&5
4594 echo "${ECHO_T}$PERL" >&6
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4600 if test "$with_perl" = yes; then
4602 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4603 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4604 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4605 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4606 echo "${ECHO_T}$perl_archlibexp" >&6
4607 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4608 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4609 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4610 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4611 echo "${ECHO_T}$perl_privlibexp" >&6
4612 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4613 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4614 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4615 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4616 echo "${ECHO_T}$perl_useshrplib" >&6
4618 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4619 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4620 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4621 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4622 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4623 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4624 echo "${ECHO_T}$perl_embed_ldflags" >&6
4627 if test "$with_python" = yes; then
4628 # Extract the first word of "python", so it can be a program name with args.
4629 set dummy python; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_path_PYTHON+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 PYTHON=$ac_cv_path_PYTHON
4659 if test -n "$PYTHON"; then
4660 echo "$as_me:$LINENO: result: $PYTHON" >&5
4661 echo "${ECHO_T}$PYTHON" >&6
4663 echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4667 if test x"$PYTHON" = x""; then
4668 { { echo "$as_me:$LINENO: error: Python not found" >&5
4669 echo "$as_me: error: Python not found" >&2;}
4670 { (exit 1); exit 1; }; }
4674 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4675 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4676 if "${PYTHON}" 2>&- -c 'import distutils'
4678 echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4683 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4684 echo "$as_me: error: distutils module not found" >&2;}
4685 { (exit 1); exit 1; }; }
4687 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4688 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4689 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4690 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')"`
4691 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4693 # This should be enough of a message.
4694 echo "$as_me:$LINENO: result: $python_configdir" >&5
4695 echo "${ECHO_T}$python_configdir" >&6
4698 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4699 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4701 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4702 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4703 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4704 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4706 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4708 # New way: use the official shared library
4709 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4710 python_libspec="-L${python_libdir} -l${ldlibrary}"
4712 # Old way: use libpython from python_configdir
4713 python_libdir="${python_configdir}"
4714 python_libspec="-L${python_libdir} -lpython${python_version}"
4717 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4719 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4720 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4723 # threaded python is not supported on bsd's
4724 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4725 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4726 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4727 if test "$pythreads" = "1"; then
4728 echo "$as_me:$LINENO: result: yes" >&5
4729 echo "${ECHO_T}yes" >&6
4732 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4733 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4734 { (exit 1); exit 1; }; }
4738 echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4750 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4751 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4752 if test "${ac_cv_search_setproctitle+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 ac_func_search_save_LIBS=$LIBS
4756 ac_cv_search_setproctitle=no
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char setproctitle ();
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_c_werror_flag"
4789 || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_search_setproctitle="none required"
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4807 rm -f conftest.err conftest.$ac_objext \
4808 conftest$ac_exeext conftest.$ac_ext
4809 if test "$ac_cv_search_setproctitle" = no; then
4810 for ac_lib in util; do
4811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4812 cat >conftest.$ac_ext <<_ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4825 char setproctitle ();
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest$ac_exeext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_search_setproctitle="-l$ac_lib"
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4863 rm -f conftest.err conftest.$ac_objext \
4864 conftest$ac_exeext conftest.$ac_ext
4867 LIBS=$ac_func_search_save_LIBS
4869 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4870 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4871 if test "$ac_cv_search_setproctitle" != no; then
4872 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4876 echo "$as_me:$LINENO: checking for library containing pow" >&5
4877 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4878 if test "${ac_cv_search_pow+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 ac_func_search_save_LIBS=$LIBS
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4890 /* Override any gcc2 internal prototype to avoid an error. */
4894 /* We use char because int might match the return type of a gcc2
4895 builtin and then its argument prototype would still apply. */
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest$ac_exeext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_search_pow="none required"
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4933 rm -f conftest.err conftest.$ac_objext \
4934 conftest$ac_exeext conftest.$ac_ext
4935 if test "$ac_cv_search_pow" = no; then
4937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest$ac_exeext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_search_pow="-l$ac_lib"
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4993 LIBS=$ac_func_search_save_LIBS
4995 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
4996 echo "${ECHO_T}$ac_cv_search_pow" >&6
4997 if test "$ac_cv_search_pow" != no; then
4998 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5002 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5003 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5004 if test "${ac_cv_search_dlopen+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_func_search_save_LIBS=$LIBS
5008 ac_cv_search_dlopen=no
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_search_dlopen="none required"
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 if test "$ac_cv_search_dlopen" = no; then
5062 for ac_lib in dl; do
5063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_search_dlopen="-l$ac_lib"
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_func_search_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5122 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5123 if test "$ac_cv_search_dlopen" != no; then
5124 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5128 echo "$as_me:$LINENO: checking for library containing socket" >&5
5129 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5130 if test "${ac_cv_search_socket+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 ac_func_search_save_LIBS=$LIBS
5134 ac_cv_search_socket=no
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5142 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_search_socket="none required"
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5185 rm -f conftest.err conftest.$ac_objext \
5186 conftest$ac_exeext conftest.$ac_ext
5187 if test "$ac_cv_search_socket" = no; then
5188 for ac_lib in socket wsock32; do
5189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5197 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5212 rm -f conftest.$ac_objext conftest$ac_exeext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5214 (eval $ac_link) 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -z "$ac_c_werror_flag"
5222 || test ! -s conftest.err'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try='test -s conftest$ac_exeext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_search_socket="-l$ac_lib"
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f conftest.err conftest.$ac_objext \
5242 conftest$ac_exeext conftest.$ac_ext
5245 LIBS=$ac_func_search_save_LIBS
5247 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5248 echo "${ECHO_T}$ac_cv_search_socket" >&6
5249 if test "$ac_cv_search_socket" != no; then
5250 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5254 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5255 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5256 if test "${ac_cv_search_shl_load+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_func_search_save_LIBS=$LIBS
5260 ac_cv_search_shl_load=no
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest$ac_exeext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_cv_search_shl_load="none required"
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5311 rm -f conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5313 if test "$ac_cv_search_shl_load" = no; then
5314 for ac_lib in dld; do
5315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_search_shl_load="-l$ac_lib"
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5367 rm -f conftest.err conftest.$ac_objext \
5368 conftest$ac_exeext conftest.$ac_ext
5371 LIBS=$ac_func_search_save_LIBS
5373 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5374 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5375 if test "$ac_cv_search_shl_load" != no; then
5376 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5380 # We only use libld in port/dynloader/aix.c
5383 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5384 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5385 if test "${ac_cv_search_ldopen+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 ac_func_search_save_LIBS=$LIBS
5389 ac_cv_search_ldopen=no
5390 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5397 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414 (eval $ac_link) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try='test -z "$ac_c_werror_flag"
5422 || test ! -s conftest.err'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; } &&
5428 { ac_try='test -s conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 ac_cv_search_ldopen="none required"
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5440 rm -f conftest.err conftest.$ac_objext \
5441 conftest$ac_exeext conftest.$ac_ext
5442 if test "$ac_cv_search_ldopen" = no; then
5443 for ac_lib in ld; do
5444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5452 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5467 rm -f conftest.$ac_objext conftest$ac_exeext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5469 (eval $ac_link) 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -z "$ac_c_werror_flag"
5477 || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try='test -s conftest$ac_exeext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_search_ldopen="-l$ac_lib"
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5496 rm -f conftest.err conftest.$ac_objext \
5497 conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_func_search_save_LIBS
5502 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5503 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5504 if test "$ac_cv_search_ldopen" != no; then
5505 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5511 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5512 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5513 if test "${ac_cv_search_getopt_long+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_func_search_save_LIBS=$LIBS
5517 ac_cv_search_getopt_long=no
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5525 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5531 char getopt_long ();
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag"
5550 || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_search_getopt_long="none required"
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5568 rm -f conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570 if test "$ac_cv_search_getopt_long" = no; then
5571 for ac_lib in getopt gnugetopt; do
5572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5580 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5586 char getopt_long ();
5595 rm -f conftest.$ac_objext conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -z "$ac_c_werror_flag"
5605 || test ! -s conftest.err'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; } &&
5611 { ac_try='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_search_getopt_long="-l$ac_lib"
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5628 LIBS=$ac_func_search_save_LIBS
5630 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5631 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5632 if test "$ac_cv_search_getopt_long" != no; then
5633 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5637 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5638 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5639 if test "${ac_cv_search_crypt+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 ac_func_search_save_LIBS=$LIBS
5643 ac_cv_search_crypt=no
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5651 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668 (eval $ac_link) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag"
5676 || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_search_crypt="none required"
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5694 rm -f conftest.err conftest.$ac_objext \
5695 conftest$ac_exeext conftest.$ac_ext
5696 if test "$ac_cv_search_crypt" = no; then
5697 for ac_lib in crypt; do
5698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1 >conftest.err
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_search_crypt="-l$ac_lib"
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5750 rm -f conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5754 LIBS=$ac_func_search_save_LIBS
5756 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5757 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5758 if test "$ac_cv_search_crypt" != no; then
5759 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5764 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5765 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5766 if test "${ac_cv_search_fdatasync+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_fdatasync=no
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 /* Override any gcc2 internal prototype to avoid an error. */
5782 /* We use char because int might match the return type of a gcc2
5783 builtin and then its argument prototype would still apply. */
5793 rm -f conftest.$ac_objext conftest$ac_exeext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5795 (eval $ac_link) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_search_fdatasync="none required"
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f conftest.err conftest.$ac_objext \
5822 conftest$ac_exeext conftest.$ac_ext
5823 if test "$ac_cv_search_fdatasync" = no; then
5824 for ac_lib in rt posix4; do
5825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5833 /* Override any gcc2 internal prototype to avoid an error. */
5837 /* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>conftest.er1
5852 grep -v '^ *+' conftest.er1 >conftest.err
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_search_fdatasync="-l$ac_lib"
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_func_search_save_LIBS
5883 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5884 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5885 if test "$ac_cv_search_fdatasync" != no; then
5886 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5891 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5892 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5893 if test "${ac_cv_search_shmget+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_func_search_save_LIBS=$LIBS
5897 ac_cv_search_shmget=no
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5905 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922 (eval $ac_link) 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_search_shmget="none required"
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5948 rm -f conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5950 if test "$ac_cv_search_shmget" = no; then
5951 for ac_lib in cygipc; do
5952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5960 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag"
5985 || test ! -s conftest.err'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; } &&
5991 { ac_try='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_cv_search_shmget="-l$ac_lib"
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6004 rm -f conftest.err conftest.$ac_objext \
6005 conftest$ac_exeext conftest.$ac_ext
6008 LIBS=$ac_func_search_save_LIBS
6010 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6011 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6012 if test "$ac_cv_search_shmget" != no; then
6013 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6018 if test "$with_readline" = yes; then
6021 if test "${pgac_cv_check_readline+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 pgac_cv_check_readline=no
6025 pgac_save_LIBS=$LIBS
6026 if test x"$with_libedit_preferred" != x"yes"
6027 then READLINE_ORDER="-lreadline -ledit"
6028 else READLINE_ORDER="-ledit -lreadline"
6030 for pgac_rllib in $READLINE_ORDER ; do
6031 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6032 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6033 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6034 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6042 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1 >conftest.err
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest$ac_exeext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6080 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6081 # recognize dependent libraries; assume curses is needed if we didn't
6082 # find any dependency.
6084 netbsd* | openbsd* | irix*)
6085 if test x"$pgac_lib" = x"" ; then
6086 pgac_lib=" -lcurses"
6090 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6098 rm -f conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6101 if test "$pgac_cv_check_readline" != no ; then
6102 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6103 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6106 echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6
6110 LIBS=$pgac_save_LIBS
6114 if test "$pgac_cv_check_readline" != no ; then
6115 LIBS="$pgac_cv_check_readline $LIBS"
6117 cat >>confdefs.h <<\_ACEOF
6118 #define HAVE_LIBREADLINE 1
6124 if test x"$pgac_cv_check_readline" = x"no"; then
6125 { { echo "$as_me:$LINENO: error: readline library not found
6126 If you have readline already installed, see config.log for details on the
6127 failure. It is possible the compiler isn't looking in the proper directory.
6128 Use --without-readline to disable readline support." >&5
6129 echo "$as_me: error: readline library not found
6130 If you have readline already installed, see config.log for details on the
6131 failure. It is possible the compiler isn't looking in the proper directory.
6132 Use --without-readline to disable readline support." >&2;}
6133 { (exit 1); exit 1; }; }
6137 if test "$with_zlib" = yes; then
6139 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6140 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6141 if test "${ac_cv_lib_z_inflate+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 ac_check_lib_save_LIBS=$LIBS
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_lib_z_inflate=yes
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 ac_cv_lib_z_inflate=no
6197 rm -f conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6201 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6202 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6203 if test $ac_cv_lib_z_inflate = yes; then
6204 cat >>confdefs.h <<_ACEOF
6211 { { echo "$as_me:$LINENO: error: zlib library not found
6212 If you have zlib already installed, see config.log for details on the
6213 failure. It is possible the compiler isn't looking in the proper directory.
6214 Use --without-zlib to disable zlib support." >&5
6215 echo "$as_me: error: zlib library not found
6216 If you have zlib already installed, see config.log for details on the
6217 failure. It is possible the compiler isn't looking in the proper directory.
6218 Use --without-zlib to disable zlib support." >&2;}
6219 { (exit 1); exit 1; }; }
6224 if test "$enable_spinlocks" = yes; then
6226 cat >>confdefs.h <<\_ACEOF
6227 #define HAVE_SPINLOCKS 1
6231 { echo "$as_me:$LINENO: WARNING:
6232 *** Not using spinlocks will cause poor performance." >&5
6233 echo "$as_me: WARNING:
6234 *** Not using spinlocks will cause poor performance." >&2;}
6237 if test "$with_krb5" = yes ; then
6238 if test "$PORTNAME" != "win32"; then
6239 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6240 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6241 if test "${ac_cv_search_com_err+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 ac_func_search_save_LIBS=$LIBS
6245 ac_cv_search_com_err=no
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6253 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_c_werror_flag"
6278 || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_search_com_err="none required"
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6296 rm -f conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6298 if test "$ac_cv_search_com_err" = no; then
6299 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_c_werror_flag"
6333 || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_search_com_err="-l$ac_lib"
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6352 rm -f conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6356 LIBS=$ac_func_search_save_LIBS
6358 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6359 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6360 if test "$ac_cv_search_com_err" != no; then
6361 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6364 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6365 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6366 { (exit 1); exit 1; }; }
6369 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6370 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6371 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 ac_func_search_save_LIBS=$LIBS
6375 ac_cv_search_krb5_encrypt=no
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389 char krb5_encrypt ();
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>conftest.er1
6402 grep -v '^ *+' conftest.er1 >conftest.err
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_search_krb5_encrypt="none required"
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6426 rm -f conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6428 if test "$ac_cv_search_krb5_encrypt" = no; then
6429 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6438 /* Override any gcc2 internal prototype to avoid an error. */
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6444 char krb5_encrypt ();
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>conftest.er1
6457 grep -v '^ *+' conftest.er1 >conftest.err
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -z "$ac_c_werror_flag"
6463 || test ! -s conftest.err'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try='test -s conftest$ac_exeext'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_search_krb5_encrypt="-l$ac_lib"
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6482 rm -f conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6486 LIBS=$ac_func_search_save_LIBS
6488 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6489 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6490 if test "$ac_cv_search_krb5_encrypt" != no; then
6491 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6494 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6495 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6496 { (exit 1); exit 1; }; }
6499 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6500 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6501 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 ac_func_search_save_LIBS=$LIBS
6505 ac_cv_search_krb5_sendauth=no
6506 cat >conftest.$ac_ext <<_ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char krb5_sendauth ();
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_search_krb5_sendauth="none required"
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6556 rm -f conftest.err conftest.$ac_objext \
6557 conftest$ac_exeext conftest.$ac_ext
6558 if test "$ac_cv_search_krb5_sendauth" = no; then
6559 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6568 /* Override any gcc2 internal prototype to avoid an error. */
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6574 char krb5_sendauth ();
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585 (eval $ac_link) 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try='test -z "$ac_c_werror_flag"
6593 || test ! -s conftest.err'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; } &&
6599 { ac_try='test -s conftest$ac_exeext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_search_krb5_sendauth="-l$ac_lib"
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6612 rm -f conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_func_search_save_LIBS
6618 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6619 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6620 if test "$ac_cv_search_krb5_sendauth" != no; then
6621 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6624 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6625 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6626 { (exit 1); exit 1; }; }
6630 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6631 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6632 if test "${ac_cv_search_com_err+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_func_search_save_LIBS=$LIBS
6636 ac_cv_search_com_err=no
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661 (eval $ac_link) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest$ac_exeext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_search_com_err="none required"
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6687 rm -f conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6689 if test "$ac_cv_search_com_err" = no; then
6690 for ac_lib in 'comerr32 -lkrb5_32'; do
6691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6699 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>conftest.er1
6718 grep -v '^ *+' conftest.er1 >conftest.err
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try='test -s conftest$ac_exeext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_cv_search_com_err="-l$ac_lib"
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6743 rm -f conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6747 LIBS=$ac_func_search_save_LIBS
6749 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6750 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6751 if test "$ac_cv_search_com_err" != no; then
6752 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6755 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6756 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6757 { (exit 1); exit 1; }; }
6763 if test "$with_openssl" = yes ; then
6764 if test "$PORTNAME" != "win32"; then
6766 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6767 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6768 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_check_lib_save_LIBS=$LIBS
6772 LIBS="-lcrypto $LIBS"
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6784 /* We use char because int might match the return type of a gcc2
6785 builtin and then its argument prototype would still apply. */
6786 char CRYPTO_new_ex_data ();
6790 CRYPTO_new_ex_data ();
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>conftest.er1
6799 grep -v '^ *+' conftest.er1 >conftest.err
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -z "$ac_c_werror_flag"
6805 || test ! -s conftest.err'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest$ac_exeext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6824 rm -f conftest.err conftest.$ac_objext \
6825 conftest$ac_exeext conftest.$ac_ext
6826 LIBS=$ac_check_lib_save_LIBS
6828 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6829 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6830 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6831 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_LIBCRYPTO 1
6835 LIBS="-lcrypto $LIBS"
6838 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6839 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6840 { (exit 1); exit 1; }; }
6844 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6845 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6846 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_check_lib_save_LIBS=$LIBS
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6864 char SSL_library_init ();
6868 SSL_library_init ();
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>conftest.er1
6877 grep -v '^ *+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_lib_ssl_SSL_library_init=yes
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_lib_ssl_SSL_library_init=no
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6904 LIBS=$ac_check_lib_save_LIBS
6906 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6907 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6908 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6909 cat >>confdefs.h <<_ACEOF
6910 #define HAVE_LIBSSL 1
6916 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6917 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6918 { (exit 1); exit 1; }; }
6923 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6924 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6925 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_check_lib_save_LIBS=$LIBS
6929 LIBS="-leay32 $LIBS"
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6937 /* Override any gcc2 internal prototype to avoid an error. */
6941 /* We use char because int might match the return type of a gcc2
6942 builtin and then its argument prototype would still apply. */
6943 char CRYPTO_new_ex_data ();
6947 CRYPTO_new_ex_data ();
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954 (eval $ac_link) 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -z "$ac_c_werror_flag"
6962 || test ! -s conftest.err'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6981 rm -f conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_check_lib_save_LIBS
6985 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6986 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6987 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_LIBEAY32 1
6992 LIBS="-leay32 $LIBS"
6995 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
6996 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
6997 { (exit 1); exit 1; }; }
7001 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7002 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7003 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 ac_check_lib_save_LIBS=$LIBS
7007 LIBS="-lssleay32 $LIBS"
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7015 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021 char SSL_library_init ();
7025 SSL_library_init ();
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>conftest.er1
7034 grep -v '^ *+' conftest.er1 >conftest.err
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest$ac_exeext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_lib_ssleay32_SSL_library_init=yes
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7057 ac_cv_lib_ssleay32_SSL_library_init=no
7059 rm -f conftest.err conftest.$ac_objext \
7060 conftest$ac_exeext conftest.$ac_ext
7061 LIBS=$ac_check_lib_save_LIBS
7063 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7064 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7065 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_LIBSSLEAY32 1
7070 LIBS="-lssleay32 $LIBS"
7073 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7074 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7075 { (exit 1); exit 1; }; }
7081 if test "$with_pam" = yes ; then
7083 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7084 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7085 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 ac_check_lib_save_LIBS=$LIBS
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7097 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7112 rm -f conftest.$ac_objext conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>conftest.er1
7116 grep -v '^ *+' conftest.er1 >conftest.err
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag"
7122 || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try='test -s conftest$ac_exeext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_lib_pam_pam_start=yes
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_cv_lib_pam_pam_start=no
7141 rm -f conftest.err conftest.$ac_objext \
7142 conftest$ac_exeext conftest.$ac_ext
7143 LIBS=$ac_check_lib_save_LIBS
7145 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7146 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7147 if test $ac_cv_lib_pam_pam_start = yes; then
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_LIBPAM 1
7155 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7156 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7157 { (exit 1); exit 1; }; }
7167 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7168 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7169 if test "${ac_cv_header_stdc+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 cat >conftest.$ac_ext <<_ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_header_stdc=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_header_stdc=no
7220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7222 if test $ac_cv_header_stdc = yes; then
7223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "memchr" >/dev/null 2>&1; then
7237 ac_cv_header_stdc=no
7243 if test $ac_cv_header_stdc = yes; then
7244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "free" >/dev/null 2>&1; then
7258 ac_cv_header_stdc=no
7264 if test $ac_cv_header_stdc = yes; then
7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266 if test "$cross_compiling" = yes; then
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7276 #if ((' ' & 0x0FF) == 0x020)
7277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7280 # define ISLOWER(c) \
7281 (('a' <= (c) && (c) <= 'i') \
7282 || ('j' <= (c) && (c) <= 'r') \
7283 || ('s' <= (c) && (c) <= 'z'))
7284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7292 for (i = 0; i < 256; i++)
7293 if (XOR (islower (i), ISLOWER (i))
7294 || toupper (i) != TOUPPER (i))
7299 rm -f conftest$ac_exeext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7301 (eval $ac_link) 2>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7312 echo "$as_me: program exited with status $ac_status" >&5
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_cv_header_stdc=no
7319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7325 if test $ac_cv_header_stdc = yes; then
7327 cat >>confdefs.h <<\_ACEOF
7328 #define STDC_HEADERS 1
7333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7344 inttypes.h stdint.h unistd.h
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 echo "$as_me:$LINENO: checking for $ac_header" >&5
7348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7360 #include <$ac_header>
7362 rm -f conftest.$ac_objext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -z "$ac_c_werror_flag"
7372 || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 eval "$as_ac_Header=yes"
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 eval "$as_ac_Header=no"
7391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7396 cat >>confdefs.h <<_ACEOF
7397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7430 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo "$as_me:$LINENO: checking for $ac_header" >&5
7435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7442 # Is the header compilable?
7443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7452 #include <$ac_header>
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7458 grep -v '^ *+' conftest.er1 >conftest.err
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_header_compiler=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_header_compiler=no
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7485 echo "${ECHO_T}$ac_header_compiler" >&6
7487 # Is the header present?
7488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <$ac_header>
7498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } >/dev/null; then
7506 if test -s conftest.err; then
7507 ac_cpp_err=$ac_c_preproc_warn_flag
7508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7515 if test -z "$ac_cpp_err"; then
7516 ac_header_preproc=yes
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 ac_header_preproc=no
7523 rm -f conftest.err conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6
7527 # So? What about this header?
7528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7534 ac_header_preproc=yes
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7551 ## ---------------------------------------- ##
7552 ## Report this to pgsql-bugs@postgresql.org ##
7553 ## ---------------------------------------- ##
7556 sed "s/^/$as_me: WARNING: /" >&2
7559 echo "$as_me:$LINENO: checking for $ac_header" >&5
7560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 eval "$as_ac_Header=\$ac_header_preproc"
7566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7581 # netinet/in.h is included first.
7583 for ac_header in netinet/in.h
7585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587 echo "$as_me:$LINENO: checking for $ac_header" >&5
7588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595 # Is the header compilable?
7596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7605 #include <$ac_header>
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>conftest.er1
7611 grep -v '^ *+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag"
7617 || test ! -s conftest.err'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_header_compiler=yes
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_header_compiler=no
7636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638 echo "${ECHO_T}$ac_header_compiler" >&6
7640 # Is the header present?
7641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <$ac_header>
7651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 grep -v '^ *+' conftest.er1 >conftest.err
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } >/dev/null; then
7659 if test -s conftest.err; then
7660 ac_cpp_err=$ac_c_preproc_warn_flag
7661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7668 if test -z "$ac_cpp_err"; then
7669 ac_header_preproc=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_header_preproc=no
7676 rm -f conftest.err conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678 echo "${ECHO_T}$ac_header_preproc" >&6
7680 # So? What about this header?
7681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7687 ac_header_preproc=yes
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7704 ## ---------------------------------------- ##
7705 ## Report this to pgsql-bugs@postgresql.org ##
7706 ## ---------------------------------------- ##
7709 sed "s/^/$as_me: WARNING: /" >&2
7712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 eval "$as_ac_Header=\$ac_header_preproc"
7719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7724 cat >>confdefs.h <<_ACEOF
7725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7733 for ac_header in netinet/tcp.h
7735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7736 echo "$as_me:$LINENO: checking for $ac_header" >&5
7737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 $ac_includes_default
7748 #ifdef HAVE_NETINET_IN_H
7749 #include <netinet/in.h>
7753 #include <$ac_header>
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 eval "$as_ac_Header=yes"
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 eval "$as_ac_Header=no"
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7800 for ac_header in readline/readline.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7822 #include <$ac_header>
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_header_compiler=no
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <$ac_header>
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_preproc=no
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7897 # So? What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7921 ## ---------------------------------------- ##
7922 ## Report this to pgsql-bugs@postgresql.org ##
7923 ## ---------------------------------------- ##
7926 sed "s/^/$as_me: WARNING: /" >&2
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 eval "$as_ac_Header=\$ac_header_preproc"
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947 for ac_header in readline.h
7949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7951 echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7959 # Is the header compilable?
7960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #include <$ac_header>
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_header_compiler=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_header_compiler=no
8000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8002 echo "${ECHO_T}$ac_header_compiler" >&6
8004 # Is the header present?
8005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <$ac_header>
8015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } >/dev/null; then
8023 if test -s conftest.err; then
8024 ac_cpp_err=$ac_c_preproc_warn_flag
8025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8032 if test -z "$ac_cpp_err"; then
8033 ac_header_preproc=yes
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_header_preproc=no
8040 rm -f conftest.err conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042 echo "${ECHO_T}$ac_header_preproc" >&6
8044 # So? What about this header?
8045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8051 ac_header_preproc=yes
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8068 ## ---------------------------------------- ##
8069 ## Report this to pgsql-bugs@postgresql.org ##
8070 ## ---------------------------------------- ##
8073 sed "s/^/$as_me: WARNING: /" >&2
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 eval "$as_ac_Header=\$ac_header_preproc"
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093 { { echo "$as_me:$LINENO: error: readline header not found
8094 If you have readline already installed, see config.log for details on the
8095 failure. It is possible the compiler isn't looking in the proper directory.
8096 Use --without-readline to disable readline support." >&5
8097 echo "$as_me: error: readline header not found
8098 If you have readline already installed, see config.log for details on the
8099 failure. It is possible the compiler isn't looking in the proper directory.
8100 Use --without-readline to disable readline support." >&2;}
8101 { (exit 1); exit 1; }; }
8111 for ac_header in readline/history.h
8113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8115 echo "$as_me:$LINENO: checking for $ac_header" >&5
8116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8123 # Is the header compilable?
8124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 #include <$ac_header>
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag"
8145 || test ! -s conftest.err'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; } &&
8151 { ac_try='test -s conftest.$ac_objext'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 ac_header_compiler=yes
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_header_compiler=no
8164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8166 echo "${ECHO_T}$ac_header_compiler" >&6
8168 # Is the header present?
8169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 #include <$ac_header>
8179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } >/dev/null; then
8187 if test -s conftest.err; then
8188 ac_cpp_err=$ac_c_preproc_warn_flag
8189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8196 if test -z "$ac_cpp_err"; then
8197 ac_header_preproc=yes
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_header_preproc=no
8204 rm -f conftest.err conftest.$ac_ext
8205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8206 echo "${ECHO_T}$ac_header_preproc" >&6
8208 # So? What about this header?
8209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8215 ac_header_preproc=yes
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8232 ## ---------------------------------------- ##
8233 ## Report this to pgsql-bugs@postgresql.org ##
8234 ## ---------------------------------------- ##
8237 sed "s/^/$as_me: WARNING: /" >&2
8240 echo "$as_me:$LINENO: checking for $ac_header" >&5
8241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 eval "$as_ac_Header=\$ac_header_preproc"
8247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8252 cat >>confdefs.h <<_ACEOF
8253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8258 for ac_header in history.h
8260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8262 echo "$as_me:$LINENO: checking for $ac_header" >&5
8263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8270 # Is the header compilable?
8271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 $ac_includes_default
8280 #include <$ac_header>
8282 rm -f conftest.$ac_objext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>conftest.er1
8286 grep -v '^ *+' conftest.er1 >conftest.err
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_header_compiler=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 ac_header_compiler=no
8311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8313 echo "${ECHO_T}$ac_header_compiler" >&6
8315 # Is the header present?
8316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 #include <$ac_header>
8326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } >/dev/null; then
8334 if test -s conftest.err; then
8335 ac_cpp_err=$ac_c_preproc_warn_flag
8336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8343 if test -z "$ac_cpp_err"; then
8344 ac_header_preproc=yes
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_header_preproc=no
8351 rm -f conftest.err conftest.$ac_ext
8352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8353 echo "${ECHO_T}$ac_header_preproc" >&6
8355 # So? What about this header?
8356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8362 ac_header_preproc=yes
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8379 ## ---------------------------------------- ##
8380 ## Report this to pgsql-bugs@postgresql.org ##
8381 ## ---------------------------------------- ##
8384 sed "s/^/$as_me: WARNING: /" >&2
8387 echo "$as_me:$LINENO: checking for $ac_header" >&5
8388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 eval "$as_ac_Header=\$ac_header_preproc"
8394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8399 cat >>confdefs.h <<_ACEOF
8400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 { { echo "$as_me:$LINENO: error: history header not found
8405 If you have readline already installed, see config.log for details on the
8406 failure. It is possible the compiler isn't looking in the proper directory.
8407 Use --without-readline to disable readline support." >&5
8408 echo "$as_me: error: history header not found
8409 If you have readline already installed, see config.log for details on the
8410 failure. It is possible the compiler isn't looking in the proper directory.
8411 Use --without-readline to disable readline support." >&2;}
8412 { (exit 1); exit 1; }; }
8423 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8424 # Some installations of libedit usurp /usr/include/readline/, which seems
8425 # bad practice, since in combined installations readline will have its headers
8426 # there. We might have to resort to AC_EGREP checks to make sure we found
8427 # the proper header...
8429 for ac_header in editline/readline.h
8431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8433 echo "$as_me:$LINENO: checking for $ac_header" >&5
8434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8441 # Is the header compilable?
8442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 $ac_includes_default
8451 #include <$ac_header>
8453 rm -f conftest.$ac_objext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_header_compiler=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_header_compiler=no
8482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 echo "${ECHO_T}$ac_header_compiler" >&6
8486 # Is the header present?
8487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <$ac_header>
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8500 grep -v '^ *+' conftest.er1 >conftest.err
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev/null; then
8505 if test -s conftest.err; then
8506 ac_cpp_err=$ac_c_preproc_warn_flag
8507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8514 if test -z "$ac_cpp_err"; then
8515 ac_header_preproc=yes
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_header_preproc=no
8522 rm -f conftest.err conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8524 echo "${ECHO_T}$ac_header_preproc" >&6
8526 # So? What about this header?
8527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8533 ac_header_preproc=yes
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8550 ## ---------------------------------------- ##
8551 ## Report this to pgsql-bugs@postgresql.org ##
8552 ## ---------------------------------------- ##
8555 sed "s/^/$as_me: WARNING: /" >&2
8558 echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 eval "$as_ac_Header=\$ac_header_preproc"
8565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8576 for ac_header in readline.h
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8580 echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8588 # Is the header compilable?
8589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 #include <$ac_header>
8600 rm -f conftest.$ac_objext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest.$ac_objext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_header_compiler=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_header_compiler=no
8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8631 echo "${ECHO_T}$ac_header_compiler" >&6
8633 # Is the header present?
8634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 #include <$ac_header>
8644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } >/dev/null; then
8652 if test -s conftest.err; then
8653 ac_cpp_err=$ac_c_preproc_warn_flag
8654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8661 if test -z "$ac_cpp_err"; then
8662 ac_header_preproc=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_header_preproc=no
8669 rm -f conftest.err conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8671 echo "${ECHO_T}$ac_header_preproc" >&6
8673 # So? What about this header?
8674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8680 ac_header_preproc=yes
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8697 ## ---------------------------------------- ##
8698 ## Report this to pgsql-bugs@postgresql.org ##
8699 ## ---------------------------------------- ##
8702 sed "s/^/$as_me: WARNING: /" >&2
8705 echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 eval "$as_ac_Header=\$ac_header_preproc"
8712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8717 cat >>confdefs.h <<_ACEOF
8718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723 for ac_header in readline/readline.h
8725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8727 echo "$as_me:$LINENO: checking for $ac_header" >&5
8728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735 # Is the header compilable?
8736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 #include <$ac_header>
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
8751 grep -v '^ *+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_header_compiler=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_header_compiler=no
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778 echo "${ECHO_T}$ac_header_compiler" >&6
8780 # Is the header present?
8781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 #include <$ac_header>
8791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } >/dev/null; then
8799 if test -s conftest.err; then
8800 ac_cpp_err=$ac_c_preproc_warn_flag
8801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8808 if test -z "$ac_cpp_err"; then
8809 ac_header_preproc=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_preproc=no
8816 rm -f conftest.err conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818 echo "${ECHO_T}$ac_header_preproc" >&6
8820 # So? What about this header?
8821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8827 ac_header_preproc=yes
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8844 ## ---------------------------------------- ##
8845 ## Report this to pgsql-bugs@postgresql.org ##
8846 ## ---------------------------------------- ##
8849 sed "s/^/$as_me: WARNING: /" >&2
8852 echo "$as_me:$LINENO: checking for $ac_header" >&5
8853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 eval "$as_ac_Header=\$ac_header_preproc"
8859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8864 cat >>confdefs.h <<_ACEOF
8865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8869 { { echo "$as_me:$LINENO: error: readline header not found
8870 If you have libedit already installed, see config.log for details on the
8871 failure. It is possible the compiler isn't looking in the proper directory.
8872 Use --without-readline to disable libedit support." >&5
8873 echo "$as_me: error: readline header not found
8874 If you have libedit already installed, see config.log for details on the
8875 failure. It is possible the compiler isn't looking in the proper directory.
8876 Use --without-readline to disable libedit support." >&2;}
8877 { (exit 1); exit 1; }; }
8891 for ac_header in editline/history.h
8893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo "$as_me:$LINENO: checking for $ac_header" >&5
8896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903 # Is the header compilable?
8904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8913 #include <$ac_header>
8915 rm -f conftest.$ac_objext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917 (eval $ac_compile) 2>conftest.er1
8919 grep -v '^ *+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag"
8925 || test ! -s conftest.err'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_header_compiler=yes
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 ac_header_compiler=no
8944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 echo "${ECHO_T}$ac_header_compiler" >&6
8948 # Is the header present?
8949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <$ac_header>
8959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } >/dev/null; then
8967 if test -s conftest.err; then
8968 ac_cpp_err=$ac_c_preproc_warn_flag
8969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8976 if test -z "$ac_cpp_err"; then
8977 ac_header_preproc=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_header_preproc=no
8984 rm -f conftest.err conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986 echo "${ECHO_T}$ac_header_preproc" >&6
8988 # So? What about this header?
8989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8995 ac_header_preproc=yes
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9012 ## ---------------------------------------- ##
9013 ## Report this to pgsql-bugs@postgresql.org ##
9014 ## ---------------------------------------- ##
9017 sed "s/^/$as_me: WARNING: /" >&2
9020 echo "$as_me:$LINENO: checking for $ac_header" >&5
9021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 eval "$as_ac_Header=\$ac_header_preproc"
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9032 cat >>confdefs.h <<_ACEOF
9033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9038 for ac_header in history.h
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9060 #include <$ac_header>
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_header_compiler=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 #include <$ac_header>
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } >/dev/null; then
9114 if test -s conftest.err; then
9115 ac_cpp_err=$ac_c_preproc_warn_flag
9116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9123 if test -z "$ac_cpp_err"; then
9124 ac_header_preproc=yes
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 ## ---------------------------------------- ##
9160 ## Report this to pgsql-bugs@postgresql.org ##
9161 ## ---------------------------------------- ##
9164 sed "s/^/$as_me: WARNING: /" >&2
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 eval "$as_ac_Header=\$ac_header_preproc"
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185 for ac_header in readline/history.h
9187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo "$as_me:$LINENO: checking for $ac_header" >&5
9190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197 # Is the header compilable?
9198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 #include <$ac_header>
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_header_compiler=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_compiler=no
9238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9240 echo "${ECHO_T}$ac_header_compiler" >&6
9242 # Is the header present?
9243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 #include <$ac_header>
9253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } >/dev/null; then
9261 if test -s conftest.err; then
9262 ac_cpp_err=$ac_c_preproc_warn_flag
9263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9270 if test -z "$ac_cpp_err"; then
9271 ac_header_preproc=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9289 ac_header_preproc=yes
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9306 ## ---------------------------------------- ##
9307 ## Report this to pgsql-bugs@postgresql.org ##
9308 ## ---------------------------------------- ##
9311 sed "s/^/$as_me: WARNING: /" >&2
9314 echo "$as_me:$LINENO: checking for $ac_header" >&5
9315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 eval "$as_ac_Header=\$ac_header_preproc"
9321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9326 cat >>confdefs.h <<_ACEOF
9327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9331 { { echo "$as_me:$LINENO: error: history header not found
9332 If you have libedit already installed, see config.log for details on the
9333 failure. It is possible the compiler isn't looking in the proper directory.
9334 Use --without-readline to disable libedit support." >&5
9335 echo "$as_me: error: history header not found
9336 If you have libedit already installed, see config.log for details on the
9337 failure. It is possible the compiler isn't looking in the proper directory.
9338 Use --without-readline to disable libedit support." >&2;}
9339 { (exit 1); exit 1; }; }
9354 if test "$with_zlib" = yes; then
9355 if test "${ac_cv_header_zlib_h+set}" = set; then
9356 echo "$as_me:$LINENO: checking for zlib.h" >&5
9357 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9358 if test "${ac_cv_header_zlib_h+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9362 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9364 # Is the header compilable?
9365 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9366 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9376 rm -f conftest.$ac_objext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9378 (eval $ac_compile) 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest.$ac_objext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_header_compiler=yes
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_header_compiler=no
9405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6
9409 # Is the header present?
9410 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9411 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } >/dev/null; then
9428 if test -s conftest.err; then
9429 ac_cpp_err=$ac_c_preproc_warn_flag
9430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9437 if test -z "$ac_cpp_err"; then
9438 ac_header_preproc=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_header_preproc=no
9445 rm -f conftest.err conftest.$ac_ext
9446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9447 echo "${ECHO_T}$ac_header_preproc" >&6
9449 # So? What about this header?
9450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9452 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9453 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9455 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9456 ac_header_preproc=yes
9459 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9460 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9462 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9464 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9466 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9468 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9470 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9473 ## ---------------------------------------- ##
9474 ## Report this to pgsql-bugs@postgresql.org ##
9475 ## ---------------------------------------- ##
9478 sed "s/^/$as_me: WARNING: /" >&2
9481 echo "$as_me:$LINENO: checking for zlib.h" >&5
9482 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9483 if test "${ac_cv_header_zlib_h+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 ac_cv_header_zlib_h=$ac_header_preproc
9488 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9489 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9492 if test $ac_cv_header_zlib_h = yes; then
9495 { { echo "$as_me:$LINENO: error: zlib header not found
9496 If you have zlib already installed, see config.log for details on the
9497 failure. It is possible the compiler isn't looking in the proper directory.
9498 Use --without-zlib to disable zlib support." >&5
9499 echo "$as_me: error: zlib header not found
9500 If you have zlib already installed, see config.log for details on the
9501 failure. It is possible the compiler isn't looking in the proper directory.
9502 Use --without-zlib to disable zlib support." >&2;}
9503 { (exit 1); exit 1; }; }
9509 if test "$with_krb5" = yes ; then
9510 if test "${ac_cv_header_krb5_h+set}" = set; then
9511 echo "$as_me:$LINENO: checking for krb5.h" >&5
9512 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9513 if test "${ac_cv_header_krb5_h+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9517 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9519 # Is the header compilable?
9520 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9521 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 $ac_includes_default
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest.$ac_objext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_header_compiler=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_header_compiler=no
9560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9562 echo "${ECHO_T}$ac_header_compiler" >&6
9564 # Is the header present?
9565 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9566 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev/null; then
9583 if test -s conftest.err; then
9584 ac_cpp_err=$ac_c_preproc_warn_flag
9585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9592 if test -z "$ac_cpp_err"; then
9593 ac_header_preproc=yes
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_header_preproc=no
9600 rm -f conftest.err conftest.$ac_ext
9601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9602 echo "${ECHO_T}$ac_header_preproc" >&6
9604 # So? What about this header?
9605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9607 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9608 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9609 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9610 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9611 ac_header_preproc=yes
9614 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9615 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9617 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9619 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9621 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9623 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9625 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9628 ## ---------------------------------------- ##
9629 ## Report this to pgsql-bugs@postgresql.org ##
9630 ## ---------------------------------------- ##
9633 sed "s/^/$as_me: WARNING: /" >&2
9636 echo "$as_me:$LINENO: checking for krb5.h" >&5
9637 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9638 if test "${ac_cv_header_krb5_h+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 ac_cv_header_krb5_h=$ac_header_preproc
9643 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9644 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9647 if test $ac_cv_header_krb5_h = yes; then
9650 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9651 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9652 { (exit 1); exit 1; }; }
9658 if test "$with_openssl" = yes ; then
9659 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9660 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9661 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9662 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9666 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9668 # Is the header compilable?
9669 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9670 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9671 cat >conftest.$ac_ext <<_ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9678 #include <openssl/ssl.h>
9680 rm -f conftest.$ac_objext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682 (eval $ac_compile) 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest.$ac_objext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_header_compiler=yes
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_header_compiler=no
9709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 echo "${ECHO_T}$ac_header_compiler" >&6
9713 # Is the header present?
9714 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9715 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <openssl/ssl.h>
9724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } >/dev/null; then
9732 if test -s conftest.err; then
9733 ac_cpp_err=$ac_c_preproc_warn_flag
9734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9741 if test -z "$ac_cpp_err"; then
9742 ac_header_preproc=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_header_preproc=no
9749 rm -f conftest.err conftest.$ac_ext
9750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 echo "${ECHO_T}$ac_header_preproc" >&6
9753 # So? What about this header?
9754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9756 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9757 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9759 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9760 ac_header_preproc=yes
9763 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9764 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9766 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9768 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9770 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9772 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9774 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9777 ## ---------------------------------------- ##
9778 ## Report this to pgsql-bugs@postgresql.org ##
9779 ## ---------------------------------------- ##
9782 sed "s/^/$as_me: WARNING: /" >&2
9785 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9786 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9787 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9792 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9793 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9796 if test $ac_cv_header_openssl_ssl_h = yes; then
9799 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9800 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9801 { (exit 1); exit 1; }; }
9805 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9806 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9807 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9808 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9812 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9814 # Is the header compilable?
9815 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9816 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9817 cat >conftest.$ac_ext <<_ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 #include <openssl/err.h>
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_header_compiler=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_header_compiler=no
9855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6
9859 # Is the header present?
9860 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9861 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <openssl/err.h>
9870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } >/dev/null; then
9878 if test -s conftest.err; then
9879 ac_cpp_err=$ac_c_preproc_warn_flag
9880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9887 if test -z "$ac_cpp_err"; then
9888 ac_header_preproc=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_header_preproc=no
9895 rm -f conftest.err conftest.$ac_ext
9896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9897 echo "${ECHO_T}$ac_header_preproc" >&6
9899 # So? What about this header?
9900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9902 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9903 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
9905 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
9906 ac_header_preproc=yes
9909 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9910 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9912 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
9914 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
9916 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9918 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
9920 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
9923 ## ---------------------------------------- ##
9924 ## Report this to pgsql-bugs@postgresql.org ##
9925 ## ---------------------------------------- ##
9928 sed "s/^/$as_me: WARNING: /" >&2
9931 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9932 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9933 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_cv_header_openssl_err_h=$ac_header_preproc
9938 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9939 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9942 if test $ac_cv_header_openssl_err_h = yes; then
9945 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9946 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9947 { (exit 1); exit 1; }; }
9953 if test "$with_pam" = yes ; then
9955 for ac_header in security/pam_appl.h
9957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9967 # Is the header compilable?
9968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 $ac_includes_default
9977 #include <$ac_header>
9979 rm -f conftest.$ac_objext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981 (eval $ac_compile) 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag"
9989 || test ! -s conftest.err'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_header_compiler=yes
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_header_compiler=no
10008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10010 echo "${ECHO_T}$ac_header_compiler" >&6
10012 # Is the header present?
10013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 #include <$ac_header>
10023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } >/dev/null; then
10031 if test -s conftest.err; then
10032 ac_cpp_err=$ac_c_preproc_warn_flag
10033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10040 if test -z "$ac_cpp_err"; then
10041 ac_header_preproc=yes
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_header_preproc=no
10048 rm -f conftest.err conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10050 echo "${ECHO_T}$ac_header_preproc" >&6
10052 # So? What about this header?
10053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10059 ac_header_preproc=yes
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10076 ## ---------------------------------------- ##
10077 ## Report this to pgsql-bugs@postgresql.org ##
10078 ## ---------------------------------------- ##
10081 sed "s/^/$as_me: WARNING: /" >&2
10084 echo "$as_me:$LINENO: checking for $ac_header" >&5
10085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 eval "$as_ac_Header=\$ac_header_preproc"
10091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10096 cat >>confdefs.h <<_ACEOF
10097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 for ac_header in pam/pam_appl.h
10104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10106 echo "$as_me:$LINENO: checking for $ac_header" >&5
10107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10114 # Is the header compilable?
10115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 $ac_includes_default
10124 #include <$ac_header>
10126 rm -f conftest.$ac_objext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128 (eval $ac_compile) 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest.$ac_objext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_header_compiler=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_compiler=no
10155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 echo "${ECHO_T}$ac_header_compiler" >&6
10159 # Is the header present?
10160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <$ac_header>
10170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } >/dev/null; then
10178 if test -s conftest.err; then
10179 ac_cpp_err=$ac_c_preproc_warn_flag
10180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10187 if test -z "$ac_cpp_err"; then
10188 ac_header_preproc=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 ac_header_preproc=no
10195 rm -f conftest.err conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 echo "${ECHO_T}$ac_header_preproc" >&6
10199 # So? What about this header?
10200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206 ac_header_preproc=yes
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10223 ## ---------------------------------------- ##
10224 ## Report this to pgsql-bugs@postgresql.org ##
10225 ## ---------------------------------------- ##
10228 sed "s/^/$as_me: WARNING: /" >&2
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 eval "$as_ac_Header=\$ac_header_preproc"
10238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10243 cat >>confdefs.h <<_ACEOF
10244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10248 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10249 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10250 { (exit 1); exit 1; }; }
10261 if test "$with_bonjour" = yes ; then
10262 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10263 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10264 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10265 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10269 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10271 # Is the header compilable?
10272 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10273 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10287 grep -v '^ *+' conftest.er1 >conftest.err
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_header_compiler=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_header_compiler=no
10312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 echo "${ECHO_T}$ac_header_compiler" >&6
10316 # Is the header present?
10317 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10318 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } >/dev/null; then
10335 if test -s conftest.err; then
10336 ac_cpp_err=$ac_c_preproc_warn_flag
10337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10344 if test -z "$ac_cpp_err"; then
10345 ac_header_preproc=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_header_preproc=no
10352 rm -f conftest.err conftest.$ac_ext
10353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354 echo "${ECHO_T}$ac_header_preproc" >&6
10356 # So? What about this header?
10357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10359 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10360 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10362 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10366 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10367 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10369 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10371 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10373 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10375 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10377 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10380 ## ---------------------------------------- ##
10381 ## Report this to pgsql-bugs@postgresql.org ##
10382 ## ---------------------------------------- ##
10385 sed "s/^/$as_me: WARNING: /" >&2
10388 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10389 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10390 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10395 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10396 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10399 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10402 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10403 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10404 { (exit 1); exit 1; }; }
10412 ## Types, structures, compiler characteristics
10415 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10416 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10417 if test "${ac_cv_c_const+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10430 /* FIXME: Include the comments suggested by Paul. */
10431 #ifndef __cplusplus
10432 /* Ultrix mips cc rejects this. */
10433 typedef int charset[2];
10435 /* SunOS 4.1.1 cc rejects this. */
10436 char const *const *ccp;
10438 /* NEC SVR4.0.2 mips cc rejects this. */
10439 struct point {int x, y;};
10440 static struct point const zero = {0,0};
10441 /* AIX XL C 1.02.0.0 rejects this.
10442 It does not let you subtract one const X* pointer from another in
10443 an arm of an if-expression whose if-part is not a constant
10445 const char *g = "string";
10446 ccp = &g + (g ? g-g : 0);
10447 /* HPUX 7.0 cc rejects these. */
10450 ccp = (char const *const *) p;
10451 { /* SCO 3.2v4 cc rejects this. */
10453 char const *s = 0 ? (char *) 0 : (char const *) 0;
10457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10458 int x[] = {25, 17};
10459 const int *foo = &x[0];
10462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10463 typedef const int *iptr;
10467 { /* AIX XL C 1.02.0.0 rejects this saying
10468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10469 struct s { int j; const int *ap[3]; };
10470 struct s *b; b->j = 5;
10472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10473 const int foo = 10;
10481 rm -f conftest.$ac_objext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483 (eval $ac_compile) 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_c_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10513 echo "${ECHO_T}$ac_cv_c_const" >&6
10514 if test $ac_cv_c_const = no; then
10516 cat >>confdefs.h <<\_ACEOF
10523 echo "$as_me:$LINENO: checking for inline" >&5
10524 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10525 if test "${ac_cv_c_inline+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 for ac_kw in inline __inline__ __inline; do
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 #ifndef __cplusplus
10538 static $ac_kw foo_t static_foo () {return 0; }
10539 $ac_kw int foo () {return 0; }
10543 rm -f conftest.$ac_objext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_c_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_c_inline=$ac_kw; break
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10576 echo "${ECHO_T}$ac_cv_c_inline" >&6
10577 case $ac_cv_c_inline in
10580 cat >>confdefs.h <<\_ACEOF
10584 *) cat >>confdefs.h <<_ACEOF
10585 #define inline $ac_cv_c_inline
10590 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10591 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10592 if test "${ac_cv_c_stringize+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10603 char *s = x(teststring);
10605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10606 $EGREP "#teststring" >/dev/null 2>&1; then
10607 ac_cv_c_stringize=no
10609 ac_cv_c_stringize=yes
10614 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10615 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10616 if test $ac_cv_c_stringize = yes; then
10618 cat >>confdefs.h <<\_ACEOF
10619 #define HAVE_STRINGIZE 1
10624 echo "$as_me:$LINENO: checking for signed types" >&5
10625 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10626 if test "${pgac_cv_c_signed+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.$ac_ext <<_ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10639 signed char c; signed short s; signed int i;
10644 rm -f conftest.$ac_objext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag"
10654 || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 pgac_cv_c_signed=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 pgac_cv_c_signed=no
10673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10676 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10677 if test x"$pgac_cv_c_signed" = xno ; then
10679 cat >>confdefs.h <<\_ACEOF
10684 echo "$as_me:$LINENO: checking for working volatile" >&5
10685 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10686 if test "${ac_cv_c_volatile+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10706 rm -f conftest.$ac_objext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10708 (eval $ac_compile) 2>conftest.er1
10710 grep -v '^ *+' conftest.er1 >conftest.err
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest.$ac_objext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_cv_c_volatile=yes
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_cv_c_volatile=no
10735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10737 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10738 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10739 if test $ac_cv_c_volatile = no; then
10741 cat >>confdefs.h <<\_ACEOF
10747 echo "$as_me:$LINENO: checking for __func__" >&5
10748 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10749 if test "${pgac_cv_funcname_func_support+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10762 printf("%s\n", __func__);
10767 rm -f conftest.$ac_objext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest.$ac_objext'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 pgac_cv_funcname_func_support=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 pgac_cv_funcname_func_support=no
10796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10799 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10800 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10802 cat >>confdefs.h <<\_ACEOF
10803 #define HAVE_FUNCNAME__FUNC 1
10807 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10808 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10809 if test "${pgac_cv_funcname_function_support+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10822 printf("%s\n", __FUNCTION__);
10827 rm -f conftest.$ac_objext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag"
10837 || test ! -s conftest.err'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest.$ac_objext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 pgac_cv_funcname_function_support=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 pgac_cv_funcname_function_support=no
10856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10859 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10860 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_FUNCNAME__FUNCTION 1
10868 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10869 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10870 if test "${ac_cv_struct_tm+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <sys/types.h>
10885 struct tm *tp; tp->tm_sec;
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>conftest.er1
10894 grep -v '^ *+' conftest.er1 >conftest.err
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag"
10900 || test ! -s conftest.err'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try='test -s conftest.$ac_objext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_struct_tm=time.h
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 ac_cv_struct_tm=sys/time.h
10919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10921 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10922 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10923 if test $ac_cv_struct_tm = sys/time.h; then
10925 cat >>confdefs.h <<\_ACEOF
10926 #define TM_IN_SYS_TIME 1
10931 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10932 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10933 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 cat >conftest.$ac_ext <<_ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 #include <sys/types.h>
10943 #include <$ac_cv_struct_tm>
10949 static struct tm ac_aggr;
10950 if (ac_aggr.tm_zone)
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag"
10966 || test ! -s conftest.err'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest.$ac_objext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_cv_member_struct_tm_tm_zone=yes
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <sys/types.h>
10990 #include <$ac_cv_struct_tm>
10996 static struct tm ac_aggr;
10997 if (sizeof ac_aggr.tm_zone)
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_member_struct_tm_tm_zone=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_member_struct_tm_tm_zone=no
11032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11037 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11038 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_STRUCT_TM_TM_ZONE 1
11047 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_TM_ZONE 1
11054 echo "$as_me:$LINENO: checking for tzname" >&5
11055 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11056 if test "${ac_cv_var_tzname+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11066 #ifndef tzname /* For SGI. */
11067 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080 (eval $ac_link) 2>conftest.er1
11082 grep -v '^ *+' conftest.er1 >conftest.err
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } &&
11087 { ac_try='test -z "$ac_c_werror_flag"
11088 || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest$ac_exeext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_cv_var_tzname=yes
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_cv_var_tzname=no
11107 rm -f conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11111 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11112 if test $ac_cv_var_tzname = yes; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_TZNAME 1
11120 echo "$as_me:$LINENO: checking for union semun" >&5
11121 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11122 if test "${ac_cv_type_union_semun+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 #include <sys/types.h>
11132 #include <sys/ipc.h>
11133 #include <sys/sem.h>
11138 if ((union semun *) 0)
11140 if (sizeof (union semun))
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag"
11156 || test ! -s conftest.err'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest.$ac_objext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_type_union_semun=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_type_union_semun=no
11175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11177 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11178 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11179 if test $ac_cv_type_union_semun = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_UNION_SEMUN 1
11188 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11189 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11190 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <sys/types.h>
11200 #ifdef HAVE_SYS_UN_H
11201 #include <sys/un.h>
11208 if ((struct sockaddr_un *) 0)
11210 if (sizeof (struct sockaddr_un))
11216 rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218 (eval $ac_compile) 2>conftest.er1
11220 grep -v '^ *+' conftest.er1 >conftest.err
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag"
11226 || test ! -s conftest.err'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest.$ac_objext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_type_struct_sockaddr_un=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_cv_type_struct_sockaddr_un=no
11245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11247 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11248 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11249 if test $ac_cv_type_struct_sockaddr_un = yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define HAVE_STRUCT_SOCKADDR_UN 1
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_UNIX_SOCKETS 1
11262 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11263 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11264 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 #include <sys/types.h>
11274 #ifdef HAVE_SYS_SOCKET_H
11275 #include <sys/socket.h>
11282 if ((struct sockaddr_storage *) 0)
11284 if (sizeof (struct sockaddr_storage))
11290 rm -f conftest.$ac_objext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292 (eval $ac_compile) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest.$ac_objext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_type_struct_sockaddr_storage=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_cv_type_struct_sockaddr_storage=no
11319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11321 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11322 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11323 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11325 cat >>confdefs.h <<_ACEOF
11326 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11332 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11333 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11334 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <sys/types.h>
11344 #ifdef HAVE_SYS_SOCKET_H
11345 #include <sys/socket.h>
11352 static struct sockaddr_storage ac_aggr;
11353 if (ac_aggr.ss_family)
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 #include <sys/types.h>
11393 #ifdef HAVE_SYS_SOCKET_H
11394 #include <sys/socket.h>
11401 static struct sockaddr_storage ac_aggr;
11402 if (sizeof ac_aggr.ss_family)
11408 rm -f conftest.$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 ac_cv_member_struct_sockaddr_storage_ss_family=no
11437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11442 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11443 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11445 cat >>confdefs.h <<_ACEOF
11446 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11451 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11452 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11453 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 #include <sys/types.h>
11463 #ifdef HAVE_SYS_SOCKET_H
11464 #include <sys/socket.h>
11471 static struct sockaddr_storage ac_aggr;
11472 if (ac_aggr.__ss_family)
11478 rm -f conftest.$ac_objext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11480 (eval $ac_compile) 2>conftest.er1
11482 grep -v '^ *+' conftest.er1 >conftest.err
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag"
11488 || test ! -s conftest.err'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 #include <sys/types.h>
11512 #ifdef HAVE_SYS_SOCKET_H
11513 #include <sys/socket.h>
11520 static struct sockaddr_storage ac_aggr;
11521 if (sizeof ac_aggr.__ss_family)
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11531 grep -v '^ *+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag"
11537 || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_member_struct_sockaddr_storage___ss_family=no
11556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11560 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11561 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11562 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11570 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11571 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11572 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 #include <sys/types.h>
11582 #ifdef HAVE_SYS_SOCKET_H
11583 #include <sys/socket.h>
11590 static struct sockaddr_storage ac_aggr;
11591 if (ac_aggr.ss_len)
11597 rm -f conftest.$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 cat >conftest.$ac_ext <<_ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 #include <sys/types.h>
11631 #ifdef HAVE_SYS_SOCKET_H
11632 #include <sys/socket.h>
11639 static struct sockaddr_storage ac_aggr;
11640 if (sizeof ac_aggr.ss_len)
11646 rm -f conftest.$ac_objext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest.$ac_objext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_cv_member_struct_sockaddr_storage_ss_len=no
11675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11679 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
11680 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
11681 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
11683 cat >>confdefs.h <<_ACEOF
11684 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11689 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
11690 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
11691 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 #include <sys/types.h>
11701 #ifdef HAVE_SYS_SOCKET_H
11702 #include <sys/socket.h>
11709 static struct sockaddr_storage ac_aggr;
11710 if (ac_aggr.__ss_len)
11716 rm -f conftest.$ac_objext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718 (eval $ac_compile) 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -z "$ac_c_werror_flag"
11726 || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 #include <sys/types.h>
11750 #ifdef HAVE_SYS_SOCKET_H
11751 #include <sys/socket.h>
11758 static struct sockaddr_storage ac_aggr;
11759 if (sizeof ac_aggr.__ss_len)
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767 (eval $ac_compile) 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_c_werror_flag"
11775 || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_cv_member_struct_sockaddr_storage___ss_len=no
11794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
11799 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
11800 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11808 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
11809 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
11810 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <sys/types.h>
11820 #ifdef HAVE_SYS_SOCKET_H
11821 #include <sys/socket.h>
11828 static struct sockaddr ac_aggr;
11829 if (ac_aggr.sa_len)
11835 rm -f conftest.$ac_objext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837 (eval $ac_compile) 2>conftest.er1
11839 grep -v '^ *+' conftest.er1 >conftest.err
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -z "$ac_c_werror_flag"
11845 || test ! -s conftest.err'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_cv_member_struct_sockaddr_sa_len=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include <sys/types.h>
11869 #ifdef HAVE_SYS_SOCKET_H
11870 #include <sys/socket.h>
11877 static struct sockaddr ac_aggr;
11878 if (sizeof ac_aggr.sa_len)
11884 rm -f conftest.$ac_objext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11886 (eval $ac_compile) 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest.$ac_objext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 ac_cv_member_struct_sockaddr_sa_len=yes
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 ac_cv_member_struct_sockaddr_sa_len=no
11913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
11918 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
11919 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
11921 cat >>confdefs.h <<_ACEOF
11922 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11928 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11929 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11930 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 #include <sys/types.h>
11940 #include <sys/socket.h>
11947 if ((struct addrinfo *) 0)
11949 if (sizeof (struct addrinfo))
11955 rm -f conftest.$ac_objext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11957 (eval $ac_compile) 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_type_struct_addrinfo=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_cv_type_struct_addrinfo=no
11984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11986 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11987 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11988 if test $ac_cv_type_struct_addrinfo = yes; then
11990 cat >>confdefs.h <<_ACEOF
11991 #define HAVE_STRUCT_ADDRINFO 1
11998 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
11999 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12000 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <sys/param.h>
12010 #include <sys/types.h>
12011 #include <sys/socket.h>
12012 #include <sys/ucred.h>
12017 if ((struct cmsgcred *) 0)
12019 if (sizeof (struct cmsgcred))
12025 rm -f conftest.$ac_objext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027 (eval $ac_compile) 2>conftest.er1
12029 grep -v '^ *+' conftest.er1 >conftest.err
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag"
12035 || test ! -s conftest.err'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; } &&
12041 { ac_try='test -s conftest.$ac_objext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_type_struct_cmsgcred=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_cv_type_struct_cmsgcred=no
12054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12056 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12057 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12058 if test $ac_cv_type_struct_cmsgcred = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_STRUCT_CMSGCRED 1
12066 echo "$as_me:$LINENO: checking for struct fcred" >&5
12067 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12068 if test "${ac_cv_type_struct_fcred+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <sys/param.h>
12078 #include <sys/types.h>
12079 #include <sys/socket.h>
12080 #include <sys/ucred.h>
12085 if ((struct fcred *) 0)
12087 if (sizeof (struct fcred))
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_cv_type_struct_fcred=yes
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 ac_cv_type_struct_fcred=no
12122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12124 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12125 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12126 if test $ac_cv_type_struct_fcred = yes; then
12128 cat >>confdefs.h <<_ACEOF
12129 #define HAVE_STRUCT_FCRED 1
12134 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12135 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12136 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
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/param.h>
12146 #include <sys/types.h>
12147 #include <sys/socket.h>
12148 #include <sys/ucred.h>
12153 if ((struct sockcred *) 0)
12155 if (sizeof (struct sockcred))
12161 rm -f conftest.$ac_objext
12162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12163 (eval $ac_compile) 2>conftest.er1
12165 grep -v '^ *+' conftest.er1 >conftest.err
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -z "$ac_c_werror_flag"
12171 || test ! -s conftest.err'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_type_struct_sockcred=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_type_struct_sockcred=no
12190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12193 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12194 if test $ac_cv_type_struct_sockcred = yes; then
12196 cat >>confdefs.h <<_ACEOF
12197 #define HAVE_STRUCT_SOCKCRED 1
12204 echo "$as_me:$LINENO: checking for struct option" >&5
12205 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12206 if test "${ac_cv_type_struct_option+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 #ifdef HAVE_GETOPT_H
12216 #include <getopt.h>
12222 if ((struct option *) 0)
12224 if (sizeof (struct option))
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>conftest.er1
12234 grep -v '^ *+' conftest.er1 >conftest.err
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -z "$ac_c_werror_flag"
12240 || test ! -s conftest.err'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; } &&
12246 { ac_try='test -s conftest.$ac_objext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_cv_type_struct_option=yes
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_cv_type_struct_option=no
12259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12261 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12262 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12263 if test $ac_cv_type_struct_option = yes; then
12265 cat >>confdefs.h <<_ACEOF
12266 #define HAVE_STRUCT_OPTION 1
12273 if test "$with_zlib" = yes; then
12274 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12275 # did not). While we could work around the lack of z_streamp, it
12276 # seems unwise to encourage people to use such old zlib versions...
12277 echo "$as_me:$LINENO: checking for z_streamp" >&5
12278 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12279 if test "${ac_cv_type_z_streamp+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 cat >conftest.$ac_ext <<_ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12293 if ((z_streamp *) 0)
12295 if (sizeof (z_streamp))
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_cv_type_z_streamp=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_cv_type_z_streamp=no
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12333 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12334 if test $ac_cv_type_z_streamp = yes; then
12337 { { echo "$as_me:$LINENO: error: zlib version is too old
12338 Use --without-zlib to disable zlib support." >&5
12339 echo "$as_me: error: zlib version is too old
12340 Use --without-zlib to disable zlib support." >&2;}
12341 { (exit 1); exit 1; }; }
12346 if test "$with_krb5" = yes; then
12347 # Check for differences between MIT and Heimdal (KTH) releases
12348 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12349 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12350 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12364 static krb5_ticket ac_aggr;
12365 if (ac_aggr.enc_part2)
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 ac_cv_member_krb5_ticket_enc_part2=yes
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12409 static krb5_ticket ac_aggr;
12410 if (sizeof ac_aggr.enc_part2)
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_member_krb5_ticket_enc_part2=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_member_krb5_ticket_enc_part2=no
12445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12450 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12451 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define HAVE_KRB5_TICKET_ENC_PART2 1
12459 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12460 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12461 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12475 static krb5_ticket ac_aggr;
12476 if (ac_aggr.client)
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12486 grep -v '^ *+' conftest.er1 >conftest.err
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_member_krb5_ticket_client=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12520 static krb5_ticket ac_aggr;
12521 if (sizeof ac_aggr.client)
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529 (eval $ac_compile) 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest.$ac_objext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_member_krb5_ticket_client=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_cv_member_krb5_ticket_client=no
12556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12561 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12562 if test $ac_cv_member_krb5_ticket_client = yes; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define HAVE_KRB5_TICKET_CLIENT 1
12570 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12571 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12572 { (exit 1); exit 1; }; }
12577 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12578 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12579 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12593 static krb5_error ac_aggr;
12594 if (ac_aggr.text.data)
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_member_krb5_error_text_data=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12638 static krb5_error ac_aggr;
12639 if (sizeof ac_aggr.text.data)
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>conftest.er1
12649 grep -v '^ *+' conftest.er1 >conftest.err
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -z "$ac_c_werror_flag"
12655 || test ! -s conftest.err'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_member_krb5_error_text_data=yes
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12672 ac_cv_member_krb5_error_text_data=no
12674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
12679 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
12680 if test $ac_cv_member_krb5_error_text_data = yes; then
12682 cat >>confdefs.h <<_ACEOF
12683 #define HAVE_KRB5_ERROR_TEXT_DATA 1
12688 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
12689 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
12690 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12704 static krb5_error ac_aggr;
12705 if (ac_aggr.e_data)
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_member_krb5_error_e_data=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 cat >conftest.$ac_ext <<_ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12749 static krb5_error ac_aggr;
12750 if (sizeof ac_aggr.e_data)
12756 rm -f conftest.$ac_objext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -z "$ac_c_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest.$ac_objext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_member_krb5_error_e_data=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 ac_cv_member_krb5_error_e_data=no
12785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12789 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
12790 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
12791 if test $ac_cv_member_krb5_error_e_data = yes; then
12793 cat >>confdefs.h <<_ACEOF
12794 #define HAVE_KRB5_ERROR_E_DATA 1
12799 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
12800 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
12801 { (exit 1); exit 1; }; }
12808 # This is probably only present on Darwin, but may as well check always
12809 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
12810 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
12811 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12825 #ifndef F_FULLFSYNC
12826 char *p = (char *) F_FULLFSYNC;
12833 rm -f conftest.$ac_objext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
12837 grep -v '^ *+' conftest.er1 >conftest.err
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_have_decl_F_FULLFSYNC=yes
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_cv_have_decl_F_FULLFSYNC=no
12862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12864 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
12865 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
12866 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
12868 cat >>confdefs.h <<_ACEOF
12869 #define HAVE_DECL_F_FULLFSYNC 1
12874 cat >>confdefs.h <<_ACEOF
12875 #define HAVE_DECL_F_FULLFSYNC 0
12884 ## Functions, global variables
12887 echo "$as_me:$LINENO: checking for int timezone" >&5
12888 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
12889 if test "${pgac_cv_var_int_timezone+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12904 res = timezone / 60;
12906 res = _timezone / 60;
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 pgac_cv_var_int_timezone=yes
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 pgac_cv_var_int_timezone=no
12941 rm -f conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
12945 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
12946 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12948 cat >>confdefs.h <<\_ACEOF
12949 #define HAVE_INT_TIMEZONE
12953 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
12954 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
12955 if test "${ac_cv_func_accept_return+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 if test "${ac_cv_func_accept_arg1+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 if test "${ac_cv_func_accept_arg2+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 if test "${ac_cv_func_accept_arg3+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
12968 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
12969 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12970 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12971 cat >conftest.$ac_ext <<_ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 #ifdef HAVE_SYS_TYPES_H
12978 #include <sys/types.h>
12980 #ifdef HAVE_SYS_SOCKET_H
12981 #include <sys/socket.h>
12983 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_c_werror_flag"
13002 || test ! -s conftest.err'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest.$ac_objext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_not_found=no; break 4
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13026 if test "$ac_not_found" = yes; then
13027 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13028 echo "$as_me: error: could not determine argument types" >&2;}
13029 { (exit 1); exit 1; }; }
13031 if test "$ac_cv_func_accept_arg3" = "void"; then
13032 ac_cv_func_accept_arg3=int
13042 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
13043 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13045 cat >>confdefs.h <<_ACEOF
13046 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13050 cat >>confdefs.h <<_ACEOF
13051 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13055 cat >>confdefs.h <<_ACEOF
13056 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13060 cat >>confdefs.h <<_ACEOF
13061 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13065 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13066 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13067 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 #include <sys/time.h>
13080 struct timeval *tp;
13081 struct timezone *tzp;
13082 gettimeofday(tp,tzp);
13087 rm -f conftest.$ac_objext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13089 (eval $ac_compile) 2>conftest.er1
13091 grep -v '^ *+' conftest.er1 >conftest.err
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
13096 { ac_try='test -z "$ac_c_werror_flag"
13097 || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest.$ac_objext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 pgac_cv_func_gettimeofday_1arg=no
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 pgac_cv_func_gettimeofday_1arg=yes
13116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13118 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13119 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13120 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13122 cat >>confdefs.h <<\_ACEOF
13123 #define GETTIMEOFDAY_1ARG
13149 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13152 echo "$as_me:$LINENO: checking for $ac_func" >&5
13153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13154 if eval "test \"\${$as_ac_var+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13165 #define $ac_func innocuous_$ac_func
13167 /* System header to define __stub macros and hopefully few prototypes,
13168 which can conflict with char $ac_func (); below.
13169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13170 <limits.h> exists even on freestanding compilers. */
13173 # include <limits.h>
13175 # include <assert.h>
13180 /* Override any gcc2 internal prototype to avoid an error. */
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13188 /* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13194 char (*f) () = $ac_func;
13203 return f != $ac_func;
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 eval "$as_ac_var=yes"
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 eval "$as_ac_var=no"
13237 rm -f conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13242 if test `eval echo '${'$as_ac_var'}'` = yes; then
13243 cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13251 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13252 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13253 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 #include <unistd.h>
13268 char *p = (char *) fdatasync;
13275 rm -f conftest.$ac_objext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag"
13285 || test ! -s conftest.err'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest.$ac_objext'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 ac_cv_have_decl_fdatasync=yes
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_cv_have_decl_fdatasync=no
13304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13306 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13307 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13308 if test $ac_cv_have_decl_fdatasync = yes; then
13310 cat >>confdefs.h <<_ACEOF
13311 #define HAVE_DECL_FDATASYNC 1
13316 cat >>confdefs.h <<_ACEOF
13317 #define HAVE_DECL_FDATASYNC 0
13326 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13327 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13328 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13338 #include <netinet/in.h>
13343 if ((struct sockaddr_in6 *) 0)
13345 if (sizeof (struct sockaddr_in6))
13351 rm -f conftest.$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353 (eval $ac_compile) 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -z "$ac_c_werror_flag"
13361 || test ! -s conftest.err'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_cv_type_struct_sockaddr_in6=yes
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_cv_type_struct_sockaddr_in6=no
13380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13382 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13383 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13384 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13386 cat >>confdefs.h <<\_ACEOF
13387 #define HAVE_IPV6 1
13395 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13396 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13397 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 #include <machine/vmparam.h>
13407 #include <sys/exec.h>
13412 PS_STRINGS->ps_nargvstr = 1;
13413 PS_STRINGS->ps_argvstr = "foo";
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13420 (eval $ac_link) 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest$ac_exeext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 pgac_cv_var_PS_STRINGS=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 pgac_cv_var_PS_STRINGS=no
13447 rm -f conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13450 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13451 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13452 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13454 cat >>confdefs.h <<\_ACEOF
13455 #define HAVE_PS_STRINGS
13461 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13462 # is missing. Yes, there are machines that have only one. We may
13463 # also decide to use snprintf.c if snprintf() is present but does not
13464 # have all the features we need --- see below.
13466 if test "$PORTNAME" = "win32"; then
13467 # Win32 gets snprintf.c built unconditionally.
13469 # To properly translate all NLS languages strings, we must support the
13470 # *printf() %$ format, which allows *printf() arguments to be selected
13471 # by position in the translated string.
13473 # libintl versions < 0.13 use the native *printf() functions, and Win32
13474 # *printf() doesn't understand %$, so we must use our /port versions,
13475 # which do understand %$. libintl versions >= 0.13 include their own
13476 # *printf versions on Win32. The libintl 0.13 release note text is:
13478 # C format strings with positions, as they arise when a translator
13479 # needs to reorder a sentence, are now supported on all platforms.
13480 # On those few platforms (NetBSD and Woe32) for which the native
13481 # printf()/fprintf()/... functions don't support such format
13482 # strings, replacements are provided through <libintl.h>.
13484 # We could use libintl >= 0.13's *printf() if we were sure that we had
13485 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13486 # to guarantee that, it is best to just use our own, so we are sure to
13487 # get %$ support. In include/port.h we disable the *printf() macros
13488 # that might have been defined by libintl.
13490 # We do this unconditionally whether NLS is used or not so we are sure
13491 # that all Win32 libraries and binaries behave the same.
13492 pgac_need_repl_snprintf=yes
13494 pgac_need_repl_snprintf=no
13496 for ac_func in snprintf
13498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13499 echo "$as_me:$LINENO: checking for $ac_func" >&5
13500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13501 if eval "test \"\${$as_ac_var+set}\" = set"; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 cat >conftest.$ac_ext <<_ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13512 #define $ac_func innocuous_$ac_func
13514 /* System header to define __stub macros and hopefully few prototypes,
13515 which can conflict with char $ac_func (); below.
13516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13517 <limits.h> exists even on freestanding compilers. */
13520 # include <limits.h>
13522 # include <assert.h>
13527 /* Override any gcc2 internal prototype to avoid an error. */
13532 /* We use char because int might match the return type of a gcc2
13533 builtin and then its argument prototype would still apply. */
13535 /* The GNU C library defines this for functions which it implements
13536 to always fail with ENOSYS. Some functions are actually named
13537 something starting with __ and the normal name is an alias. */
13538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13541 char (*f) () = $ac_func;
13550 return f != $ac_func;
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag"
13565 || test ! -s conftest.err'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; } &&
13571 { ac_try='test -s conftest$ac_exeext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 eval "$as_ac_var=yes"
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 eval "$as_ac_var=no"
13584 rm -f conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13589 if test `eval echo '${'$as_ac_var'}'` = yes; then
13590 cat >>confdefs.h <<_ACEOF
13591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13595 pgac_need_repl_snprintf=yes
13600 for ac_func in vsnprintf
13602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13603 echo "$as_me:$LINENO: checking for $ac_func" >&5
13604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13605 if eval "test \"\${$as_ac_var+set}\" = set"; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13616 #define $ac_func innocuous_$ac_func
13618 /* System header to define __stub macros and hopefully few prototypes,
13619 which can conflict with char $ac_func (); below.
13620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13621 <limits.h> exists even on freestanding compilers. */
13624 # include <limits.h>
13626 # include <assert.h>
13631 /* Override any gcc2 internal prototype to avoid an error. */
13636 /* We use char because int might match the return type of a gcc2
13637 builtin and then its argument prototype would still apply. */
13639 /* The GNU C library defines this for functions which it implements
13640 to always fail with ENOSYS. Some functions are actually named
13641 something starting with __ and the normal name is an alias. */
13642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13645 char (*f) () = $ac_func;
13654 return f != $ac_func;
13659 rm -f conftest.$ac_objext conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661 (eval $ac_link) 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 eval "$as_ac_var=yes"
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 eval "$as_ac_var=no"
13688 rm -f conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13693 if test `eval echo '${'$as_ac_var'}'` = yes; then
13694 cat >>confdefs.h <<_ACEOF
13695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13699 pgac_need_repl_snprintf=yes
13706 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13707 # include/c.h will provide declarations. Note this is a separate test
13708 # from whether the functions exist in the C library --- there are
13709 # systems that have the functions but don't bother to declare them :-(
13711 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13712 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13713 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13727 char *p = (char *) snprintf;
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>conftest.er1
13738 grep -v '^ *+' conftest.er1 >conftest.err
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag"
13744 || test ! -s conftest.err'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } &&
13750 { ac_try='test -s conftest.$ac_objext'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_have_decl_snprintf=yes
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13761 ac_cv_have_decl_snprintf=no
13763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13765 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13766 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13767 if test $ac_cv_have_decl_snprintf = yes; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_DECL_SNPRINTF 1
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_DECL_SNPRINTF 0
13781 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13782 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13783 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 $ac_includes_default
13797 char *p = (char *) vsnprintf;
13804 rm -f conftest.$ac_objext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806 (eval $ac_compile) 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag"
13814 || test ! -s conftest.err'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try='test -s conftest.$ac_objext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_have_decl_vsnprintf=yes
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_cv_have_decl_vsnprintf=no
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13836 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13837 if test $ac_cv_have_decl_vsnprintf = yes; then
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_DECL_VSNPRINTF 1
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_DECL_VSNPRINTF 0
13855 echo "$as_me:$LINENO: checking for isinf" >&5
13856 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13857 if test "${ac_cv_func_isinf+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13868 double glob_double;
13873 return isinf(glob_double) ? 0 : 1;
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_func_isinf=yes
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_cv_func_isinf=no
13907 rm -f conftest.err conftest.$ac_objext \
13908 conftest$ac_exeext conftest.$ac_ext
13910 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13911 echo "${ECHO_T}$ac_cv_func_isinf" >&6
13913 if test $ac_cv_func_isinf = yes ; then
13915 cat >>confdefs.h <<\_ACEOF
13916 #define HAVE_ISINF 1
13921 "isinf.$ac_objext" | \
13922 *" isinf.$ac_objext" | \
13923 "isinf.$ac_objext "* | \
13924 *" isinf.$ac_objext "* ) ;;
13925 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
13928 # Look for a way to implement a substitute for isinf()
13933 for ac_func in fpclass fp_class fp_class_d class
13935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13936 echo "$as_me:$LINENO: checking for $ac_func" >&5
13937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13938 if eval "test \"\${$as_ac_var+set}\" = set"; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 cat >conftest.$ac_ext <<_ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13949 #define $ac_func innocuous_$ac_func
13951 /* System header to define __stub macros and hopefully few prototypes,
13952 which can conflict with char $ac_func (); below.
13953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13954 <limits.h> exists even on freestanding compilers. */
13957 # include <limits.h>
13959 # include <assert.h>
13964 /* Override any gcc2 internal prototype to avoid an error. */
13969 /* We use char because int might match the return type of a gcc2
13970 builtin and then its argument prototype would still apply. */
13972 /* The GNU C library defines this for functions which it implements
13973 to always fail with ENOSYS. Some functions are actually named
13974 something starting with __ and the normal name is an alias. */
13975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13978 char (*f) () = $ac_func;
13987 return f != $ac_func;
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13994 (eval $ac_link) 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
14001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest$ac_exeext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 eval "$as_ac_var=yes"
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 eval "$as_ac_var=no"
14021 rm -f conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14026 if test `eval echo '${'$as_ac_var'}'` = yes; then
14027 cat >>confdefs.h <<_ACEOF
14028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14049 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14052 echo "$as_me:$LINENO: checking for $ac_func" >&5
14053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14054 if eval "test \"\${$as_ac_var+set}\" = set"; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14065 #define $ac_func innocuous_$ac_func
14067 /* System header to define __stub macros and hopefully few prototypes,
14068 which can conflict with char $ac_func (); below.
14069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14070 <limits.h> exists even on freestanding compilers. */
14073 # include <limits.h>
14075 # include <assert.h>
14080 /* Override any gcc2 internal prototype to avoid an error. */
14085 /* We use char because int might match the return type of a gcc2
14086 builtin and then its argument prototype would still apply. */
14088 /* The GNU C library defines this for functions which it implements
14089 to always fail with ENOSYS. Some functions are actually named
14090 something starting with __ and the normal name is an alias. */
14091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14094 char (*f) () = $ac_func;
14103 return f != $ac_func;
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110 (eval $ac_link) 2>conftest.er1
14112 grep -v '^ *+' conftest.er1 >conftest.err
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 eval "$as_ac_var=yes"
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 eval "$as_ac_var=no"
14137 rm -f conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14142 if test `eval echo '${'$as_ac_var'}'` = yes; then
14143 cat >>confdefs.h <<_ACEOF
14144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14149 "$ac_func.$ac_objext" | \
14150 *" $ac_func.$ac_objext" | \
14151 "$ac_func.$ac_objext "* | \
14152 *" $ac_func.$ac_objext "* ) ;;
14153 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14161 # System's version of getaddrinfo(), if any, may be used only if we found
14162 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14163 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14164 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14165 # because we want to use our own getaddrinfo.c on Windows anyway.)
14166 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14168 for ac_func in getaddrinfo
14170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14171 echo "$as_me:$LINENO: checking for $ac_func" >&5
14172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_var+set}\" = set"; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14184 #define $ac_func innocuous_$ac_func
14186 /* System header to define __stub macros and hopefully few prototypes,
14187 which can conflict with char $ac_func (); below.
14188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14189 <limits.h> exists even on freestanding compilers. */
14192 # include <limits.h>
14194 # include <assert.h>
14199 /* Override any gcc2 internal prototype to avoid an error. */
14204 /* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14207 /* The GNU C library defines this for functions which it implements
14208 to always fail with ENOSYS. Some functions are actually named
14209 something starting with __ and the normal name is an alias. */
14210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14213 char (*f) () = $ac_func;
14222 return f != $ac_func;
14227 rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229 (eval $ac_link) 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest$ac_exeext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 eval "$as_ac_var=yes"
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 eval "$as_ac_var=no"
14256 rm -f conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14261 if test `eval echo '${'$as_ac_var'}'` = yes; then
14262 cat >>confdefs.h <<_ACEOF
14263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14268 "$ac_func.$ac_objext" | \
14269 *" $ac_func.$ac_objext" | \
14270 "$ac_func.$ac_objext "* | \
14271 *" $ac_func.$ac_objext "* ) ;;
14272 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14281 "getaddrinfo.$ac_objext" | \
14282 *" getaddrinfo.$ac_objext" | \
14283 "getaddrinfo.$ac_objext "* | \
14284 *" getaddrinfo.$ac_objext "* ) ;;
14285 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14290 # similarly, use system's getopt_long() only if system provides struct option.
14291 if test x"$ac_cv_type_struct_option" = xyes ; then
14293 for ac_func in getopt_long
14295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14296 echo "$as_me:$LINENO: checking for $ac_func" >&5
14297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14298 if eval "test \"\${$as_ac_var+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. */
14307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14309 #define $ac_func innocuous_$ac_func
14311 /* System header to define __stub macros and hopefully few prototypes,
14312 which can conflict with char $ac_func (); below.
14313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14314 <limits.h> exists even on freestanding compilers. */
14317 # include <limits.h>
14319 # include <assert.h>
14324 /* Override any gcc2 internal prototype to avoid an error. */
14329 /* We use char because int might match the return type of a gcc2
14330 builtin and then its argument prototype would still apply. */
14332 /* The GNU C library defines this for functions which it implements
14333 to always fail with ENOSYS. Some functions are actually named
14334 something starting with __ and the normal name is an alias. */
14335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14338 char (*f) () = $ac_func;
14347 return f != $ac_func;
14352 rm -f conftest.$ac_objext conftest$ac_exeext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354 (eval $ac_link) 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_c_werror_flag"
14362 || test ! -s conftest.err'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest$ac_exeext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14374 eval "$as_ac_var=yes"
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14379 eval "$as_ac_var=no"
14381 rm -f conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14386 if test `eval echo '${'$as_ac_var'}'` = yes; then
14387 cat >>confdefs.h <<_ACEOF
14388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14393 "$ac_func.$ac_objext" | \
14394 *" $ac_func.$ac_objext" | \
14395 "$ac_func.$ac_objext "* | \
14396 *" $ac_func.$ac_objext "* ) ;;
14397 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14406 "getopt_long.$ac_objext" | \
14407 *" getopt_long.$ac_objext" | \
14408 "getopt_long.$ac_objext "* | \
14409 *" getopt_long.$ac_objext "* ) ;;
14410 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14415 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14416 # We override the previous test that said fseeko/ftello didn't exist
14417 # OS tests are also done in include/c.h and port/fseeko.c
14418 case $host_os in bsdi*|netbsd*)
14419 ac_cv_func_fseeko=yes
14422 # Solaris has a very slow qsort in certain cases, so we replace it:
14423 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14424 # Supposedly it is fixed in Solaris, but not sure which version, and
14425 # no confirmed testing. 2005-12-16
14426 if test "$PORTNAME" = "solaris"; then
14428 "qsort.$ac_objext" | \
14429 *" qsort.$ac_objext" | \
14430 "qsort.$ac_objext "* | \
14431 *" qsort.$ac_objext "* ) ;;
14432 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14438 if test "$PORTNAME" = "win32"; then
14440 "gettimeofday.$ac_objext" | \
14441 *" gettimeofday.$ac_objext" | \
14442 "gettimeofday.$ac_objext "* | \
14443 *" gettimeofday.$ac_objext "* ) ;;
14444 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14448 "kill.$ac_objext" | \
14449 *" kill.$ac_objext" | \
14450 "kill.$ac_objext "* | \
14451 *" kill.$ac_objext "* ) ;;
14452 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14456 "open.$ac_objext" | \
14457 *" open.$ac_objext" | \
14458 "open.$ac_objext "* | \
14459 *" open.$ac_objext "* ) ;;
14460 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14464 "rand.$ac_objext" | \
14465 *" rand.$ac_objext" | \
14466 "rand.$ac_objext "* | \
14467 *" rand.$ac_objext "* ) ;;
14468 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14472 cat >>confdefs.h <<\_ACEOF
14473 #define HAVE_SYMLINK 1
14478 if test "$with_readline" = yes; then
14479 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14480 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14481 cat >conftest.$ac_ext <<_ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14488 #ifdef HAVE_READLINE_READLINE_H
14489 # include <readline/readline.h>
14490 #elif defined(HAVE_READLINE_H)
14491 # include <readline.h>
14497 rl_completion_append_character = 'x';
14502 rm -f conftest.$ac_objext conftest$ac_exeext
14503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14504 (eval $ac_link) 2>conftest.er1
14506 grep -v '^ *+' conftest.er1 >conftest.err
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } &&
14511 { ac_try='test -z "$ac_c_werror_flag"
14512 || test ! -s conftest.err'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 echo "$as_me:$LINENO: result: yes" >&5
14525 echo "${ECHO_T}yes" >&6
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 echo "$as_me:$LINENO: result: no" >&5
14536 echo "${ECHO_T}no" >&6
14538 rm -f conftest.err conftest.$ac_objext \
14539 conftest$ac_exeext conftest.$ac_ext
14542 for ac_func in rl_completion_matches rl_filename_completion_function
14544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14545 echo "$as_me:$LINENO: checking for $ac_func" >&5
14546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14547 if eval "test \"\${$as_ac_var+set}\" = set"; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14558 #define $ac_func innocuous_$ac_func
14560 /* System header to define __stub macros and hopefully few prototypes,
14561 which can conflict with char $ac_func (); below.
14562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14563 <limits.h> exists even on freestanding compilers. */
14566 # include <limits.h>
14568 # include <assert.h>
14573 /* Override any gcc2 internal prototype to avoid an error. */
14578 /* We use char because int might match the return type of a gcc2
14579 builtin and then its argument prototype would still apply. */
14581 /* The GNU C library defines this for functions which it implements
14582 to always fail with ENOSYS. Some functions are actually named
14583 something starting with __ and the normal name is an alias. */
14584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14587 char (*f) () = $ac_func;
14596 return f != $ac_func;
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603 (eval $ac_link) 2>conftest.er1
14605 grep -v '^ *+' conftest.er1 >conftest.err
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
14610 { ac_try='test -z "$ac_c_werror_flag"
14611 || test ! -s conftest.err'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest$ac_exeext'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 eval "$as_ac_var=yes"
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14628 eval "$as_ac_var=no"
14630 rm -f conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext conftest.$ac_ext
14633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14635 if test `eval echo '${'$as_ac_var'}'` = yes; then
14636 cat >>confdefs.h <<_ACEOF
14637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14644 for ac_func in replace_history_entry
14646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14647 echo "$as_me:$LINENO: checking for $ac_func" >&5
14648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14649 if eval "test \"\${$as_ac_var+set}\" = set"; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14660 #define $ac_func innocuous_$ac_func
14662 /* System header to define __stub macros and hopefully few prototypes,
14663 which can conflict with char $ac_func (); below.
14664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14665 <limits.h> exists even on freestanding compilers. */
14668 # include <limits.h>
14670 # include <assert.h>
14675 /* Override any gcc2 internal prototype to avoid an error. */
14680 /* We use char because int might match the return type of a gcc2
14681 builtin and then its argument prototype would still apply. */
14683 /* The GNU C library defines this for functions which it implements
14684 to always fail with ENOSYS. Some functions are actually named
14685 something starting with __ and the normal name is an alias. */
14686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14689 char (*f) () = $ac_func;
14698 return f != $ac_func;
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_c_werror_flag"
14713 || test ! -s conftest.err'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest$ac_exeext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 eval "$as_ac_var=yes"
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 eval "$as_ac_var=no"
14732 rm -f conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14737 if test `eval echo '${'$as_ac_var'}'` = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14748 echo "$as_me:$LINENO: checking for finite" >&5
14749 echo $ECHO_N "checking for finite... $ECHO_C" >&6
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14758 double glob_double;
14763 return finite(glob_double) ? 0 : 1;
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag"
14778 || test ! -s conftest.err'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_FINITE 1
14795 echo "$as_me:$LINENO: result: yes" >&5
14796 echo "${ECHO_T}yes" >&6
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 echo "$as_me:$LINENO: result: no" >&5
14802 echo "${ECHO_T}no" >&6
14804 rm -f conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14807 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
14808 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <setjmp.h>
14819 sigjmp_buf x; sigsetjmp(x, 1);
14824 rm -f conftest.$ac_objext conftest$ac_exeext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14826 (eval $ac_link) 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag"
14834 || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest$ac_exeext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14847 cat >>confdefs.h <<\_ACEOF
14848 #define HAVE_SIGSETJMP 1
14851 echo "$as_me:$LINENO: result: yes" >&5
14852 echo "${ECHO_T}yes" >&6
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 echo "$as_me:$LINENO: result: no" >&5
14858 echo "${ECHO_T}no" >&6
14860 rm -f conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14863 echo "$as_me:$LINENO: checking for syslog" >&5
14864 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14865 if test "${ac_cv_func_syslog+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 cat >conftest.$ac_ext <<_ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
14875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14876 #define syslog innocuous_syslog
14878 /* System header to define __stub macros and hopefully few prototypes,
14879 which can conflict with char syslog (); below.
14880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14881 <limits.h> exists even on freestanding compilers. */
14884 # include <limits.h>
14886 # include <assert.h>
14891 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14899 /* The GNU C library defines this for functions which it implements
14900 to always fail with ENOSYS. Some functions are actually named
14901 something starting with __ and the normal name is an alias. */
14902 #if defined (__stub_syslog) || defined (__stub___syslog)
14905 char (*f) () = syslog;
14914 return f != syslog;
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14923 grep -v '^ *+' conftest.er1 >conftest.err
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_func_syslog=yes
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_func_syslog=no
14948 rm -f conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
14952 echo "${ECHO_T}$ac_cv_func_syslog" >&6
14953 if test $ac_cv_func_syslog = yes; then
14954 if test "${ac_cv_header_syslog_h+set}" = set; then
14955 echo "$as_me:$LINENO: checking for syslog.h" >&5
14956 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
14957 if test "${ac_cv_header_syslog_h+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
14961 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
14963 # Is the header compilable?
14964 echo "$as_me:$LINENO: checking syslog.h usability" >&5
14965 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 $ac_includes_default
14973 #include <syslog.h>
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_header_compiler=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_header_compiler=no
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15006 echo "${ECHO_T}$ac_header_compiler" >&6
15008 # Is the header present?
15009 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15010 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <syslog.h>
15019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null; then
15027 if test -s conftest.err; then
15028 ac_cpp_err=$ac_c_preproc_warn_flag
15029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15036 if test -z "$ac_cpp_err"; then
15037 ac_header_preproc=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_preproc=no
15044 rm -f conftest.err conftest.$ac_ext
15045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15046 echo "${ECHO_T}$ac_header_preproc" >&6
15048 # So? What about this header?
15049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15051 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15052 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15054 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15055 ac_header_preproc=yes
15058 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15059 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15061 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15063 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15065 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15067 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15069 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15072 ## ---------------------------------------- ##
15073 ## Report this to pgsql-bugs@postgresql.org ##
15074 ## ---------------------------------------- ##
15077 sed "s/^/$as_me: WARNING: /" >&2
15080 echo "$as_me:$LINENO: checking for syslog.h" >&5
15081 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15082 if test "${ac_cv_header_syslog_h+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 ac_cv_header_syslog_h=$ac_header_preproc
15087 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15088 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15091 if test $ac_cv_header_syslog_h = yes; then
15093 cat >>confdefs.h <<\_ACEOF
15094 #define HAVE_SYSLOG 1
15103 echo "$as_me:$LINENO: checking for optreset" >&5
15104 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15105 if test "${pgac_cv_var_int_optreset+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 #include <unistd.h>
15118 extern int optreset; optreset = 1;
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 pgac_cv_var_int_optreset=yes
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 pgac_cv_var_int_optreset=no
15152 rm -f conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15155 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15156 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15157 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_INT_OPTRESET 1
15167 for ac_func in strtoll strtoq
15169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15170 echo "$as_me:$LINENO: checking for $ac_func" >&5
15171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15172 if eval "test \"\${$as_ac_var+set}\" = set"; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15183 #define $ac_func innocuous_$ac_func
15185 /* System header to define __stub macros and hopefully few prototypes,
15186 which can conflict with char $ac_func (); below.
15187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15188 <limits.h> exists even on freestanding compilers. */
15191 # include <limits.h>
15193 # include <assert.h>
15198 /* Override any gcc2 internal prototype to avoid an error. */
15203 /* We use char because int might match the return type of a gcc2
15204 builtin and then its argument prototype would still apply. */
15206 /* The GNU C library defines this for functions which it implements
15207 to always fail with ENOSYS. Some functions are actually named
15208 something starting with __ and the normal name is an alias. */
15209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15212 char (*f) () = $ac_func;
15221 return f != $ac_func;
15226 rm -f conftest.$ac_objext conftest$ac_exeext
15227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15228 (eval $ac_link) 2>conftest.er1
15230 grep -v '^ *+' conftest.er1 >conftest.err
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -z "$ac_c_werror_flag"
15236 || test ! -s conftest.err'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
15242 { ac_try='test -s conftest$ac_exeext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 eval "$as_ac_var=yes"
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 eval "$as_ac_var=no"
15255 rm -f conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261 cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15270 for ac_func in strtoull strtouq
15272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15273 echo "$as_me:$LINENO: checking for $ac_func" >&5
15274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_var+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15286 #define $ac_func innocuous_$ac_func
15288 /* System header to define __stub macros and hopefully few prototypes,
15289 which can conflict with char $ac_func (); below.
15290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15291 <limits.h> exists even on freestanding compilers. */
15294 # include <limits.h>
15296 # include <assert.h>
15301 /* Override any gcc2 internal prototype to avoid an error. */
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15309 /* The GNU C library defines this for functions which it implements
15310 to always fail with ENOSYS. Some functions are actually named
15311 something starting with __ and the normal name is an alias. */
15312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15315 char (*f) () = $ac_func;
15324 return f != $ac_func;
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>conftest.er1
15333 grep -v '^ *+' conftest.er1 >conftest.err
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag"
15339 || test ! -s conftest.err'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest$ac_exeext'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 eval "$as_ac_var=yes"
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 eval "$as_ac_var=no"
15358 rm -f conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15372 # Check for one of atexit() or on_exit()
15374 for ac_func in atexit
15376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15377 echo "$as_me:$LINENO: checking for $ac_func" >&5
15378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15379 if eval "test \"\${$as_ac_var+set}\" = set"; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15390 #define $ac_func innocuous_$ac_func
15392 /* System header to define __stub macros and hopefully few prototypes,
15393 which can conflict with char $ac_func (); below.
15394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395 <limits.h> exists even on freestanding compilers. */
15398 # include <limits.h>
15400 # include <assert.h>
15405 /* Override any gcc2 internal prototype to avoid an error. */
15410 /* We use char because int might match the return type of a gcc2
15411 builtin and then its argument prototype would still apply. */
15413 /* The GNU C library defines this for functions which it implements
15414 to always fail with ENOSYS. Some functions are actually named
15415 something starting with __ and the normal name is an alias. */
15416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15419 char (*f) () = $ac_func;
15428 return f != $ac_func;
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435 (eval $ac_link) 2>conftest.er1
15437 grep -v '^ *+' conftest.er1 >conftest.err
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try='test -z "$ac_c_werror_flag"
15443 || test ! -s conftest.err'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 eval "$as_ac_var=yes"
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 eval "$as_ac_var=no"
15462 rm -f conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15467 if test `eval echo '${'$as_ac_var'}'` = yes; then
15468 cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15474 for ac_func in on_exit
15476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477 echo "$as_me:$LINENO: checking for $ac_func" >&5
15478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15479 if eval "test \"\${$as_ac_var+set}\" = set"; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15490 #define $ac_func innocuous_$ac_func
15492 /* System header to define __stub macros and hopefully few prototypes,
15493 which can conflict with char $ac_func (); below.
15494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15495 <limits.h> exists even on freestanding compilers. */
15498 # include <limits.h>
15500 # include <assert.h>
15505 /* Override any gcc2 internal prototype to avoid an error. */
15510 /* We use char because int might match the return type of a gcc2
15511 builtin and then its argument prototype would still apply. */
15513 /* The GNU C library defines this for functions which it implements
15514 to always fail with ENOSYS. Some functions are actually named
15515 something starting with __ and the normal name is an alias. */
15516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15519 char (*f) () = $ac_func;
15528 return f != $ac_func;
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535 (eval $ac_link) 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
15542 { ac_try='test -z "$ac_c_werror_flag"
15543 || test ! -s conftest.err'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest$ac_exeext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 eval "$as_ac_var=yes"
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 eval "$as_ac_var=no"
15562 rm -f conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568 cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15573 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15574 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15575 { (exit 1); exit 1; }; }
15583 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15584 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15585 if test "${ac_cv_sys_largefile_source+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 ac_cv_sys_largefile_source=no
15590 cat >conftest.$ac_ext <<_ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 #define _LARGEFILE_SOURCE 1
15650 rm -f conftest.$ac_objext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15652 (eval $ac_compile) 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag"
15660 || test ! -s conftest.err'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest.$ac_objext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_cv_sys_largefile_source=1; break
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15682 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15683 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15684 if test "$ac_cv_sys_largefile_source" != no; then
15686 cat >>confdefs.h <<_ACEOF
15687 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15693 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15694 # in glibc 2.1.3, but that breaks too many other things.
15695 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15696 echo "$as_me:$LINENO: checking for fseeko" >&5
15697 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15698 if test "${ac_cv_func_fseeko+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15711 return fseeko && fseeko (stdin, 0, 0);
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag"
15726 || test ! -s conftest.err'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest$ac_exeext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_func_fseeko=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_cv_func_fseeko=no
15745 rm -f conftest.err conftest.$ac_objext \
15746 conftest$ac_exeext conftest.$ac_ext
15748 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15749 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15750 if test $ac_cv_func_fseeko = yes; then
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_FSEEKO 1
15762 # For each platform, we need to know about any special compile and link
15763 # libraries, and whether the normal C function names are thread-safe.
15764 # See the comment at the top of src/port/thread.c for more information.
15766 if test "$enable_thread_safety" = yes; then
15772 ac_cpp='$CPP $CPPFLAGS'
15773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15779 # We used to check for pthread.h first, but this fails if pthread.h
15780 # requires special compiler flags (e.g. on True64 or Sequent).
15781 # It gets checked for in the link test anyway.
15783 # First of all, check if the user has set any of the PTHREAD_LIBS,
15784 # etcetera environment variables, and if threads linking works using
15786 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15787 save_CFLAGS="$CFLAGS"
15788 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15790 LIBS="$PTHREAD_LIBS $LIBS"
15791 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15792 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15800 /* Override any gcc2 internal prototype to avoid an error. */
15804 /* We use char because int might match the return type of a gcc2
15805 builtin and then its argument prototype would still apply. */
15806 char pthread_join ();
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15817 (eval $ac_link) 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -z "$ac_c_werror_flag"
15825 || test ! -s conftest.err'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15843 rm -f conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
15845 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15846 echo "${ECHO_T}$acx_pthread_ok" >&6
15847 if test x"$acx_pthread_ok" = xno; then
15852 CFLAGS="$save_CFLAGS"
15855 # We must check for the threads library under a number of different
15856 # names; the ordering is very important because some systems
15857 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15858 # libraries is broken (non-POSIX).
15860 # Create a list of thread flags to try. Items starting with a "-" are
15861 # C compiler flags, and other items are library names, except for "none"
15862 # which indicates that we try without any flags at all, and "pthread-config"
15863 # which is a program returning the flags for the Pth emulation library.
15865 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
15867 # The ordering *is* (sometimes) important. Some notes on the
15868 # individual items follow:
15870 # pthreads: AIX (must check this before -lpthread)
15871 # none: in case threads are in libc; should be tried before -Kthread and
15872 # other compiler flags to prevent continual compiler warnings
15873 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15874 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15875 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15876 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15877 # -pthreads: Solaris/gcc
15878 # -mthreads: Mingw32/gcc, Lynx/gcc
15879 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15880 # doesn't hurt to check since this sometimes defines pthreads too;
15881 # also defines -D_REENTRANT)
15882 # pthread: Linux, etcetera
15883 # --thread-safe: KAI C++
15884 # pthread-config: use pthread-config program (for GNU Pth library)
15886 case "${host_cpu}-${host_os}" in
15889 # On Solaris (at least, for some versions), libc contains stubbed
15890 # (non-functional) versions of the pthreads routines, so link-based
15891 # tests will erroneously succeed. (We need to link with -pthread or
15892 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15893 # a function called by this macro, so we could check for that, but
15894 # who knows whether they'll stub that too in a future libc.) So,
15895 # we'll just look for -pthreads and -lpthread first:
15897 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15901 if test x"$acx_pthread_ok" = xno; then
15902 for flag in $acx_pthread_flags; do
15904 tryPTHREAD_CFLAGS=""
15908 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15909 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15913 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15914 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15915 tryPTHREAD_CFLAGS="$flag"
15919 # skip this if we already have flags defined, for PostgreSQL
15920 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
15921 # Extract the first word of "pthread-config", so it can be a program name with args.
15922 set dummy pthread-config; ac_word=$2
15923 echo "$as_me:$LINENO: checking for $ac_word" >&5
15924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15925 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 if test -n "$acx_pthread_config"; then
15929 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15935 test -z "$as_dir" && as_dir=.
15936 for ac_exec_ext in '' $ac_executable_extensions; do
15937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15938 ac_cv_prog_acx_pthread_config="yes"
15939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15945 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15948 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15949 if test -n "$acx_pthread_config"; then
15950 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15951 echo "${ECHO_T}$acx_pthread_config" >&6
15953 echo "$as_me:$LINENO: result: no" >&5
15954 echo "${ECHO_T}no" >&6
15957 if test x"$acx_pthread_config" = xno; then continue; fi
15958 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
15959 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15963 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15964 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
15965 tryPTHREAD_LIBS="-l$flag"
15970 save_CFLAGS="$CFLAGS"
15971 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
15972 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
15974 # Check for various functions. We must include pthread.h,
15975 # since some functions may be macros. (On the Sequent, we
15976 # need a special flag -Kthread to make this header compile.)
15977 # We check for pthread_join because it is in -lpthread on IRIX
15978 # while pthread_create is in libc. We check for pthread_attr_init
15979 # due to DEC craziness with -lpthreads. We check for
15980 # pthread_cleanup_push because it is one of the few pthread
15981 # functions on Solaris that doesn't have a non-functional libc stub.
15982 # We try pthread_create on general principles.
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 #include <pthread.h>
15993 pthread_t th; pthread_join(th, 0);
15994 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15995 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16000 rm -f conftest.$ac_objext conftest$ac_exeext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16002 (eval $ac_link) 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -z "$ac_c_werror_flag"
16010 || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest$ac_exeext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16029 rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
16032 if test "x$acx_pthread_ok" = xyes; then
16033 # Don't use options that are ignored by the compiler.
16034 # We find them by checking stderror.
16035 cat >conftest.$ac_ext <<_ACEOF
16037 main (int argc, char **argv)
16044 rm -f conftest.$ac_objext conftest$ac_exeext
16045 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16046 # we continue with more flags because Linux needs -lpthread
16047 # for libpq builds on PostgreSQL. The test above only
16048 # tests for building binaries, not shared libraries.
16049 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16050 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16051 else acx_pthread_ok=no
16056 CFLAGS="$save_CFLAGS"
16058 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16059 echo "${ECHO_T}$acx_pthread_ok" >&6
16063 # Various other checks:
16064 if test "x$acx_pthread_ok" = xyes; then
16066 LIBS="$PTHREAD_LIBS $LIBS"
16067 save_CFLAGS="$CFLAGS"
16068 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16070 # Detect AIX lossage: threads are created detached by default
16071 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16072 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16073 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #include <pthread.h>
16084 int attr=PTHREAD_CREATE_JOINABLE;
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ok=PTHREAD_CREATE_JOINABLE
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16118 rm -f conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120 if test x"$ok" = xunknown; then
16121 cat >conftest.$ac_ext <<_ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16127 #include <pthread.h>
16131 int attr=PTHREAD_CREATE_UNDETACHED;
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ok=PTHREAD_CREATE_UNDETACHED
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16165 rm -f conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16168 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16170 cat >>confdefs.h <<\_ACEOF
16171 #define PTHREAD_CREATE_JOINABLE $ok
16175 echo "$as_me:$LINENO: result: ${ok}" >&5
16176 echo "${ECHO_T}${ok}" >&6
16177 if test x"$ok" = xunknown; then
16178 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16179 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16182 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16183 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16185 # We always add these in PostgreSQL
16186 # case "${host_cpu}-${host_os}" in
16187 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16188 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16190 echo "$as_me:$LINENO: result: ${flag}" >&5
16191 echo "${ECHO_T}${flag}" >&6
16192 if test "x$flag" != xno; then
16193 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16197 CFLAGS="$save_CFLAGS"
16199 # Supporting cc_r would require a special CC in all places that
16200 # use libpq, and that is ugly, so we don't do it. Users can still
16201 # define their compiler as cc_r to do thread builds of everything.
16202 # More AIX lossage: must compile with cc_r
16203 # Extract the first word of "cc_r", so it can be a program name with args.
16204 set dummy cc_r; ac_word=$2
16205 echo "$as_me:$LINENO: checking for $ac_word" >&5
16206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16207 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 if test -n "$PTHREAD_CC"; then
16211 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220 ac_cv_prog_PTHREAD_CC="cc_r"
16221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16227 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16230 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16231 if test -n "$PTHREAD_CC"; then
16232 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16233 echo "${ECHO_T}$PTHREAD_CC" >&6
16235 echo "$as_me:$LINENO: result: no" >&5
16236 echo "${ECHO_T}no" >&6
16247 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16248 if test x"$acx_pthread_ok" = xyes; then
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_PTHREAD 1
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16267 # Some platforms use these, so just defineed them. They can't hurt if they
16268 # are not supported.
16269 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16272 # At this point, we don't want to muck with the compiler name for threading.
16273 # Let's see who fails, perhaps AIX. 2004-04-23
16274 if test "$PTHREAD_CC" != "$CC"; then
16275 { { echo "$as_me:$LINENO: error:
16276 PostgreSQL does not support platforms that require a special
16277 compiler binary for thread-safety.
16279 echo "$as_me: error:
16280 PostgreSQL does not support platforms that require a special
16281 compiler binary for thread-safety.
16283 { (exit 1); exit 1; }; }
16286 if test "$THREAD_SUPPORT" = no; then
16287 { { echo "$as_me:$LINENO: error:
16288 Cannot enable threads on your platform.
16289 Your platform is known to not support thread-safe programs.
16290 For details, compile and run src/bin/pg_thread_test.
16292 echo "$as_me: error:
16293 Cannot enable threads on your platform.
16294 Your platform is known to not support thread-safe programs.
16295 For details, compile and run src/bin/pg_thread_test.
16297 { (exit 1); exit 1; }; }
16300 # Check for *_r functions
16303 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16304 LIBS="$LIBS $PTHREAD_LIBS"
16306 if test "${ac_cv_header_pthread_h+set}" = set; then
16307 echo "$as_me:$LINENO: checking for pthread.h" >&5
16308 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16309 if test "${ac_cv_header_pthread_h+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16313 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16315 # Is the header compilable?
16316 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16317 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 $ac_includes_default
16325 #include <pthread.h>
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_header_compiler=yes
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ac_header_compiler=no
16356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16358 echo "${ECHO_T}$ac_header_compiler" >&6
16360 # Is the header present?
16361 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16362 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <pthread.h>
16371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16374 grep -v '^ *+' conftest.er1 >conftest.err
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } >/dev/null; then
16379 if test -s conftest.err; then
16380 ac_cpp_err=$ac_c_preproc_warn_flag
16381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16388 if test -z "$ac_cpp_err"; then
16389 ac_header_preproc=yes
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ac_header_preproc=no
16396 rm -f conftest.err conftest.$ac_ext
16397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16398 echo "${ECHO_T}$ac_header_preproc" >&6
16400 # So? What about this header?
16401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16403 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16404 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16406 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16407 ac_header_preproc=yes
16410 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16411 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16412 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16413 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16414 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16415 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16416 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16417 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16419 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16421 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16424 ## ---------------------------------------- ##
16425 ## Report this to pgsql-bugs@postgresql.org ##
16426 ## ---------------------------------------- ##
16429 sed "s/^/$as_me: WARNING: /" >&2
16432 echo "$as_me:$LINENO: checking for pthread.h" >&5
16433 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16434 if test "${ac_cv_header_pthread_h+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 ac_cv_header_pthread_h=$ac_header_preproc
16439 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16440 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16443 if test $ac_cv_header_pthread_h = yes; then
16446 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16447 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16448 { (exit 1); exit 1; }; }
16456 for ac_func in strerror_r getpwuid_r gethostbyname_r
16458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16459 echo "$as_me:$LINENO: checking for $ac_func" >&5
16460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16461 if eval "test \"\${$as_ac_var+set}\" = set"; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16472 #define $ac_func innocuous_$ac_func
16474 /* System header to define __stub macros and hopefully few prototypes,
16475 which can conflict with char $ac_func (); below.
16476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16477 <limits.h> exists even on freestanding compilers. */
16480 # include <limits.h>
16482 # include <assert.h>
16487 /* Override any gcc2 internal prototype to avoid an error. */
16492 /* We use char because int might match the return type of a gcc2
16493 builtin and then its argument prototype would still apply. */
16495 /* The GNU C library defines this for functions which it implements
16496 to always fail with ENOSYS. Some functions are actually named
16497 something starting with __ and the normal name is an alias. */
16498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16501 char (*f) () = $ac_func;
16510 return f != $ac_func;
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16517 (eval $ac_link) 2>conftest.er1
16519 grep -v '^ *+' conftest.er1 >conftest.err
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -z "$ac_c_werror_flag"
16525 || test ! -s conftest.err'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest$ac_exeext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 eval "$as_ac_var=yes"
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 eval "$as_ac_var=no"
16544 rm -f conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16549 if test `eval echo '${'$as_ac_var'}'` = yes; then
16550 cat >>confdefs.h <<_ACEOF
16551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16558 # Do test here with the proper thread flags
16559 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16560 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16561 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 #include <sys/types.h>
16576 struct passwd *space;
16579 struct passwd **result;
16580 getpwuid_r(uid, space, buf, bufsize, result);
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587 (eval $ac_compile) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 pgac_func_getpwuid_r_5arg=yes
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 pgac_func_getpwuid_r_5arg=no
16614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16616 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
16617 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
16618 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
16620 cat >>confdefs.h <<\_ACEOF
16621 #define GETPWUID_R_5ARG
16626 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
16627 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
16628 if test "${pgac_func_strerror_r_int+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 cat >conftest.$ac_ext <<_ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 #include <string.h>
16642 int strerror_r(int, char *, size_t);
16644 /* Older AIX has 'int' for the third argument so we don't test the args. */
16651 rm -f conftest.$ac_objext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>conftest.er1
16655 grep -v '^ *+' conftest.er1 >conftest.err
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -z "$ac_c_werror_flag"
16661 || test ! -s conftest.err'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 pgac_func_strerror_r_int=yes
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 pgac_func_strerror_r_int=no
16680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16682 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
16683 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
16684 if test x"$pgac_func_strerror_r_int" = xyes ; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define STRERROR_R_INT
16697 # do not use values from template file
16706 # This test makes sure that run tests work at all. Sometimes a shared
16707 # library is found by the linker, but the runtime linker can't find it.
16708 # This check should come after all modifications of compiler or linker
16709 # variables, and before any other run tests.
16710 echo "$as_me:$LINENO: checking test program" >&5
16711 echo $ECHO_N "checking test program... $ECHO_C" >&6
16712 if test "$cross_compiling" = yes; then
16713 echo "$as_me:$LINENO: result: cross-compiling" >&5
16714 echo "${ECHO_T}cross-compiling" >&6
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 int main() { return 0; }
16724 rm -f conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 echo "$as_me:$LINENO: result: ok" >&5
16736 echo "${ECHO_T}ok" >&6
16738 echo "$as_me: program exited with status $ac_status" >&5
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ( exit $ac_status )
16743 echo "$as_me:$LINENO: result: failed" >&5
16744 echo "${ECHO_T}failed" >&6
16745 { { echo "$as_me:$LINENO: error:
16746 *** Could not execute a simple test program. This may be a problem
16747 *** related to locating shared libraries. Check the file 'config.log'
16748 *** for the exact reason." >&5
16749 echo "$as_me: error:
16750 *** Could not execute a simple test program. This may be a problem
16751 *** related to locating shared libraries. Check the file 'config.log'
16752 *** for the exact reason." >&2;}
16753 { (exit 1); exit 1; }; }
16755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16758 # --------------------
16759 # Run tests below here
16760 # --------------------
16762 # Force use of our snprintf if system's doesn't do arg control
16763 # See comment above at snprintf test for details.
16764 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
16765 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
16766 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
16767 if test "${pgac_cv_printf_arg_control+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 if test "$cross_compiling" = yes; then
16771 pgac_cv_printf_arg_control=cross
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16780 #include <string.h>
16786 /* can it swap arguments? */
16787 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
16788 if (strcmp(buf, "4 3") != 0)
16793 rm -f conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 pgac_cv_printf_arg_control=yes
16806 echo "$as_me: program exited with status $ac_status" >&5
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810 ( exit $ac_status )
16811 pgac_cv_printf_arg_control=no
16813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16817 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
16818 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
16820 if test $pgac_cv_printf_arg_control != yes ; then
16821 pgac_need_repl_snprintf=yes
16827 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
16828 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
16829 if test "${pgac_cv_type_long_int_64+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 if test "$cross_compiling" = yes; then
16833 # If cross-compiling, check the size reported by the compiler and
16834 # trust that the arithmetic works.
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16845 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16856 grep -v '^ *+' conftest.er1 >conftest.err
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 pgac_cv_type_long_int_64=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 pgac_cv_type_long_int_64=no
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 typedef long int ac_int64;
16892 * These are globals to discourage the compiler from folding all the
16893 * arithmetic tests down to compile-time constants.
16895 ac_int64 a = 20000001;
16896 ac_int64 b = 40000005;
16898 int does_int64_work()
16902 if (sizeof(ac_int64) != 8)
16903 return 0; /* definitely not the right size */
16905 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16913 exit(! does_int64_work());
16916 rm -f conftest$ac_exeext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 pgac_cv_type_long_int_64=yes
16929 echo "$as_me: program exited with status $ac_status" >&5
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ( exit $ac_status )
16934 pgac_cv_type_long_int_64=no
16936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16939 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
16940 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
16942 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
16943 if test x"$pgac_cv_type_long_int_64" = xyes ; then
16945 cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_LONG_INT_64
16952 if test x"$HAVE_LONG_INT_64" = x"no" ; then
16953 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
16954 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
16955 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 if test "$cross_compiling" = yes; then
16959 # If cross-compiling, check the size reported by the compiler and
16960 # trust that the arithmetic works.
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16971 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 pgac_cv_type_long_long_int_64=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 pgac_cv_type_long_long_int_64=no
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009 cat >conftest.$ac_ext <<_ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 typedef long long int ac_int64;
17018 * These are globals to discourage the compiler from folding all the
17019 * arithmetic tests down to compile-time constants.
17021 ac_int64 a = 20000001;
17022 ac_int64 b = 40000005;
17024 int does_int64_work()
17028 if (sizeof(ac_int64) != 8)
17029 return 0; /* definitely not the right size */
17031 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17039 exit(! does_int64_work());
17042 rm -f conftest$ac_exeext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17044 (eval $ac_link) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 pgac_cv_type_long_long_int_64=yes
17055 echo "$as_me: program exited with status $ac_status" >&5
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 ( exit $ac_status )
17060 pgac_cv_type_long_long_int_64=no
17062 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17065 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17066 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17068 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17069 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17071 cat >>confdefs.h <<\_ACEOF
17072 #define HAVE_LONG_LONG_INT_64
17081 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 #define INT64CONST(x) x##LL
17090 long long int foo = INT64CONST(0x1234567890123456);
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17102 (eval $ac_compile) 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
17109 { ac_try='test -z "$ac_c_werror_flag"
17110 || test ! -s conftest.err'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17123 cat >>confdefs.h <<\_ACEOF
17124 #define HAVE_LL_CONSTANTS 1
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17136 # If we found "long int" is 64 bits, assume snprintf handles it. If
17137 # we found we need to use "long long int", better check. We cope with
17138 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17139 # work, fall back to our own snprintf emulation (which we know uses %lld).
17141 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17142 if test $pgac_need_repl_snprintf = no; then
17143 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17144 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17145 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 for pgac_format in '%lld' '%qd' '%I64d'; do
17149 if test "$cross_compiling" = yes; then
17150 pgac_cv_snprintf_long_long_int_format=cross; break
17152 cat >conftest.$ac_ext <<_ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17159 typedef long long int ac_int64;
17160 #define INT64_FORMAT "$pgac_format"
17162 ac_int64 a = 20000001;
17163 ac_int64 b = 40000005;
17165 int does_int64_snprintf_work()
17170 if (sizeof(ac_int64) != 8)
17171 return 0; /* doesn't look like the right size */
17174 snprintf(buf, 100, INT64_FORMAT, c);
17175 if (strcmp(buf, "800000140000005") != 0)
17176 return 0; /* either multiply or snprintf is busted */
17180 exit(! does_int64_snprintf_work());
17183 rm -f conftest$ac_exeext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17185 (eval $ac_link) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17196 echo "$as_me: program exited with status $ac_status" >&5
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17206 LONG_LONG_INT_FORMAT=''
17208 case $pgac_cv_snprintf_long_long_int_format in
17209 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17210 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17211 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17212 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17213 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17214 *) echo "$as_me:$LINENO: result: none" >&5
17215 echo "${ECHO_T}none" >&6;;
17217 if test "$LONG_LONG_INT_FORMAT" = ""; then
17218 # Force usage of our own snprintf, since system snprintf is broken
17219 pgac_need_repl_snprintf=yes
17220 LONG_LONG_INT_FORMAT='%lld'
17223 # Here if we previously decided we needed to use our own snprintf
17224 LONG_LONG_INT_FORMAT='%lld'
17226 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17227 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17228 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17230 # Here if we are not using 'long long int' at all
17231 INT64_FORMAT='"%ld"'
17232 UINT64_FORMAT='"%lu"'
17236 cat >>confdefs.h <<_ACEOF
17237 #define INT64_FORMAT $INT64_FORMAT
17242 cat >>confdefs.h <<_ACEOF
17243 #define UINT64_FORMAT $UINT64_FORMAT
17247 # Now we have checked all the reasons to replace snprintf
17248 if test $pgac_need_repl_snprintf = yes; then
17250 cat >>confdefs.h <<\_ACEOF
17251 #define USE_REPL_SNPRINTF 1
17255 "snprintf.$ac_objext" | \
17256 *" snprintf.$ac_objext" | \
17257 "snprintf.$ac_objext "* | \
17258 *" snprintf.$ac_objext "* ) ;;
17259 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17264 # Need a #define for the size of Datum (unsigned long)
17265 echo "$as_me:$LINENO: checking for unsigned long" >&5
17266 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17267 if test "${ac_cv_type_unsigned_long+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 $ac_includes_default
17280 if ((unsigned long *) 0)
17282 if (sizeof (unsigned long))
17288 rm -f conftest.$ac_objext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17290 (eval $ac_compile) 2>conftest.er1
17292 grep -v '^ *+' conftest.er1 >conftest.err
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
17297 { ac_try='test -z "$ac_c_werror_flag"
17298 || test ! -s conftest.err'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_cv_type_unsigned_long=yes
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 ac_cv_type_unsigned_long=no
17317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17319 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17320 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17322 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17323 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17324 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 if test "$ac_cv_type_unsigned_long" = yes; then
17328 # The cast to unsigned long works around a bug in the HP C Compiler
17329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17331 # This bug is HP SR number 8606223364.
17332 if test "$cross_compiling" = yes; then
17333 # Depending upon the size, compute the lo and hi bounds.
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17344 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17351 rm -f conftest.$ac_objext
17352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17353 (eval $ac_compile) 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag"
17361 || test ! -s conftest.err'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest.$ac_objext'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 $ac_includes_default
17385 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17392 rm -f conftest.$ac_objext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17394 (eval $ac_compile) 2>conftest.er1
17396 grep -v '^ *+' conftest.er1 >conftest.err
17398 cat conftest.err >&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } &&
17401 { ac_try='test -z "$ac_c_werror_flag"
17402 || test ! -s conftest.err'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest.$ac_objext'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 ac_hi=$ac_mid; break
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 ac_lo=`expr $ac_mid + 1`
17420 if test $ac_lo -le $ac_mid; then
17424 ac_mid=`expr 2 '*' $ac_mid + 1`
17426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 cat >conftest.$ac_ext <<_ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438 $ac_includes_default
17442 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17449 rm -f conftest.$ac_objext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>conftest.er1
17453 grep -v '^ *+' conftest.er1 >conftest.err
17455 cat conftest.err >&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -z "$ac_c_werror_flag"
17459 || test ! -s conftest.err'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest.$ac_objext'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; }; then
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17483 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17490 rm -f conftest.$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -z "$ac_c_werror_flag"
17500 || test ! -s conftest.err'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512 ac_lo=$ac_mid; break
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17517 ac_hi=`expr '(' $ac_mid ')' - 1`
17518 if test $ac_mid -le $ac_hi; then
17522 ac_mid=`expr 2 '*' $ac_mid`
17524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17535 # Binary search between lo and hi bounds.
17536 while test "x$ac_lo" != "x$ac_hi"; do
17537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17548 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17555 rm -f conftest.$ac_objext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557 (eval $ac_compile) 2>conftest.er1
17559 grep -v '^ *+' conftest.er1 >conftest.err
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -z "$ac_c_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest.$ac_objext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_lo=`expr '(' $ac_mid ')' + 1`
17584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17588 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17589 See \`config.log' for more details." >&5
17590 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17591 See \`config.log' for more details." >&2;}
17592 { (exit 1); exit 1; }; } ;;
17595 if test "$cross_compiling" = yes; then
17596 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17597 See \`config.log' for more details." >&5
17598 echo "$as_me: error: cannot run test program while cross compiling
17599 See \`config.log' for more details." >&2;}
17600 { (exit 1); exit 1; }; }
17602 cat >conftest.$ac_ext <<_ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 $ac_includes_default
17609 long longval () { return (long) (sizeof (unsigned long)); }
17610 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17612 #include <stdlib.h>
17617 FILE *f = fopen ("conftest.val", "w");
17620 if (((long) (sizeof (unsigned long))) < 0)
17622 long i = longval ();
17623 if (i != ((long) (sizeof (unsigned long))))
17625 fprintf (f, "%ld\n", i);
17629 unsigned long i = ulongval ();
17630 if (i != ((long) (sizeof (unsigned long))))
17632 fprintf (f, "%lu\n", i);
17634 exit (ferror (f) || fclose (f) != 0);
17640 rm -f conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642 (eval $ac_link) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_cv_sizeof_unsigned_long=`cat conftest.val`
17653 echo "$as_me: program exited with status $ac_status" >&5
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ( exit $ac_status )
17658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17659 See \`config.log' for more details." >&5
17660 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17661 See \`config.log' for more details." >&2;}
17662 { (exit 1); exit 1; }; }
17664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17669 ac_cv_sizeof_unsigned_long=0
17672 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17673 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17674 cat >>confdefs.h <<_ACEOF
17675 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17680 # And one for the size of size_t (enables tweaks for > 32bit address space)
17681 echo "$as_me:$LINENO: checking for size_t" >&5
17682 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17683 if test "${ac_cv_type_size_t+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 $ac_includes_default
17698 if (sizeof (size_t))
17704 rm -f conftest.$ac_objext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706 (eval $ac_compile) 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -z "$ac_c_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_type_size_t=yes
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_type_size_t=no
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17735 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17736 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17738 echo "$as_me:$LINENO: checking size of size_t" >&5
17739 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17740 if test "${ac_cv_sizeof_size_t+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 if test "$ac_cv_type_size_t" = yes; then
17744 # The cast to unsigned long works around a bug in the HP C Compiler
17745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17747 # This bug is HP SR number 8606223364.
17748 if test "$cross_compiling" = yes; then
17749 # Depending upon the size, compute the lo and hi bounds.
17750 cat >conftest.$ac_ext <<_ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 $ac_includes_default
17760 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17767 rm -f conftest.$ac_objext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1 >conftest.err
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17791 cat >conftest.$ac_ext <<_ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 $ac_includes_default
17801 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17808 rm -f conftest.$ac_objext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17810 (eval $ac_compile) 2>conftest.er1
17812 grep -v '^ *+' conftest.er1 >conftest.err
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -z "$ac_c_werror_flag"
17818 || test ! -s conftest.err'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest.$ac_objext'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; }; then
17830 ac_hi=$ac_mid; break
17832 echo "$as_me: failed program was:" >&5
17833 sed 's/^/| /' conftest.$ac_ext >&5
17835 ac_lo=`expr $ac_mid + 1`
17836 if test $ac_lo -le $ac_mid; then
17840 ac_mid=`expr 2 '*' $ac_mid + 1`
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17858 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17865 rm -f conftest.$ac_objext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17867 (eval $ac_compile) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest.$ac_objext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 $ac_includes_default
17899 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_c_werror_flag"
17916 || test ! -s conftest.err'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_lo=$ac_mid; break
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_hi=`expr '(' $ac_mid ')' - 1`
17934 if test $ac_mid -le $ac_hi; then
17938 ac_mid=`expr 2 '*' $ac_mid`
17940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17951 # Binary search between lo and hi bounds.
17952 while test "x$ac_lo" != "x$ac_hi"; do
17953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17954 cat >conftest.$ac_ext <<_ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h. */
17960 $ac_includes_default
17964 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17971 rm -f conftest.$ac_objext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17973 (eval $ac_compile) 2>conftest.er1
17975 grep -v '^ *+' conftest.er1 >conftest.err
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag"
17981 || test ! -s conftest.err'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; } &&
17987 { ac_try='test -s conftest.$ac_objext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 ac_lo=`expr '(' $ac_mid ')' + 1`
18000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18003 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18005 See \`config.log' for more details." >&5
18006 echo "$as_me: error: cannot compute sizeof (size_t), 77
18007 See \`config.log' for more details." >&2;}
18008 { (exit 1); exit 1; }; } ;;
18011 if test "$cross_compiling" = yes; then
18012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18013 See \`config.log' for more details." >&5
18014 echo "$as_me: error: cannot run test program while cross compiling
18015 See \`config.log' for more details." >&2;}
18016 { (exit 1); exit 1; }; }
18018 cat >conftest.$ac_ext <<_ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 $ac_includes_default
18025 long longval () { return (long) (sizeof (size_t)); }
18026 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18028 #include <stdlib.h>
18033 FILE *f = fopen ("conftest.val", "w");
18036 if (((long) (sizeof (size_t))) < 0)
18038 long i = longval ();
18039 if (i != ((long) (sizeof (size_t))))
18041 fprintf (f, "%ld\n", i);
18045 unsigned long i = ulongval ();
18046 if (i != ((long) (sizeof (size_t))))
18048 fprintf (f, "%lu\n", i);
18050 exit (ferror (f) || fclose (f) != 0);
18056 rm -f conftest$ac_exeext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 ac_cv_sizeof_size_t=`cat conftest.val`
18069 echo "$as_me: program exited with status $ac_status" >&5
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ( exit $ac_status )
18074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18075 See \`config.log' for more details." >&5
18076 echo "$as_me: error: cannot compute sizeof (size_t), 77
18077 See \`config.log' for more details." >&2;}
18078 { (exit 1); exit 1; }; }
18080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18085 ac_cv_sizeof_size_t=0
18088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18089 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18090 cat >>confdefs.h <<_ACEOF
18091 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18096 # Determine memory alignment requirements for the basic C data types.
18098 echo "$as_me:$LINENO: checking for short" >&5
18099 echo $ECHO_N "checking for short... $ECHO_C" >&6
18100 if test "${ac_cv_type_short+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 cat >conftest.$ac_ext <<_ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 $ac_includes_default
18115 if (sizeof (short))
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18125 grep -v '^ *+' conftest.er1 >conftest.err
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag"
18131 || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_type_short=yes
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_cv_type_short=no
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18153 echo "${ECHO_T}$ac_cv_type_short" >&6
18155 echo "$as_me:$LINENO: checking alignment of short" >&5
18156 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18157 if test "${pgac_cv_alignof_short+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 if test "$ac_cv_type_short" = yes; then
18161 if test "$cross_compiling" = yes; then
18162 # Depending upon the size, compute the lo and hi bounds.
18163 cat >conftest.$ac_ext <<_ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 $ac_includes_default
18170 struct { char filler; short field; } pgac_struct;
18174 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18181 rm -f conftest.$ac_objext
18182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18183 (eval $ac_compile) 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_c_werror_flag"
18191 || test ! -s conftest.err'
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18205 cat >conftest.$ac_ext <<_ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 $ac_includes_default
18212 struct { char filler; short field; } pgac_struct;
18216 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18227 grep -v '^ *+' conftest.er1 >conftest.err
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_hi=$ac_mid; break
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 ac_lo=`expr $ac_mid + 1`
18251 if test $ac_lo -le $ac_mid; then
18255 ac_mid=`expr 2 '*' $ac_mid + 1`
18257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 $ac_includes_default
18270 struct { char filler; short field; } pgac_struct;
18274 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18281 rm -f conftest.$ac_objext
18282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18283 (eval $ac_compile) 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag"
18291 || test ! -s conftest.err'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest.$ac_objext'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 $ac_includes_default
18312 struct { char filler; short field; } pgac_struct;
18316 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_lo=$ac_mid; break
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_hi=`expr '(' $ac_mid ')' - 1`
18351 if test $ac_mid -le $ac_hi; then
18355 ac_mid=`expr 2 '*' $ac_mid`
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 # Binary search between lo and hi bounds.
18369 while test "x$ac_lo" != "x$ac_hi"; do
18370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 $ac_includes_default
18378 struct { char filler; short field; } pgac_struct;
18382 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_lo=`expr '(' $ac_mid ')' + 1`
18418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18421 ?*) pgac_cv_alignof_short=$ac_lo;;
18422 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18423 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18424 { (exit 1); exit 1; }; } ;;
18427 if test "$cross_compiling" = yes; then
18428 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18429 See \`config.log' for more details." >&5
18430 echo "$as_me: error: cannot run test program while cross compiling
18431 See \`config.log' for more details." >&2;}
18432 { (exit 1); exit 1; }; }
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 $ac_includes_default
18441 struct { char filler; short field; } pgac_struct;
18442 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18443 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18445 #include <stdlib.h>
18450 FILE *f = fopen ("conftest.val", "w");
18453 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18455 long i = longval ();
18456 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18458 fprintf (f, "%ld\n", i);
18462 unsigned long i = ulongval ();
18463 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18465 fprintf (f, "%lu\n", i);
18467 exit (ferror (f) || fclose (f) != 0);
18473 rm -f conftest$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 pgac_cv_alignof_short=`cat conftest.val`
18486 echo "$as_me: program exited with status $ac_status" >&5
18487 echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18490 ( exit $ac_status )
18491 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18492 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18493 { (exit 1); exit 1; }; }
18495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18500 pgac_cv_alignof_short=0
18503 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18504 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18505 cat >>confdefs.h <<_ACEOF
18506 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18510 echo "$as_me:$LINENO: checking for int" >&5
18511 echo $ECHO_N "checking for int... $ECHO_C" >&6
18512 if test "${ac_cv_type_int+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 $ac_includes_default
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18565 echo "${ECHO_T}$ac_cv_type_int" >&6
18567 echo "$as_me:$LINENO: checking alignment of int" >&5
18568 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18569 if test "${pgac_cv_alignof_int+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 if test "$ac_cv_type_int" = yes; then
18573 if test "$cross_compiling" = yes; then
18574 # Depending upon the size, compute the lo and hi bounds.
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 $ac_includes_default
18582 struct { char filler; int field; } pgac_struct;
18586 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag"
18603 || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18617 cat >conftest.$ac_ext <<_ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 $ac_includes_default
18624 struct { char filler; int field; } pgac_struct;
18628 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 2>conftest.er1
18639 grep -v '^ *+' conftest.er1 >conftest.err
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest.$ac_objext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 ac_hi=$ac_mid; break
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 ac_lo=`expr $ac_mid + 1`
18663 if test $ac_lo -le $ac_mid; then
18667 ac_mid=`expr 2 '*' $ac_mid + 1`
18669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 $ac_includes_default
18682 struct { char filler; int field; } pgac_struct;
18686 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18693 rm -f conftest.$ac_objext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18695 (eval $ac_compile) 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag"
18703 || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest.$ac_objext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 $ac_includes_default
18724 struct { char filler; int field; } pgac_struct;
18728 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18735 rm -f conftest.$ac_objext
18736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18737 (eval $ac_compile) 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
18744 { ac_try='test -z "$ac_c_werror_flag"
18745 || test ! -s conftest.err'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; } &&
18751 { ac_try='test -s conftest.$ac_objext'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; }; then
18757 ac_lo=$ac_mid; break
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18762 ac_hi=`expr '(' $ac_mid ')' - 1`
18763 if test $ac_mid -le $ac_hi; then
18767 ac_mid=`expr 2 '*' $ac_mid`
18769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780 # Binary search between lo and hi bounds.
18781 while test "x$ac_lo" != "x$ac_hi"; do
18782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18783 cat >conftest.$ac_ext <<_ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789 $ac_includes_default
18790 struct { char filler; int field; } pgac_struct;
18794 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18801 rm -f conftest.$ac_objext
18802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18803 (eval $ac_compile) 2>conftest.er1
18805 grep -v '^ *+' conftest.er1 >conftest.err
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } &&
18810 { ac_try='test -z "$ac_c_werror_flag"
18811 || test ! -s conftest.err'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; } &&
18817 { ac_try='test -s conftest.$ac_objext'
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; }; then
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 ac_lo=`expr '(' $ac_mid ')' + 1`
18830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18833 ?*) pgac_cv_alignof_int=$ac_lo;;
18834 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18835 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18836 { (exit 1); exit 1; }; } ;;
18839 if test "$cross_compiling" = yes; then
18840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18841 See \`config.log' for more details." >&5
18842 echo "$as_me: error: cannot run test program while cross compiling
18843 See \`config.log' for more details." >&2;}
18844 { (exit 1); exit 1; }; }
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 $ac_includes_default
18853 struct { char filler; int field; } pgac_struct;
18854 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18855 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18857 #include <stdlib.h>
18862 FILE *f = fopen ("conftest.val", "w");
18865 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18867 long i = longval ();
18868 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18870 fprintf (f, "%ld\n", i);
18874 unsigned long i = ulongval ();
18875 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18877 fprintf (f, "%lu\n", i);
18879 exit (ferror (f) || fclose (f) != 0);
18885 rm -f conftest$ac_exeext
18886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18887 (eval $ac_link) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 pgac_cv_alignof_int=`cat conftest.val`
18898 echo "$as_me: program exited with status $ac_status" >&5
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ( exit $ac_status )
18903 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18904 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18905 { (exit 1); exit 1; }; }
18907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18912 pgac_cv_alignof_int=0
18915 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
18916 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
18917 cat >>confdefs.h <<_ACEOF
18918 #define ALIGNOF_INT $pgac_cv_alignof_int
18922 echo "$as_me:$LINENO: checking for long" >&5
18923 echo $ECHO_N "checking for long... $ECHO_C" >&6
18924 if test "${ac_cv_type_long+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 cat >conftest.$ac_ext <<_ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 $ac_includes_default
18945 rm -f conftest.$ac_objext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18947 (eval $ac_compile) 2>conftest.er1
18949 grep -v '^ *+' conftest.er1 >conftest.err
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest.$ac_objext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_type_long=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18977 echo "${ECHO_T}$ac_cv_type_long" >&6
18979 echo "$as_me:$LINENO: checking alignment of long" >&5
18980 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
18981 if test "${pgac_cv_alignof_long+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 if test "$ac_cv_type_long" = yes; then
18985 if test "$cross_compiling" = yes; then
18986 # Depending upon the size, compute the lo and hi bounds.
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 $ac_includes_default
18994 struct { char filler; long field; } pgac_struct;
18998 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19005 rm -f conftest.$ac_objext
19006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19007 (eval $ac_compile) 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag"
19015 || test ! -s conftest.err'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; } &&
19021 { ac_try='test -s conftest.$ac_objext'
19022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023 (eval $ac_try) 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; }; then
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 $ac_includes_default
19036 struct { char filler; long field; } pgac_struct;
19040 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_hi=$ac_mid; break
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_lo=`expr $ac_mid + 1`
19075 if test $ac_lo -le $ac_mid; then
19079 ac_mid=`expr 2 '*' $ac_mid + 1`
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 cat >conftest.$ac_ext <<_ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19093 $ac_includes_default
19094 struct { char filler; long field; } pgac_struct;
19098 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19105 rm -f conftest.$ac_objext
19106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19107 (eval $ac_compile) 2>conftest.er1
19109 grep -v '^ *+' conftest.er1 >conftest.err
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -z "$ac_c_werror_flag"
19115 || test ! -s conftest.err'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try='test -s conftest.$ac_objext'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 $ac_includes_default
19136 struct { char filler; long field; } pgac_struct;
19140 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19147 rm -f conftest.$ac_objext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149 (eval $ac_compile) 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag"
19157 || test ! -s conftest.err'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest.$ac_objext'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_lo=$ac_mid; break
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_hi=`expr '(' $ac_mid ')' - 1`
19175 if test $ac_mid -le $ac_hi; then
19179 ac_mid=`expr 2 '*' $ac_mid`
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19192 # Binary search between lo and hi bounds.
19193 while test "x$ac_lo" != "x$ac_hi"; do
19194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19195 cat >conftest.$ac_ext <<_ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 $ac_includes_default
19202 struct { char filler; long field; } pgac_struct;
19206 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215 (eval $ac_compile) 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19240 ac_lo=`expr '(' $ac_mid ')' + 1`
19242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19245 ?*) pgac_cv_alignof_long=$ac_lo;;
19246 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19247 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19248 { (exit 1); exit 1; }; } ;;
19251 if test "$cross_compiling" = yes; then
19252 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19253 See \`config.log' for more details." >&5
19254 echo "$as_me: error: cannot run test program while cross compiling
19255 See \`config.log' for more details." >&2;}
19256 { (exit 1); exit 1; }; }
19258 cat >conftest.$ac_ext <<_ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 $ac_includes_default
19265 struct { char filler; long field; } pgac_struct;
19266 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19267 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19269 #include <stdlib.h>
19274 FILE *f = fopen ("conftest.val", "w");
19277 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19279 long i = longval ();
19280 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19282 fprintf (f, "%ld\n", i);
19286 unsigned long i = ulongval ();
19287 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19289 fprintf (f, "%lu\n", i);
19291 exit (ferror (f) || fclose (f) != 0);
19297 rm -f conftest$ac_exeext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299 (eval $ac_link) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 pgac_cv_alignof_long=`cat conftest.val`
19310 echo "$as_me: program exited with status $ac_status" >&5
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ( exit $ac_status )
19315 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19316 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19317 { (exit 1); exit 1; }; }
19319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19324 pgac_cv_alignof_long=0
19327 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19328 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19329 cat >>confdefs.h <<_ACEOF
19330 #define ALIGNOF_LONG $pgac_cv_alignof_long
19334 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19335 echo "$as_me:$LINENO: checking for long long int" >&5
19336 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19337 if test "${ac_cv_type_long_long_int+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 $ac_includes_default
19350 if ((long long int *) 0)
19352 if (sizeof (long long int))
19358 rm -f conftest.$ac_objext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19360 (eval $ac_compile) 2>conftest.er1
19362 grep -v '^ *+' conftest.er1 >conftest.err
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_c_werror_flag"
19368 || test ! -s conftest.err'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest.$ac_objext'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_type_long_long_int=yes
19382 echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19385 ac_cv_type_long_long_int=no
19387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19389 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19390 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19392 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19393 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19394 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 if test "$ac_cv_type_long_long_int" = yes; then
19398 if test "$cross_compiling" = yes; then
19399 # Depending upon the size, compute the lo and hi bounds.
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 $ac_includes_default
19407 struct { char filler; long long int field; } pgac_struct;
19411 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 $ac_includes_default
19449 struct { char filler; long long int field; } pgac_struct;
19453 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19464 grep -v '^ *+' conftest.er1 >conftest.err
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_hi=$ac_mid; break
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_lo=`expr $ac_mid + 1`
19488 if test $ac_lo -le $ac_mid; then
19492 ac_mid=`expr 2 '*' $ac_mid + 1`
19494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 $ac_includes_default
19507 struct { char filler; long long int field; } pgac_struct;
19511 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19518 rm -f conftest.$ac_objext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag"
19528 || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 $ac_includes_default
19549 struct { char filler; long long int field; } pgac_struct;
19553 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19560 rm -f conftest.$ac_objext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562 (eval $ac_compile) 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag"
19570 || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_lo=$ac_mid; break
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_hi=`expr '(' $ac_mid ')' - 1`
19588 if test $ac_mid -le $ac_hi; then
19592 ac_mid=`expr 2 '*' $ac_mid`
19594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 # Binary search between lo and hi bounds.
19606 while test "x$ac_lo" != "x$ac_hi"; do
19607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19608 cat >conftest.$ac_ext <<_ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 $ac_includes_default
19615 struct { char filler; long long int field; } pgac_struct;
19619 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19626 rm -f conftest.$ac_objext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628 (eval $ac_compile) 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_c_werror_flag"
19636 || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest.$ac_objext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_lo=`expr '(' $ac_mid ')' + 1`
19655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19658 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
19659 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19660 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19661 { (exit 1); exit 1; }; } ;;
19664 if test "$cross_compiling" = yes; then
19665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19666 See \`config.log' for more details." >&5
19667 echo "$as_me: error: cannot run test program while cross compiling
19668 See \`config.log' for more details." >&2;}
19669 { (exit 1); exit 1; }; }
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 $ac_includes_default
19678 struct { char filler; long long int field; } pgac_struct;
19679 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19680 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19682 #include <stdlib.h>
19687 FILE *f = fopen ("conftest.val", "w");
19690 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19692 long i = longval ();
19693 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19695 fprintf (f, "%ld\n", i);
19699 unsigned long i = ulongval ();
19700 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19702 fprintf (f, "%lu\n", i);
19704 exit (ferror (f) || fclose (f) != 0);
19710 rm -f conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
19721 pgac_cv_alignof_long_long_int=`cat conftest.val`
19723 echo "$as_me: program exited with status $ac_status" >&5
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19727 ( exit $ac_status )
19728 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19729 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19730 { (exit 1); exit 1; }; }
19732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19737 pgac_cv_alignof_long_long_int=0
19740 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
19741 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
19742 cat >>confdefs.h <<_ACEOF
19743 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
19748 echo "$as_me:$LINENO: checking for double" >&5
19749 echo $ECHO_N "checking for double... $ECHO_C" >&6
19750 if test "${ac_cv_type_double+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19759 $ac_includes_default
19765 if (sizeof (double))
19771 rm -f conftest.$ac_objext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19773 (eval $ac_compile) 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_cv_type_double=yes
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_cv_type_double=no
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19803 echo "${ECHO_T}$ac_cv_type_double" >&6
19805 echo "$as_me:$LINENO: checking alignment of double" >&5
19806 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
19807 if test "${pgac_cv_alignof_double+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 if test "$ac_cv_type_double" = yes; then
19811 if test "$cross_compiling" = yes; then
19812 # Depending upon the size, compute the lo and hi bounds.
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 $ac_includes_default
19820 struct { char filler; double field; } pgac_struct;
19824 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19831 rm -f conftest.$ac_objext
19832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19833 (eval $ac_compile) 2>conftest.er1
19835 grep -v '^ *+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 $ac_includes_default
19862 struct { char filler; double field; } pgac_struct;
19866 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19873 rm -f conftest.$ac_objext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875 (eval $ac_compile) 2>conftest.er1
19877 grep -v '^ *+' conftest.er1 >conftest.err
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
19882 { ac_try='test -z "$ac_c_werror_flag"
19883 || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_hi=$ac_mid; break
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_lo=`expr $ac_mid + 1`
19901 if test $ac_lo -le $ac_mid; then
19905 ac_mid=`expr 2 '*' $ac_mid + 1`
19907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19920 struct { char filler; double field; } pgac_struct;
19924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19931 rm -f conftest.$ac_objext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19933 (eval $ac_compile) 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag"
19941 || test ! -s conftest.err'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest.$ac_objext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 $ac_includes_default
19962 struct { char filler; double field; } pgac_struct;
19966 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19973 rm -f conftest.$ac_objext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 ac_lo=$ac_mid; break
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_hi=`expr '(' $ac_mid ')' - 1`
20001 if test $ac_mid -le $ac_hi; then
20005 ac_mid=`expr 2 '*' $ac_mid`
20007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018 # Binary search between lo and hi bounds.
20019 while test "x$ac_lo" != "x$ac_hi"; do
20020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 $ac_includes_default
20028 struct { char filler; double field; } pgac_struct;
20032 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041 (eval $ac_compile) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_lo=`expr '(' $ac_mid ')' + 1`
20068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20071 ?*) pgac_cv_alignof_double=$ac_lo;;
20072 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20073 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20074 { (exit 1); exit 1; }; } ;;
20077 if test "$cross_compiling" = yes; then
20078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20079 See \`config.log' for more details." >&5
20080 echo "$as_me: error: cannot run test program while cross compiling
20081 See \`config.log' for more details." >&2;}
20082 { (exit 1); exit 1; }; }
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20091 struct { char filler; double field; } pgac_struct;
20092 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20093 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20095 #include <stdlib.h>
20100 FILE *f = fopen ("conftest.val", "w");
20103 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20105 long i = longval ();
20106 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20108 fprintf (f, "%ld\n", i);
20112 unsigned long i = ulongval ();
20113 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20115 fprintf (f, "%lu\n", i);
20117 exit (ferror (f) || fclose (f) != 0);
20123 rm -f conftest$ac_exeext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20125 (eval $ac_link) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 pgac_cv_alignof_double=`cat conftest.val`
20136 echo "$as_me: program exited with status $ac_status" >&5
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ( exit $ac_status )
20141 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20142 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20143 { (exit 1); exit 1; }; }
20145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20150 pgac_cv_alignof_double=0
20153 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20154 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20155 cat >>confdefs.h <<_ACEOF
20156 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20161 # Compute maximum alignment of any basic type.
20162 # We assume long's alignment is at least as strong as char, short, or int;
20163 # but we must check long long (if it exists) and double.
20165 MAX_ALIGNOF=$pgac_cv_alignof_long
20166 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20167 MAX_ALIGNOF=$pgac_cv_alignof_double
20169 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20170 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20173 cat >>confdefs.h <<_ACEOF
20174 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20179 # Some platforms predefine the types int8, int16, etc. Only check
20180 # a (hopefully) representative subset.
20181 echo "$as_me:$LINENO: checking for int8" >&5
20182 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20183 if test "${ac_cv_type_int8+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20193 #ifdef HAVE_SUPPORTDEFS_H
20194 #include <SupportDefs.h>
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>conftest.er1
20212 grep -v '^ *+' conftest.er1 >conftest.err
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -z "$ac_c_werror_flag"
20218 || test ! -s conftest.err'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest.$ac_objext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_type_int8=yes
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20239 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20240 echo "${ECHO_T}$ac_cv_type_int8" >&6
20241 if test $ac_cv_type_int8 = yes; then
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_INT8 1
20249 echo "$as_me:$LINENO: checking for uint8" >&5
20250 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20251 if test "${ac_cv_type_uint8+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 #ifdef HAVE_SUPPORTDEFS_H
20262 #include <SupportDefs.h>
20270 if (sizeof (uint8))
20276 rm -f conftest.$ac_objext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
20285 { ac_try='test -z "$ac_c_werror_flag"
20286 || test ! -s conftest.err'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; } &&
20292 { ac_try='test -s conftest.$ac_objext'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_type_uint8=yes
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ac_cv_type_uint8=no
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20308 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20309 if test $ac_cv_type_uint8 = yes; then
20311 cat >>confdefs.h <<_ACEOF
20312 #define HAVE_UINT8 1
20317 echo "$as_me:$LINENO: checking for int64" >&5
20318 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20319 if test "${ac_cv_type_int64+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 #ifdef HAVE_SUPPORTDEFS_H
20330 #include <SupportDefs.h>
20338 if (sizeof (int64))
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346 (eval $ac_compile) 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -z "$ac_c_werror_flag"
20354 || test ! -s conftest.err'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_type_int64=yes
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_type_int64=no
20373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20376 echo "${ECHO_T}$ac_cv_type_int64" >&6
20377 if test $ac_cv_type_int64 = yes; then
20379 cat >>confdefs.h <<_ACEOF
20380 #define HAVE_INT64 1
20385 echo "$as_me:$LINENO: checking for uint64" >&5
20386 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20387 if test "${ac_cv_type_uint64+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20397 #ifdef HAVE_SUPPORTDEFS_H
20398 #include <SupportDefs.h>
20406 if (sizeof (uint64))
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest.$ac_objext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_type_uint64=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_type_uint64=no
20441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20443 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20444 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20445 if test $ac_cv_type_uint64 = yes; then
20447 cat >>confdefs.h <<_ACEOF
20448 #define HAVE_UINT64 1
20455 # We also check for sig_atomic_t, which *should* be defined per ANSI
20456 # C, but is missing on some old platforms.
20457 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20458 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20459 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 cat >conftest.$ac_ext <<_ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 #include <signal.h>
20473 if ((sig_atomic_t *) 0)
20475 if (sizeof (sig_atomic_t))
20481 rm -f conftest.$ac_objext
20482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20483 (eval $ac_compile) 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
20490 { ac_try='test -z "$ac_c_werror_flag"
20491 || test ! -s conftest.err'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest.$ac_objext'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_cv_type_sig_atomic_t=yes
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 ac_cv_type_sig_atomic_t=no
20510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20512 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20513 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20514 if test $ac_cv_type_sig_atomic_t = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_SIG_ATOMIC_T 1
20525 if test x"$template" != x"win32"
20527 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20528 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20529 if test "${pgac_cv_func_posix_signals+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 cat >conftest.$ac_ext <<_ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 #include <signal.h>
20543 struct sigaction act, oact;
20544 sigemptyset(&act.sa_mask);
20545 act.sa_flags = SA_RESTART;
20546 sigaction(0, &act, &oact);
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest$ac_exeext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 pgac_cv_func_posix_signals=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 pgac_cv_func_posix_signals=no
20580 rm -f conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
20583 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20584 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20585 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20587 cat >>confdefs.h <<\_ACEOF
20588 #define HAVE_POSIX_SIGNALS
20592 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20594 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20595 { { echo "$as_me:$LINENO: error:
20596 *** Thread-safety requires POSIX signals, which are not supported by your
20597 *** operating system.
20599 echo "$as_me: error:
20600 *** Thread-safety requires POSIX signals, which are not supported by your
20601 *** operating system.
20603 { (exit 1); exit 1; }; }
20607 if test $ac_cv_func_fseeko = yes; then
20608 # Check whether --enable-largefile or --disable-largefile was given.
20609 if test "${enable_largefile+set}" = set; then
20610 enableval="$enable_largefile"
20613 if test "$enable_largefile" != no; then
20615 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20616 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20617 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_cv_sys_largefile_CC=no
20621 if test "$GCC" != yes; then
20624 # IRIX 6.2 and later do not support large files by default,
20625 # so use the C compiler's -n32 option if that helps.
20626 cat >conftest.$ac_ext <<_ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 #include <sys/types.h>
20633 /* Check that off_t can represent 2**63 - 1 correctly.
20634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20635 since some C++ compilers masquerading as C compilers
20636 incorrectly reject 9223372036854775807. */
20637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20639 && LARGE_OFF_T % 2147483647 == 1)
20649 rm -f conftest.$ac_objext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651 (eval $ac_compile) 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag"
20659 || test ! -s conftest.err'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest.$ac_objext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20677 rm -f conftest.err conftest.$ac_objext
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20683 grep -v '^ *+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_sys_largefile_CC=' -n32'; break
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20707 rm -f conftest.err conftest.$ac_objext
20711 rm -f conftest.$ac_ext
20714 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20715 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
20716 if test "$ac_cv_sys_largefile_CC" != no; then
20717 CC=$CC$ac_cv_sys_largefile_CC
20720 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20721 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 ac_cv_sys_file_offset_bits=no
20727 cat >conftest.$ac_ext <<_ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h. */
20733 #include <sys/types.h>
20734 /* Check that off_t can represent 2**63 - 1 correctly.
20735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20736 since some C++ compilers masquerading as C compilers
20737 incorrectly reject 9223372036854775807. */
20738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20740 && LARGE_OFF_T % 2147483647 == 1)
20750 rm -f conftest.$ac_objext
20751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20752 (eval $ac_compile) 2>conftest.er1
20754 grep -v '^ *+' conftest.er1 >conftest.err
20756 cat conftest.err >&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } &&
20759 { ac_try='test -z "$ac_c_werror_flag"
20760 || test ! -s conftest.err'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; } &&
20766 { ac_try='test -s conftest.$ac_objext'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 #define _FILE_OFFSET_BITS 64
20786 #include <sys/types.h>
20787 /* Check that off_t can represent 2**63 - 1 correctly.
20788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20789 since some C++ compilers masquerading as C compilers
20790 incorrectly reject 9223372036854775807. */
20791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20793 && LARGE_OFF_T % 2147483647 == 1)
20803 rm -f conftest.$ac_objext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805 (eval $ac_compile) 2>conftest.er1
20807 grep -v '^ *+' conftest.er1 >conftest.err
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_c_werror_flag"
20813 || test ! -s conftest.err'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest.$ac_objext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 ac_cv_sys_file_offset_bits=64; break
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20836 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20837 if test "$ac_cv_sys_file_offset_bits" != no; then
20839 cat >>confdefs.h <<_ACEOF
20840 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20845 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20846 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20847 if test "${ac_cv_sys_large_files+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 ac_cv_sys_large_files=no
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <sys/types.h>
20859 /* Check that off_t can represent 2**63 - 1 correctly.
20860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20861 since some C++ compilers masquerading as C compilers
20862 incorrectly reject 9223372036854775807. */
20863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20865 && LARGE_OFF_T % 2147483647 == 1)
20875 rm -f conftest.$ac_objext
20876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20877 (eval $ac_compile) 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_c_werror_flag"
20885 || test ! -s conftest.err'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest.$ac_objext'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 #define _LARGE_FILES 1
20911 #include <sys/types.h>
20912 /* Check that off_t can represent 2**63 - 1 correctly.
20913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20914 since some C++ compilers masquerading as C compilers
20915 incorrectly reject 9223372036854775807. */
20916 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20918 && LARGE_OFF_T % 2147483647 == 1)
20928 rm -f conftest.$ac_objext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag"
20938 || test ! -s conftest.err'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_cv_sys_large_files=1; break
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20960 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20961 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20962 if test "$ac_cv_sys_large_files" != no; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define _LARGE_FILES $ac_cv_sys_large_files
20974 # SunOS doesn't handle negative byte comparisons properly with +/- return
20975 echo "$as_me:$LINENO: checking for working memcmp" >&5
20976 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20977 if test "${ac_cv_func_memcmp_working+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 if test "$cross_compiling" = yes; then
20981 ac_cv_func_memcmp_working=no
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 $ac_includes_default
20994 /* Some versions of memcmp are not 8-bit clean. */
20995 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20996 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20999 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21000 or more and with at least one buffer not starting on a 4-byte boundary.
21001 William Lewis provided this test program. */
21006 for (i = 0; i < 4; i++)
21010 strcpy (a, "--------01111111");
21011 strcpy (b, "--------10000000");
21012 if (memcmp (a, b, 16) >= 0)
21022 rm -f conftest$ac_exeext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21024 (eval $ac_link) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_func_memcmp_working=yes
21035 echo "$as_me: program exited with status $ac_status" >&5
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 ( exit $ac_status )
21040 ac_cv_func_memcmp_working=no
21042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21045 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21046 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21047 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21048 "memcmp.$ac_objext" | \
21049 *" memcmp.$ac_objext" | \
21050 "memcmp.$ac_objext "* | \
21051 *" memcmp.$ac_objext "* ) ;;
21052 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21058 # Select semaphore implementation type.
21059 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21061 cat >>confdefs.h <<\_ACEOF
21062 #define USE_NAMED_POSIX_SEMAPHORES 1
21065 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21067 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21073 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21076 cat >>confdefs.h <<\_ACEOF
21077 #define USE_SYSV_SEMAPHORES 1
21080 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21085 # Select shared-memory implementation type.
21087 cat >>confdefs.h <<\_ACEOF
21088 #define USE_SYSV_SHARED_MEMORY 1
21091 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21094 # If not set in template file, set bytes to use libc memset()
21095 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21096 MEMSET_LOOP_LIMIT=1024
21099 cat >>confdefs.h <<_ACEOF
21100 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21105 if test "$enable_nls" = yes ; then
21107 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21108 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21109 if test "${ac_cv_search_gettext+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 ac_func_search_save_LIBS=$LIBS
21113 ac_cv_search_gettext=no
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 /* Override any gcc2 internal prototype to avoid an error. */
21125 /* We use char because int might match the return type of a gcc2
21126 builtin and then its argument prototype would still apply. */
21136 rm -f conftest.$ac_objext conftest$ac_exeext
21137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21138 (eval $ac_link) 2>conftest.er1
21140 grep -v '^ *+' conftest.er1 >conftest.err
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } &&
21145 { ac_try='test -z "$ac_c_werror_flag"
21146 || test ! -s conftest.err'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; } &&
21152 { ac_try='test -s conftest$ac_exeext'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; }; then
21158 ac_cv_search_gettext="none required"
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21164 rm -f conftest.err conftest.$ac_objext \
21165 conftest$ac_exeext conftest.$ac_ext
21166 if test "$ac_cv_search_gettext" = no; then
21167 for ac_lib in intl; do
21168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21176 /* Override any gcc2 internal prototype to avoid an error. */
21180 /* We use char because int might match the return type of a gcc2
21181 builtin and then its argument prototype would still apply. */
21191 rm -f conftest.$ac_objext conftest$ac_exeext
21192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21193 (eval $ac_link) 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } &&
21200 { ac_try='test -z "$ac_c_werror_flag"
21201 || test ! -s conftest.err'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; } &&
21207 { ac_try='test -s conftest$ac_exeext'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; }; then
21213 ac_cv_search_gettext="-l$ac_lib"
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21220 rm -f conftest.err conftest.$ac_objext \
21221 conftest$ac_exeext conftest.$ac_ext
21224 LIBS=$ac_func_search_save_LIBS
21226 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21227 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21228 if test "$ac_cv_search_gettext" != no; then
21229 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21232 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21233 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21234 { (exit 1); exit 1; }; }
21237 if test "${ac_cv_header_libintl_h+set}" = set; then
21238 echo "$as_me:$LINENO: checking for libintl.h" >&5
21239 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21240 if test "${ac_cv_header_libintl_h+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21244 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21246 # Is the header compilable?
21247 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21248 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 $ac_includes_default
21256 #include <libintl.h>
21258 rm -f conftest.$ac_objext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21260 (eval $ac_compile) 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -z "$ac_c_werror_flag"
21268 || test ! -s conftest.err'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest.$ac_objext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_header_compiler=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_compiler=no
21287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21289 echo "${ECHO_T}$ac_header_compiler" >&6
21291 # Is the header present?
21292 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21293 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 #include <libintl.h>
21302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } >/dev/null; then
21310 if test -s conftest.err; then
21311 ac_cpp_err=$ac_c_preproc_warn_flag
21312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21319 if test -z "$ac_cpp_err"; then
21320 ac_header_preproc=yes
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_header_preproc=no
21327 rm -f conftest.err conftest.$ac_ext
21328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329 echo "${ECHO_T}$ac_header_preproc" >&6
21331 # So? What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21335 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21337 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21338 ac_header_preproc=yes
21341 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21342 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21344 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21346 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21348 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21350 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21352 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21355 ## ---------------------------------------- ##
21356 ## Report this to pgsql-bugs@postgresql.org ##
21357 ## ---------------------------------------- ##
21360 sed "s/^/$as_me: WARNING: /" >&2
21363 echo "$as_me:$LINENO: checking for libintl.h" >&5
21364 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21365 if test "${ac_cv_header_libintl_h+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 ac_cv_header_libintl_h=$ac_header_preproc
21370 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21371 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21374 if test $ac_cv_header_libintl_h = yes; then
21377 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21378 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21379 { (exit 1); exit 1; }; }
21383 for ac_prog in msgfmt
21385 # Extract the first word of "$ac_prog", so it can be a program name with args.
21386 set dummy $ac_prog; ac_word=$2
21387 echo "$as_me:$LINENO: checking for $ac_word" >&5
21388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21389 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 if test -n "$MSGFMT"; then
21393 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21396 for as_dir in $PATH
21399 test -z "$as_dir" && as_dir=.
21400 for ac_exec_ext in '' $ac_executable_extensions; do
21401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21402 ac_cv_prog_MSGFMT="$ac_prog"
21403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21411 MSGFMT=$ac_cv_prog_MSGFMT
21412 if test -n "$MSGFMT"; then
21413 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21414 echo "${ECHO_T}$MSGFMT" >&6
21416 echo "$as_me:$LINENO: result: no" >&5
21417 echo "${ECHO_T}no" >&6
21420 test -n "$MSGFMT" && break
21423 if test -z "$MSGFMT"; then
21424 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21425 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21426 { (exit 1); exit 1; }; }
21428 for ac_prog in msgmerge
21430 # Extract the first word of "$ac_prog", so it can be a program name with args.
21431 set dummy $ac_prog; ac_word=$2
21432 echo "$as_me:$LINENO: checking for $ac_word" >&5
21433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21434 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 if test -n "$MSGMERGE"; then
21438 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21441 for as_dir in $PATH
21444 test -z "$as_dir" && as_dir=.
21445 for ac_exec_ext in '' $ac_executable_extensions; do
21446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21447 ac_cv_prog_MSGMERGE="$ac_prog"
21448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21456 MSGMERGE=$ac_cv_prog_MSGMERGE
21457 if test -n "$MSGMERGE"; then
21458 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21459 echo "${ECHO_T}$MSGMERGE" >&6
21461 echo "$as_me:$LINENO: result: no" >&5
21462 echo "${ECHO_T}no" >&6
21465 test -n "$MSGMERGE" && break
21468 for ac_prog in xgettext
21470 # Extract the first word of "$ac_prog", so it can be a program name with args.
21471 set dummy $ac_prog; ac_word=$2
21472 echo "$as_me:$LINENO: checking for $ac_word" >&5
21473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21474 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 if test -n "$XGETTEXT"; then
21478 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21481 for as_dir in $PATH
21484 test -z "$as_dir" && as_dir=.
21485 for ac_exec_ext in '' $ac_executable_extensions; do
21486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21487 ac_cv_prog_XGETTEXT="$ac_prog"
21488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21496 XGETTEXT=$ac_cv_prog_XGETTEXT
21497 if test -n "$XGETTEXT"; then
21498 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21499 echo "${ECHO_T}$XGETTEXT" >&6
21501 echo "$as_me:$LINENO: result: no" >&5
21502 echo "${ECHO_T}no" >&6
21505 test -n "$XGETTEXT" && break
21509 # Note: share/locale is always the default, independent of $datadir
21510 localedir='${prefix}/share/locale'
21511 if test x"$prefix" = x"NONE"; then
21512 exp_localedir="$ac_default_prefix/share/locale"
21514 exp_localedir="$prefix/share/locale"
21519 cat >>confdefs.h <<_ACEOF
21520 #define LOCALEDIR "$exp_localedir"
21526 # Check for Tcl configuration script tclConfig.sh
21527 if test "$with_tcl" = yes; then
21528 for ac_prog in tclsh tcl
21530 # Extract the first word of "$ac_prog", so it can be a program name with args.
21531 set dummy $ac_prog; ac_word=$2
21532 echo "$as_me:$LINENO: checking for $ac_word" >&5
21533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21534 if test "${ac_cv_path_TCLSH+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21543 for as_dir in $PATH
21546 test -z "$as_dir" && as_dir=.
21547 for ac_exec_ext in '' $ac_executable_extensions; do
21548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21549 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21559 TCLSH=$ac_cv_path_TCLSH
21561 if test -n "$TCLSH"; then
21562 echo "$as_me:$LINENO: result: $TCLSH" >&5
21563 echo "${ECHO_T}$TCLSH" >&6
21565 echo "$as_me:$LINENO: result: no" >&5
21566 echo "${ECHO_T}no" >&6
21569 test -n "$TCLSH" && break
21572 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21573 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21574 # Let user override test
21575 if test -z "$TCL_CONFIG_SH"; then
21576 pgac_test_dirs="$with_tclconfig"
21578 set X $pgac_test_dirs; shift
21579 if test $# -eq 0; then
21580 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21581 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21582 { (exit 1); exit 1; }; }
21583 set X `echo 'puts $auto_path' | $TCLSH`; shift
21587 if test -r "$pgac_dir/tclConfig.sh"; then
21588 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21594 if test -z "$TCL_CONFIG_SH"; then
21595 echo "$as_me:$LINENO: result: no" >&5
21596 echo "${ECHO_T}no" >&6
21597 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21598 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21599 { (exit 1); exit 1; }; }
21601 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21602 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21608 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21609 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21610 eval TCL_LIBS=\"$TCL_LIBS\"
21611 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21612 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21614 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21615 ac_save_CPPFLAGS=$CPPFLAGS
21616 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21617 if test "${ac_cv_header_tcl_h+set}" = set; then
21618 echo "$as_me:$LINENO: checking for tcl.h" >&5
21619 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21620 if test "${ac_cv_header_tcl_h+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21623 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21624 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21626 # Is the header compilable?
21627 echo "$as_me:$LINENO: checking tcl.h usability" >&5
21628 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21638 rm -f conftest.$ac_objext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21640 (eval $ac_compile) 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag"
21648 || test ! -s conftest.err'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try='test -s conftest.$ac_objext'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_header_compiler=yes
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 ac_header_compiler=no
21667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21669 echo "${ECHO_T}$ac_header_compiler" >&6
21671 # Is the header present?
21672 echo "$as_me:$LINENO: checking tcl.h presence" >&5
21673 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21685 grep -v '^ *+' conftest.er1 >conftest.err
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } >/dev/null; then
21690 if test -s conftest.err; then
21691 ac_cpp_err=$ac_c_preproc_warn_flag
21692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21699 if test -z "$ac_cpp_err"; then
21700 ac_header_preproc=yes
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_header_preproc=no
21707 rm -f conftest.err conftest.$ac_ext
21708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21709 echo "${ECHO_T}$ac_header_preproc" >&6
21711 # So? What about this header?
21712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21714 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21715 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
21717 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
21718 ac_header_preproc=yes
21721 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
21722 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
21723 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
21724 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
21725 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
21726 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
21727 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
21728 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21729 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
21730 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
21732 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
21735 ## ---------------------------------------- ##
21736 ## Report this to pgsql-bugs@postgresql.org ##
21737 ## ---------------------------------------- ##
21740 sed "s/^/$as_me: WARNING: /" >&2
21743 echo "$as_me:$LINENO: checking for tcl.h" >&5
21744 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21745 if test "${ac_cv_header_tcl_h+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 ac_cv_header_tcl_h=$ac_header_preproc
21750 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21751 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21754 if test $ac_cv_header_tcl_h = yes; then
21757 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
21758 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
21759 { (exit 1); exit 1; }; }
21763 CPPFLAGS=$ac_save_CPPFLAGS
21767 # Check for DocBook and tools
21769 for ac_prog in onsgmls nsgmls
21771 # Extract the first word of "$ac_prog", so it can be a program name with args.
21772 set dummy $ac_prog; ac_word=$2
21773 echo "$as_me:$LINENO: checking for $ac_word" >&5
21774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21775 if test "${ac_cv_prog_NSGMLS+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 if test -n "$NSGMLS"; then
21779 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
21781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21782 for as_dir in $PATH
21785 test -z "$as_dir" && as_dir=.
21786 for ac_exec_ext in '' $ac_executable_extensions; do
21787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21788 ac_cv_prog_NSGMLS="$ac_prog"
21789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21797 NSGMLS=$ac_cv_prog_NSGMLS
21798 if test -n "$NSGMLS"; then
21799 echo "$as_me:$LINENO: result: $NSGMLS" >&5
21800 echo "${ECHO_T}$NSGMLS" >&6
21802 echo "$as_me:$LINENO: result: no" >&5
21803 echo "${ECHO_T}no" >&6
21806 test -n "$NSGMLS" && break
21809 for ac_prog in openjade jade
21811 # Extract the first word of "$ac_prog", so it can be a program name with args.
21812 set dummy $ac_prog; ac_word=$2
21813 echo "$as_me:$LINENO: checking for $ac_word" >&5
21814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21815 if test "${ac_cv_prog_JADE+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 if test -n "$JADE"; then
21819 ac_cv_prog_JADE="$JADE" # Let the user override the test.
21821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21822 for as_dir in $PATH
21825 test -z "$as_dir" && as_dir=.
21826 for ac_exec_ext in '' $ac_executable_extensions; do
21827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21828 ac_cv_prog_JADE="$ac_prog"
21829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21837 JADE=$ac_cv_prog_JADE
21838 if test -n "$JADE"; then
21839 echo "$as_me:$LINENO: result: $JADE" >&5
21840 echo "${ECHO_T}$JADE" >&6
21842 echo "$as_me:$LINENO: result: no" >&5
21843 echo "${ECHO_T}no" >&6
21846 test -n "$JADE" && break
21850 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
21851 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
21852 if test "${pgac_cv_check_docbook+set}" = set; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21855 cat >conftest.sgml <<EOF
21856 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
21858 <title>test</title>
21860 <title>random</title>
21862 <title>testsect</title>
21869 pgac_cv_check_docbook=no
21871 if test -n "$NSGMLS"; then
21872 $NSGMLS -s conftest.sgml 1>&5 2>&1
21873 if test $? -eq 0; then
21874 pgac_cv_check_docbook=yes
21877 rm -f conftest.sgml
21879 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
21880 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
21882 have_docbook=$pgac_cv_check_docbook
21885 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
21886 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
21887 if test "${pgac_cv_path_stylesheets+set}" = set; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 if test -n "$DOCBOOKSTYLE"; then
21891 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
21893 for pgac_prefix in /usr /usr/local /opt; do
21894 for pgac_infix in share lib; do
21895 for pgac_postfix in \
21896 sgml/stylesheets/nwalsh-modular \
21897 sgml/stylesheets/docbook \
21898 sgml/docbook-dsssl \
21899 sgml/docbook/dsssl/modular \
21900 sgml/docbook/stylesheet/dsssl/modular \
21901 sgml/docbook/dsssl-stylesheets
21903 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
21904 if test -r "$pgac_candidate/html/docbook.dsl" \
21905 && test -r "$pgac_candidate/print/docbook.dsl"
21907 pgac_cv_path_stylesheets=$pgac_candidate
21916 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
21918 if test -n "$DOCBOOKSTYLE"; then
21919 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
21920 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
21922 echo "$as_me:$LINENO: result: no" >&5
21923 echo "${ECHO_T}no" >&6
21925 if test -n "$DOCBOOKSTYLE"; then
21926 for ac_prog in collateindex.pl
21928 # Extract the first word of "$ac_prog", so it can be a program name with args.
21929 set dummy $ac_prog; ac_word=$2
21930 echo "$as_me:$LINENO: checking for $ac_word" >&5
21931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21932 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 case $COLLATEINDEX in
21937 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21941 for as_dir in $DOCBOOKSTYLE/bin $PATH
21944 test -z "$as_dir" && as_dir=.
21945 for ac_exec_ext in '' $ac_executable_extensions; do
21946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21947 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21957 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21959 if test -n "$COLLATEINDEX"; then
21960 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21961 echo "${ECHO_T}$COLLATEINDEX" >&6
21963 echo "$as_me:$LINENO: result: no" >&5
21964 echo "${ECHO_T}no" >&6
21967 test -n "$COLLATEINDEX" && break
21971 for ac_prog in collateindex.pl
21973 # Extract the first word of "$ac_prog", so it can be a program name with args.
21974 set dummy $ac_prog; ac_word=$2
21975 echo "$as_me:$LINENO: checking for $ac_word" >&5
21976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21977 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 case $COLLATEINDEX in
21982 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21986 for as_dir in $PATH
21989 test -z "$as_dir" && as_dir=.
21990 for ac_exec_ext in '' $ac_executable_extensions; do
21991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21992 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22002 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22004 if test -n "$COLLATEINDEX"; then
22005 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22006 echo "${ECHO_T}$COLLATEINDEX" >&6
22008 echo "$as_me:$LINENO: result: no" >&5
22009 echo "${ECHO_T}no" >&6
22012 test -n "$COLLATEINDEX" && break
22016 for ac_prog in sgmlspl
22018 # Extract the first word of "$ac_prog", so it can be a program name with args.
22019 set dummy $ac_prog; ac_word=$2
22020 echo "$as_me:$LINENO: checking for $ac_word" >&5
22021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22022 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 if test -n "$SGMLSPL"; then
22026 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in $PATH
22032 test -z "$as_dir" && as_dir=.
22033 for ac_exec_ext in '' $ac_executable_extensions; do
22034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22035 ac_cv_prog_SGMLSPL="$ac_prog"
22036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 SGMLSPL=$ac_cv_prog_SGMLSPL
22045 if test -n "$SGMLSPL"; then
22046 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22047 echo "${ECHO_T}$SGMLSPL" >&6
22049 echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6
22053 test -n "$SGMLSPL" && break
22059 # We have to run the thread test near the end so we have all our symbols
22060 # defined. Cross compiling throws a warning.
22062 if test "$enable_thread_safety_force" = yes; then
22063 if test x"$template" != x"win32"
22065 { echo "$as_me:$LINENO: WARNING:
22066 *** Skipping thread test program. --enable-thread-safety-force was used.
22067 *** Run the program in src/test/thread on the your machine and add
22068 proper locking function calls to your applications to guarantee thread
22071 echo "$as_me: WARNING:
22072 *** Skipping thread test program. --enable-thread-safety-force was used.
22073 *** Run the program in src/test/thread on the your machine and add
22074 proper locking function calls to your applications to guarantee thread
22078 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22079 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22081 elif test "$enable_thread_safety" = yes; then
22082 if test x"$template" != x"win32"
22084 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22085 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22090 LIBS="$LIBS $PTHREAD_LIBS"
22091 if test "$cross_compiling" = yes; then
22092 echo "$as_me:$LINENO: result: maybe" >&5
22093 echo "${ECHO_T}maybe" >&6
22094 { echo "$as_me:$LINENO: WARNING:
22095 *** Skipping thread test program because of cross-compile build.
22096 *** Run the program in src/test/thread on the target machine.
22098 echo "$as_me: WARNING:
22099 *** Skipping thread test program because of cross-compile build.
22100 *** Run the program in src/test/thread on the target machine.
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include "$srcdir/src/test/thread/thread_test.c"
22111 rm -f conftest$ac_exeext
22112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22113 (eval $ac_link) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 echo "$as_me:$LINENO: result: yes" >&5
22123 echo "${ECHO_T}yes" >&6
22125 echo "$as_me: program exited with status $ac_status" >&5
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ( exit $ac_status )
22130 echo "$as_me:$LINENO: result: no" >&5
22131 echo "${ECHO_T}no" >&6
22132 { { echo "$as_me:$LINENO: error:
22133 *** Thread test program failed. Your platform is not thread-safe.
22134 *** Check the file 'config.log'for the exact reason.
22136 *** You can use the configure option --enable-thread-safety-force
22137 *** to force threads to be enabled. However, you must then run
22138 *** the program in src/test/thread and add locking function calls
22139 *** to your applications to guarantee thread safety.
22141 echo "$as_me: error:
22142 *** Thread test program failed. Your platform is not thread-safe.
22143 *** Check the file 'config.log'for the exact reason.
22145 *** You can use the configure option --enable-thread-safety-force
22146 *** to force threads to be enabled. However, you must then run
22147 *** the program in src/test/thread and add locking function calls
22148 *** to your applications to guarantee thread safety.
22150 { (exit 1); exit 1; }; }
22152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22157 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22158 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22162 # prepare build tree if outside source tree
22163 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22164 # Note 2: /bin/pwd might be better than shell's built-in at getting
22165 # a symlink-free name.
22166 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22170 if test "$no_create" != yes; then
22171 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22172 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22173 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22174 || { { echo "$as_me:$LINENO: error: failed" >&5
22175 echo "$as_me: error: failed" >&2;}
22176 { (exit 1); exit 1; }; }
22177 echo "$as_me:$LINENO: result: done" >&5
22178 echo "${ECHO_T}done" >&6
22184 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22187 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}"
22190 if test "$PORTNAME" = "win32"; then
22191 ac_config_commands="$ac_config_commands check_win32_symlinks"
22195 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22198 cat >confcache <<\_ACEOF
22199 # This file is a shell script that caches the results of configure
22200 # tests run on this system so they can be shared between configure
22201 # scripts and configure runs, see configure's option --config-cache.
22202 # It is not useful on other systems. If it contains results you don't
22203 # want to keep, you may remove or edit it.
22205 # config.status only pays attention to the cache file if you give it
22206 # the --recheck option to rerun configure.
22208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22210 # following values.
22214 # The following way of writing the cache mishandles newlines in values,
22215 # but we know of no workaround that is simple, portable, and efficient.
22216 # So, don't put newlines in cache variables' values.
22217 # Ultrix sh set writes to stderr and can't be redirected directly,
22218 # and sets the high bit in the cache file unless we assign to the vars.
22221 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22223 # `set' does not quote correctly, so add quotes (double-quote
22224 # substitution turns \\\\ into \\, and sed turns \\ into \).
22227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22230 # `set' quotes correctly as required by POSIX, so do not add quotes.
22232 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22241 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22243 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22244 if test -w $cache_file; then
22245 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22246 cat confcache >$cache_file
22248 echo "not updating unwritable cache $cache_file"
22253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22254 # Let make expand exec_prefix.
22255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22257 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22258 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22259 # trailing colons and then remove the whole line if VPATH becomes empty
22260 # (actually we leave an empty line to preserve line numbers).
22261 if test "x$srcdir" = x.; then
22262 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22263 s/:*\$(srcdir):*/:/;
22264 s/:*\${srcdir}:*/:/;
22266 s/^\([^=]*=[ ]*\):*/\1/;
22272 DEFS=-DHAVE_CONFIG_H
22276 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22277 # 1. Remove the extension, and $U if already installed.
22278 ac_i=`echo "$ac_i" |
22279 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22281 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22282 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22284 LIBOBJS=$ac_libobjs
22286 LTLIBOBJS=$ac_ltlibobjs
22290 : ${CONFIG_STATUS=./config.status}
22291 ac_clean_files_save=$ac_clean_files
22292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22295 cat >$CONFIG_STATUS <<_ACEOF
22297 # Generated by $as_me.
22298 # Run this file to recreate the current configuration.
22299 # Compiler output produced by configure, useful for debugging
22300 # configure, is in config.log if it exists.
22303 ac_cs_recheck=false
22305 SHELL=\${CONFIG_SHELL-$SHELL}
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309 ## --------------------- ##
22310 ## M4sh Initialization. ##
22311 ## --------------------- ##
22313 # Be Bourne compatible
22314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22318 # is contrary to our usage. Disable this feature.
22319 alias -g '${1+"$@"}'='"$@"'
22320 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22323 DUALCASE=1; export DUALCASE # for MKS sh
22325 # Support unset when possible.
22326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22333 # Work around bugs in pre-3.0 UWIN ksh.
22334 $as_unset ENV MAIL MAILPATH
22341 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22342 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22343 LC_TELEPHONE LC_TIME
22345 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22346 eval $as_var=C; export $as_var
22352 # Required to use basename.
22353 if expr a : '\(a\)' >/dev/null 2>&1; then
22359 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22360 as_basename=basename
22366 # Name of the executable.
22367 as_me=`$as_basename "$0" ||
22368 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22369 X"$0" : 'X\(//\)$' \| \
22370 X"$0" : 'X\(/\)$' \| \
22371 . : '\(.\)' 2>/dev/null ||
22373 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22374 /^X\/\(\/\/\)$/{ s//\1/; q; }
22375 /^X\/\(\/\).*/{ s//\1/; q; }
22379 # PATH needs CR, and LINENO needs CR and PATH.
22380 # Avoid depending upon Character Ranges.
22381 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22382 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22383 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22384 as_cr_digits='0123456789'
22385 as_cr_alnum=$as_cr_Letters$as_cr_digits
22387 # The user is always right.
22388 if test "${PATH_SEPARATOR+set}" != set; then
22389 echo "#! /bin/sh" >conf$$.sh
22390 echo "exit 0" >>conf$$.sh
22392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22401 as_lineno_1=$LINENO
22402 as_lineno_2=$LINENO
22403 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22404 test "x$as_lineno_1" != "x$as_lineno_2" &&
22405 test "x$as_lineno_3" = "x$as_lineno_2" || {
22406 # Find who we are. Look in the path if we contain no path at all
22409 *[\\/]* ) as_myself=$0 ;;
22410 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22411 for as_dir in $PATH
22414 test -z "$as_dir" && as_dir=.
22415 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22420 # We did not find ourselves, most probably we were run as `sh COMMAND'
22421 # in which case we are not to be found in the path.
22422 if test "x$as_myself" = x; then
22425 if test ! -f "$as_myself"; then
22426 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22427 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22428 { (exit 1); exit 1; }; }
22430 case $CONFIG_SHELL in
22432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22433 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22436 test -z "$as_dir" && as_dir=.
22437 for as_base in sh bash ksh sh5; do
22440 if ("$as_dir/$as_base" -c '
22441 as_lineno_1=$LINENO
22442 as_lineno_2=$LINENO
22443 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22444 test "x$as_lineno_1" != "x$as_lineno_2" &&
22445 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22446 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22447 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22448 CONFIG_SHELL=$as_dir/$as_base
22449 export CONFIG_SHELL
22450 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22459 # uniformly replaced by the line number. The first 'sed' inserts a
22460 # line-number line before each line; the second 'sed' does the real
22461 # work. The second script uses 'N' to pair each line-number line
22462 # with the numbered line, and appends trailing '-' during
22463 # substitution so that $LINENO is not a special case at line end.
22464 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22465 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22466 sed '=' <$as_myself |
22471 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22474 s,^['$as_cr_digits']*\n,,
22475 ' >$as_me.lineno &&
22476 chmod +x $as_me.lineno ||
22477 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22478 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22479 { (exit 1); exit 1; }; }
22481 # Don't try to exec as it changes $[0], causing all sort of problems
22482 # (the dirname of $[0] is not the place where we might find the
22483 # original and so on. Autoconf is especially sensible to this).
22485 # Exit status is that of the last command.
22490 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22491 *c*,-n*) ECHO_N= ECHO_C='
22493 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22494 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22497 if expr a : '\(a\)' >/dev/null 2>&1; then
22503 rm -f conf$$ conf$$.exe conf$$.file
22505 if ln -s conf$$.file conf$$ 2>/dev/null; then
22506 # We could just check for DJGPP; but this test a) works b) is more generic
22507 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22508 if test -f conf$$.exe; then
22509 # Don't use ln at all; we don't have any links
22514 elif ln conf$$.file conf$$ 2>/dev/null; then
22519 rm -f conf$$ conf$$.exe conf$$.file
22521 if mkdir -p . 2>/dev/null; then
22524 test -d ./-p && rmdir ./-p
22528 as_executable_p="test -f"
22530 # Sed expression to map a string onto a valid CPP name.
22531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22533 # Sed expression to map a string onto a valid variable name.
22534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22538 # We need space, tab and new line, in precisely that order.
22548 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22549 # report actual input values of CONFIG_FILES etc. instead of their
22550 # values after options handling. Logging --version etc. is OK.
22554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22555 ## Running $as_me. ##
22560 This file was extended by PostgreSQL $as_me 8.2devel, which was
22561 generated by GNU Autoconf 2.59. Invocation command line was
22563 CONFIG_FILES = $CONFIG_FILES
22564 CONFIG_HEADERS = $CONFIG_HEADERS
22565 CONFIG_LINKS = $CONFIG_LINKS
22566 CONFIG_COMMANDS = $CONFIG_COMMANDS
22570 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22574 # Files that config.status was made for.
22575 if test -n "$ac_config_files"; then
22576 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22579 if test -n "$ac_config_headers"; then
22580 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22583 if test -n "$ac_config_links"; then
22584 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22587 if test -n "$ac_config_commands"; then
22588 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22591 cat >>$CONFIG_STATUS <<\_ACEOF
22594 \`$as_me' instantiates files from templates according to the
22595 current configuration.
22597 Usage: $0 [OPTIONS] [FILE]...
22599 -h, --help print this help, then exit
22600 -V, --version print version number, then exit
22601 -q, --quiet do not print progress messages
22602 -d, --debug don't remove temporary files
22603 --recheck update $as_me by reconfiguring in the same conditions
22604 --file=FILE[:TEMPLATE]
22605 instantiate the configuration file FILE
22606 --header=FILE[:TEMPLATE]
22607 instantiate the configuration header FILE
22609 Configuration files:
22612 Configuration headers:
22615 Configuration links:
22618 Configuration commands:
22621 Report bugs to <bug-autoconf@gnu.org>."
22624 cat >>$CONFIG_STATUS <<_ACEOF
22626 PostgreSQL config.status 8.2devel
22627 configured by $0, generated by GNU Autoconf 2.59,
22628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22630 Copyright (C) 2003 Free Software Foundation, Inc.
22631 This config.status script is free software; the Free Software Foundation
22632 gives unlimited permission to copy, distribute and modify it."
22636 cat >>$CONFIG_STATUS <<\_ACEOF
22637 # If no file are specified by the user, then we need to provide default
22638 # value. By we need to know if files were specified by the user.
22644 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22645 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22653 *) # This is not an option, so the user has probably given explicit
22656 ac_need_defaults=false;;
22660 # Handling of the options.
22662 cat >>$CONFIG_STATUS <<\_ACEOF
22663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22665 --version | --vers* | -V )
22666 echo "$ac_cs_version"; exit 0 ;;
22668 # Conflict between --help and --header
22669 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22670 Try \`$0 --help' for more information." >&5
22671 echo "$as_me: error: ambiguous option: $1
22672 Try \`$0 --help' for more information." >&2;}
22673 { (exit 1); exit 1; }; };;
22674 --help | --hel | -h )
22675 echo "$ac_cs_usage"; exit 0 ;;
22676 --debug | --d* | -d )
22678 --file | --fil | --fi | --f )
22680 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22681 ac_need_defaults=false;;
22682 --header | --heade | --head | --hea )
22684 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22685 ac_need_defaults=false;;
22686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22690 # This is an error.
22691 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22692 Try \`$0 --help' for more information." >&5
22693 echo "$as_me: error: unrecognized option: $1
22694 Try \`$0 --help' for more information." >&2;}
22695 { (exit 1); exit 1; }; } ;;
22697 *) ac_config_targets="$ac_config_targets $1" ;;
22703 ac_configure_extra_args=
22705 if $ac_cs_silent; then
22707 ac_configure_extra_args="$ac_configure_extra_args --silent"
22711 cat >>$CONFIG_STATUS <<_ACEOF
22712 if \$ac_cs_recheck; then
22713 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22714 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 for ac_config_target in $ac_config_targets
22726 case "$ac_config_target" in
22727 # Handling of arguments.
22728 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
22729 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
22730 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
22731 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
22732 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
22733 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
22734 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
22735 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
22736 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
22737 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
22738 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
22739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22741 { (exit 1); exit 1; }; };;
22745 # If the user did not use the arguments to specify the items to instantiate,
22746 # then the envvar interface is used. Set only those that are not.
22747 # We use the long form for the default assignment because of an extremely
22748 # bizarre bug on SunOS 4.1.3.
22749 if $ac_need_defaults; then
22750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22752 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22756 # Have a temporary directory for convenience. Make it in the build tree
22757 # simply because there is no reason to put it here, and in addition,
22758 # creating and moving files from /tmp can sometimes cause problems.
22759 # Create a temporary directory, and hook for its removal unless debugging.
22762 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22763 trap '{ (exit 1); exit 1; }' 1 2 13 15
22766 # Create a (secure) tmp directory for tmp files.
22769 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22770 test -n "$tmp" && test -d "$tmp"
22773 tmp=./confstat$$-$RANDOM
22774 (umask 077 && mkdir $tmp)
22777 echo "$me: cannot create a temporary directory in ." >&2
22778 { (exit 1); exit 1; }
22783 cat >>$CONFIG_STATUS <<_ACEOF
22786 # CONFIG_FILES section.
22789 # No need to generate the scripts if there are no CONFIG_FILES.
22790 # This happens for instance when ./config.status config.h
22791 if test -n "\$CONFIG_FILES"; then
22792 # Protect against being on the right side of a sed subst in config.status.
22793 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22794 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22795 s,@SHELL@,$SHELL,;t t
22796 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22797 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22798 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22799 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22800 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22801 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22802 s,@exec_prefix@,$exec_prefix,;t t
22803 s,@prefix@,$prefix,;t t
22804 s,@program_transform_name@,$program_transform_name,;t t
22805 s,@bindir@,$bindir,;t t
22806 s,@sbindir@,$sbindir,;t t
22807 s,@libexecdir@,$libexecdir,;t t
22808 s,@datadir@,$datadir,;t t
22809 s,@sysconfdir@,$sysconfdir,;t t
22810 s,@sharedstatedir@,$sharedstatedir,;t t
22811 s,@localstatedir@,$localstatedir,;t t
22812 s,@libdir@,$libdir,;t t
22813 s,@includedir@,$includedir,;t t
22814 s,@oldincludedir@,$oldincludedir,;t t
22815 s,@infodir@,$infodir,;t t
22816 s,@mandir@,$mandir,;t t
22817 s,@build_alias@,$build_alias,;t t
22818 s,@host_alias@,$host_alias,;t t
22819 s,@target_alias@,$target_alias,;t t
22820 s,@DEFS@,$DEFS,;t t
22821 s,@ECHO_C@,$ECHO_C,;t t
22822 s,@ECHO_N@,$ECHO_N,;t t
22823 s,@ECHO_T@,$ECHO_T,;t t
22824 s,@LIBS@,$LIBS,;t t
22825 s,@configure_args@,$configure_args,;t t
22826 s,@build@,$build,;t t
22827 s,@build_cpu@,$build_cpu,;t t
22828 s,@build_vendor@,$build_vendor,;t t
22829 s,@build_os@,$build_os,;t t
22830 s,@host@,$host,;t t
22831 s,@host_cpu@,$host_cpu,;t t
22832 s,@host_vendor@,$host_vendor,;t t
22833 s,@host_os@,$host_os,;t t
22834 s,@PORTNAME@,$PORTNAME,;t t
22835 s,@docdir@,$docdir,;t t
22836 s,@enable_nls@,$enable_nls,;t t
22837 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
22838 s,@default_port@,$default_port,;t t
22839 s,@enable_shared@,$enable_shared,;t t
22840 s,@enable_rpath@,$enable_rpath,;t t
22841 s,@enable_debug@,$enable_debug,;t t
22843 s,@CFLAGS@,$CFLAGS,;t t
22844 s,@LDFLAGS@,$LDFLAGS,;t t
22845 s,@CPPFLAGS@,$CPPFLAGS,;t t
22846 s,@ac_ct_CC@,$ac_ct_CC,;t t
22847 s,@EXEEXT@,$EXEEXT,;t t
22848 s,@OBJEXT@,$OBJEXT,;t t
22852 s,@autodepend@,$autodepend,;t t
22853 s,@INCLUDES@,$INCLUDES,;t t
22854 s,@enable_thread_safety@,$enable_thread_safety,;t t
22855 s,@with_tcl@,$with_tcl,;t t
22856 s,@with_perl@,$with_perl,;t t
22857 s,@with_python@,$with_python,;t t
22858 s,@with_krb5@,$with_krb5,;t t
22859 s,@krb_srvtab@,$krb_srvtab,;t t
22860 s,@with_pam@,$with_pam,;t t
22861 s,@with_bonjour@,$with_bonjour,;t t
22862 s,@with_openssl@,$with_openssl,;t t
22863 s,@with_zlib@,$with_zlib,;t t
22864 s,@EGREP@,$EGREP,;t t
22865 s,@ELF_SYS@,$ELF_SYS,;t t
22866 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
22868 s,@FLEX@,$FLEX,;t t
22869 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
22870 s,@LN_S@,$LN_S,;t t
22872 s,@with_gnu_ld@,$with_gnu_ld,;t t
22873 s,@ld_R_works@,$ld_R_works,;t t
22874 s,@RANLIB@,$RANLIB,;t t
22875 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22876 s,@LORDER@,$LORDER,;t t
22878 s,@STRIP@,$STRIP,;t t
22879 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22880 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
22881 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
22882 s,@YACC@,$YACC,;t t
22883 s,@YFLAGS@,$YFLAGS,;t t
22884 s,@PERL@,$PERL,;t t
22885 s,@perl_archlibexp@,$perl_archlibexp,;t t
22886 s,@perl_privlibexp@,$perl_privlibexp,;t t
22887 s,@perl_useshrplib@,$perl_useshrplib,;t t
22888 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
22889 s,@PYTHON@,$PYTHON,;t t
22890 s,@python_version@,$python_version,;t t
22891 s,@python_configdir@,$python_configdir,;t t
22892 s,@python_includespec@,$python_includespec,;t t
22893 s,@python_libdir@,$python_libdir,;t t
22894 s,@python_libspec@,$python_libspec,;t t
22895 s,@python_additional_libs@,$python_additional_libs,;t t
22896 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
22897 s,@LIBOBJS@,$LIBOBJS,;t t
22898 s,@acx_pthread_config@,$acx_pthread_config,;t t
22899 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22900 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22901 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22902 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
22903 s,@MSGFMT@,$MSGFMT,;t t
22904 s,@MSGMERGE@,$MSGMERGE,;t t
22905 s,@XGETTEXT@,$XGETTEXT,;t t
22906 s,@localedir@,$localedir,;t t
22907 s,@TCLSH@,$TCLSH,;t t
22908 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
22909 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
22910 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22911 s,@TCL_LIBS@,$TCL_LIBS,;t t
22912 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22913 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
22914 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22915 s,@NSGMLS@,$NSGMLS,;t t
22916 s,@JADE@,$JADE,;t t
22917 s,@have_docbook@,$have_docbook,;t t
22918 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
22919 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
22920 s,@SGMLSPL@,$SGMLSPL,;t t
22921 s,@vpath_build@,$vpath_build,;t t
22922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22927 cat >>$CONFIG_STATUS <<\_ACEOF
22928 # Split the substitutions into bite-sized pieces for seds with
22929 # small command number limits, like on Digital OSF/1 and HP-UX.
22930 ac_max_sed_lines=48
22931 ac_sed_frag=1 # Number of current file.
22932 ac_beg=1 # First line for current file.
22933 ac_end=$ac_max_sed_lines # Line after last line for current file.
22936 while $ac_more_lines; do
22937 if test $ac_beg -gt 1; then
22938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22942 if test ! -s $tmp/subs.frag; then
22943 ac_more_lines=false
22945 # The purpose of the label and of the branching condition is to
22946 # speed up the sed processing (if there are no `@' at all, there
22947 # is no need to browse any of the substitutions).
22948 # These are the two extra sed commands mentioned above.
22950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22951 if test -z "$ac_sed_cmds"; then
22952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22956 ac_sed_frag=`expr $ac_sed_frag + 1`
22958 ac_end=`expr $ac_end + $ac_max_sed_lines`
22961 if test -z "$ac_sed_cmds"; then
22964 fi # test -n "$CONFIG_FILES"
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22971 - | *:- | *:-:* ) # input from stdin
22973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22977 * ) ac_file_in=$ac_file.in ;;
22980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22983 X"$ac_file" : 'X\(//\)[^/]' \| \
22984 X"$ac_file" : 'X\(//\)$' \| \
22985 X"$ac_file" : 'X\(/\)' \| \
22986 . : '\(.\)' 2>/dev/null ||
22988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22990 /^X\(\/\/\)$/{ s//\1/; q; }
22991 /^X\(\/\).*/{ s//\1/; q; }
22993 { if $as_mkdir_p; then
22998 while test ! -d "$as_dir"; do
22999 as_dirs="$as_dir $as_dirs"
23000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23002 X"$as_dir" : 'X\(//\)[^/]' \| \
23003 X"$as_dir" : 'X\(//\)$' \| \
23004 X"$as_dir" : 'X\(/\)' \| \
23005 . : '\(.\)' 2>/dev/null ||
23007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23009 /^X\(\/\/\)$/{ s//\1/; q; }
23010 /^X\(\/\).*/{ s//\1/; q; }
23013 test ! -n "$as_dirs" || mkdir $as_dirs
23014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23016 { (exit 1); exit 1; }; }; }
23020 if test "$ac_dir" != .; then
23021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23022 # A "../" for each directory in $ac_dir_suffix.
23023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23025 ac_dir_suffix= ac_top_builddir=
23029 .) # No --srcdir option. We are building in place.
23031 if test -z "$ac_top_builddir"; then
23034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23036 [\\/]* | ?:[\\/]* ) # Absolute path.
23037 ac_srcdir=$srcdir$ac_dir_suffix;
23038 ac_top_srcdir=$srcdir ;;
23039 *) # Relative path.
23040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23044 # Do not use `cd foo && pwd` to compute absolute paths, because
23045 # the directories may not exist.
23047 .) ac_abs_builddir="$ac_dir";;
23050 .) ac_abs_builddir=`pwd`;;
23051 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23052 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23055 case $ac_abs_builddir in
23056 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23058 case ${ac_top_builddir}. in
23059 .) ac_abs_top_builddir=$ac_abs_builddir;;
23060 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23061 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23064 case $ac_abs_builddir in
23065 .) ac_abs_srcdir=$ac_srcdir;;
23068 .) ac_abs_srcdir=$ac_abs_builddir;;
23069 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23070 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23073 case $ac_abs_builddir in
23074 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23076 case $ac_top_srcdir in
23077 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23078 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23079 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23085 if test x"$ac_file" != x-; then
23086 { echo "$as_me:$LINENO: creating $ac_file" >&5
23087 echo "$as_me: creating $ac_file" >&6;}
23090 # Let's still pretend it is `configure' which instantiates (i.e., don't
23091 # use $as_me), people would be surprised to read:
23092 # /* config.h. Generated by config.status. */
23093 if test x"$ac_file" = x-; then
23096 configure_input="$ac_file. "
23098 configure_input=$configure_input"Generated from `echo $ac_file_in |
23099 sed 's,.*/,,'` by configure."
23101 # First look for the input files in the build tree, otherwise in the
23103 ac_file_inputs=`IFS=:
23104 for f in $ac_file_in; do
23106 -) echo $tmp/stdin ;;
23108 # Absolute (can't be DOS-style, as IFS=:)
23109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23110 echo "$as_me: error: cannot find input file: $f" >&2;}
23111 { (exit 1); exit 1; }; }
23114 if test -f "$f"; then
23117 elif test -f "$srcdir/$f"; then
23122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23123 echo "$as_me: error: cannot find input file: $f" >&2;}
23124 { (exit 1); exit 1; }; }
23127 done` || { (exit 1); exit 1; }
23129 cat >>$CONFIG_STATUS <<_ACEOF
23133 cat >>$CONFIG_STATUS <<\_ACEOF
23135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23136 s,@configure_input@,$configure_input,;t t
23137 s,@srcdir@,$ac_srcdir,;t t
23138 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23139 s,@top_srcdir@,$ac_top_srcdir,;t t
23140 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23141 s,@builddir@,$ac_builddir,;t t
23142 s,@abs_builddir@,$ac_abs_builddir,;t t
23143 s,@top_builddir@,$ac_top_builddir,;t t
23144 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23145 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23147 if test x"$ac_file" != x-; then
23148 mv $tmp/out $ac_file
23156 cat >>$CONFIG_STATUS <<\_ACEOF
23159 # CONFIG_HEADER section.
23162 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23163 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23165 # ac_d sets the value in "#define NAME VALUE" lines.
23166 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23167 ac_dB='[ ].*$,\1#\2'
23170 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23171 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23172 ac_uB='$,\1#\2define\3'
23176 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23179 - | *:- | *:-:* ) # input from stdin
23181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23185 * ) ac_file_in=$ac_file.in ;;
23188 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23189 echo "$as_me: creating $ac_file" >&6;}
23191 # First look for the input files in the build tree, otherwise in the
23193 ac_file_inputs=`IFS=:
23194 for f in $ac_file_in; do
23196 -) echo $tmp/stdin ;;
23198 # Absolute (can't be DOS-style, as IFS=:)
23199 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23200 echo "$as_me: error: cannot find input file: $f" >&2;}
23201 { (exit 1); exit 1; }; }
23202 # Do quote $f, to prevent DOS paths from being IFS'd.
23205 if test -f "$f"; then
23208 elif test -f "$srcdir/$f"; then
23213 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23214 echo "$as_me: error: cannot find input file: $f" >&2;}
23215 { (exit 1); exit 1; }; }
23218 done` || { (exit 1); exit 1; }
23219 # Remove the trailing spaces.
23220 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23224 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23225 # `conftest.undefs', that substitutes the proper values into
23226 # config.h.in to produce config.h. The first handles `#define'
23227 # templates, and the second `#undef' templates.
23228 # And first: Protect against being on the right side of a sed subst in
23229 # config.status. Protect against being in an unquoted here document
23230 # in config.status.
23231 rm -f conftest.defines conftest.undefs
23232 # Using a here document instead of a string reduces the quoting nightmare.
23233 # Putting comments in sed scripts is not portable.
23235 # `end' is used to avoid that the second main sed command (meant for
23236 # 0-ary CPP macros) applies to n-ary macro definitions.
23237 # See the Autoconf documentation for `clear'.
23238 cat >confdef2sed.sed <<\_ACEOF
23243 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23245 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23248 # If some macros were called several times there might be several times
23249 # the same #defines, which is useless. Nevertheless, we may not want to
23250 # sort them, since we want the *last* AC-DEFINE to be honored.
23251 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23252 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23253 rm -f confdef2sed.sed
23255 # This sed command replaces #undef with comments. This is necessary, for
23256 # example, in the case of _POSIX_SOURCE, which is predefined and required
23257 # on some systems where configure will not decide to define it.
23258 cat >>conftest.undefs <<\_ACEOF
23259 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23262 # Break up conftest.defines because some shells have a limit on the size
23263 # of here documents, and old seds have small limits too (100 cmds).
23264 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23265 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23266 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23267 echo ' :' >>$CONFIG_STATUS
23268 rm -f conftest.tail
23269 while grep . conftest.defines >/dev/null
23271 # Write a limited-size here document to $tmp/defines.sed.
23272 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23273 # Speed up: don't consider the non `#define' lines.
23274 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23275 # Work around the forget-to-reset-the-flag bug.
23276 echo 't clr' >>$CONFIG_STATUS
23277 echo ': clr' >>$CONFIG_STATUS
23278 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23280 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23282 mv $tmp/out $tmp/in
23284 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23285 rm -f conftest.defines
23286 mv conftest.tail conftest.defines
23288 rm -f conftest.defines
23289 echo ' fi # grep' >>$CONFIG_STATUS
23290 echo >>$CONFIG_STATUS
23292 # Break up conftest.undefs because some shells have a limit on the size
23293 # of here documents, and old seds have small limits too (100 cmds).
23294 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23295 rm -f conftest.tail
23296 while grep . conftest.undefs >/dev/null
23298 # Write a limited-size here document to $tmp/undefs.sed.
23299 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23300 # Speed up: don't consider the non `#undef'
23301 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23302 # Work around the forget-to-reset-the-flag bug.
23303 echo 't clr' >>$CONFIG_STATUS
23304 echo ': clr' >>$CONFIG_STATUS
23305 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23307 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23309 mv $tmp/out $tmp/in
23311 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23312 rm -f conftest.undefs
23313 mv conftest.tail conftest.undefs
23315 rm -f conftest.undefs
23317 cat >>$CONFIG_STATUS <<\_ACEOF
23318 # Let's still pretend it is `configure' which instantiates (i.e., don't
23319 # use $as_me), people would be surprised to read:
23320 # /* config.h. Generated by config.status. */
23321 if test x"$ac_file" = x-; then
23322 echo "/* Generated by configure. */" >$tmp/config.h
23324 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23326 cat $tmp/in >>$tmp/config.h
23328 if test x"$ac_file" != x-; then
23329 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23331 echo "$as_me: $ac_file is unchanged" >&6;}
23333 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23335 X"$ac_file" : 'X\(//\)[^/]' \| \
23336 X"$ac_file" : 'X\(//\)$' \| \
23337 X"$ac_file" : 'X\(/\)' \| \
23338 . : '\(.\)' 2>/dev/null ||
23340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23342 /^X\(\/\/\)$/{ s//\1/; q; }
23343 /^X\(\/\).*/{ s//\1/; q; }
23345 { if $as_mkdir_p; then
23350 while test ! -d "$as_dir"; do
23351 as_dirs="$as_dir $as_dirs"
23352 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23354 X"$as_dir" : 'X\(//\)[^/]' \| \
23355 X"$as_dir" : 'X\(//\)$' \| \
23356 X"$as_dir" : 'X\(/\)' \| \
23357 . : '\(.\)' 2>/dev/null ||
23359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23361 /^X\(\/\/\)$/{ s//\1/; q; }
23362 /^X\(\/\).*/{ s//\1/; q; }
23365 test ! -n "$as_dirs" || mkdir $as_dirs
23366 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23367 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23368 { (exit 1); exit 1; }; }; }
23371 mv $tmp/config.h $ac_file
23375 rm -f $tmp/config.h
23377 # Run the commands associated with the file.
23379 src/include/pg_config.h )
23380 # Update timestamp for pg_config.h (see Makefile.global)
23381 echo >src/include/stamp-h
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23389 # CONFIG_LINKS section.
23392 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23393 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23394 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23396 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23397 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23399 if test ! -r $srcdir/$ac_source; then
23400 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23401 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23402 { (exit 1); exit 1; }; }
23406 # Make relative symlinks.
23407 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23408 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23409 X"$ac_dest" : 'X\(//\)[^/]' \| \
23410 X"$ac_dest" : 'X\(//\)$' \| \
23411 X"$ac_dest" : 'X\(/\)' \| \
23412 . : '\(.\)' 2>/dev/null ||
23414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23416 /^X\(\/\/\)$/{ s//\1/; q; }
23417 /^X\(\/\).*/{ s//\1/; q; }
23419 { if $as_mkdir_p; then
23420 mkdir -p "$ac_dest_dir"
23422 as_dir="$ac_dest_dir"
23424 while test ! -d "$as_dir"; do
23425 as_dirs="$as_dir $as_dirs"
23426 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23428 X"$as_dir" : 'X\(//\)[^/]' \| \
23429 X"$as_dir" : 'X\(//\)$' \| \
23430 X"$as_dir" : 'X\(/\)' \| \
23431 . : '\(.\)' 2>/dev/null ||
23433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23435 /^X\(\/\/\)$/{ s//\1/; q; }
23436 /^X\(\/\).*/{ s//\1/; q; }
23439 test ! -n "$as_dirs" || mkdir $as_dirs
23440 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23441 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23442 { (exit 1); exit 1; }; }; }
23446 if test "$ac_dest_dir" != .; then
23447 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23448 # A "../" for each directory in $ac_dir_suffix.
23449 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23451 ac_dir_suffix= ac_top_builddir=
23455 .) # No --srcdir option. We are building in place.
23457 if test -z "$ac_top_builddir"; then
23460 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23462 [\\/]* | ?:[\\/]* ) # Absolute path.
23463 ac_srcdir=$srcdir$ac_dir_suffix;
23464 ac_top_srcdir=$srcdir ;;
23465 *) # Relative path.
23466 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23467 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23470 # Do not use `cd foo && pwd` to compute absolute paths, because
23471 # the directories may not exist.
23473 .) ac_abs_builddir="$ac_dest_dir";;
23475 case "$ac_dest_dir" in
23476 .) ac_abs_builddir=`pwd`;;
23477 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23478 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23481 case $ac_abs_builddir in
23482 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23484 case ${ac_top_builddir}. in
23485 .) ac_abs_top_builddir=$ac_abs_builddir;;
23486 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23487 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23490 case $ac_abs_builddir in
23491 .) ac_abs_srcdir=$ac_srcdir;;
23494 .) ac_abs_srcdir=$ac_abs_builddir;;
23495 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23496 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23499 case $ac_abs_builddir in
23500 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23502 case $ac_top_srcdir in
23503 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23504 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23505 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23511 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23512 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23515 # Try a symlink, then a hard link, then a copy.
23516 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23517 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23518 cp -p $srcdir/$ac_source $ac_dest ||
23519 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23520 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23521 { (exit 1); exit 1; }; }
23524 cat >>$CONFIG_STATUS <<\_ACEOF
23527 # CONFIG_COMMANDS section.
23529 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23530 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23531 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23532 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23533 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23534 X"$ac_dest" : 'X\(//\)[^/]' \| \
23535 X"$ac_dest" : 'X\(//\)$' \| \
23536 X"$ac_dest" : 'X\(/\)' \| \
23537 . : '\(.\)' 2>/dev/null ||
23539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23541 /^X\(\/\/\)$/{ s//\1/; q; }
23542 /^X\(\/\).*/{ s//\1/; q; }
23544 { if $as_mkdir_p; then
23549 while test ! -d "$as_dir"; do
23550 as_dirs="$as_dir $as_dirs"
23551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553 X"$as_dir" : 'X\(//\)[^/]' \| \
23554 X"$as_dir" : 'X\(//\)$' \| \
23555 X"$as_dir" : 'X\(/\)' \| \
23556 . : '\(.\)' 2>/dev/null ||
23558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23560 /^X\(\/\/\)$/{ s//\1/; q; }
23561 /^X\(\/\).*/{ s//\1/; q; }
23564 test ! -n "$as_dirs" || mkdir $as_dirs
23565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23566 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23567 { (exit 1); exit 1; }; }; }
23571 if test "$ac_dir" != .; then
23572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23573 # A "../" for each directory in $ac_dir_suffix.
23574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23576 ac_dir_suffix= ac_top_builddir=
23580 .) # No --srcdir option. We are building in place.
23582 if test -z "$ac_top_builddir"; then
23585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23587 [\\/]* | ?:[\\/]* ) # Absolute path.
23588 ac_srcdir=$srcdir$ac_dir_suffix;
23589 ac_top_srcdir=$srcdir ;;
23590 *) # Relative path.
23591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23595 # Do not use `cd foo && pwd` to compute absolute paths, because
23596 # the directories may not exist.
23598 .) ac_abs_builddir="$ac_dir";;
23601 .) ac_abs_builddir=`pwd`;;
23602 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23603 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23606 case $ac_abs_builddir in
23607 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23609 case ${ac_top_builddir}. in
23610 .) ac_abs_top_builddir=$ac_abs_builddir;;
23611 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23612 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23615 case $ac_abs_builddir in
23616 .) ac_abs_srcdir=$ac_srcdir;;
23619 .) ac_abs_srcdir=$ac_abs_builddir;;
23620 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23621 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23624 case $ac_abs_builddir in
23625 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23627 case $ac_top_srcdir in
23628 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23629 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23630 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23635 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23636 echo "$as_me: executing $ac_dest commands" >&6;}
23638 check_win32_symlinks )
23639 # Links sometimes fail undetected on Mingw -
23640 # so here we detect it and warn the user
23641 for FILE in $CONFIG_LINKS
23643 # test -e works for symlinks in the MinGW console
23644 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
23645 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23654 { (exit 0); exit 0; }
23656 chmod +x $CONFIG_STATUS
23657 ac_clean_files=$ac_clean_files_save
23660 # configure is writing to config.log, and then calls config.status.
23661 # config.status does its own redirection, appending to config.log.
23662 # Unfortunately, on DOS this fails, as config.log is still kept open
23663 # by configure, so config.status won't be able to write to it; its
23664 # output is simply discarded. So we exec the FD to /dev/null,
23665 # effectively closing config.log, so it can be properly (re)opened and
23666 # appended to by config.status. When coming back to configure, we
23667 # need to make the FD available again.
23668 if test "$no_create" != yes; then
23670 ac_config_status_args=
23671 test "$silent" = yes &&
23672 ac_config_status_args="$ac_config_status_args --quiet"
23674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23677 # would make configure fail if this is the last instruction.
23678 $ac_cs_success || { (exit 1); exit 1; }