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
4745 # Supply a numeric version string for use by 3rd party add-ons
4746 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4747 $AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4749 cat >>confdefs.h <<_ACEOF
4750 #define PG_VERSION_NUM $PG_VERSION_NUM
4758 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4759 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4760 if test "${ac_cv_search_setproctitle+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 ac_func_search_save_LIBS=$LIBS
4764 ac_cv_search_setproctitle=no
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4772 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4778 char setproctitle ();
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_search_setproctitle="none required"
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f conftest.err conftest.$ac_objext \
4816 conftest$ac_exeext conftest.$ac_ext
4817 if test "$ac_cv_search_setproctitle" = no; then
4818 for ac_lib in util; do
4819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4827 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4833 char setproctitle ();
4842 rm -f conftest.$ac_objext conftest$ac_exeext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4844 (eval $ac_link) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } &&
4851 { ac_try='test -z "$ac_c_werror_flag"
4852 || test ! -s conftest.err'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; } &&
4858 { ac_try='test -s conftest$ac_exeext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 ac_cv_search_setproctitle="-l$ac_lib"
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4871 rm -f conftest.err conftest.$ac_objext \
4872 conftest$ac_exeext conftest.$ac_ext
4875 LIBS=$ac_func_search_save_LIBS
4877 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4878 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4879 if test "$ac_cv_search_setproctitle" != no; then
4880 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4884 echo "$as_me:$LINENO: checking for library containing pow" >&5
4885 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4886 if test "${ac_cv_search_pow+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 ac_func_search_save_LIBS=$LIBS
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4898 /* Override any gcc2 internal prototype to avoid an error. */
4902 /* We use char because int might match the return type of a gcc2
4903 builtin and then its argument prototype would still apply. */
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915 (eval $ac_link) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag"
4923 || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest$ac_exeext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_cv_search_pow="none required"
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f conftest.err conftest.$ac_objext \
4942 conftest$ac_exeext conftest.$ac_ext
4943 if test "$ac_cv_search_pow" = no; then
4945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_search_pow="-l$ac_lib"
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
5001 LIBS=$ac_func_search_save_LIBS
5003 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5004 echo "${ECHO_T}$ac_cv_search_pow" >&6
5005 if test "$ac_cv_search_pow" != no; then
5006 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5010 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5011 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5012 if test "${ac_cv_search_dlopen+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 ac_func_search_save_LIBS=$LIBS
5016 ac_cv_search_dlopen=no
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5024 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_cv_search_dlopen="none required"
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5067 rm -f conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
5069 if test "$ac_cv_search_dlopen" = no; then
5070 for ac_lib in dl; do
5071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5079 /* Override any gcc2 internal prototype to avoid an error. */
5083 /* We use char because int might match the return type of a gcc2
5084 builtin and then its argument prototype would still apply. */
5094 rm -f conftest.$ac_objext conftest$ac_exeext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5096 (eval $ac_link) 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_search_dlopen="-l$ac_lib"
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5123 rm -f conftest.err conftest.$ac_objext \
5124 conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_func_search_save_LIBS
5129 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5130 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5131 if test "$ac_cv_search_dlopen" != no; then
5132 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5136 echo "$as_me:$LINENO: checking for library containing socket" >&5
5137 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5138 if test "${ac_cv_search_socket+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 ac_func_search_save_LIBS=$LIBS
5142 ac_cv_search_socket=no
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5150 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167 (eval $ac_link) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_c_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try='test -s conftest$ac_exeext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_search_socket="none required"
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5193 rm -f conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5195 if test "$ac_cv_search_socket" = no; then
5196 for ac_lib in socket wsock32; do
5197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5205 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222 (eval $ac_link) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_search_socket="-l$ac_lib"
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5253 LIBS=$ac_func_search_save_LIBS
5255 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5256 echo "${ECHO_T}$ac_cv_search_socket" >&6
5257 if test "$ac_cv_search_socket" != no; then
5258 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5262 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5263 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5264 if test "${ac_cv_search_shl_load+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_func_search_save_LIBS=$LIBS
5268 ac_cv_search_shl_load=no
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5276 /* Override any gcc2 internal prototype to avoid an error. */
5280 /* We use char because int might match the return type of a gcc2
5281 builtin and then its argument prototype would still apply. */
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_search_shl_load="none required"
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5319 rm -f conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321 if test "$ac_cv_search_shl_load" = no; then
5322 for ac_lib in dld; do
5323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5324 cat >conftest.$ac_ext <<_ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5331 /* Override any gcc2 internal prototype to avoid an error. */
5335 /* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */
5346 rm -f conftest.$ac_objext conftest$ac_exeext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try='test -s conftest$ac_exeext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368 ac_cv_search_shl_load="-l$ac_lib"
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5375 rm -f conftest.err conftest.$ac_objext \
5376 conftest$ac_exeext conftest.$ac_ext
5379 LIBS=$ac_func_search_save_LIBS
5381 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5382 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5383 if test "$ac_cv_search_shl_load" != no; then
5384 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5388 # We only use libld in port/dynloader/aix.c
5391 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5392 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5393 if test "${ac_cv_search_ldopen+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_func_search_save_LIBS=$LIBS
5397 ac_cv_search_ldopen=no
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5405 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_search_ldopen="none required"
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5448 rm -f conftest.err conftest.$ac_objext \
5449 conftest$ac_exeext conftest.$ac_ext
5450 if test "$ac_cv_search_ldopen" = no; then
5451 for ac_lib in ld; do
5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5460 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5475 rm -f conftest.$ac_objext conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477 (eval $ac_link) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try='test -s conftest$ac_exeext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_search_ldopen="-l$ac_lib"
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5504 rm -f conftest.err conftest.$ac_objext \
5505 conftest$ac_exeext conftest.$ac_ext
5508 LIBS=$ac_func_search_save_LIBS
5510 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5511 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5512 if test "$ac_cv_search_ldopen" != no; then
5513 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5519 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5520 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5521 if test "${ac_cv_search_getopt_long+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 ac_func_search_save_LIBS=$LIBS
5525 ac_cv_search_getopt_long=no
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5533 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5539 char getopt_long ();
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550 (eval $ac_link) 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -z "$ac_c_werror_flag"
5558 || test ! -s conftest.err'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; } &&
5564 { ac_try='test -s conftest$ac_exeext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 ac_cv_search_getopt_long="none required"
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5576 rm -f conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 if test "$ac_cv_search_getopt_long" = no; then
5579 for ac_lib in getopt gnugetopt; do
5580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 /* Override any gcc2 internal prototype to avoid an error. */
5592 /* We use char because int might match the return type of a gcc2
5593 builtin and then its argument prototype would still apply. */
5594 char getopt_long ();
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -z "$ac_c_werror_flag"
5613 || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest$ac_exeext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_search_getopt_long="-l$ac_lib"
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5632 rm -f conftest.err conftest.$ac_objext \
5633 conftest$ac_exeext conftest.$ac_ext
5636 LIBS=$ac_func_search_save_LIBS
5638 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5639 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5640 if test "$ac_cv_search_getopt_long" != no; then
5641 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5645 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5646 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5647 if test "${ac_cv_search_crypt+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 ac_func_search_save_LIBS=$LIBS
5651 ac_cv_search_crypt=no
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5659 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5676 (eval $ac_link) 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try='test -z "$ac_c_werror_flag"
5684 || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try='test -s conftest$ac_exeext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_cv_search_crypt="none required"
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 if test "$ac_cv_search_crypt" = no; then
5705 for ac_lib in crypt; do
5706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5729 rm -f conftest.$ac_objext conftest$ac_exeext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731 (eval $ac_link) 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag"
5739 || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_search_crypt="-l$ac_lib"
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5758 rm -f conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_func_search_save_LIBS
5764 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5765 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5766 if test "$ac_cv_search_crypt" != no; then
5767 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5772 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5773 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5774 if test "${ac_cv_search_fdatasync+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 ac_func_search_save_LIBS=$LIBS
5778 ac_cv_search_fdatasync=no
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5786 /* Override any gcc2 internal prototype to avoid an error. */
5790 /* We use char because int might match the return type of a gcc2
5791 builtin and then its argument prototype would still apply. */
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try='test -z "$ac_c_werror_flag"
5811 || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_search_fdatasync="none required"
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5829 rm -f conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5831 if test "$ac_cv_search_fdatasync" = no; then
5832 for ac_lib in rt posix4; do
5833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5845 /* We use char because int might match the return type of a gcc2
5846 builtin and then its argument prototype would still apply. */
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858 (eval $ac_link) 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest$ac_exeext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_search_fdatasync="-l$ac_lib"
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5885 rm -f conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5889 LIBS=$ac_func_search_save_LIBS
5891 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5892 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5893 if test "$ac_cv_search_fdatasync" != no; then
5894 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5899 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5900 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5901 if test "${ac_cv_search_shmget+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_func_search_save_LIBS=$LIBS
5905 ac_cv_search_shmget=no
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5913 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest$ac_exeext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_search_shmget="none required"
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5956 rm -f conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 if test "$ac_cv_search_shmget" = no; then
5959 for ac_lib in cygipc; do
5960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5968 /* Override any gcc2 internal prototype to avoid an error. */
5972 /* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_search_shmget="-l$ac_lib"
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6012 rm -f conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_func_search_save_LIBS
6018 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6019 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6020 if test "$ac_cv_search_shmget" != no; then
6021 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6026 if test "$with_readline" = yes; then
6029 if test "${pgac_cv_check_readline+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 pgac_cv_check_readline=no
6033 pgac_save_LIBS=$LIBS
6034 if test x"$with_libedit_preferred" != x"yes"
6035 then READLINE_ORDER="-lreadline -ledit"
6036 else READLINE_ORDER="-ledit -lreadline"
6038 for pgac_rllib in $READLINE_ORDER ; do
6039 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6040 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6041 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6042 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6050 /* Override any gcc2 internal prototype to avoid an error. */
6054 /* We use char because int might match the return type of a gcc2
6055 builtin and then its argument prototype would still apply. */
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6088 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6089 # recognize dependent libraries; assume curses is needed if we didn't
6090 # find any dependency.
6092 netbsd* | openbsd* | irix*)
6093 if test x"$pgac_lib" = x"" ; then
6094 pgac_lib=" -lcurses"
6098 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6106 rm -f conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6109 if test "$pgac_cv_check_readline" != no ; then
6110 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6111 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6118 LIBS=$pgac_save_LIBS
6122 if test "$pgac_cv_check_readline" != no ; then
6123 LIBS="$pgac_cv_check_readline $LIBS"
6125 cat >>confdefs.h <<\_ACEOF
6126 #define HAVE_LIBREADLINE 1
6132 if test x"$pgac_cv_check_readline" = x"no"; then
6133 { { echo "$as_me:$LINENO: error: readline library not found
6134 If you have readline already installed, see config.log for details on the
6135 failure. It is possible the compiler isn't looking in the proper directory.
6136 Use --without-readline to disable readline support." >&5
6137 echo "$as_me: error: readline library not found
6138 If you have readline already installed, see config.log for details on the
6139 failure. It is possible the compiler isn't looking in the proper directory.
6140 Use --without-readline to disable readline support." >&2;}
6141 { (exit 1); exit 1; }; }
6145 if test "$with_zlib" = yes; then
6147 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6148 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6149 if test "${ac_cv_lib_z_inflate+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_check_lib_save_LIBS=$LIBS
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_lib_z_inflate=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_lib_z_inflate=no
6205 rm -f conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6210 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6211 if test $ac_cv_lib_z_inflate = yes; then
6212 cat >>confdefs.h <<_ACEOF
6219 { { echo "$as_me:$LINENO: error: zlib library not found
6220 If you have zlib already installed, see config.log for details on the
6221 failure. It is possible the compiler isn't looking in the proper directory.
6222 Use --without-zlib to disable zlib support." >&5
6223 echo "$as_me: error: zlib library not found
6224 If you have zlib already installed, see config.log for details on the
6225 failure. It is possible the compiler isn't looking in the proper directory.
6226 Use --without-zlib to disable zlib support." >&2;}
6227 { (exit 1); exit 1; }; }
6232 if test "$enable_spinlocks" = yes; then
6234 cat >>confdefs.h <<\_ACEOF
6235 #define HAVE_SPINLOCKS 1
6239 { echo "$as_me:$LINENO: WARNING:
6240 *** Not using spinlocks will cause poor performance." >&5
6241 echo "$as_me: WARNING:
6242 *** Not using spinlocks will cause poor performance." >&2;}
6245 if test "$with_krb5" = yes ; then
6246 if test "$PORTNAME" != "win32"; then
6247 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6248 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6249 if test "${ac_cv_search_com_err+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 ac_func_search_save_LIBS=$LIBS
6253 ac_cv_search_com_err=no
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1 >conftest.err
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_search_com_err="none required"
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6304 rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 if test "$ac_cv_search_com_err" = no; then
6307 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6316 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6331 rm -f conftest.$ac_objext conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>conftest.er1
6335 grep -v '^ *+' conftest.er1 >conftest.err
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_search_com_err="-l$ac_lib"
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6360 rm -f conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6364 LIBS=$ac_func_search_save_LIBS
6366 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6367 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6368 if test "$ac_cv_search_com_err" != no; then
6369 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6372 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6373 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6374 { (exit 1); exit 1; }; }
6377 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6378 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6379 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 ac_func_search_save_LIBS=$LIBS
6383 ac_cv_search_krb5_encrypt=no
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397 char krb5_encrypt ();
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_search_krb5_encrypt="none required"
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6434 rm -f conftest.err conftest.$ac_objext \
6435 conftest$ac_exeext conftest.$ac_ext
6436 if test "$ac_cv_search_krb5_encrypt" = no; then
6437 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6452 char krb5_encrypt ();
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_search_krb5_encrypt="-l$ac_lib"
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6494 LIBS=$ac_func_search_save_LIBS
6496 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6497 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6498 if test "$ac_cv_search_krb5_encrypt" != no; then
6499 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6502 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6503 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6504 { (exit 1); exit 1; }; }
6507 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6508 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6509 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 ac_func_search_save_LIBS=$LIBS
6513 ac_cv_search_krb5_sendauth=no
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6521 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char krb5_sendauth ();
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>conftest.er1
6540 grep -v '^ *+' conftest.er1 >conftest.err
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -z "$ac_c_werror_flag"
6546 || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_search_krb5_sendauth="none required"
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6564 rm -f conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext conftest.$ac_ext
6566 if test "$ac_cv_search_krb5_sendauth" = no; then
6567 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6576 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char krb5_sendauth ();
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_search_krb5_sendauth="-l$ac_lib"
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6620 rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6624 LIBS=$ac_func_search_save_LIBS
6626 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6627 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6628 if test "$ac_cv_search_krb5_sendauth" != no; then
6629 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6632 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6633 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6634 { (exit 1); exit 1; }; }
6638 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6639 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6640 if test "${ac_cv_search_com_err+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_func_search_save_LIBS=$LIBS
6644 ac_cv_search_com_err=no
6645 cat >conftest.$ac_ext <<_ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6652 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest$ac_exeext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_cv_search_com_err="none required"
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6695 rm -f conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6697 if test "$ac_cv_search_com_err" = no; then
6698 for ac_lib in 'comerr32 -lkrb5_32'; do
6699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6707 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6724 (eval $ac_link) 2>conftest.er1
6726 grep -v '^ *+' conftest.er1 >conftest.err
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try='test -z "$ac_c_werror_flag"
6732 || test ! -s conftest.err'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; } &&
6738 { ac_try='test -s conftest$ac_exeext'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6744 ac_cv_search_com_err="-l$ac_lib"
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6751 rm -f conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
6755 LIBS=$ac_func_search_save_LIBS
6757 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6758 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6759 if test "$ac_cv_search_com_err" != no; then
6760 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6763 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6764 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6765 { (exit 1); exit 1; }; }
6771 if test "$with_openssl" = yes ; then
6772 if test "$PORTNAME" != "win32"; then
6774 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6775 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6776 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 ac_check_lib_save_LIBS=$LIBS
6780 LIBS="-lcrypto $LIBS"
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6788 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6794 char CRYPTO_new_ex_data ();
6798 CRYPTO_new_ex_data ();
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805 (eval $ac_link) 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } &&
6812 { ac_try='test -z "$ac_c_werror_flag"
6813 || test ! -s conftest.err'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; } &&
6819 { ac_try='test -s conftest$ac_exeext'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6832 rm -f conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 LIBS=$ac_check_lib_save_LIBS
6836 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6837 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6838 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_LIBCRYPTO 1
6843 LIBS="-lcrypto $LIBS"
6846 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6847 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6848 { (exit 1); exit 1; }; }
6852 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6853 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6854 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_check_lib_save_LIBS=$LIBS
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6866 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char SSL_library_init ();
6876 SSL_library_init ();
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_lib_ssl_SSL_library_init=yes
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 ac_cv_lib_ssl_SSL_library_init=no
6910 rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
6914 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6915 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6916 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define HAVE_LIBSSL 1
6924 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6925 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6926 { (exit 1); exit 1; }; }
6931 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6932 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6933 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 ac_check_lib_save_LIBS=$LIBS
6937 LIBS="-leay32 $LIBS"
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6945 /* Override any gcc2 internal prototype to avoid an error. */
6949 /* We use char because int might match the return type of a gcc2
6950 builtin and then its argument prototype would still apply. */
6951 char CRYPTO_new_ex_data ();
6955 CRYPTO_new_ex_data ();
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6989 rm -f conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6993 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6994 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6995 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6996 cat >>confdefs.h <<_ACEOF
6997 #define HAVE_LIBEAY32 1
7000 LIBS="-leay32 $LIBS"
7003 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7004 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7005 { (exit 1); exit 1; }; }
7009 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7010 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7011 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_check_lib_save_LIBS=$LIBS
7015 LIBS="-lssleay32 $LIBS"
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7023 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7029 char SSL_library_init ();
7033 SSL_library_init ();
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_lib_ssleay32_SSL_library_init=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_cv_lib_ssleay32_SSL_library_init=no
7067 rm -f conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7069 LIBS=$ac_check_lib_save_LIBS
7071 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7072 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7073 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_LIBSSLEAY32 1
7078 LIBS="-lssleay32 $LIBS"
7081 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7082 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7083 { (exit 1); exit 1; }; }
7089 if test "$with_pam" = yes ; then
7091 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7092 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7093 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 ac_check_lib_save_LIBS=$LIBS
7098 cat >conftest.$ac_ext <<_ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7105 /* Override any gcc2 internal prototype to avoid an error. */
7109 /* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>conftest.er1
7124 grep -v '^ *+' conftest.er1 >conftest.err
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -z "$ac_c_werror_flag"
7130 || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_lib_pam_pam_start=yes
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7147 ac_cv_lib_pam_pam_start=no
7149 rm -f conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7153 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7154 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7155 if test $ac_cv_lib_pam_pam_start = yes; then
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_LIBPAM 1
7163 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7164 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7165 { (exit 1); exit 1; }; }
7175 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7177 if test "${ac_cv_header_stdc+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -z "$ac_c_werror_flag"
7209 || test ! -s conftest.err'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; } &&
7215 { ac_try='test -s conftest.$ac_objext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 ac_cv_header_stdc=yes
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 ac_cv_header_stdc=no
7228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7230 if test $ac_cv_header_stdc = yes; then
7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "memchr" >/dev/null 2>&1; then
7245 ac_cv_header_stdc=no
7251 if test $ac_cv_header_stdc = yes; then
7252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263 $EGREP "free" >/dev/null 2>&1; then
7266 ac_cv_header_stdc=no
7272 if test $ac_cv_header_stdc = yes; then
7273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7274 if test "$cross_compiling" = yes; then
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7284 #if ((' ' & 0x0FF) == 0x020)
7285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7288 # define ISLOWER(c) \
7289 (('a' <= (c) && (c) <= 'i') \
7290 || ('j' <= (c) && (c) <= 'r') \
7291 || ('s' <= (c) && (c) <= 'z'))
7292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7300 for (i = 0; i < 256; i++)
7301 if (XOR (islower (i), ISLOWER (i))
7302 || toupper (i) != TOUPPER (i))
7307 rm -f conftest$ac_exeext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7309 (eval $ac_link) 2>&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7320 echo "$as_me: program exited with status $ac_status" >&5
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_cv_header_stdc=no
7327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7331 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7332 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7333 if test $ac_cv_header_stdc = yes; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define STDC_HEADERS 1
7341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7352 inttypes.h stdint.h unistd.h
7354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7355 echo "$as_me:$LINENO: checking for $ac_header" >&5
7356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7368 #include <$ac_header>
7370 rm -f conftest.$ac_objext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7372 (eval $ac_compile) 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -z "$ac_c_werror_flag"
7380 || test ! -s conftest.err'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest.$ac_objext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 eval "$as_ac_Header=yes"
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 eval "$as_ac_Header=no"
7399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7404 cat >>confdefs.h <<_ACEOF
7405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7438 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
7440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7442 echo "$as_me:$LINENO: checking for $ac_header" >&5
7443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7450 # Is the header compilable?
7451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 $ac_includes_default
7460 #include <$ac_header>
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464 (eval $ac_compile) 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try='test -z "$ac_c_werror_flag"
7472 || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest.$ac_objext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_header_compiler=yes
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 ac_header_compiler=no
7491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7493 echo "${ECHO_T}$ac_header_compiler" >&6
7495 # Is the header present?
7496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7498 cat >conftest.$ac_ext <<_ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 #include <$ac_header>
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } >/dev/null; then
7514 if test -s conftest.err; then
7515 ac_cpp_err=$ac_c_preproc_warn_flag
7516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7523 if test -z "$ac_cpp_err"; then
7524 ac_header_preproc=yes
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_header_preproc=no
7531 rm -f conftest.err conftest.$ac_ext
7532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7533 echo "${ECHO_T}$ac_header_preproc" >&6
7535 # So? What about this header?
7536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7542 ac_header_preproc=yes
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7559 ## ---------------------------------------- ##
7560 ## Report this to pgsql-bugs@postgresql.org ##
7561 ## ---------------------------------------- ##
7564 sed "s/^/$as_me: WARNING: /" >&2
7567 echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 eval "$as_ac_Header=\$ac_header_preproc"
7574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7579 cat >>confdefs.h <<_ACEOF
7580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7589 # netinet/in.h is included first.
7591 for ac_header in netinet/in.h
7593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595 echo "$as_me:$LINENO: checking for $ac_header" >&5
7596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 # Is the header compilable?
7604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7613 #include <$ac_header>
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_header_compiler=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_header_compiler=no
7644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7646 echo "${ECHO_T}$ac_header_compiler" >&6
7648 # Is the header present?
7649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <$ac_header>
7659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7662 grep -v '^ *+' conftest.er1 >conftest.err
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } >/dev/null; then
7667 if test -s conftest.err; then
7668 ac_cpp_err=$ac_c_preproc_warn_flag
7669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7676 if test -z "$ac_cpp_err"; then
7677 ac_header_preproc=yes
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_header_preproc=no
7684 rm -f conftest.err conftest.$ac_ext
7685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7686 echo "${ECHO_T}$ac_header_preproc" >&6
7688 # So? What about this header?
7689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7695 ac_header_preproc=yes
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7712 ## ---------------------------------------- ##
7713 ## Report this to pgsql-bugs@postgresql.org ##
7714 ## ---------------------------------------- ##
7717 sed "s/^/$as_me: WARNING: /" >&2
7720 echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 eval "$as_ac_Header=\$ac_header_preproc"
7727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7741 for ac_header in netinet/tcp.h
7743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #ifdef HAVE_NETINET_IN_H
7757 #include <netinet/in.h>
7761 #include <$ac_header>
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 eval "$as_ac_Header=yes"
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 eval "$as_ac_Header=no"
7792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7797 cat >>confdefs.h <<_ACEOF
7798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7806 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7808 for ac_header in readline/readline.h
7810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7812 echo "$as_me:$LINENO: checking for $ac_header" >&5
7813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7820 # Is the header compilable?
7821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7830 #include <$ac_header>
7832 rm -f conftest.$ac_objext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834 (eval $ac_compile) 2>conftest.er1
7836 grep -v '^ *+' conftest.er1 >conftest.err
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -z "$ac_c_werror_flag"
7842 || test ! -s conftest.err'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; } &&
7848 { ac_try='test -s conftest.$ac_objext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_header_compiler=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 ac_header_compiler=no
7861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7863 echo "${ECHO_T}$ac_header_compiler" >&6
7865 # Is the header present?
7866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <$ac_header>
7876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7879 grep -v '^ *+' conftest.er1 >conftest.err
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } >/dev/null; then
7884 if test -s conftest.err; then
7885 ac_cpp_err=$ac_c_preproc_warn_flag
7886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7893 if test -z "$ac_cpp_err"; then
7894 ac_header_preproc=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_header_preproc=no
7901 rm -f conftest.err conftest.$ac_ext
7902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7903 echo "${ECHO_T}$ac_header_preproc" >&6
7905 # So? What about this header?
7906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7912 ac_header_preproc=yes
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7929 ## ---------------------------------------- ##
7930 ## Report this to pgsql-bugs@postgresql.org ##
7931 ## ---------------------------------------- ##
7934 sed "s/^/$as_me: WARNING: /" >&2
7937 echo "$as_me:$LINENO: checking for $ac_header" >&5
7938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 eval "$as_ac_Header=\$ac_header_preproc"
7944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7949 cat >>confdefs.h <<_ACEOF
7950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7955 for ac_header in readline.h
7957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959 echo "$as_me:$LINENO: checking for $ac_header" >&5
7960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7967 # Is the header compilable?
7968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 $ac_includes_default
7977 #include <$ac_header>
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest.$ac_objext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_header_compiler=yes
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_header_compiler=no
8008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010 echo "${ECHO_T}$ac_header_compiler" >&6
8012 # Is the header present?
8013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 #include <$ac_header>
8023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } >/dev/null; then
8031 if test -s conftest.err; then
8032 ac_cpp_err=$ac_c_preproc_warn_flag
8033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8040 if test -z "$ac_cpp_err"; then
8041 ac_header_preproc=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_header_preproc=no
8048 rm -f conftest.err conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8050 echo "${ECHO_T}$ac_header_preproc" >&6
8052 # So? What about this header?
8053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8059 ac_header_preproc=yes
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8076 ## ---------------------------------------- ##
8077 ## Report this to pgsql-bugs@postgresql.org ##
8078 ## ---------------------------------------- ##
8081 sed "s/^/$as_me: WARNING: /" >&2
8084 echo "$as_me:$LINENO: checking for $ac_header" >&5
8085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 eval "$as_ac_Header=\$ac_header_preproc"
8091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8096 cat >>confdefs.h <<_ACEOF
8097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8101 { { echo "$as_me:$LINENO: error: readline header not found
8102 If you have readline already installed, see config.log for details on the
8103 failure. It is possible the compiler isn't looking in the proper directory.
8104 Use --without-readline to disable readline support." >&5
8105 echo "$as_me: error: readline header not found
8106 If you have readline already installed, see config.log for details on the
8107 failure. It is possible the compiler isn't looking in the proper directory.
8108 Use --without-readline to disable readline support." >&2;}
8109 { (exit 1); exit 1; }; }
8119 for ac_header in readline/history.h
8121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8123 echo "$as_me:$LINENO: checking for $ac_header" >&5
8124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8131 # Is the header compilable?
8132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #include <$ac_header>
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145 (eval $ac_compile) 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag"
8153 || test ! -s conftest.err'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; } &&
8159 { ac_try='test -s conftest.$ac_objext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_header_compiler=yes
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 ac_header_compiler=no
8172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8174 echo "${ECHO_T}$ac_header_compiler" >&6
8176 # Is the header present?
8177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <$ac_header>
8187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } >/dev/null; then
8195 if test -s conftest.err; then
8196 ac_cpp_err=$ac_c_preproc_warn_flag
8197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8204 if test -z "$ac_cpp_err"; then
8205 ac_header_preproc=yes
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_header_preproc=no
8212 rm -f conftest.err conftest.$ac_ext
8213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8214 echo "${ECHO_T}$ac_header_preproc" >&6
8216 # So? What about this header?
8217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8223 ac_header_preproc=yes
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8240 ## ---------------------------------------- ##
8241 ## Report this to pgsql-bugs@postgresql.org ##
8242 ## ---------------------------------------- ##
8245 sed "s/^/$as_me: WARNING: /" >&2
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 eval "$as_ac_Header=\$ac_header_preproc"
8255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8260 cat >>confdefs.h <<_ACEOF
8261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8266 for ac_header in history.h
8268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270 echo "$as_me:$LINENO: checking for $ac_header" >&5
8271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8278 # Is the header compilable?
8279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 $ac_includes_default
8288 #include <$ac_header>
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292 (eval $ac_compile) 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag"
8300 || test ! -s conftest.err'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest.$ac_objext'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 ac_header_compiler=yes
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 ac_header_compiler=no
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8321 echo "${ECHO_T}$ac_header_compiler" >&6
8323 # Is the header present?
8324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 #include <$ac_header>
8334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } >/dev/null; then
8342 if test -s conftest.err; then
8343 ac_cpp_err=$ac_c_preproc_warn_flag
8344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8351 if test -z "$ac_cpp_err"; then
8352 ac_header_preproc=yes
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_header_preproc=no
8359 rm -f conftest.err conftest.$ac_ext
8360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361 echo "${ECHO_T}$ac_header_preproc" >&6
8363 # So? What about this header?
8364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8370 ac_header_preproc=yes
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8387 ## ---------------------------------------- ##
8388 ## Report this to pgsql-bugs@postgresql.org ##
8389 ## ---------------------------------------- ##
8392 sed "s/^/$as_me: WARNING: /" >&2
8395 echo "$as_me:$LINENO: checking for $ac_header" >&5
8396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 eval "$as_ac_Header=\$ac_header_preproc"
8402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8407 cat >>confdefs.h <<_ACEOF
8408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 { { echo "$as_me:$LINENO: error: history header not found
8413 If you have readline already installed, see config.log for details on the
8414 failure. It is possible the compiler isn't looking in the proper directory.
8415 Use --without-readline to disable readline support." >&5
8416 echo "$as_me: error: history header not found
8417 If you have readline already installed, see config.log for details on the
8418 failure. It is possible the compiler isn't looking in the proper directory.
8419 Use --without-readline to disable readline support." >&2;}
8420 { (exit 1); exit 1; }; }
8431 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8432 # Some installations of libedit usurp /usr/include/readline/, which seems
8433 # bad practice, since in combined installations readline will have its headers
8434 # there. We might have to resort to AC_EGREP checks to make sure we found
8435 # the proper header...
8437 for ac_header in editline/readline.h
8439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8441 echo "$as_me:$LINENO: checking for $ac_header" >&5
8442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8449 # Is the header compilable?
8450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #include <$ac_header>
8461 rm -f conftest.$ac_objext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463 (eval $ac_compile) 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_header_compiler=no
8490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8492 echo "${ECHO_T}$ac_header_compiler" >&6
8494 # Is the header present?
8495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 #include <$ac_header>
8505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8508 grep -v '^ *+' conftest.er1 >conftest.err
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } >/dev/null; then
8513 if test -s conftest.err; then
8514 ac_cpp_err=$ac_c_preproc_warn_flag
8515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8522 if test -z "$ac_cpp_err"; then
8523 ac_header_preproc=yes
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_header_preproc=no
8530 rm -f conftest.err conftest.$ac_ext
8531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8532 echo "${ECHO_T}$ac_header_preproc" >&6
8534 # So? What about this header?
8535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8541 ac_header_preproc=yes
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8558 ## ---------------------------------------- ##
8559 ## Report this to pgsql-bugs@postgresql.org ##
8560 ## ---------------------------------------- ##
8563 sed "s/^/$as_me: WARNING: /" >&2
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 eval "$as_ac_Header=\$ac_header_preproc"
8573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8578 cat >>confdefs.h <<_ACEOF
8579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584 for ac_header in readline.h
8586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8588 echo "$as_me:$LINENO: checking for $ac_header" >&5
8589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8596 # Is the header compilable?
8597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #include <$ac_header>
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_header_compiler=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_header_compiler=no
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8639 echo "${ECHO_T}$ac_header_compiler" >&6
8641 # Is the header present?
8642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 #include <$ac_header>
8652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } >/dev/null; then
8660 if test -s conftest.err; then
8661 ac_cpp_err=$ac_c_preproc_warn_flag
8662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8669 if test -z "$ac_cpp_err"; then
8670 ac_header_preproc=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ac_header_preproc=no
8677 rm -f conftest.err conftest.$ac_ext
8678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8679 echo "${ECHO_T}$ac_header_preproc" >&6
8681 # So? What about this header?
8682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8688 ac_header_preproc=yes
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8705 ## ---------------------------------------- ##
8706 ## Report this to pgsql-bugs@postgresql.org ##
8707 ## ---------------------------------------- ##
8710 sed "s/^/$as_me: WARNING: /" >&2
8713 echo "$as_me:$LINENO: checking for $ac_header" >&5
8714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 eval "$as_ac_Header=\$ac_header_preproc"
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8731 for ac_header in readline/readline.h
8733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8735 echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8743 # Is the header compilable?
8744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 $ac_includes_default
8753 #include <$ac_header>
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_header_compiler=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_header_compiler=no
8784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8786 echo "${ECHO_T}$ac_header_compiler" >&6
8788 # Is the header present?
8789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 #include <$ac_header>
8799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null; then
8807 if test -s conftest.err; then
8808 ac_cpp_err=$ac_c_preproc_warn_flag
8809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816 if test -z "$ac_cpp_err"; then
8817 ac_header_preproc=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_header_preproc=no
8824 rm -f conftest.err conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826 echo "${ECHO_T}$ac_header_preproc" >&6
8828 # So? What about this header?
8829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8835 ac_header_preproc=yes
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8852 ## ---------------------------------------- ##
8853 ## Report this to pgsql-bugs@postgresql.org ##
8854 ## ---------------------------------------- ##
8857 sed "s/^/$as_me: WARNING: /" >&2
8860 echo "$as_me:$LINENO: checking for $ac_header" >&5
8861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 eval "$as_ac_Header=\$ac_header_preproc"
8867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8872 cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8877 { { echo "$as_me:$LINENO: error: readline header not found
8878 If you have libedit already installed, see config.log for details on the
8879 failure. It is possible the compiler isn't looking in the proper directory.
8880 Use --without-readline to disable libedit support." >&5
8881 echo "$as_me: error: readline header not found
8882 If you have libedit already installed, see config.log for details on the
8883 failure. It is possible the compiler isn't looking in the proper directory.
8884 Use --without-readline to disable libedit support." >&2;}
8885 { (exit 1); exit 1; }; }
8899 for ac_header in editline/history.h
8901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8911 # Is the header compilable?
8912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #include <$ac_header>
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_header_compiler=yes
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_header_compiler=no
8952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8954 echo "${ECHO_T}$ac_header_compiler" >&6
8956 # Is the header present?
8957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 #include <$ac_header>
8967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev/null; then
8975 if test -s conftest.err; then
8976 ac_cpp_err=$ac_c_preproc_warn_flag
8977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8984 if test -z "$ac_cpp_err"; then
8985 ac_header_preproc=yes
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_header_preproc=no
8992 rm -f conftest.err conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8994 echo "${ECHO_T}$ac_header_preproc" >&6
8996 # So? What about this header?
8997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9003 ac_header_preproc=yes
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9020 ## ---------------------------------------- ##
9021 ## Report this to pgsql-bugs@postgresql.org ##
9022 ## ---------------------------------------- ##
9025 sed "s/^/$as_me: WARNING: /" >&2
9028 echo "$as_me:$LINENO: checking for $ac_header" >&5
9029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 eval "$as_ac_Header=\$ac_header_preproc"
9035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9040 cat >>confdefs.h <<_ACEOF
9041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9046 for ac_header in history.h
9048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050 echo "$as_me:$LINENO: checking for $ac_header" >&5
9051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9058 # Is the header compilable?
9059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 $ac_includes_default
9068 #include <$ac_header>
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1 >conftest.err
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_header_compiler=yes
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_header_compiler=no
9099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101 echo "${ECHO_T}$ac_header_compiler" >&6
9103 # Is the header present?
9104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #include <$ac_header>
9114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } >/dev/null; then
9122 if test -s conftest.err; then
9123 ac_cpp_err=$ac_c_preproc_warn_flag
9124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9131 if test -z "$ac_cpp_err"; then
9132 ac_header_preproc=yes
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_header_preproc=no
9139 rm -f conftest.err conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141 echo "${ECHO_T}$ac_header_preproc" >&6
9143 # So? What about this header?
9144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9150 ac_header_preproc=yes
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9167 ## ---------------------------------------- ##
9168 ## Report this to pgsql-bugs@postgresql.org ##
9169 ## ---------------------------------------- ##
9172 sed "s/^/$as_me: WARNING: /" >&2
9175 echo "$as_me:$LINENO: checking for $ac_header" >&5
9176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 eval "$as_ac_Header=\$ac_header_preproc"
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9187 cat >>confdefs.h <<_ACEOF
9188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9193 for ac_header in readline/history.h
9195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197 echo "$as_me:$LINENO: checking for $ac_header" >&5
9198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9205 # Is the header compilable?
9206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 $ac_includes_default
9215 #include <$ac_header>
9217 rm -f conftest.$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_header_compiler=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_header_compiler=no
9246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248 echo "${ECHO_T}$ac_header_compiler" >&6
9250 # Is the header present?
9251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 #include <$ac_header>
9261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } >/dev/null; then
9269 if test -s conftest.err; then
9270 ac_cpp_err=$ac_c_preproc_warn_flag
9271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9278 if test -z "$ac_cpp_err"; then
9279 ac_header_preproc=yes
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 ac_header_preproc=no
9286 rm -f conftest.err conftest.$ac_ext
9287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288 echo "${ECHO_T}$ac_header_preproc" >&6
9290 # So? What about this header?
9291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9297 ac_header_preproc=yes
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9314 ## ---------------------------------------- ##
9315 ## Report this to pgsql-bugs@postgresql.org ##
9316 ## ---------------------------------------- ##
9319 sed "s/^/$as_me: WARNING: /" >&2
9322 echo "$as_me:$LINENO: checking for $ac_header" >&5
9323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 eval "$as_ac_Header=\$ac_header_preproc"
9329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9334 cat >>confdefs.h <<_ACEOF
9335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 { { echo "$as_me:$LINENO: error: history header not found
9340 If you have libedit already installed, see config.log for details on the
9341 failure. It is possible the compiler isn't looking in the proper directory.
9342 Use --without-readline to disable libedit support." >&5
9343 echo "$as_me: error: history header not found
9344 If you have libedit already installed, see config.log for details on the
9345 failure. It is possible the compiler isn't looking in the proper directory.
9346 Use --without-readline to disable libedit support." >&2;}
9347 { (exit 1); exit 1; }; }
9362 if test "$with_zlib" = yes; then
9363 if test "${ac_cv_header_zlib_h+set}" = set; then
9364 echo "$as_me:$LINENO: checking for zlib.h" >&5
9365 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9366 if test "${ac_cv_header_zlib_h+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9370 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9372 # Is the header compilable?
9373 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9374 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_header_compiler=yes
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_header_compiler=no
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9415 echo "${ECHO_T}$ac_header_compiler" >&6
9417 # Is the header present?
9418 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9419 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null; then
9436 if test -s conftest.err; then
9437 ac_cpp_err=$ac_c_preproc_warn_flag
9438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9445 if test -z "$ac_cpp_err"; then
9446 ac_header_preproc=yes
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_header_preproc=no
9453 rm -f conftest.err conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9455 echo "${ECHO_T}$ac_header_preproc" >&6
9457 # So? What about this header?
9458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9460 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9461 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9463 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9464 ac_header_preproc=yes
9467 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9468 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9470 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9472 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9474 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9476 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9478 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9481 ## ---------------------------------------- ##
9482 ## Report this to pgsql-bugs@postgresql.org ##
9483 ## ---------------------------------------- ##
9486 sed "s/^/$as_me: WARNING: /" >&2
9489 echo "$as_me:$LINENO: checking for zlib.h" >&5
9490 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9491 if test "${ac_cv_header_zlib_h+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 ac_cv_header_zlib_h=$ac_header_preproc
9496 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9497 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9500 if test $ac_cv_header_zlib_h = yes; then
9503 { { echo "$as_me:$LINENO: error: zlib header not found
9504 If you have zlib already installed, see config.log for details on the
9505 failure. It is possible the compiler isn't looking in the proper directory.
9506 Use --without-zlib to disable zlib support." >&5
9507 echo "$as_me: error: zlib header not found
9508 If you have zlib already installed, see config.log for details on the
9509 failure. It is possible the compiler isn't looking in the proper directory.
9510 Use --without-zlib to disable zlib support." >&2;}
9511 { (exit 1); exit 1; }; }
9517 if test "$with_krb5" = yes ; then
9518 if test "${ac_cv_header_krb5_h+set}" = set; then
9519 echo "$as_me:$LINENO: checking for krb5.h" >&5
9520 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9521 if test "${ac_cv_header_krb5_h+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9525 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9527 # Is the header compilable?
9528 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9529 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 $ac_includes_default
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag"
9549 || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest.$ac_objext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_header_compiler=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_header_compiler=no
9568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9570 echo "${ECHO_T}$ac_header_compiler" >&6
9572 # Is the header present?
9573 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9574 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null; then
9591 if test -s conftest.err; then
9592 ac_cpp_err=$ac_c_preproc_warn_flag
9593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9600 if test -z "$ac_cpp_err"; then
9601 ac_header_preproc=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_header_preproc=no
9608 rm -f conftest.err conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9610 echo "${ECHO_T}$ac_header_preproc" >&6
9612 # So? What about this header?
9613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9615 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9616 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9618 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9619 ac_header_preproc=yes
9622 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9623 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9625 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9627 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9629 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9631 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9633 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9636 ## ---------------------------------------- ##
9637 ## Report this to pgsql-bugs@postgresql.org ##
9638 ## ---------------------------------------- ##
9641 sed "s/^/$as_me: WARNING: /" >&2
9644 echo "$as_me:$LINENO: checking for krb5.h" >&5
9645 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9646 if test "${ac_cv_header_krb5_h+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_cv_header_krb5_h=$ac_header_preproc
9651 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9652 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9655 if test $ac_cv_header_krb5_h = yes; then
9658 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9659 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9660 { (exit 1); exit 1; }; }
9666 if test "$with_openssl" = yes ; then
9667 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9668 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9669 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9670 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9674 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9676 # Is the header compilable?
9677 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9678 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 $ac_includes_default
9686 #include <openssl/ssl.h>
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690 (eval $ac_compile) 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag"
9698 || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest.$ac_objext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_header_compiler=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 ac_header_compiler=no
9717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9719 echo "${ECHO_T}$ac_header_compiler" >&6
9721 # Is the header present?
9722 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9723 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <openssl/ssl.h>
9732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null; then
9740 if test -s conftest.err; then
9741 ac_cpp_err=$ac_c_preproc_warn_flag
9742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9749 if test -z "$ac_cpp_err"; then
9750 ac_header_preproc=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_header_preproc=no
9757 rm -f conftest.err conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9759 echo "${ECHO_T}$ac_header_preproc" >&6
9761 # So? What about this header?
9762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9764 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9765 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9767 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9768 ac_header_preproc=yes
9771 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9772 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9774 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9776 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9778 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9780 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9782 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9785 ## ---------------------------------------- ##
9786 ## Report this to pgsql-bugs@postgresql.org ##
9787 ## ---------------------------------------- ##
9790 sed "s/^/$as_me: WARNING: /" >&2
9793 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9794 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9795 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9800 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9801 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9804 if test $ac_cv_header_openssl_ssl_h = yes; then
9807 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9808 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9809 { (exit 1); exit 1; }; }
9813 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9814 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9815 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9816 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9820 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9822 # Is the header compilable?
9823 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9824 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 $ac_includes_default
9832 #include <openssl/err.h>
9834 rm -f conftest.$ac_objext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836 (eval $ac_compile) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest.$ac_objext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_header_compiler=yes
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_header_compiler=no
9863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9865 echo "${ECHO_T}$ac_header_compiler" >&6
9867 # Is the header present?
9868 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9869 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 #include <openssl/err.h>
9878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9881 grep -v '^ *+' conftest.er1 >conftest.err
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } >/dev/null; then
9886 if test -s conftest.err; then
9887 ac_cpp_err=$ac_c_preproc_warn_flag
9888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9895 if test -z "$ac_cpp_err"; then
9896 ac_header_preproc=yes
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_header_preproc=no
9903 rm -f conftest.err conftest.$ac_ext
9904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9905 echo "${ECHO_T}$ac_header_preproc" >&6
9907 # So? What about this header?
9908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9910 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9911 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
9913 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
9914 ac_header_preproc=yes
9917 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9918 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9920 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
9922 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
9924 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9926 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
9928 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
9931 ## ---------------------------------------- ##
9932 ## Report this to pgsql-bugs@postgresql.org ##
9933 ## ---------------------------------------- ##
9936 sed "s/^/$as_me: WARNING: /" >&2
9939 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9940 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9941 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 ac_cv_header_openssl_err_h=$ac_header_preproc
9946 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9947 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9950 if test $ac_cv_header_openssl_err_h = yes; then
9953 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9954 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9955 { (exit 1); exit 1; }; }
9961 if test "$with_pam" = yes ; then
9963 for ac_header in security/pam_appl.h
9965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9967 echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9975 # Is the header compilable?
9976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #include <$ac_header>
9987 rm -f conftest.$ac_objext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989 (eval $ac_compile) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_header_compiler=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_header_compiler=no
10016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018 echo "${ECHO_T}$ac_header_compiler" >&6
10020 # Is the header present?
10021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10023 cat >conftest.$ac_ext <<_ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <$ac_header>
10031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10034 grep -v '^ *+' conftest.er1 >conftest.err
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev/null; then
10039 if test -s conftest.err; then
10040 ac_cpp_err=$ac_c_preproc_warn_flag
10041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10048 if test -z "$ac_cpp_err"; then
10049 ac_header_preproc=yes
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_header_preproc=no
10056 rm -f conftest.err conftest.$ac_ext
10057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058 echo "${ECHO_T}$ac_header_preproc" >&6
10060 # So? What about this header?
10061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc=yes
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10084 ## ---------------------------------------- ##
10085 ## Report this to pgsql-bugs@postgresql.org ##
10086 ## ---------------------------------------- ##
10089 sed "s/^/$as_me: WARNING: /" >&2
10092 echo "$as_me:$LINENO: checking for $ac_header" >&5
10093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 eval "$as_ac_Header=\$ac_header_preproc"
10099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10110 for ac_header in pam/pam_appl.h
10112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10114 echo "$as_me:$LINENO: checking for $ac_header" >&5
10115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10122 # Is the header compilable?
10123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 $ac_includes_default
10132 #include <$ac_header>
10134 rm -f conftest.$ac_objext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136 (eval $ac_compile) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag"
10144 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest.$ac_objext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_header_compiler=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_header_compiler=no
10163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10165 echo "${ECHO_T}$ac_header_compiler" >&6
10167 # Is the header present?
10168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 #include <$ac_header>
10178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } >/dev/null; then
10186 if test -s conftest.err; then
10187 ac_cpp_err=$ac_c_preproc_warn_flag
10188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10195 if test -z "$ac_cpp_err"; then
10196 ac_header_preproc=yes
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_header_preproc=no
10203 rm -f conftest.err conftest.$ac_ext
10204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10205 echo "${ECHO_T}$ac_header_preproc" >&6
10207 # So? What about this header?
10208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10214 ac_header_preproc=yes
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10231 ## ---------------------------------------- ##
10232 ## Report this to pgsql-bugs@postgresql.org ##
10233 ## ---------------------------------------- ##
10236 sed "s/^/$as_me: WARNING: /" >&2
10239 echo "$as_me:$LINENO: checking for $ac_header" >&5
10240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 eval "$as_ac_Header=\$ac_header_preproc"
10246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10256 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10257 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10258 { (exit 1); exit 1; }; }
10269 if test "$with_bonjour" = yes ; then
10270 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10271 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10272 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10273 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10277 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10279 # Is the header compilable?
10280 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10281 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10289 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10291 rm -f conftest.$ac_objext
10292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10293 (eval $ac_compile) 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } &&
10300 { ac_try='test -z "$ac_c_werror_flag"
10301 || test ! -s conftest.err'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; } &&
10307 { ac_try='test -s conftest.$ac_objext'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_header_compiler=yes
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_header_compiler=no
10320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10322 echo "${ECHO_T}$ac_header_compiler" >&6
10324 # Is the header present?
10325 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10326 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } >/dev/null; then
10343 if test -s conftest.err; then
10344 ac_cpp_err=$ac_c_preproc_warn_flag
10345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10352 if test -z "$ac_cpp_err"; then
10353 ac_header_preproc=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_header_preproc=no
10360 rm -f conftest.err conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10362 echo "${ECHO_T}$ac_header_preproc" >&6
10364 # So? What about this header?
10365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10367 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10368 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10370 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10371 ac_header_preproc=yes
10374 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10375 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10377 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10379 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10381 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10383 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10385 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10388 ## ---------------------------------------- ##
10389 ## Report this to pgsql-bugs@postgresql.org ##
10390 ## ---------------------------------------- ##
10393 sed "s/^/$as_me: WARNING: /" >&2
10396 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10397 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10398 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10403 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10404 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10407 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10410 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10411 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10412 { (exit 1); exit 1; }; }
10420 ## Types, structures, compiler characteristics
10423 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10425 if test "${ac_cv_c_const+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 cat >conftest.$ac_ext <<_ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10438 /* FIXME: Include the comments suggested by Paul. */
10439 #ifndef __cplusplus
10440 /* Ultrix mips cc rejects this. */
10441 typedef int charset[2];
10443 /* SunOS 4.1.1 cc rejects this. */
10444 char const *const *ccp;
10446 /* NEC SVR4.0.2 mips cc rejects this. */
10447 struct point {int x, y;};
10448 static struct point const zero = {0,0};
10449 /* AIX XL C 1.02.0.0 rejects this.
10450 It does not let you subtract one const X* pointer from another in
10451 an arm of an if-expression whose if-part is not a constant
10453 const char *g = "string";
10454 ccp = &g + (g ? g-g : 0);
10455 /* HPUX 7.0 cc rejects these. */
10458 ccp = (char const *const *) p;
10459 { /* SCO 3.2v4 cc rejects this. */
10461 char const *s = 0 ? (char *) 0 : (char const *) 0;
10465 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10466 int x[] = {25, 17};
10467 const int *foo = &x[0];
10470 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10471 typedef const int *iptr;
10475 { /* AIX XL C 1.02.0.0 rejects this saying
10476 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10477 struct s { int j; const int *ap[3]; };
10478 struct s *b; b->j = 5;
10480 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10481 const int foo = 10;
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10521 echo "${ECHO_T}$ac_cv_c_const" >&6
10522 if test $ac_cv_c_const = no; then
10524 cat >>confdefs.h <<\_ACEOF
10531 echo "$as_me:$LINENO: checking for inline" >&5
10532 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10533 if test "${ac_cv_c_inline+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 for ac_kw in inline __inline__ __inline; do
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #ifndef __cplusplus
10546 static $ac_kw foo_t static_foo () {return 0; }
10547 $ac_kw int foo () {return 0; }
10551 rm -f conftest.$ac_objext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553 (eval $ac_compile) 2>conftest.er1
10555 grep -v '^ *+' conftest.er1 >conftest.err
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
10560 { ac_try='test -z "$ac_c_werror_flag"
10561 || test ! -s conftest.err'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_cv_c_inline=$ac_kw; break
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10584 echo "${ECHO_T}$ac_cv_c_inline" >&6
10585 case $ac_cv_c_inline in
10588 cat >>confdefs.h <<\_ACEOF
10592 *) cat >>confdefs.h <<_ACEOF
10593 #define inline $ac_cv_c_inline
10598 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10599 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10600 if test "${ac_cv_c_stringize+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10611 char *s = x(teststring);
10613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10614 $EGREP "#teststring" >/dev/null 2>&1; then
10615 ac_cv_c_stringize=no
10617 ac_cv_c_stringize=yes
10622 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10623 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10624 if test $ac_cv_c_stringize = yes; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_STRINGIZE 1
10632 echo "$as_me:$LINENO: checking for signed types" >&5
10633 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10634 if test "${pgac_cv_c_signed+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10647 signed char c; signed short s; signed int i;
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest.$ac_objext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 pgac_cv_c_signed=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 pgac_cv_c_signed=no
10681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10684 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10685 if test x"$pgac_cv_c_signed" = xno ; then
10687 cat >>confdefs.h <<\_ACEOF
10692 echo "$as_me:$LINENO: checking for working volatile" >&5
10693 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10694 if test "${ac_cv_c_volatile+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_c_volatile=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_c_volatile=no
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10745 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10746 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10747 if test $ac_cv_c_volatile = no; then
10749 cat >>confdefs.h <<\_ACEOF
10755 echo "$as_me:$LINENO: checking for __func__" >&5
10756 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10757 if test "${pgac_cv_funcname_func_support+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10770 printf("%s\n", __func__);
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -z "$ac_c_werror_flag"
10785 || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest.$ac_objext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 pgac_cv_funcname_func_support=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 pgac_cv_funcname_func_support=no
10804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10806 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10807 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10808 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_FUNCNAME__FUNC 1
10815 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10816 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10817 if test "${pgac_cv_funcname_function_support+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10830 printf("%s\n", __FUNCTION__);
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest.$ac_objext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 pgac_cv_funcname_function_support=yes
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 pgac_cv_funcname_function_support=no
10864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10866 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10867 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10868 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_FUNCNAME__FUNCTION 1
10876 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10878 if test "${ac_cv_struct_tm+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <sys/types.h>
10893 struct tm *tp; tp->tm_sec;
10898 rm -f conftest.$ac_objext
10899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10900 (eval $ac_compile) 2>conftest.er1
10902 grep -v '^ *+' conftest.er1 >conftest.err
10904 cat conftest.err >&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
10907 { ac_try='test -z "$ac_c_werror_flag"
10908 || test ! -s conftest.err'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 ac_cv_struct_tm=time.h
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 ac_cv_struct_tm=sys/time.h
10927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10929 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10930 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10931 if test $ac_cv_struct_tm = sys/time.h; then
10933 cat >>confdefs.h <<\_ACEOF
10934 #define TM_IN_SYS_TIME 1
10939 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10940 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10941 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <sys/types.h>
10951 #include <$ac_cv_struct_tm>
10957 static struct tm ac_aggr;
10958 if (ac_aggr.tm_zone)
10964 rm -f conftest.$ac_objext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966 (eval $ac_compile) 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag"
10974 || test ! -s conftest.err'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; } &&
10980 { ac_try='test -s conftest.$ac_objext'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 ac_cv_member_struct_tm_tm_zone=yes
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <sys/types.h>
10998 #include <$ac_cv_struct_tm>
11004 static struct tm ac_aggr;
11005 if (sizeof ac_aggr.tm_zone)
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_member_struct_tm_tm_zone=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 ac_cv_member_struct_tm_tm_zone=no
11040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11045 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11046 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11048 cat >>confdefs.h <<_ACEOF
11049 #define HAVE_STRUCT_TM_TM_ZONE 1
11055 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_TM_ZONE 1
11062 echo "$as_me:$LINENO: checking for tzname" >&5
11063 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11064 if test "${ac_cv_var_tzname+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 cat >conftest.$ac_ext <<_ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11074 #ifndef tzname /* For SGI. */
11075 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11088 (eval $ac_link) 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag"
11096 || test ! -s conftest.err'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest$ac_exeext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_var_tzname=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_var_tzname=no
11115 rm -f conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11118 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11119 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11120 if test $ac_cv_var_tzname = yes; then
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_TZNAME 1
11128 echo "$as_me:$LINENO: checking for union semun" >&5
11129 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11130 if test "${ac_cv_type_union_semun+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.$ac_ext <<_ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <sys/types.h>
11140 #include <sys/ipc.h>
11141 #include <sys/sem.h>
11146 if ((union semun *) 0)
11148 if (sizeof (union semun))
11154 rm -f conftest.$ac_objext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest.$ac_objext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_type_union_semun=yes
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 ac_cv_type_union_semun=no
11183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11185 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11186 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11187 if test $ac_cv_type_union_semun = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define HAVE_UNION_SEMUN 1
11196 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11197 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11198 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <sys/types.h>
11208 #ifdef HAVE_SYS_UN_H
11209 #include <sys/un.h>
11216 if ((struct sockaddr_un *) 0)
11218 if (sizeof (struct sockaddr_un))
11224 rm -f conftest.$ac_objext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_type_struct_sockaddr_un=yes
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 ac_cv_type_struct_sockaddr_un=no
11253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11255 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11256 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11257 if test $ac_cv_type_struct_sockaddr_un = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_STRUCT_SOCKADDR_UN 1
11264 cat >>confdefs.h <<\_ACEOF
11265 #define HAVE_UNIX_SOCKETS 1
11270 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11271 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11272 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <sys/types.h>
11282 #ifdef HAVE_SYS_SOCKET_H
11283 #include <sys/socket.h>
11290 if ((struct sockaddr_storage *) 0)
11292 if (sizeof (struct sockaddr_storage))
11298 rm -f conftest.$ac_objext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11300 (eval $ac_compile) 2>conftest.er1
11302 grep -v '^ *+' conftest.er1 >conftest.err
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -z "$ac_c_werror_flag"
11308 || test ! -s conftest.err'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_cv_type_struct_sockaddr_storage=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_cv_type_struct_sockaddr_storage=no
11327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11329 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11330 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11331 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11340 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11341 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11342 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 cat >conftest.$ac_ext <<_ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 #include <sys/types.h>
11352 #ifdef HAVE_SYS_SOCKET_H
11353 #include <sys/socket.h>
11360 static struct sockaddr_storage ac_aggr;
11361 if (ac_aggr.ss_family)
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <sys/types.h>
11401 #ifdef HAVE_SYS_SOCKET_H
11402 #include <sys/socket.h>
11409 static struct sockaddr_storage ac_aggr;
11410 if (sizeof ac_aggr.ss_family)
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_c_werror_flag"
11426 || test ! -s conftest.err'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try='test -s conftest.$ac_objext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 ac_cv_member_struct_sockaddr_storage_ss_family=no
11445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11450 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11451 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11459 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11460 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11461 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11470 #include <sys/types.h>
11471 #ifdef HAVE_SYS_SOCKET_H
11472 #include <sys/socket.h>
11479 static struct sockaddr_storage ac_aggr;
11480 if (ac_aggr.__ss_family)
11486 rm -f conftest.$ac_objext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag"
11496 || test ! -s conftest.err'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <sys/types.h>
11520 #ifdef HAVE_SYS_SOCKET_H
11521 #include <sys/socket.h>
11528 static struct sockaddr_storage ac_aggr;
11529 if (sizeof ac_aggr.__ss_family)
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11539 grep -v '^ *+' conftest.er1 >conftest.err
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag"
11545 || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_cv_member_struct_sockaddr_storage___ss_family=no
11564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11569 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11570 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11578 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11579 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11580 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.$ac_ext <<_ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 #include <sys/types.h>
11590 #ifdef HAVE_SYS_SOCKET_H
11591 #include <sys/socket.h>
11598 static struct sockaddr_storage ac_aggr;
11599 if (ac_aggr.ss_len)
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>conftest.er1
11609 grep -v '^ *+' conftest.er1 >conftest.err
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 #include <sys/types.h>
11639 #ifdef HAVE_SYS_SOCKET_H
11640 #include <sys/socket.h>
11647 static struct sockaddr_storage ac_aggr;
11648 if (sizeof ac_aggr.ss_len)
11654 rm -f conftest.$ac_objext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656 (eval $ac_compile) 2>conftest.er1
11658 grep -v '^ *+' conftest.er1 >conftest.err
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try='test -s conftest.$ac_objext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_cv_member_struct_sockaddr_storage_ss_len=no
11683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
11688 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
11689 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11697 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
11698 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
11699 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <sys/types.h>
11709 #ifdef HAVE_SYS_SOCKET_H
11710 #include <sys/socket.h>
11717 static struct sockaddr_storage ac_aggr;
11718 if (ac_aggr.__ss_len)
11724 rm -f conftest.$ac_objext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11728 grep -v '^ *+' conftest.er1 >conftest.err
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest.$ac_objext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #include <sys/types.h>
11758 #ifdef HAVE_SYS_SOCKET_H
11759 #include <sys/socket.h>
11766 static struct sockaddr_storage ac_aggr;
11767 if (sizeof ac_aggr.__ss_len)
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_cv_member_struct_sockaddr_storage___ss_len=no
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
11807 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
11808 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11816 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
11817 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
11818 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <sys/types.h>
11828 #ifdef HAVE_SYS_SOCKET_H
11829 #include <sys/socket.h>
11836 static struct sockaddr ac_aggr;
11837 if (ac_aggr.sa_len)
11843 rm -f conftest.$ac_objext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag"
11853 || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_member_struct_sockaddr_sa_len=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <sys/types.h>
11877 #ifdef HAVE_SYS_SOCKET_H
11878 #include <sys/socket.h>
11885 static struct sockaddr ac_aggr;
11886 if (sizeof ac_aggr.sa_len)
11892 rm -f conftest.$ac_objext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11894 (eval $ac_compile) 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -z "$ac_c_werror_flag"
11902 || test ! -s conftest.err'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_member_struct_sockaddr_sa_len=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_member_struct_sockaddr_sa_len=no
11921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
11926 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
11927 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11936 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11937 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11938 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <sys/types.h>
11948 #include <sys/socket.h>
11955 if ((struct addrinfo *) 0)
11957 if (sizeof (struct addrinfo))
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_type_struct_addrinfo=yes
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_cv_type_struct_addrinfo=no
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11995 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11996 if test $ac_cv_type_struct_addrinfo = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_STRUCT_ADDRINFO 1
12006 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12007 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12008 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 #include <sys/param.h>
12018 #include <sys/types.h>
12019 #include <sys/socket.h>
12020 #include <sys/ucred.h>
12025 if ((struct cmsgcred *) 0)
12027 if (sizeof (struct cmsgcred))
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag"
12043 || test ! -s conftest.err'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 ac_cv_type_struct_cmsgcred=yes
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_cv_type_struct_cmsgcred=no
12062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12065 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12066 if test $ac_cv_type_struct_cmsgcred = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define HAVE_STRUCT_CMSGCRED 1
12074 echo "$as_me:$LINENO: checking for struct fcred" >&5
12075 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12076 if test "${ac_cv_type_struct_fcred+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 #include <sys/param.h>
12086 #include <sys/types.h>
12087 #include <sys/socket.h>
12088 #include <sys/ucred.h>
12093 if ((struct fcred *) 0)
12095 if (sizeof (struct fcred))
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>conftest.er1
12105 grep -v '^ *+' conftest.er1 >conftest.err
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -z "$ac_c_werror_flag"
12111 || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_type_struct_fcred=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_cv_type_struct_fcred=no
12130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12132 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12133 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12134 if test $ac_cv_type_struct_fcred = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define HAVE_STRUCT_FCRED 1
12142 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12143 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12144 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #include <sys/param.h>
12154 #include <sys/types.h>
12155 #include <sys/socket.h>
12156 #include <sys/ucred.h>
12161 if ((struct sockcred *) 0)
12163 if (sizeof (struct sockcred))
12169 rm -f conftest.$ac_objext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_cv_type_struct_sockcred=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_type_struct_sockcred=no
12198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12200 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12201 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12202 if test $ac_cv_type_struct_sockcred = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_STRUCT_SOCKCRED 1
12212 echo "$as_me:$LINENO: checking for struct option" >&5
12213 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12214 if test "${ac_cv_type_struct_option+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 #ifdef HAVE_GETOPT_H
12224 #include <getopt.h>
12230 if ((struct option *) 0)
12232 if (sizeof (struct option))
12238 rm -f conftest.$ac_objext
12239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12240 (eval $ac_compile) 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag"
12248 || test ! -s conftest.err'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest.$ac_objext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_type_struct_option=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_cv_type_struct_option=no
12267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12270 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12271 if test $ac_cv_type_struct_option = yes; then
12273 cat >>confdefs.h <<_ACEOF
12274 #define HAVE_STRUCT_OPTION 1
12281 if test "$with_zlib" = yes; then
12282 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12283 # did not). While we could work around the lack of z_streamp, it
12284 # seems unwise to encourage people to use such old zlib versions...
12285 echo "$as_me:$LINENO: checking for z_streamp" >&5
12286 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12287 if test "${ac_cv_type_z_streamp+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 cat >conftest.$ac_ext <<_ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12301 if ((z_streamp *) 0)
12303 if (sizeof (z_streamp))
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_cv_type_z_streamp=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_cv_type_z_streamp=no
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12341 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12342 if test $ac_cv_type_z_streamp = yes; then
12345 { { echo "$as_me:$LINENO: error: zlib version is too old
12346 Use --without-zlib to disable zlib support." >&5
12347 echo "$as_me: error: zlib version is too old
12348 Use --without-zlib to disable zlib support." >&2;}
12349 { (exit 1); exit 1; }; }
12354 if test "$with_krb5" = yes; then
12355 # Check for differences between MIT and Heimdal (KTH) releases
12356 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12357 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12358 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12372 static krb5_ticket ac_aggr;
12373 if (ac_aggr.enc_part2)
12379 rm -f conftest.$ac_objext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12381 (eval $ac_compile) 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_member_krb5_ticket_enc_part2=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12417 static krb5_ticket ac_aggr;
12418 if (sizeof ac_aggr.enc_part2)
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_member_krb5_ticket_enc_part2=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_member_krb5_ticket_enc_part2=no
12453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12458 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12459 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12461 cat >>confdefs.h <<_ACEOF
12462 #define HAVE_KRB5_TICKET_ENC_PART2 1
12467 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12468 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12469 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12483 static krb5_ticket ac_aggr;
12484 if (ac_aggr.client)
12490 rm -f conftest.$ac_objext
12491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492 (eval $ac_compile) 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } &&
12499 { ac_try='test -z "$ac_c_werror_flag"
12500 || test ! -s conftest.err'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_member_krb5_ticket_client=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 cat >conftest.$ac_ext <<_ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12528 static krb5_ticket ac_aggr;
12529 if (sizeof ac_aggr.client)
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_member_krb5_ticket_client=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_cv_member_krb5_ticket_client=no
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12569 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12570 if test $ac_cv_member_krb5_ticket_client = yes; then
12572 cat >>confdefs.h <<_ACEOF
12573 #define HAVE_KRB5_TICKET_CLIENT 1
12578 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12579 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12580 { (exit 1); exit 1; }; }
12585 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12586 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12587 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12601 static krb5_error ac_aggr;
12602 if (ac_aggr.text.data)
12608 rm -f conftest.$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610 (eval $ac_compile) 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag"
12618 || test ! -s conftest.err'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; } &&
12624 { ac_try='test -s conftest.$ac_objext'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_member_krb5_error_text_data=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 cat >conftest.$ac_ext <<_ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12646 static krb5_error ac_aggr;
12647 if (sizeof ac_aggr.text.data)
12653 rm -f conftest.$ac_objext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>conftest.er1
12657 grep -v '^ *+' conftest.er1 >conftest.err
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag"
12663 || test ! -s conftest.err'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_cv_member_krb5_error_text_data=yes
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_cv_member_krb5_error_text_data=no
12682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
12687 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
12688 if test $ac_cv_member_krb5_error_text_data = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691 #define HAVE_KRB5_ERROR_TEXT_DATA 1
12696 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
12697 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
12698 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12712 static krb5_error ac_aggr;
12713 if (ac_aggr.e_data)
12719 rm -f conftest.$ac_objext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12721 (eval $ac_compile) 2>conftest.er1
12723 grep -v '^ *+' conftest.er1 >conftest.err
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag"
12729 || test ! -s conftest.err'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest.$ac_objext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 ac_cv_member_krb5_error_e_data=yes
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12757 static krb5_error ac_aggr;
12758 if (sizeof ac_aggr.e_data)
12764 rm -f conftest.$ac_objext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag"
12774 || test ! -s conftest.err'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest.$ac_objext'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 ac_cv_member_krb5_error_e_data=yes
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 ac_cv_member_krb5_error_e_data=no
12793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
12798 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
12799 if test $ac_cv_member_krb5_error_e_data = yes; then
12801 cat >>confdefs.h <<_ACEOF
12802 #define HAVE_KRB5_ERROR_E_DATA 1
12807 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
12808 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
12809 { (exit 1); exit 1; }; }
12816 # This is probably only present on Darwin, but may as well check always
12817 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
12818 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
12819 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12833 #ifndef F_FULLFSYNC
12834 char *p = (char *) F_FULLFSYNC;
12841 rm -f conftest.$ac_objext
12842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843 (eval $ac_compile) 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest.$ac_objext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 ac_cv_have_decl_F_FULLFSYNC=yes
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_cv_have_decl_F_FULLFSYNC=no
12870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
12873 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
12874 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
12876 cat >>confdefs.h <<_ACEOF
12877 #define HAVE_DECL_F_FULLFSYNC 1
12882 cat >>confdefs.h <<_ACEOF
12883 #define HAVE_DECL_F_FULLFSYNC 0
12892 ## Functions, global variables
12895 echo "$as_me:$LINENO: checking for int timezone" >&5
12896 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
12897 if test "${pgac_cv_var_int_timezone+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12912 res = timezone / 60;
12914 res = _timezone / 60;
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922 (eval $ac_link) 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag"
12930 || test ! -s conftest.err'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest$ac_exeext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942 pgac_cv_var_int_timezone=yes
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 pgac_cv_var_int_timezone=no
12949 rm -f conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12952 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
12953 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
12954 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12956 cat >>confdefs.h <<\_ACEOF
12957 #define HAVE_INT_TIMEZONE
12961 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
12962 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
12963 if test "${ac_cv_func_accept_return+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 if test "${ac_cv_func_accept_arg1+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 if test "${ac_cv_func_accept_arg2+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 if test "${ac_cv_func_accept_arg3+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
12976 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
12977 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12978 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #ifdef HAVE_SYS_TYPES_H
12986 #include <sys/types.h>
12988 #ifdef HAVE_SYS_SOCKET_H
12989 #include <sys/socket.h>
12991 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13000 rm -f conftest.$ac_objext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002 (eval $ac_compile) 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag"
13010 || test ! -s conftest.err'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_not_found=no; break 4
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13034 if test "$ac_not_found" = yes; then
13035 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13036 echo "$as_me: error: could not determine argument types" >&2;}
13037 { (exit 1); exit 1; }; }
13039 if test "$ac_cv_func_accept_arg3" = "void"; then
13040 ac_cv_func_accept_arg3=int
13050 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
13051 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13053 cat >>confdefs.h <<_ACEOF
13054 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13058 cat >>confdefs.h <<_ACEOF
13059 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13063 cat >>confdefs.h <<_ACEOF
13064 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13068 cat >>confdefs.h <<_ACEOF
13069 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13073 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13074 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13075 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #include <sys/time.h>
13088 struct timeval *tp;
13089 struct timezone *tzp;
13090 gettimeofday(tp,tzp);
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 pgac_cv_func_gettimeofday_1arg=no
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 pgac_cv_func_gettimeofday_1arg=yes
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13127 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13128 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13130 cat >>confdefs.h <<\_ACEOF
13131 #define GETTIMEOFDAY_1ARG
13157 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13160 echo "$as_me:$LINENO: checking for $ac_func" >&5
13161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_var+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13173 #define $ac_func innocuous_$ac_func
13175 /* System header to define __stub macros and hopefully few prototypes,
13176 which can conflict with char $ac_func (); below.
13177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13178 <limits.h> exists even on freestanding compilers. */
13181 # include <limits.h>
13183 # include <assert.h>
13188 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13196 /* The GNU C library defines this for functions which it implements
13197 to always fail with ENOSYS. Some functions are actually named
13198 something starting with __ and the normal name is an alias. */
13199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13202 char (*f) () = $ac_func;
13211 return f != $ac_func;
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1 >conftest.err
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 eval "$as_ac_var=yes"
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 eval "$as_ac_var=no"
13245 rm -f conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13250 if test `eval echo '${'$as_ac_var'}'` = yes; then
13251 cat >>confdefs.h <<_ACEOF
13252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13259 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13260 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13261 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 #include <unistd.h>
13276 char *p = (char *) fdatasync;
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 (eval $ac_compile) 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag"
13293 || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_have_decl_fdatasync=yes
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_cv_have_decl_fdatasync=no
13312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13315 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13316 if test $ac_cv_have_decl_fdatasync = yes; then
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_DECL_FDATASYNC 1
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_DECL_FDATASYNC 0
13334 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13335 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13336 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 #include <netinet/in.h>
13351 if ((struct sockaddr_in6 *) 0)
13353 if (sizeof (struct sockaddr_in6))
13359 rm -f conftest.$ac_objext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361 (eval $ac_compile) 2>conftest.er1
13363 grep -v '^ *+' conftest.er1 >conftest.err
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag"
13369 || test ! -s conftest.err'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_cv_type_struct_sockaddr_in6=yes
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_cv_type_struct_sockaddr_in6=no
13388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13390 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13391 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13392 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_IPV6 1
13403 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13404 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13405 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 #include <machine/vmparam.h>
13415 #include <sys/exec.h>
13420 PS_STRINGS->ps_nargvstr = 1;
13421 PS_STRINGS->ps_argvstr = "foo";
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag"
13436 || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 pgac_cv_var_PS_STRINGS=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 pgac_cv_var_PS_STRINGS=no
13455 rm -f conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13458 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13459 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13460 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define HAVE_PS_STRINGS
13469 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13470 # is missing. Yes, there are machines that have only one. We may
13471 # also decide to use snprintf.c if snprintf() is present but does not
13472 # have all the features we need --- see below.
13474 if test "$PORTNAME" = "win32"; then
13475 # Win32 gets snprintf.c built unconditionally.
13477 # To properly translate all NLS languages strings, we must support the
13478 # *printf() %$ format, which allows *printf() arguments to be selected
13479 # by position in the translated string.
13481 # libintl versions < 0.13 use the native *printf() functions, and Win32
13482 # *printf() doesn't understand %$, so we must use our /port versions,
13483 # which do understand %$. libintl versions >= 0.13 include their own
13484 # *printf versions on Win32. The libintl 0.13 release note text is:
13486 # C format strings with positions, as they arise when a translator
13487 # needs to reorder a sentence, are now supported on all platforms.
13488 # On those few platforms (NetBSD and Woe32) for which the native
13489 # printf()/fprintf()/... functions don't support such format
13490 # strings, replacements are provided through <libintl.h>.
13492 # We could use libintl >= 0.13's *printf() if we were sure that we had
13493 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13494 # to guarantee that, it is best to just use our own, so we are sure to
13495 # get %$ support. In include/port.h we disable the *printf() macros
13496 # that might have been defined by libintl.
13498 # We do this unconditionally whether NLS is used or not so we are sure
13499 # that all Win32 libraries and binaries behave the same.
13500 pgac_need_repl_snprintf=yes
13502 pgac_need_repl_snprintf=no
13504 for ac_func in snprintf
13506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13507 echo "$as_me:$LINENO: checking for $ac_func" >&5
13508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13509 if eval "test \"\${$as_ac_var+set}\" = set"; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13520 #define $ac_func innocuous_$ac_func
13522 /* System header to define __stub macros and hopefully few prototypes,
13523 which can conflict with char $ac_func (); below.
13524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13525 <limits.h> exists even on freestanding compilers. */
13528 # include <limits.h>
13530 # include <assert.h>
13535 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13543 /* The GNU C library defines this for functions which it implements
13544 to always fail with ENOSYS. Some functions are actually named
13545 something starting with __ and the normal name is an alias. */
13546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13549 char (*f) () = $ac_func;
13558 return f != $ac_func;
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565 (eval $ac_link) 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag"
13573 || test ! -s conftest.err'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest$ac_exeext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 eval "$as_ac_var=yes"
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 eval "$as_ac_var=no"
13592 rm -f conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13597 if test `eval echo '${'$as_ac_var'}'` = yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603 pgac_need_repl_snprintf=yes
13608 for ac_func in vsnprintf
13610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13611 echo "$as_me:$LINENO: checking for $ac_func" >&5
13612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13613 if eval "test \"\${$as_ac_var+set}\" = set"; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13624 #define $ac_func innocuous_$ac_func
13626 /* System header to define __stub macros and hopefully few prototypes,
13627 which can conflict with char $ac_func (); below.
13628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13629 <limits.h> exists even on freestanding compilers. */
13632 # include <limits.h>
13634 # include <assert.h>
13639 /* Override any gcc2 internal prototype to avoid an error. */
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13647 /* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13653 char (*f) () = $ac_func;
13662 return f != $ac_func;
13667 rm -f conftest.$ac_objext conftest$ac_exeext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669 (eval $ac_link) 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest$ac_exeext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 eval "$as_ac_var=yes"
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 eval "$as_ac_var=no"
13696 rm -f conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13701 if test `eval echo '${'$as_ac_var'}'` = yes; then
13702 cat >>confdefs.h <<_ACEOF
13703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13707 pgac_need_repl_snprintf=yes
13714 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13715 # include/c.h will provide declarations. Note this is a separate test
13716 # from whether the functions exist in the C library --- there are
13717 # systems that have the functions but don't bother to declare them :-(
13719 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13720 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13721 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13735 char *p = (char *) snprintf;
13742 rm -f conftest.$ac_objext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag"
13752 || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_have_decl_snprintf=yes
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ac_cv_have_decl_snprintf=no
13771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13773 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13774 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13775 if test $ac_cv_have_decl_snprintf = yes; then
13777 cat >>confdefs.h <<_ACEOF
13778 #define HAVE_DECL_SNPRINTF 1
13783 cat >>confdefs.h <<_ACEOF
13784 #define HAVE_DECL_SNPRINTF 0
13789 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13790 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13791 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 $ac_includes_default
13805 char *p = (char *) vsnprintf;
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag"
13822 || test ! -s conftest.err'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_have_decl_vsnprintf=yes
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_have_decl_vsnprintf=no
13841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13844 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13845 if test $ac_cv_have_decl_vsnprintf = yes; then
13847 cat >>confdefs.h <<_ACEOF
13848 #define HAVE_DECL_VSNPRINTF 1
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_DECL_VSNPRINTF 0
13863 echo "$as_me:$LINENO: checking for isinf" >&5
13864 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13865 if test "${ac_cv_func_isinf+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13876 double glob_double;
13881 return isinf(glob_double) ? 0 : 1;
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag"
13896 || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 ac_cv_func_isinf=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_cv_func_isinf=no
13915 rm -f conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13918 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13919 echo "${ECHO_T}$ac_cv_func_isinf" >&6
13921 if test $ac_cv_func_isinf = yes ; then
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_ISINF 1
13929 "isinf.$ac_objext" | \
13930 *" isinf.$ac_objext" | \
13931 "isinf.$ac_objext "* | \
13932 *" isinf.$ac_objext "* ) ;;
13933 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
13936 # Look for a way to implement a substitute for isinf()
13941 for ac_func in fpclass fp_class fp_class_d class
13943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13944 echo "$as_me:$LINENO: checking for $ac_func" >&5
13945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13946 if eval "test \"\${$as_ac_var+set}\" = set"; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13957 #define $ac_func innocuous_$ac_func
13959 /* System header to define __stub macros and hopefully few prototypes,
13960 which can conflict with char $ac_func (); below.
13961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13962 <limits.h> exists even on freestanding compilers. */
13965 # include <limits.h>
13967 # include <assert.h>
13972 /* Override any gcc2 internal prototype to avoid an error. */
13977 /* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13980 /* The GNU C library defines this for functions which it implements
13981 to always fail with ENOSYS. Some functions are actually named
13982 something starting with __ and the normal name is an alias. */
13983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13986 char (*f) () = $ac_func;
13995 return f != $ac_func;
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002 (eval $ac_link) 2>conftest.er1
14004 grep -v '^ *+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } &&
14009 { ac_try='test -z "$ac_c_werror_flag"
14010 || test ! -s conftest.err'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; } &&
14016 { ac_try='test -s conftest$ac_exeext'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 eval "$as_ac_var=yes"
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 eval "$as_ac_var=no"
14029 rm -f conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14034 if test `eval echo '${'$as_ac_var'}'` = yes; then
14035 cat >>confdefs.h <<_ACEOF
14036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14057 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14060 echo "$as_me:$LINENO: checking for $ac_func" >&5
14061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14062 if eval "test \"\${$as_ac_var+set}\" = set"; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14073 #define $ac_func innocuous_$ac_func
14075 /* System header to define __stub macros and hopefully few prototypes,
14076 which can conflict with char $ac_func (); below.
14077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078 <limits.h> exists even on freestanding compilers. */
14081 # include <limits.h>
14083 # include <assert.h>
14088 /* Override any gcc2 internal prototype to avoid an error. */
14093 /* We use char because int might match the return type of a gcc2
14094 builtin and then its argument prototype would still apply. */
14096 /* The GNU C library defines this for functions which it implements
14097 to always fail with ENOSYS. Some functions are actually named
14098 something starting with __ and the normal name is an alias. */
14099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14102 char (*f) () = $ac_func;
14111 return f != $ac_func;
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118 (eval $ac_link) 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag"
14126 || test ! -s conftest.err'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 eval "$as_ac_var=yes"
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 eval "$as_ac_var=no"
14145 rm -f conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14150 if test `eval echo '${'$as_ac_var'}'` = yes; then
14151 cat >>confdefs.h <<_ACEOF
14152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14157 "$ac_func.$ac_objext" | \
14158 *" $ac_func.$ac_objext" | \
14159 "$ac_func.$ac_objext "* | \
14160 *" $ac_func.$ac_objext "* ) ;;
14161 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14169 # System's version of getaddrinfo(), if any, may be used only if we found
14170 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14171 # (Note: the AC_TRY_LINK probe fails on Windows, where the available
14172 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14173 # because we want to use our own getaddrinfo.c on Windows anyway.)
14174 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14175 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
14176 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14184 #include <sys/socket.h>
14190 return getaddrinfo("", "", NULL, NULL) ? 0 : 1;
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14197 (eval $ac_link) 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_GETADDRINFO 1
14222 echo "$as_me:$LINENO: result: yes" >&5
14223 echo "${ECHO_T}yes" >&6
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 echo "$as_me:$LINENO: result: no" >&5
14229 echo "${ECHO_T}no" >&6
14231 "getaddrinfo.$ac_objext" | \
14232 *" getaddrinfo.$ac_objext" | \
14233 "getaddrinfo.$ac_objext "* | \
14234 *" getaddrinfo.$ac_objext "* ) ;;
14235 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14239 rm -f conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14243 "getaddrinfo.$ac_objext" | \
14244 *" getaddrinfo.$ac_objext" | \
14245 "getaddrinfo.$ac_objext "* | \
14246 *" getaddrinfo.$ac_objext "* ) ;;
14247 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14252 # similarly, use system's getopt_long() only if system provides struct option.
14253 if test x"$ac_cv_type_struct_option" = xyes ; then
14255 for ac_func in getopt_long
14257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14258 echo "$as_me:$LINENO: checking for $ac_func" >&5
14259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14260 if eval "test \"\${$as_ac_var+set}\" = set"; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14271 #define $ac_func innocuous_$ac_func
14273 /* System header to define __stub macros and hopefully few prototypes,
14274 which can conflict with char $ac_func (); below.
14275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14276 <limits.h> exists even on freestanding compilers. */
14279 # include <limits.h>
14281 # include <assert.h>
14286 /* Override any gcc2 internal prototype to avoid an error. */
14291 /* We use char because int might match the return type of a gcc2
14292 builtin and then its argument prototype would still apply. */
14294 /* The GNU C library defines this for functions which it implements
14295 to always fail with ENOSYS. Some functions are actually named
14296 something starting with __ and the normal name is an alias. */
14297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14300 char (*f) () = $ac_func;
14309 return f != $ac_func;
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>conftest.er1
14318 grep -v '^ *+' conftest.er1 >conftest.err
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag"
14324 || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 eval "$as_ac_var=yes"
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 eval "$as_ac_var=no"
14343 rm -f conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
14346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14348 if test `eval echo '${'$as_ac_var'}'` = yes; then
14349 cat >>confdefs.h <<_ACEOF
14350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14355 "$ac_func.$ac_objext" | \
14356 *" $ac_func.$ac_objext" | \
14357 "$ac_func.$ac_objext "* | \
14358 *" $ac_func.$ac_objext "* ) ;;
14359 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14368 "getopt_long.$ac_objext" | \
14369 *" getopt_long.$ac_objext" | \
14370 "getopt_long.$ac_objext "* | \
14371 *" getopt_long.$ac_objext "* ) ;;
14372 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14377 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14378 # We override the previous test that said fseeko/ftello didn't exist
14379 # OS tests are also done in include/c.h and port/fseeko.c
14380 case $host_os in bsdi*|netbsd*)
14381 ac_cv_func_fseeko=yes
14384 # Solaris has a very slow qsort in certain cases, so we replace it:
14385 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14386 # Supposedly it is fixed in Solaris, but not sure which version, and
14387 # no confirmed testing. 2005-12-16
14388 if test "$PORTNAME" = "solaris"; then
14390 "qsort.$ac_objext" | \
14391 *" qsort.$ac_objext" | \
14392 "qsort.$ac_objext "* | \
14393 *" qsort.$ac_objext "* ) ;;
14394 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14400 if test "$PORTNAME" = "win32"; then
14402 "gettimeofday.$ac_objext" | \
14403 *" gettimeofday.$ac_objext" | \
14404 "gettimeofday.$ac_objext "* | \
14405 *" gettimeofday.$ac_objext "* ) ;;
14406 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14410 "kill.$ac_objext" | \
14411 *" kill.$ac_objext" | \
14412 "kill.$ac_objext "* | \
14413 *" kill.$ac_objext "* ) ;;
14414 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14418 "open.$ac_objext" | \
14419 *" open.$ac_objext" | \
14420 "open.$ac_objext "* | \
14421 *" open.$ac_objext "* ) ;;
14422 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14426 "rand.$ac_objext" | \
14427 *" rand.$ac_objext" | \
14428 "rand.$ac_objext "* | \
14429 *" rand.$ac_objext "* ) ;;
14430 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14434 cat >>confdefs.h <<\_ACEOF
14435 #define HAVE_SYMLINK 1
14440 if test "$with_readline" = yes; then
14441 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14442 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14443 cat >conftest.$ac_ext <<_ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14450 #ifdef HAVE_READLINE_READLINE_H
14451 # include <readline/readline.h>
14452 #elif defined(HAVE_READLINE_H)
14453 # include <readline.h>
14459 rl_completion_append_character = 'x';
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14466 (eval $ac_link) 2>conftest.er1
14468 grep -v '^ *+' conftest.er1 >conftest.err
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -z "$ac_c_werror_flag"
14474 || test ! -s conftest.err'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest$ac_exeext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 echo "$as_me:$LINENO: result: yes" >&5
14487 echo "${ECHO_T}yes" >&6
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14500 rm -f conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14504 for ac_func in rl_completion_matches rl_filename_completion_function
14506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14507 echo "$as_me:$LINENO: checking for $ac_func" >&5
14508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14509 if eval "test \"\${$as_ac_var+set}\" = set"; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14520 #define $ac_func innocuous_$ac_func
14522 /* System header to define __stub macros and hopefully few prototypes,
14523 which can conflict with char $ac_func (); below.
14524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14525 <limits.h> exists even on freestanding compilers. */
14528 # include <limits.h>
14530 # include <assert.h>
14535 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14543 /* The GNU C library defines this for functions which it implements
14544 to always fail with ENOSYS. Some functions are actually named
14545 something starting with __ and the normal name is an alias. */
14546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14549 char (*f) () = $ac_func;
14558 return f != $ac_func;
14563 rm -f conftest.$ac_objext conftest$ac_exeext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14565 (eval $ac_link) 2>conftest.er1
14567 grep -v '^ *+' conftest.er1 >conftest.err
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag"
14573 || test ! -s conftest.err'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest$ac_exeext'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 eval "$as_ac_var=yes"
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 eval "$as_ac_var=no"
14592 rm -f conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14597 if test `eval echo '${'$as_ac_var'}'` = yes; then
14598 cat >>confdefs.h <<_ACEOF
14599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14606 for ac_func in replace_history_entry
14608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14609 echo "$as_me:$LINENO: checking for $ac_func" >&5
14610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14611 if eval "test \"\${$as_ac_var+set}\" = set"; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14622 #define $ac_func innocuous_$ac_func
14624 /* System header to define __stub macros and hopefully few prototypes,
14625 which can conflict with char $ac_func (); below.
14626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14627 <limits.h> exists even on freestanding compilers. */
14630 # include <limits.h>
14632 # include <assert.h>
14637 /* Override any gcc2 internal prototype to avoid an error. */
14642 /* We use char because int might match the return type of a gcc2
14643 builtin and then its argument prototype would still apply. */
14645 /* The GNU C library defines this for functions which it implements
14646 to always fail with ENOSYS. Some functions are actually named
14647 something starting with __ and the normal name is an alias. */
14648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14651 char (*f) () = $ac_func;
14660 return f != $ac_func;
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 eval "$as_ac_var=yes"
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 eval "$as_ac_var=no"
14694 rm -f conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14699 if test `eval echo '${'$as_ac_var'}'` = yes; then
14700 cat >>confdefs.h <<_ACEOF
14701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14710 echo "$as_me:$LINENO: checking for finite" >&5
14711 echo $ECHO_N "checking for finite... $ECHO_C" >&6
14712 cat >conftest.$ac_ext <<_ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14720 double glob_double;
14725 return finite(glob_double) ? 0 : 1;
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_FINITE 1
14757 echo "$as_me:$LINENO: result: yes" >&5
14758 echo "${ECHO_T}yes" >&6
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 echo "$as_me:$LINENO: result: no" >&5
14764 echo "${ECHO_T}no" >&6
14766 rm -f conftest.err conftest.$ac_objext \
14767 conftest$ac_exeext conftest.$ac_ext
14769 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
14770 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 #include <setjmp.h>
14781 sigjmp_buf x; sigsetjmp(x, 1);
14786 rm -f conftest.$ac_objext conftest$ac_exeext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788 (eval $ac_link) 2>conftest.er1
14790 grep -v '^ *+' conftest.er1 >conftest.err
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag"
14796 || test ! -s conftest.err'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14809 cat >>confdefs.h <<\_ACEOF
14810 #define HAVE_SIGSETJMP 1
14813 echo "$as_me:$LINENO: result: yes" >&5
14814 echo "${ECHO_T}yes" >&6
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 echo "$as_me:$LINENO: result: no" >&5
14820 echo "${ECHO_T}no" >&6
14822 rm -f conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14825 echo "$as_me:$LINENO: checking for syslog" >&5
14826 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14827 if test "${ac_cv_func_syslog+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 cat >conftest.$ac_ext <<_ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
14837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14838 #define syslog innocuous_syslog
14840 /* System header to define __stub macros and hopefully few prototypes,
14841 which can conflict with char syslog (); below.
14842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14843 <limits.h> exists even on freestanding compilers. */
14846 # include <limits.h>
14848 # include <assert.h>
14853 /* Override any gcc2 internal prototype to avoid an error. */
14858 /* We use char because int might match the return type of a gcc2
14859 builtin and then its argument prototype would still apply. */
14861 /* The GNU C library defines this for functions which it implements
14862 to always fail with ENOSYS. Some functions are actually named
14863 something starting with __ and the normal name is an alias. */
14864 #if defined (__stub_syslog) || defined (__stub___syslog)
14867 char (*f) () = syslog;
14876 return f != syslog;
14881 rm -f conftest.$ac_objext conftest$ac_exeext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14883 (eval $ac_link) 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest$ac_exeext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_func_syslog=yes
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ac_cv_func_syslog=no
14910 rm -f conftest.err conftest.$ac_objext \
14911 conftest$ac_exeext conftest.$ac_ext
14913 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
14914 echo "${ECHO_T}$ac_cv_func_syslog" >&6
14915 if test $ac_cv_func_syslog = yes; then
14916 if test "${ac_cv_header_syslog_h+set}" = set; then
14917 echo "$as_me:$LINENO: checking for syslog.h" >&5
14918 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
14919 if test "${ac_cv_header_syslog_h+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
14923 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
14925 # Is the header compilable?
14926 echo "$as_me:$LINENO: checking syslog.h usability" >&5
14927 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 $ac_includes_default
14935 #include <syslog.h>
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>conftest.er1
14941 grep -v '^ *+' conftest.er1 >conftest.err
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
14953 { ac_try='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_header_compiler=yes
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ac_header_compiler=no
14966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14968 echo "${ECHO_T}$ac_header_compiler" >&6
14970 # Is the header present?
14971 echo "$as_me:$LINENO: checking syslog.h presence" >&5
14972 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
14973 cat >conftest.$ac_ext <<_ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 #include <syslog.h>
14981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14984 grep -v '^ *+' conftest.er1 >conftest.err
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } >/dev/null; then
14989 if test -s conftest.err; then
14990 ac_cpp_err=$ac_c_preproc_warn_flag
14991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14998 if test -z "$ac_cpp_err"; then
14999 ac_header_preproc=yes
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 ac_header_preproc=no
15006 rm -f conftest.err conftest.$ac_ext
15007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15008 echo "${ECHO_T}$ac_header_preproc" >&6
15010 # So? What about this header?
15011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15014 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15016 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15017 ac_header_preproc=yes
15020 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15021 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15023 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15025 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15027 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15029 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15031 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15034 ## ---------------------------------------- ##
15035 ## Report this to pgsql-bugs@postgresql.org ##
15036 ## ---------------------------------------- ##
15039 sed "s/^/$as_me: WARNING: /" >&2
15042 echo "$as_me:$LINENO: checking for syslog.h" >&5
15043 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15044 if test "${ac_cv_header_syslog_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 ac_cv_header_syslog_h=$ac_header_preproc
15049 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15050 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15053 if test $ac_cv_header_syslog_h = yes; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define HAVE_SYSLOG 1
15065 echo "$as_me:$LINENO: checking for optreset" >&5
15066 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15067 if test "${pgac_cv_var_int_optreset+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <unistd.h>
15080 extern int optreset; optreset = 1;
15085 rm -f conftest.$ac_objext conftest$ac_exeext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15087 (eval $ac_link) 2>conftest.er1
15089 grep -v '^ *+' conftest.er1 >conftest.err
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 pgac_cv_var_int_optreset=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 pgac_cv_var_int_optreset=no
15114 rm -f conftest.err conftest.$ac_objext \
15115 conftest$ac_exeext conftest.$ac_ext
15117 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15118 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15119 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15121 cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_INT_OPTRESET 1
15129 for ac_func in strtoll strtoq
15131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15132 echo "$as_me:$LINENO: checking for $ac_func" >&5
15133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15134 if eval "test \"\${$as_ac_var+set}\" = set"; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15145 #define $ac_func innocuous_$ac_func
15147 /* System header to define __stub macros and hopefully few prototypes,
15148 which can conflict with char $ac_func (); below.
15149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15150 <limits.h> exists even on freestanding compilers. */
15153 # include <limits.h>
15155 # include <assert.h>
15160 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15168 /* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15174 char (*f) () = $ac_func;
15183 return f != $ac_func;
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15190 (eval $ac_link) 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -z "$ac_c_werror_flag"
15198 || test ! -s conftest.err'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest$ac_exeext'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 eval "$as_ac_var=yes"
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 eval "$as_ac_var=no"
15217 rm -f conftest.err conftest.$ac_objext \
15218 conftest$ac_exeext conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15222 if test `eval echo '${'$as_ac_var'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15232 for ac_func in strtoull strtouq
15234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_var+set}\" = set"; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 cat >conftest.$ac_ext <<_ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15256 # include <limits.h>
15258 # include <assert.h>
15263 /* Override any gcc2 internal prototype to avoid an error. */
15268 /* We use char because int might match the return type of a gcc2
15269 builtin and then its argument prototype would still apply. */
15271 /* The GNU C library defines this for functions which it implements
15272 to always fail with ENOSYS. Some functions are actually named
15273 something starting with __ and the normal name is an alias. */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15277 char (*f) () = $ac_func;
15286 return f != $ac_func;
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -z "$ac_c_werror_flag"
15301 || test ! -s conftest.err'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest$ac_exeext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 eval "$as_ac_var=yes"
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 eval "$as_ac_var=no"
15320 rm -f conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15325 if test `eval echo '${'$as_ac_var'}'` = yes; then
15326 cat >>confdefs.h <<_ACEOF
15327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15334 # Check for one of atexit() or on_exit()
15336 for ac_func in atexit
15338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15339 echo "$as_me:$LINENO: checking for $ac_func" >&5
15340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15341 if eval "test \"\${$as_ac_var+set}\" = set"; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15352 #define $ac_func innocuous_$ac_func
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char $ac_func (); below.
15356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15357 <limits.h> exists even on freestanding compilers. */
15360 # include <limits.h>
15362 # include <assert.h>
15367 /* Override any gcc2 internal prototype to avoid an error. */
15372 /* We use char because int might match the return type of a gcc2
15373 builtin and then its argument prototype would still apply. */
15375 /* The GNU C library defines this for functions which it implements
15376 to always fail with ENOSYS. Some functions are actually named
15377 something starting with __ and the normal name is an alias. */
15378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15381 char (*f) () = $ac_func;
15390 return f != $ac_func;
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15397 (eval $ac_link) 2>conftest.er1
15399 grep -v '^ *+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -z "$ac_c_werror_flag"
15405 || test ! -s conftest.err'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; } &&
15411 { ac_try='test -s conftest$ac_exeext'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15417 eval "$as_ac_var=yes"
15419 echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15422 eval "$as_ac_var=no"
15424 rm -f conftest.err conftest.$ac_objext \
15425 conftest$ac_exeext conftest.$ac_ext
15427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15429 if test `eval echo '${'$as_ac_var'}'` = yes; then
15430 cat >>confdefs.h <<_ACEOF
15431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15436 for ac_func in on_exit
15438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15439 echo "$as_me:$LINENO: checking for $ac_func" >&5
15440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15441 if eval "test \"\${$as_ac_var+set}\" = set"; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15452 #define $ac_func innocuous_$ac_func
15454 /* System header to define __stub macros and hopefully few prototypes,
15455 which can conflict with char $ac_func (); below.
15456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15457 <limits.h> exists even on freestanding compilers. */
15460 # include <limits.h>
15462 # include <assert.h>
15467 /* Override any gcc2 internal prototype to avoid an error. */
15472 /* We use char because int might match the return type of a gcc2
15473 builtin and then its argument prototype would still apply. */
15475 /* The GNU C library defines this for functions which it implements
15476 to always fail with ENOSYS. Some functions are actually named
15477 something starting with __ and the normal name is an alias. */
15478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 char (*f) () = $ac_func;
15490 return f != $ac_func;
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15497 (eval $ac_link) 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_c_werror_flag"
15505 || test ! -s conftest.err'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest$ac_exeext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 eval "$as_ac_var=yes"
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 eval "$as_ac_var=no"
15524 rm -f conftest.err conftest.$ac_objext \
15525 conftest$ac_exeext conftest.$ac_ext
15527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15529 if test `eval echo '${'$as_ac_var'}'` = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15535 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15536 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15537 { (exit 1); exit 1; }; }
15545 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15546 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15547 if test "${ac_cv_sys_largefile_source+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 ac_cv_sys_largefile_source=no
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15567 rm -f conftest.$ac_objext
15568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15569 (eval $ac_compile) 2>conftest.er1
15571 grep -v '^ *+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -z "$ac_c_werror_flag"
15577 || test ! -s conftest.err'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest.$ac_objext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 #define _LARGEFILE_SOURCE 1
15612 rm -f conftest.$ac_objext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15614 (eval $ac_compile) 2>conftest.er1
15616 grep -v '^ *+' conftest.er1 >conftest.err
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_c_werror_flag"
15622 || test ! -s conftest.err'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_sys_largefile_source=1; break
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15644 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15645 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15646 if test "$ac_cv_sys_largefile_source" != no; then
15648 cat >>confdefs.h <<_ACEOF
15649 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15655 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15656 # in glibc 2.1.3, but that breaks too many other things.
15657 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15658 echo "$as_me:$LINENO: checking for fseeko" >&5
15659 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15660 if test "${ac_cv_func_fseeko+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15673 return fseeko && fseeko (stdin, 0, 0);
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest$ac_exeext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_cv_func_fseeko=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_cv_func_fseeko=no
15707 rm -f conftest.err conftest.$ac_objext \
15708 conftest$ac_exeext conftest.$ac_ext
15710 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15711 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15712 if test $ac_cv_func_fseeko = yes; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_FSEEKO 1
15724 # For each platform, we need to know about any special compile and link
15725 # libraries, and whether the normal C function names are thread-safe.
15726 # See the comment at the top of src/port/thread.c for more information.
15728 if test "$enable_thread_safety" = yes; then
15734 ac_cpp='$CPP $CPPFLAGS'
15735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15741 # We used to check for pthread.h first, but this fails if pthread.h
15742 # requires special compiler flags (e.g. on True64 or Sequent).
15743 # It gets checked for in the link test anyway.
15745 # First of all, check if the user has set any of the PTHREAD_LIBS,
15746 # etcetera environment variables, and if threads linking works using
15748 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15749 save_CFLAGS="$CFLAGS"
15750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15752 LIBS="$PTHREAD_LIBS $LIBS"
15753 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15754 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15762 /* Override any gcc2 internal prototype to avoid an error. */
15766 /* We use char because int might match the return type of a gcc2
15767 builtin and then its argument prototype would still apply. */
15768 char pthread_join ();
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779 (eval $ac_link) 2>conftest.er1
15781 grep -v '^ *+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
15786 { ac_try='test -z "$ac_c_werror_flag"
15787 || test ! -s conftest.err'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; } &&
15793 { ac_try='test -s conftest$ac_exeext'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15805 rm -f conftest.err conftest.$ac_objext \
15806 conftest$ac_exeext conftest.$ac_ext
15807 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15808 echo "${ECHO_T}$acx_pthread_ok" >&6
15809 if test x"$acx_pthread_ok" = xno; then
15814 CFLAGS="$save_CFLAGS"
15817 # We must check for the threads library under a number of different
15818 # names; the ordering is very important because some systems
15819 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15820 # libraries is broken (non-POSIX).
15822 # Create a list of thread flags to try. Items starting with a "-" are
15823 # C compiler flags, and other items are library names, except for "none"
15824 # which indicates that we try without any flags at all, and "pthread-config"
15825 # which is a program returning the flags for the Pth emulation library.
15827 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
15829 # The ordering *is* (sometimes) important. Some notes on the
15830 # individual items follow:
15832 # pthreads: AIX (must check this before -lpthread)
15833 # none: in case threads are in libc; should be tried before -Kthread and
15834 # other compiler flags to prevent continual compiler warnings
15835 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15836 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15837 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15838 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15839 # -pthreads: Solaris/gcc
15840 # -mthreads: Mingw32/gcc, Lynx/gcc
15841 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15842 # doesn't hurt to check since this sometimes defines pthreads too;
15843 # also defines -D_REENTRANT)
15844 # pthread: Linux, etcetera
15845 # --thread-safe: KAI C++
15846 # pthread-config: use pthread-config program (for GNU Pth library)
15848 case "${host_cpu}-${host_os}" in
15851 # On Solaris (at least, for some versions), libc contains stubbed
15852 # (non-functional) versions of the pthreads routines, so link-based
15853 # tests will erroneously succeed. (We need to link with -pthread or
15854 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15855 # a function called by this macro, so we could check for that, but
15856 # who knows whether they'll stub that too in a future libc.) So,
15857 # we'll just look for -pthreads and -lpthread first:
15859 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15863 if test x"$acx_pthread_ok" = xno; then
15864 for flag in $acx_pthread_flags; do
15866 tryPTHREAD_CFLAGS=""
15870 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15871 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15875 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15876 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15877 tryPTHREAD_CFLAGS="$flag"
15881 # skip this if we already have flags defined, for PostgreSQL
15882 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
15883 # Extract the first word of "pthread-config", so it can be a program name with args.
15884 set dummy pthread-config; ac_word=$2
15885 echo "$as_me:$LINENO: checking for $ac_word" >&5
15886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15887 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 if test -n "$acx_pthread_config"; then
15891 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15894 for as_dir in $PATH
15897 test -z "$as_dir" && as_dir=.
15898 for ac_exec_ext in '' $ac_executable_extensions; do
15899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15900 ac_cv_prog_acx_pthread_config="yes"
15901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15907 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15910 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15911 if test -n "$acx_pthread_config"; then
15912 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15913 echo "${ECHO_T}$acx_pthread_config" >&6
15915 echo "$as_me:$LINENO: result: no" >&5
15916 echo "${ECHO_T}no" >&6
15919 if test x"$acx_pthread_config" = xno; then continue; fi
15920 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
15921 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15925 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15926 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
15927 tryPTHREAD_LIBS="-l$flag"
15932 save_CFLAGS="$CFLAGS"
15933 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
15934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
15936 # Check for various functions. We must include pthread.h,
15937 # since some functions may be macros. (On the Sequent, we
15938 # need a special flag -Kthread to make this header compile.)
15939 # We check for pthread_join because it is in -lpthread on IRIX
15940 # while pthread_create is in libc. We check for pthread_attr_init
15941 # due to DEC craziness with -lpthreads. We check for
15942 # pthread_cleanup_push because it is one of the few pthread
15943 # functions on Solaris that doesn't have a non-functional libc stub.
15944 # We try pthread_create on general principles.
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <pthread.h>
15955 pthread_t th; pthread_join(th, 0);
15956 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15957 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>conftest.er1
15966 grep -v '^ *+' conftest.er1 >conftest.err
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } &&
15971 { ac_try='test -z "$ac_c_werror_flag"
15972 || test ! -s conftest.err'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest$ac_exeext'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15991 rm -f conftest.err conftest.$ac_objext \
15992 conftest$ac_exeext conftest.$ac_ext
15994 if test "x$acx_pthread_ok" = xyes; then
15995 # Don't use options that are ignored by the compiler.
15996 # We find them by checking stderror.
15997 cat >conftest.$ac_ext <<_ACEOF
15999 main (int argc, char **argv)
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16008 # we continue with more flags because Linux needs -lpthread
16009 # for libpq builds on PostgreSQL. The test above only
16010 # tests for building binaries, not shared libraries.
16011 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16012 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16013 else acx_pthread_ok=no
16018 CFLAGS="$save_CFLAGS"
16020 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16021 echo "${ECHO_T}$acx_pthread_ok" >&6
16025 # Various other checks:
16026 if test "x$acx_pthread_ok" = xyes; then
16028 LIBS="$PTHREAD_LIBS $LIBS"
16029 save_CFLAGS="$CFLAGS"
16030 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16032 # Detect AIX lossage: threads are created detached by default
16033 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16034 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16035 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #include <pthread.h>
16046 int attr=PTHREAD_CREATE_JOINABLE;
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16053 (eval $ac_link) 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ok=PTHREAD_CREATE_JOINABLE
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16080 rm -f conftest.err conftest.$ac_objext \
16081 conftest$ac_exeext conftest.$ac_ext
16082 if test x"$ok" = xunknown; then
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 #include <pthread.h>
16093 int attr=PTHREAD_CREATE_UNDETACHED;
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16100 (eval $ac_link) 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
16107 { ac_try='test -z "$ac_c_werror_flag"
16108 || test ! -s conftest.err'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; } &&
16114 { ac_try='test -s conftest$ac_exeext'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ok=PTHREAD_CREATE_UNDETACHED
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16127 rm -f conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16130 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16132 cat >>confdefs.h <<\_ACEOF
16133 #define PTHREAD_CREATE_JOINABLE $ok
16137 echo "$as_me:$LINENO: result: ${ok}" >&5
16138 echo "${ECHO_T}${ok}" >&6
16139 if test x"$ok" = xunknown; then
16140 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16141 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16144 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16145 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16147 # We always add these in PostgreSQL
16148 # case "${host_cpu}-${host_os}" in
16149 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16150 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16152 echo "$as_me:$LINENO: result: ${flag}" >&5
16153 echo "${ECHO_T}${flag}" >&6
16154 if test "x$flag" != xno; then
16155 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16159 CFLAGS="$save_CFLAGS"
16161 # Supporting cc_r would require a special CC in all places that
16162 # use libpq, and that is ugly, so we don't do it. Users can still
16163 # define their compiler as cc_r to do thread builds of everything.
16164 # More AIX lossage: must compile with cc_r
16165 # Extract the first word of "cc_r", so it can be a program name with args.
16166 set dummy cc_r; ac_word=$2
16167 echo "$as_me:$LINENO: checking for $ac_word" >&5
16168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16169 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 if test -n "$PTHREAD_CC"; then
16173 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $PATH
16179 test -z "$as_dir" && as_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182 ac_cv_prog_PTHREAD_CC="cc_r"
16183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16189 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16192 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16193 if test -n "$PTHREAD_CC"; then
16194 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16195 echo "${ECHO_T}$PTHREAD_CC" >&6
16197 echo "$as_me:$LINENO: result: no" >&5
16198 echo "${ECHO_T}no" >&6
16209 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16210 if test x"$acx_pthread_ok" = xyes; then
16212 cat >>confdefs.h <<\_ACEOF
16213 #define HAVE_PTHREAD 1
16222 ac_cpp='$CPP $CPPFLAGS'
16223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16229 # Some platforms use these, so just defineed them. They can't hurt if they
16230 # are not supported.
16231 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16234 # At this point, we don't want to muck with the compiler name for threading.
16235 # Let's see who fails, perhaps AIX. 2004-04-23
16236 if test "$PTHREAD_CC" != "$CC"; then
16237 { { echo "$as_me:$LINENO: error:
16238 PostgreSQL does not support platforms that require a special
16239 compiler binary for thread-safety.
16241 echo "$as_me: error:
16242 PostgreSQL does not support platforms that require a special
16243 compiler binary for thread-safety.
16245 { (exit 1); exit 1; }; }
16248 if test "$THREAD_SUPPORT" = no; then
16249 { { echo "$as_me:$LINENO: error:
16250 Cannot enable threads on your platform.
16251 Your platform is known to not support thread-safe programs.
16252 For details, compile and run src/bin/pg_thread_test.
16254 echo "$as_me: error:
16255 Cannot enable threads on your platform.
16256 Your platform is known to not support thread-safe programs.
16257 For details, compile and run src/bin/pg_thread_test.
16259 { (exit 1); exit 1; }; }
16262 # Check for *_r functions
16265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16266 LIBS="$LIBS $PTHREAD_LIBS"
16268 if test "${ac_cv_header_pthread_h+set}" = set; then
16269 echo "$as_me:$LINENO: checking for pthread.h" >&5
16270 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16271 if test "${ac_cv_header_pthread_h+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16275 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16277 # Is the header compilable?
16278 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16279 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16280 cat >conftest.$ac_ext <<_ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 $ac_includes_default
16287 #include <pthread.h>
16289 rm -f conftest.$ac_objext
16290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16291 (eval $ac_compile) 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
16298 { ac_try='test -z "$ac_c_werror_flag"
16299 || test ! -s conftest.err'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; } &&
16305 { ac_try='test -s conftest.$ac_objext'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 ac_header_compiler=yes
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_header_compiler=no
16318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16320 echo "${ECHO_T}$ac_header_compiler" >&6
16322 # Is the header present?
16323 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16324 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16325 cat >conftest.$ac_ext <<_ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 #include <pthread.h>
16333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16336 grep -v '^ *+' conftest.er1 >conftest.err
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } >/dev/null; then
16341 if test -s conftest.err; then
16342 ac_cpp_err=$ac_c_preproc_warn_flag
16343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16350 if test -z "$ac_cpp_err"; then
16351 ac_header_preproc=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_header_preproc=no
16358 rm -f conftest.err conftest.$ac_ext
16359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16360 echo "${ECHO_T}$ac_header_preproc" >&6
16362 # So? What about this header?
16363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16365 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16366 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16368 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16369 ac_header_preproc=yes
16372 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16373 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16375 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16377 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16379 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16381 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16383 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16386 ## ---------------------------------------- ##
16387 ## Report this to pgsql-bugs@postgresql.org ##
16388 ## ---------------------------------------- ##
16391 sed "s/^/$as_me: WARNING: /" >&2
16394 echo "$as_me:$LINENO: checking for pthread.h" >&5
16395 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16396 if test "${ac_cv_header_pthread_h+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 ac_cv_header_pthread_h=$ac_header_preproc
16401 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16402 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16405 if test $ac_cv_header_pthread_h = yes; then
16408 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16409 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16410 { (exit 1); exit 1; }; }
16418 for ac_func in strerror_r getpwuid_r gethostbyname_r
16420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16421 echo "$as_me:$LINENO: checking for $ac_func" >&5
16422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16423 if eval "test \"\${$as_ac_var+set}\" = set"; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16434 #define $ac_func innocuous_$ac_func
16436 /* System header to define __stub macros and hopefully few prototypes,
16437 which can conflict with char $ac_func (); below.
16438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439 <limits.h> exists even on freestanding compilers. */
16442 # include <limits.h>
16444 # include <assert.h>
16449 /* Override any gcc2 internal prototype to avoid an error. */
16454 /* We use char because int might match the return type of a gcc2
16455 builtin and then its argument prototype would still apply. */
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16463 char (*f) () = $ac_func;
16472 return f != $ac_func;
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16479 (eval $ac_link) 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest$ac_exeext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 eval "$as_ac_var=yes"
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 eval "$as_ac_var=no"
16506 rm -f conftest.err conftest.$ac_objext \
16507 conftest$ac_exeext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16511 if test `eval echo '${'$as_ac_var'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16520 # Do test here with the proper thread flags
16521 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16522 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16523 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <sys/types.h>
16538 struct passwd *space;
16541 struct passwd **result;
16542 getpwuid_r(uid, space, buf, bufsize, result);
16547 rm -f conftest.$ac_objext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16549 (eval $ac_compile) 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag"
16557 || test ! -s conftest.err'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 pgac_func_getpwuid_r_5arg=yes
16571 echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16574 pgac_func_getpwuid_r_5arg=no
16576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16578 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
16579 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
16580 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
16582 cat >>confdefs.h <<\_ACEOF
16583 #define GETPWUID_R_5ARG
16588 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
16589 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
16590 if test "${pgac_func_strerror_r_int+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <string.h>
16604 int strerror_r(int, char *, size_t);
16606 /* Older AIX has 'int' for the third argument so we don't test the args. */
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615 (eval $ac_compile) 2>conftest.er1
16617 grep -v '^ *+' conftest.er1 >conftest.err
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest.$ac_objext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 pgac_func_strerror_r_int=yes
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 pgac_func_strerror_r_int=no
16642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16644 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
16645 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
16646 if test x"$pgac_func_strerror_r_int" = xyes ; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define STRERROR_R_INT
16659 # do not use values from template file
16668 # This test makes sure that run tests work at all. Sometimes a shared
16669 # library is found by the linker, but the runtime linker can't find it.
16670 # This check should come after all modifications of compiler or linker
16671 # variables, and before any other run tests.
16672 echo "$as_me:$LINENO: checking test program" >&5
16673 echo $ECHO_N "checking test program... $ECHO_C" >&6
16674 if test "$cross_compiling" = yes; then
16675 echo "$as_me:$LINENO: result: cross-compiling" >&5
16676 echo "${ECHO_T}cross-compiling" >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 int main() { return 0; }
16686 rm -f conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 echo "$as_me:$LINENO: result: ok" >&5
16698 echo "${ECHO_T}ok" >&6
16700 echo "$as_me: program exited with status $ac_status" >&5
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ( exit $ac_status )
16705 echo "$as_me:$LINENO: result: failed" >&5
16706 echo "${ECHO_T}failed" >&6
16707 { { echo "$as_me:$LINENO: error:
16708 *** Could not execute a simple test program. This may be a problem
16709 *** related to locating shared libraries. Check the file 'config.log'
16710 *** for the exact reason." >&5
16711 echo "$as_me: error:
16712 *** Could not execute a simple test program. This may be a problem
16713 *** related to locating shared libraries. Check the file 'config.log'
16714 *** for the exact reason." >&2;}
16715 { (exit 1); exit 1; }; }
16717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16720 # --------------------
16721 # Run tests below here
16722 # --------------------
16724 # Force use of our snprintf if system's doesn't do arg control
16725 # See comment above at snprintf test for details.
16726 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
16727 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
16728 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
16729 if test "${pgac_cv_printf_arg_control+set}" = set; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 if test "$cross_compiling" = yes; then
16733 pgac_cv_printf_arg_control=cross
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16742 #include <string.h>
16748 /* can it swap arguments? */
16749 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
16750 if (strcmp(buf, "4 3") != 0)
16755 rm -f conftest$ac_exeext
16756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16757 (eval $ac_link) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 pgac_cv_printf_arg_control=yes
16768 echo "$as_me: program exited with status $ac_status" >&5
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ( exit $ac_status )
16773 pgac_cv_printf_arg_control=no
16775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
16780 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
16782 if test $pgac_cv_printf_arg_control != yes ; then
16783 pgac_need_repl_snprintf=yes
16789 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
16790 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
16791 if test "${pgac_cv_type_long_int_64+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 if test "$cross_compiling" = yes; then
16795 # If cross-compiling, check the size reported by the compiler and
16796 # trust that the arithmetic works.
16797 cat >conftest.$ac_ext <<_ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16807 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16814 rm -f conftest.$ac_objext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816 (eval $ac_compile) 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag"
16824 || test ! -s conftest.err'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 pgac_cv_type_long_int_64=yes
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 pgac_cv_type_long_int_64=no
16843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16845 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 typedef long int ac_int64;
16854 * These are globals to discourage the compiler from folding all the
16855 * arithmetic tests down to compile-time constants.
16857 ac_int64 a = 20000001;
16858 ac_int64 b = 40000005;
16860 int does_int64_work()
16864 if (sizeof(ac_int64) != 8)
16865 return 0; /* definitely not the right size */
16867 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16875 exit(! does_int64_work());
16878 rm -f conftest$ac_exeext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 pgac_cv_type_long_int_64=yes
16891 echo "$as_me: program exited with status $ac_status" >&5
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 ( exit $ac_status )
16896 pgac_cv_type_long_int_64=no
16898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16901 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
16902 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
16904 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
16905 if test x"$pgac_cv_type_long_int_64" = xyes ; then
16907 cat >>confdefs.h <<\_ACEOF
16908 #define HAVE_LONG_INT_64
16914 if test x"$HAVE_LONG_INT_64" = x"no" ; then
16915 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
16916 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
16917 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 if test "$cross_compiling" = yes; then
16921 # If cross-compiling, check the size reported by the compiler and
16922 # trust that the arithmetic works.
16923 cat >conftest.$ac_ext <<_ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16933 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16940 rm -f conftest.$ac_objext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 pgac_cv_type_long_long_int_64=yes
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 pgac_cv_type_long_long_int_64=no
16969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 typedef long long int ac_int64;
16980 * These are globals to discourage the compiler from folding all the
16981 * arithmetic tests down to compile-time constants.
16983 ac_int64 a = 20000001;
16984 ac_int64 b = 40000005;
16986 int does_int64_work()
16990 if (sizeof(ac_int64) != 8)
16991 return 0; /* definitely not the right size */
16993 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17001 exit(! does_int64_work());
17004 rm -f conftest$ac_exeext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006 (eval $ac_link) 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 pgac_cv_type_long_long_int_64=yes
17017 echo "$as_me: program exited with status $ac_status" >&5
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ( exit $ac_status )
17022 pgac_cv_type_long_long_int_64=no
17024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17027 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17028 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17030 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17031 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define HAVE_LONG_LONG_INT_64
17043 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17044 cat >conftest.$ac_ext <<_ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17051 #define INT64CONST(x) x##LL
17052 long long int foo = INT64CONST(0x1234567890123456);
17062 rm -f conftest.$ac_objext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17064 (eval $ac_compile) 2>conftest.er1
17066 grep -v '^ *+' conftest.er1 >conftest.err
17068 cat conftest.err >&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try='test -z "$ac_c_werror_flag"
17072 || test ! -s conftest.err'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try='test -s conftest.$ac_objext'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_LL_CONSTANTS 1
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17098 # If we found "long int" is 64 bits, assume snprintf handles it. If
17099 # we found we need to use "long long int", better check. We cope with
17100 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17101 # work, fall back to our own snprintf emulation (which we know uses %lld).
17103 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17104 if test $pgac_need_repl_snprintf = no; then
17105 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17106 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17107 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 for pgac_format in '%lld' '%qd' '%I64d'; do
17111 if test "$cross_compiling" = yes; then
17112 pgac_cv_snprintf_long_long_int_format=cross; break
17114 cat >conftest.$ac_ext <<_ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17121 typedef long long int ac_int64;
17122 #define INT64_FORMAT "$pgac_format"
17124 ac_int64 a = 20000001;
17125 ac_int64 b = 40000005;
17127 int does_int64_snprintf_work()
17132 if (sizeof(ac_int64) != 8)
17133 return 0; /* doesn't look like the right size */
17136 snprintf(buf, 100, INT64_FORMAT, c);
17137 if (strcmp(buf, "800000140000005") != 0)
17138 return 0; /* either multiply or snprintf is busted */
17142 exit(! does_int64_snprintf_work());
17145 rm -f conftest$ac_exeext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17158 echo "$as_me: program exited with status $ac_status" >&5
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17168 LONG_LONG_INT_FORMAT=''
17170 case $pgac_cv_snprintf_long_long_int_format in
17171 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17172 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17173 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17174 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17175 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17176 *) echo "$as_me:$LINENO: result: none" >&5
17177 echo "${ECHO_T}none" >&6;;
17179 if test "$LONG_LONG_INT_FORMAT" = ""; then
17180 # Force usage of our own snprintf, since system snprintf is broken
17181 pgac_need_repl_snprintf=yes
17182 LONG_LONG_INT_FORMAT='%lld'
17185 # Here if we previously decided we needed to use our own snprintf
17186 LONG_LONG_INT_FORMAT='%lld'
17188 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17189 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17190 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17192 # Here if we are not using 'long long int' at all
17193 INT64_FORMAT='"%ld"'
17194 UINT64_FORMAT='"%lu"'
17198 cat >>confdefs.h <<_ACEOF
17199 #define INT64_FORMAT $INT64_FORMAT
17204 cat >>confdefs.h <<_ACEOF
17205 #define UINT64_FORMAT $UINT64_FORMAT
17209 # Now we have checked all the reasons to replace snprintf
17210 if test $pgac_need_repl_snprintf = yes; then
17212 cat >>confdefs.h <<\_ACEOF
17213 #define USE_REPL_SNPRINTF 1
17217 "snprintf.$ac_objext" | \
17218 *" snprintf.$ac_objext" | \
17219 "snprintf.$ac_objext "* | \
17220 *" snprintf.$ac_objext "* ) ;;
17221 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17226 # Need a #define for the size of Datum (unsigned long)
17227 echo "$as_me:$LINENO: checking for unsigned long" >&5
17228 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17229 if test "${ac_cv_type_unsigned_long+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17242 if ((unsigned long *) 0)
17244 if (sizeof (unsigned long))
17250 rm -f conftest.$ac_objext
17251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17252 (eval $ac_compile) 2>conftest.er1
17254 grep -v '^ *+' conftest.er1 >conftest.err
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag"
17260 || test ! -s conftest.err'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; } &&
17266 { ac_try='test -s conftest.$ac_objext'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_cv_type_unsigned_long=yes
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_cv_type_unsigned_long=no
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17281 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17282 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17284 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17285 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17286 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 if test "$ac_cv_type_unsigned_long" = yes; then
17290 # The cast to unsigned long works around a bug in the HP C Compiler
17291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17293 # This bug is HP SR number 8606223364.
17294 if test "$cross_compiling" = yes; then
17295 # Depending upon the size, compute the lo and hi bounds.
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 $ac_includes_default
17306 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17343 $ac_includes_default
17347 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17354 rm -f conftest.$ac_objext
17355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17356 (eval $ac_compile) 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag"
17364 || test ! -s conftest.err'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_hi=$ac_mid; break
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_lo=`expr $ac_mid + 1`
17382 if test $ac_lo -le $ac_mid; then
17386 ac_mid=`expr 2 '*' $ac_mid + 1`
17388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 $ac_includes_default
17404 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17411 rm -f conftest.$ac_objext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413 (eval $ac_compile) 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -z "$ac_c_werror_flag"
17421 || test ! -s conftest.err'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest.$ac_objext'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 $ac_includes_default
17445 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17452 rm -f conftest.$ac_objext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17454 (eval $ac_compile) 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag"
17462 || test ! -s conftest.err'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_lo=$ac_mid; break
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_hi=`expr '(' $ac_mid ')' - 1`
17480 if test $ac_mid -le $ac_hi; then
17484 ac_mid=`expr 2 '*' $ac_mid`
17486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17497 # Binary search between lo and hi bounds.
17498 while test "x$ac_lo" != "x$ac_hi"; do
17499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 $ac_includes_default
17510 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17517 rm -f conftest.$ac_objext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17519 (eval $ac_compile) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag"
17527 || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest.$ac_objext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_lo=`expr '(' $ac_mid ')' + 1`
17546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17549 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17550 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17551 See \`config.log' for more details." >&5
17552 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17553 See \`config.log' for more details." >&2;}
17554 { (exit 1); exit 1; }; } ;;
17557 if test "$cross_compiling" = yes; then
17558 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17559 See \`config.log' for more details." >&5
17560 echo "$as_me: error: cannot run test program while cross compiling
17561 See \`config.log' for more details." >&2;}
17562 { (exit 1); exit 1; }; }
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 $ac_includes_default
17571 long longval () { return (long) (sizeof (unsigned long)); }
17572 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17574 #include <stdlib.h>
17579 FILE *f = fopen ("conftest.val", "w");
17582 if (((long) (sizeof (unsigned long))) < 0)
17584 long i = longval ();
17585 if (i != ((long) (sizeof (unsigned long))))
17587 fprintf (f, "%ld\n", i);
17591 unsigned long i = ulongval ();
17592 if (i != ((long) (sizeof (unsigned long))))
17594 fprintf (f, "%lu\n", i);
17596 exit (ferror (f) || fclose (f) != 0);
17602 rm -f conftest$ac_exeext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17604 (eval $ac_link) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_sizeof_unsigned_long=`cat conftest.val`
17615 echo "$as_me: program exited with status $ac_status" >&5
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ( exit $ac_status )
17620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17621 See \`config.log' for more details." >&5
17622 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17623 See \`config.log' for more details." >&2;}
17624 { (exit 1); exit 1; }; }
17626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17631 ac_cv_sizeof_unsigned_long=0
17634 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17635 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17636 cat >>confdefs.h <<_ACEOF
17637 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17642 # And one for the size of size_t (enables tweaks for > 32bit address space)
17643 echo "$as_me:$LINENO: checking for size_t" >&5
17644 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17645 if test "${ac_cv_type_size_t+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17654 $ac_includes_default
17660 if (sizeof (size_t))
17666 rm -f conftest.$ac_objext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17668 (eval $ac_compile) 2>conftest.er1
17670 grep -v '^ *+' conftest.er1 >conftest.err
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try='test -z "$ac_c_werror_flag"
17676 || test ! -s conftest.err'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_type_size_t=yes
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_cv_type_size_t=no
17695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17697 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17698 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17700 echo "$as_me:$LINENO: checking size of size_t" >&5
17701 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17702 if test "${ac_cv_sizeof_size_t+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 if test "$ac_cv_type_size_t" = yes; then
17706 # The cast to unsigned long works around a bug in the HP C Compiler
17707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17709 # This bug is HP SR number 8606223364.
17710 if test "$cross_compiling" = yes; then
17711 # Depending upon the size, compute the lo and hi bounds.
17712 cat >conftest.$ac_ext <<_ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17718 $ac_includes_default
17722 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17729 rm -f conftest.$ac_objext
17730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17731 (eval $ac_compile) 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag"
17739 || test ! -s conftest.err'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; } &&
17745 { ac_try='test -s conftest.$ac_objext'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 $ac_includes_default
17763 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17770 rm -f conftest.$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772 (eval $ac_compile) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest.$ac_objext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_hi=$ac_mid; break
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_lo=`expr $ac_mid + 1`
17798 if test $ac_lo -le $ac_mid; then
17802 ac_mid=`expr 2 '*' $ac_mid + 1`
17804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 cat >conftest.$ac_ext <<_ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17820 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17827 rm -f conftest.$ac_objext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>conftest.er1
17831 grep -v '^ *+' conftest.er1 >conftest.err
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest.$ac_objext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 $ac_includes_default
17861 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17868 rm -f conftest.$ac_objext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag"
17878 || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest.$ac_objext'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_lo=$ac_mid; break
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_hi=`expr '(' $ac_mid ')' - 1`
17896 if test $ac_mid -le $ac_hi; then
17900 ac_mid=`expr 2 '*' $ac_mid`
17902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17913 # Binary search between lo and hi bounds.
17914 while test "x$ac_lo" != "x$ac_hi"; do
17915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17916 cat >conftest.$ac_ext <<_ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17922 $ac_includes_default
17926 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17933 rm -f conftest.$ac_objext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>conftest.er1
17937 grep -v '^ *+' conftest.er1 >conftest.err
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest.$ac_objext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_lo=`expr '(' $ac_mid ')' + 1`
17962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17966 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17967 See \`config.log' for more details." >&5
17968 echo "$as_me: error: cannot compute sizeof (size_t), 77
17969 See \`config.log' for more details." >&2;}
17970 { (exit 1); exit 1; }; } ;;
17973 if test "$cross_compiling" = yes; then
17974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17975 See \`config.log' for more details." >&5
17976 echo "$as_me: error: cannot run test program while cross compiling
17977 See \`config.log' for more details." >&2;}
17978 { (exit 1); exit 1; }; }
17980 cat >conftest.$ac_ext <<_ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 $ac_includes_default
17987 long longval () { return (long) (sizeof (size_t)); }
17988 unsigned long ulongval () { return (long) (sizeof (size_t)); }
17990 #include <stdlib.h>
17995 FILE *f = fopen ("conftest.val", "w");
17998 if (((long) (sizeof (size_t))) < 0)
18000 long i = longval ();
18001 if (i != ((long) (sizeof (size_t))))
18003 fprintf (f, "%ld\n", i);
18007 unsigned long i = ulongval ();
18008 if (i != ((long) (sizeof (size_t))))
18010 fprintf (f, "%lu\n", i);
18012 exit (ferror (f) || fclose (f) != 0);
18018 rm -f conftest$ac_exeext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18020 (eval $ac_link) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_sizeof_size_t=`cat conftest.val`
18031 echo "$as_me: program exited with status $ac_status" >&5
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ( exit $ac_status )
18036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18037 See \`config.log' for more details." >&5
18038 echo "$as_me: error: cannot compute sizeof (size_t), 77
18039 See \`config.log' for more details." >&2;}
18040 { (exit 1); exit 1; }; }
18042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18047 ac_cv_sizeof_size_t=0
18050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18051 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18052 cat >>confdefs.h <<_ACEOF
18053 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18058 # Determine memory alignment requirements for the basic C data types.
18060 echo "$as_me:$LINENO: checking for short" >&5
18061 echo $ECHO_N "checking for short... $ECHO_C" >&6
18062 if test "${ac_cv_type_short+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 $ac_includes_default
18077 if (sizeof (short))
18083 rm -f conftest.$ac_objext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18085 (eval $ac_compile) 2>conftest.er1
18087 grep -v '^ *+' conftest.er1 >conftest.err
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try='test -z "$ac_c_werror_flag"
18093 || test ! -s conftest.err'
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try='test -s conftest.$ac_objext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 ac_cv_type_short=yes
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_cv_type_short=no
18112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18115 echo "${ECHO_T}$ac_cv_type_short" >&6
18117 echo "$as_me:$LINENO: checking alignment of short" >&5
18118 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18119 if test "${pgac_cv_alignof_short+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 if test "$ac_cv_type_short" = yes; then
18123 if test "$cross_compiling" = yes; then
18124 # Depending upon the size, compute the lo and hi bounds.
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 $ac_includes_default
18132 struct { char filler; short field; } pgac_struct;
18136 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18143 rm -f conftest.$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 $ac_includes_default
18174 struct { char filler; short field; } pgac_struct;
18178 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18185 rm -f conftest.$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_hi=$ac_mid; break
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_lo=`expr $ac_mid + 1`
18213 if test $ac_lo -le $ac_mid; then
18217 ac_mid=`expr 2 '*' $ac_mid + 1`
18219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 struct { char filler; short field; } pgac_struct;
18236 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18243 rm -f conftest.$ac_objext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18245 (eval $ac_compile) 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag"
18253 || test ! -s conftest.err'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; } &&
18259 { ac_try='test -s conftest.$ac_objext'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 $ac_includes_default
18274 struct { char filler; short field; } pgac_struct;
18278 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_lo=$ac_mid; break
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_hi=`expr '(' $ac_mid ')' - 1`
18313 if test $ac_mid -le $ac_hi; then
18317 ac_mid=`expr 2 '*' $ac_mid`
18319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 # Binary search between lo and hi bounds.
18331 while test "x$ac_lo" != "x$ac_hi"; do
18332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18333 cat >conftest.$ac_ext <<_ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18339 $ac_includes_default
18340 struct { char filler; short field; } pgac_struct;
18344 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18351 rm -f conftest.$ac_objext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>conftest.er1
18355 grep -v '^ *+' conftest.er1 >conftest.err
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest.$ac_objext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 ac_lo=`expr '(' $ac_mid ')' + 1`
18380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 ?*) pgac_cv_alignof_short=$ac_lo;;
18384 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18385 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18386 { (exit 1); exit 1; }; } ;;
18389 if test "$cross_compiling" = yes; then
18390 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18391 See \`config.log' for more details." >&5
18392 echo "$as_me: error: cannot run test program while cross compiling
18393 See \`config.log' for more details." >&2;}
18394 { (exit 1); exit 1; }; }
18396 cat >conftest.$ac_ext <<_ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18402 $ac_includes_default
18403 struct { char filler; short field; } pgac_struct;
18404 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18405 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18407 #include <stdlib.h>
18412 FILE *f = fopen ("conftest.val", "w");
18415 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18417 long i = longval ();
18418 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18420 fprintf (f, "%ld\n", i);
18424 unsigned long i = ulongval ();
18425 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18427 fprintf (f, "%lu\n", i);
18429 exit (ferror (f) || fclose (f) != 0);
18435 rm -f conftest$ac_exeext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 pgac_cv_alignof_short=`cat conftest.val`
18448 echo "$as_me: program exited with status $ac_status" >&5
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ( exit $ac_status )
18453 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18454 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18455 { (exit 1); exit 1; }; }
18457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18462 pgac_cv_alignof_short=0
18465 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18466 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18467 cat >>confdefs.h <<_ACEOF
18468 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18472 echo "$as_me:$LINENO: checking for int" >&5
18473 echo $ECHO_N "checking for int... $ECHO_C" >&6
18474 if test "${ac_cv_type_int+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 $ac_includes_default
18495 rm -f conftest.$ac_objext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18497 (eval $ac_compile) 2>conftest.er1
18499 grep -v '^ *+' conftest.er1 >conftest.err
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag"
18505 || test ! -s conftest.err'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest.$ac_objext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18526 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18527 echo "${ECHO_T}$ac_cv_type_int" >&6
18529 echo "$as_me:$LINENO: checking alignment of int" >&5
18530 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18531 if test "${pgac_cv_alignof_int+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 if test "$ac_cv_type_int" = yes; then
18535 if test "$cross_compiling" = yes; then
18536 # Depending upon the size, compute the lo and hi bounds.
18537 cat >conftest.$ac_ext <<_ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 $ac_includes_default
18544 struct { char filler; int field; } pgac_struct;
18548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18555 rm -f conftest.$ac_objext
18556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18557 (eval $ac_compile) 2>conftest.er1
18559 grep -v '^ *+' conftest.er1 >conftest.err
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } &&
18564 { ac_try='test -z "$ac_c_werror_flag"
18565 || test ! -s conftest.err'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 $ac_includes_default
18586 struct { char filler; int field; } pgac_struct;
18590 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599 (eval $ac_compile) 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag"
18607 || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest.$ac_objext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_hi=$ac_mid; break
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_lo=`expr $ac_mid + 1`
18625 if test $ac_lo -le $ac_mid; then
18629 ac_mid=`expr 2 '*' $ac_mid + 1`
18631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 $ac_includes_default
18644 struct { char filler; int field; } pgac_struct;
18648 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18655 rm -f conftest.$ac_objext
18656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18657 (eval $ac_compile) 2>conftest.er1
18659 grep -v '^ *+' conftest.er1 >conftest.err
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -z "$ac_c_werror_flag"
18665 || test ! -s conftest.err'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest.$ac_objext'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 $ac_includes_default
18686 struct { char filler; int field; } pgac_struct;
18690 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18697 rm -f conftest.$ac_objext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18699 (eval $ac_compile) 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag"
18707 || test ! -s conftest.err'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest.$ac_objext'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; }; then
18719 ac_lo=$ac_mid; break
18721 echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18724 ac_hi=`expr '(' $ac_mid ')' - 1`
18725 if test $ac_mid -le $ac_hi; then
18729 ac_mid=`expr 2 '*' $ac_mid`
18731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18742 # Binary search between lo and hi bounds.
18743 while test "x$ac_lo" != "x$ac_hi"; do
18744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18745 cat >conftest.$ac_ext <<_ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 $ac_includes_default
18752 struct { char filler; int field; } pgac_struct;
18756 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18763 rm -f conftest.$ac_objext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765 (eval $ac_compile) 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_lo=`expr '(' $ac_mid ')' + 1`
18792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18795 ?*) pgac_cv_alignof_int=$ac_lo;;
18796 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18797 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18798 { (exit 1); exit 1; }; } ;;
18801 if test "$cross_compiling" = yes; then
18802 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18803 See \`config.log' for more details." >&5
18804 echo "$as_me: error: cannot run test program while cross compiling
18805 See \`config.log' for more details." >&2;}
18806 { (exit 1); exit 1; }; }
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 $ac_includes_default
18815 struct { char filler; int field; } pgac_struct;
18816 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18817 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18819 #include <stdlib.h>
18824 FILE *f = fopen ("conftest.val", "w");
18827 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18829 long i = longval ();
18830 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18832 fprintf (f, "%ld\n", i);
18836 unsigned long i = ulongval ();
18837 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18839 fprintf (f, "%lu\n", i);
18841 exit (ferror (f) || fclose (f) != 0);
18847 rm -f conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849 (eval $ac_link) 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 pgac_cv_alignof_int=`cat conftest.val`
18860 echo "$as_me: program exited with status $ac_status" >&5
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ( exit $ac_status )
18865 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18866 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18867 { (exit 1); exit 1; }; }
18869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18874 pgac_cv_alignof_int=0
18877 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
18878 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
18879 cat >>confdefs.h <<_ACEOF
18880 #define ALIGNOF_INT $pgac_cv_alignof_int
18884 echo "$as_me:$LINENO: checking for long" >&5
18885 echo $ECHO_N "checking for long... $ECHO_C" >&6
18886 if test "${ac_cv_type_long+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 cat >conftest.$ac_ext <<_ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 $ac_includes_default
18907 rm -f conftest.$ac_objext
18908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18909 (eval $ac_compile) 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag"
18917 || test ! -s conftest.err'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_cv_type_long=yes
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18938 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18939 echo "${ECHO_T}$ac_cv_type_long" >&6
18941 echo "$as_me:$LINENO: checking alignment of long" >&5
18942 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
18943 if test "${pgac_cv_alignof_long+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 if test "$ac_cv_type_long" = yes; then
18947 if test "$cross_compiling" = yes; then
18948 # Depending upon the size, compute the lo and hi bounds.
18949 cat >conftest.$ac_ext <<_ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955 $ac_includes_default
18956 struct { char filler; long field; } pgac_struct;
18960 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18967 rm -f conftest.$ac_objext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18969 (eval $ac_compile) 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_c_werror_flag"
18977 || test ! -s conftest.err'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest.$ac_objext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 $ac_includes_default
18998 struct { char filler; long field; } pgac_struct;
19002 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19009 rm -f conftest.$ac_objext
19010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19011 (eval $ac_compile) 2>conftest.er1
19013 grep -v '^ *+' conftest.er1 >conftest.err
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag"
19019 || test ! -s conftest.err'
19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021 (eval $ac_try) 2>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest.$ac_objext'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19031 ac_hi=$ac_mid; break
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 ac_lo=`expr $ac_mid + 1`
19037 if test $ac_lo -le $ac_mid; then
19041 ac_mid=`expr 2 '*' $ac_mid + 1`
19043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 cat >conftest.$ac_ext <<_ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 $ac_includes_default
19056 struct { char filler; long field; } pgac_struct;
19060 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19067 rm -f conftest.$ac_objext
19068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19069 (eval $ac_compile) 2>conftest.er1
19071 grep -v '^ *+' conftest.er1 >conftest.err
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } &&
19076 { ac_try='test -z "$ac_c_werror_flag"
19077 || test ! -s conftest.err'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest.$ac_objext'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 $ac_includes_default
19098 struct { char filler; long field; } pgac_struct;
19102 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19109 rm -f conftest.$ac_objext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19111 (eval $ac_compile) 2>conftest.er1
19113 grep -v '^ *+' conftest.er1 >conftest.err
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -z "$ac_c_werror_flag"
19119 || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest.$ac_objext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 ac_lo=$ac_mid; break
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_hi=`expr '(' $ac_mid ')' - 1`
19137 if test $ac_mid -le $ac_hi; then
19141 ac_mid=`expr 2 '*' $ac_mid`
19143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19154 # Binary search between lo and hi bounds.
19155 while test "x$ac_lo" != "x$ac_hi"; do
19156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19163 $ac_includes_default
19164 struct { char filler; long field; } pgac_struct;
19168 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19175 rm -f conftest.$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_lo=`expr '(' $ac_mid ')' + 1`
19204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19207 ?*) pgac_cv_alignof_long=$ac_lo;;
19208 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19209 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19210 { (exit 1); exit 1; }; } ;;
19213 if test "$cross_compiling" = yes; then
19214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19215 See \`config.log' for more details." >&5
19216 echo "$as_me: error: cannot run test program while cross compiling
19217 See \`config.log' for more details." >&2;}
19218 { (exit 1); exit 1; }; }
19220 cat >conftest.$ac_ext <<_ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19226 $ac_includes_default
19227 struct { char filler; long field; } pgac_struct;
19228 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19229 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19231 #include <stdlib.h>
19236 FILE *f = fopen ("conftest.val", "w");
19239 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19241 long i = longval ();
19242 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19244 fprintf (f, "%ld\n", i);
19248 unsigned long i = ulongval ();
19249 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19251 fprintf (f, "%lu\n", i);
19253 exit (ferror (f) || fclose (f) != 0);
19259 rm -f conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261 (eval $ac_link) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 pgac_cv_alignof_long=`cat conftest.val`
19272 echo "$as_me: program exited with status $ac_status" >&5
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ( exit $ac_status )
19277 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19278 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19279 { (exit 1); exit 1; }; }
19281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19286 pgac_cv_alignof_long=0
19289 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19290 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19291 cat >>confdefs.h <<_ACEOF
19292 #define ALIGNOF_LONG $pgac_cv_alignof_long
19296 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19297 echo "$as_me:$LINENO: checking for long long int" >&5
19298 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19299 if test "${ac_cv_type_long_long_int+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 $ac_includes_default
19312 if ((long long int *) 0)
19314 if (sizeof (long long int))
19320 rm -f conftest.$ac_objext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322 (eval $ac_compile) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_type_long_long_int=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_type_long_long_int=no
19349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19352 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19354 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19355 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19356 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 if test "$ac_cv_type_long_long_int" = yes; then
19360 if test "$cross_compiling" = yes; then
19361 # Depending upon the size, compute the lo and hi bounds.
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 $ac_includes_default
19369 struct { char filler; long long int field; } pgac_struct;
19373 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19404 cat >conftest.$ac_ext <<_ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 $ac_includes_default
19411 struct { char filler; long long int field; } pgac_struct;
19415 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19422 rm -f conftest.$ac_objext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag"
19432 || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_hi=$ac_mid; break
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_lo=`expr $ac_mid + 1`
19450 if test $ac_lo -le $ac_mid; then
19454 ac_mid=`expr 2 '*' $ac_mid + 1`
19456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 $ac_includes_default
19469 struct { char filler; long long int field; } pgac_struct;
19473 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482 (eval $ac_compile) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_c_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest.$ac_objext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19511 struct { char filler; long long int field; } pgac_struct;
19515 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_lo=$ac_mid; break
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_hi=`expr '(' $ac_mid ')' - 1`
19550 if test $ac_mid -le $ac_hi; then
19554 ac_mid=`expr 2 '*' $ac_mid`
19556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567 # Binary search between lo and hi bounds.
19568 while test "x$ac_lo" != "x$ac_hi"; do
19569 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 $ac_includes_default
19577 struct { char filler; long long int field; } pgac_struct;
19581 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_lo=`expr '(' $ac_mid ')' + 1`
19617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19620 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
19621 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19622 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19623 { (exit 1); exit 1; }; } ;;
19626 if test "$cross_compiling" = yes; then
19627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19628 See \`config.log' for more details." >&5
19629 echo "$as_me: error: cannot run test program while cross compiling
19630 See \`config.log' for more details." >&2;}
19631 { (exit 1); exit 1; }; }
19633 cat >conftest.$ac_ext <<_ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 $ac_includes_default
19640 struct { char filler; long long int field; } pgac_struct;
19641 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19642 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19644 #include <stdlib.h>
19649 FILE *f = fopen ("conftest.val", "w");
19652 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19654 long i = longval ();
19655 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19657 fprintf (f, "%ld\n", i);
19661 unsigned long i = ulongval ();
19662 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19664 fprintf (f, "%lu\n", i);
19666 exit (ferror (f) || fclose (f) != 0);
19672 rm -f conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674 (eval $ac_link) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 pgac_cv_alignof_long_long_int=`cat conftest.val`
19685 echo "$as_me: program exited with status $ac_status" >&5
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ( exit $ac_status )
19690 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19691 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19692 { (exit 1); exit 1; }; }
19694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19699 pgac_cv_alignof_long_long_int=0
19702 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
19703 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
19704 cat >>confdefs.h <<_ACEOF
19705 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
19710 echo "$as_me:$LINENO: checking for double" >&5
19711 echo $ECHO_N "checking for double... $ECHO_C" >&6
19712 if test "${ac_cv_type_double+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 $ac_includes_default
19727 if (sizeof (double))
19733 rm -f conftest.$ac_objext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19735 (eval $ac_compile) 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag"
19743 || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_type_double=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_cv_type_double=no
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19765 echo "${ECHO_T}$ac_cv_type_double" >&6
19767 echo "$as_me:$LINENO: checking alignment of double" >&5
19768 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
19769 if test "${pgac_cv_alignof_double+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 if test "$ac_cv_type_double" = yes; then
19773 if test "$cross_compiling" = yes; then
19774 # Depending upon the size, compute the lo and hi bounds.
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 $ac_includes_default
19782 struct { char filler; double field; } pgac_struct;
19786 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19793 rm -f conftest.$ac_objext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795 (eval $ac_compile) 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_c_werror_flag"
19803 || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19817 cat >conftest.$ac_ext <<_ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19823 $ac_includes_default
19824 struct { char filler; double field; } pgac_struct;
19828 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_hi=$ac_mid; break
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_lo=`expr $ac_mid + 1`
19863 if test $ac_lo -le $ac_mid; then
19867 ac_mid=`expr 2 '*' $ac_mid + 1`
19869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 $ac_includes_default
19882 struct { char filler; double field; } pgac_struct;
19886 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19893 rm -f conftest.$ac_objext
19894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19895 (eval $ac_compile) 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -z "$ac_c_werror_flag"
19903 || test ! -s conftest.err'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 $ac_includes_default
19924 struct { char filler; double field; } pgac_struct;
19928 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19935 rm -f conftest.$ac_objext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19937 (eval $ac_compile) 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_lo=$ac_mid; break
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19962 ac_hi=`expr '(' $ac_mid ')' - 1`
19963 if test $ac_mid -le $ac_hi; then
19967 ac_mid=`expr 2 '*' $ac_mid`
19969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 # Binary search between lo and hi bounds.
19981 while test "x$ac_lo" != "x$ac_hi"; do
19982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 $ac_includes_default
19990 struct { char filler; double field; } pgac_struct;
19994 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20001 rm -f conftest.$ac_objext
20002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003 (eval $ac_compile) 2>conftest.er1
20005 grep -v '^ *+' conftest.er1 >conftest.err
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
20010 { ac_try='test -z "$ac_c_werror_flag"
20011 || test ! -s conftest.err'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; } &&
20017 { ac_try='test -s conftest.$ac_objext'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20028 ac_lo=`expr '(' $ac_mid ')' + 1`
20030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20033 ?*) pgac_cv_alignof_double=$ac_lo;;
20034 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20035 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20036 { (exit 1); exit 1; }; } ;;
20039 if test "$cross_compiling" = yes; then
20040 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20041 See \`config.log' for more details." >&5
20042 echo "$as_me: error: cannot run test program while cross compiling
20043 See \`config.log' for more details." >&2;}
20044 { (exit 1); exit 1; }; }
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 $ac_includes_default
20053 struct { char filler; double field; } pgac_struct;
20054 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20055 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20057 #include <stdlib.h>
20062 FILE *f = fopen ("conftest.val", "w");
20065 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20067 long i = longval ();
20068 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20070 fprintf (f, "%ld\n", i);
20074 unsigned long i = ulongval ();
20075 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20077 fprintf (f, "%lu\n", i);
20079 exit (ferror (f) || fclose (f) != 0);
20085 rm -f conftest$ac_exeext
20086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20087 (eval $ac_link) 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 pgac_cv_alignof_double=`cat conftest.val`
20098 echo "$as_me: program exited with status $ac_status" >&5
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ( exit $ac_status )
20103 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20104 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20105 { (exit 1); exit 1; }; }
20107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20112 pgac_cv_alignof_double=0
20115 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20116 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20117 cat >>confdefs.h <<_ACEOF
20118 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20123 # Compute maximum alignment of any basic type.
20124 # We assume long's alignment is at least as strong as char, short, or int;
20125 # but we must check long long (if it exists) and double.
20127 MAX_ALIGNOF=$pgac_cv_alignof_long
20128 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20129 MAX_ALIGNOF=$pgac_cv_alignof_double
20131 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20132 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20135 cat >>confdefs.h <<_ACEOF
20136 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20141 # Some platforms predefine the types int8, int16, etc. Only check
20142 # a (hopefully) representative subset.
20143 echo "$as_me:$LINENO: checking for int8" >&5
20144 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20145 if test "${ac_cv_type_int8+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20155 #ifdef HAVE_SUPPORTDEFS_H
20156 #include <SupportDefs.h>
20170 rm -f conftest.$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_type_int8=yes
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20201 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20202 echo "${ECHO_T}$ac_cv_type_int8" >&6
20203 if test $ac_cv_type_int8 = yes; then
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_INT8 1
20211 echo "$as_me:$LINENO: checking for uint8" >&5
20212 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20213 if test "${ac_cv_type_uint8+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20223 #ifdef HAVE_SUPPORTDEFS_H
20224 #include <SupportDefs.h>
20232 if (sizeof (uint8))
20238 rm -f conftest.$ac_objext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240 (eval $ac_compile) 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag"
20248 || test ! -s conftest.err'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_type_uint8=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_cv_type_uint8=no
20267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20269 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20270 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20271 if test $ac_cv_type_uint8 = yes; then
20273 cat >>confdefs.h <<_ACEOF
20274 #define HAVE_UINT8 1
20279 echo "$as_me:$LINENO: checking for int64" >&5
20280 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20281 if test "${ac_cv_type_int64+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20291 #ifdef HAVE_SUPPORTDEFS_H
20292 #include <SupportDefs.h>
20300 if (sizeof (int64))
20306 rm -f conftest.$ac_objext
20307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20308 (eval $ac_compile) 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } &&
20315 { ac_try='test -z "$ac_c_werror_flag"
20316 || test ! -s conftest.err'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } &&
20322 { ac_try='test -s conftest.$ac_objext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_cv_type_int64=yes
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 ac_cv_type_int64=no
20335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20337 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20338 echo "${ECHO_T}$ac_cv_type_int64" >&6
20339 if test $ac_cv_type_int64 = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_INT64 1
20347 echo "$as_me:$LINENO: checking for uint64" >&5
20348 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20349 if test "${ac_cv_type_uint64+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20359 #ifdef HAVE_SUPPORTDEFS_H
20360 #include <SupportDefs.h>
20368 if (sizeof (uint64))
20374 rm -f conftest.$ac_objext
20375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376 (eval $ac_compile) 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
20383 { ac_try='test -z "$ac_c_werror_flag"
20384 || test ! -s conftest.err'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } &&
20390 { ac_try='test -s conftest.$ac_objext'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 ac_cv_type_uint64=yes
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20401 ac_cv_type_uint64=no
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20405 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20406 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20407 if test $ac_cv_type_uint64 = yes; then
20409 cat >>confdefs.h <<_ACEOF
20410 #define HAVE_UINT64 1
20417 # We also check for sig_atomic_t, which *should* be defined per ANSI
20418 # C, but is missing on some old platforms.
20419 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20420 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20421 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 #include <signal.h>
20435 if ((sig_atomic_t *) 0)
20437 if (sizeof (sig_atomic_t))
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag"
20453 || test ! -s conftest.err'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest.$ac_objext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_cv_type_sig_atomic_t=yes
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_cv_type_sig_atomic_t=no
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20474 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20475 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20476 if test $ac_cv_type_sig_atomic_t = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define HAVE_SIG_ATOMIC_T 1
20487 if test x"$template" != x"win32"
20489 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20490 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20491 if test "${pgac_cv_func_posix_signals+set}" = set; then
20492 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500 #include <signal.h>
20505 struct sigaction act, oact;
20506 sigemptyset(&act.sa_mask);
20507 act.sa_flags = SA_RESTART;
20508 sigaction(0, &act, &oact);
20513 rm -f conftest.$ac_objext conftest$ac_exeext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20515 (eval $ac_link) 2>conftest.er1
20517 grep -v '^ *+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -z "$ac_c_werror_flag"
20523 || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest$ac_exeext'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 pgac_cv_func_posix_signals=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 pgac_cv_func_posix_signals=no
20542 rm -f conftest.err conftest.$ac_objext \
20543 conftest$ac_exeext conftest.$ac_ext
20545 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20546 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20547 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20549 cat >>confdefs.h <<\_ACEOF
20550 #define HAVE_POSIX_SIGNALS
20554 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20556 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20557 { { echo "$as_me:$LINENO: error:
20558 *** Thread-safety requires POSIX signals, which are not supported by your
20559 *** operating system.
20561 echo "$as_me: error:
20562 *** Thread-safety requires POSIX signals, which are not supported by your
20563 *** operating system.
20565 { (exit 1); exit 1; }; }
20569 if test $ac_cv_func_fseeko = yes; then
20570 # Check whether --enable-largefile or --disable-largefile was given.
20571 if test "${enable_largefile+set}" = set; then
20572 enableval="$enable_largefile"
20575 if test "$enable_largefile" != no; then
20577 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20578 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20579 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 ac_cv_sys_largefile_CC=no
20583 if test "$GCC" != yes; then
20586 # IRIX 6.2 and later do not support large files by default,
20587 # so use the C compiler's -n32 option if that helps.
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 #include <sys/types.h>
20595 /* Check that off_t can represent 2**63 - 1 correctly.
20596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20597 since some C++ compilers masquerading as C compilers
20598 incorrectly reject 9223372036854775807. */
20599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20601 && LARGE_OFF_T % 2147483647 == 1)
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag"
20621 || test ! -s conftest.err'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest.$ac_objext'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20639 rm -f conftest.err conftest.$ac_objext
20641 rm -f conftest.$ac_objext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20643 (eval $ac_compile) 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag"
20651 || test ! -s conftest.err'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest.$ac_objext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_cv_sys_largefile_CC=' -n32'; break
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20669 rm -f conftest.err conftest.$ac_objext
20673 rm -f conftest.$ac_ext
20676 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20677 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
20678 if test "$ac_cv_sys_largefile_CC" != no; then
20679 CC=$CC$ac_cv_sys_largefile_CC
20682 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20683 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20684 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 ac_cv_sys_file_offset_bits=no
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 #include <sys/types.h>
20696 /* Check that off_t can represent 2**63 - 1 correctly.
20697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20698 since some C++ compilers masquerading as C compilers
20699 incorrectly reject 9223372036854775807. */
20700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20702 && LARGE_OFF_T % 2147483647 == 1)
20712 rm -f conftest.$ac_objext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20714 (eval $ac_compile) 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag"
20722 || test ! -s conftest.err'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try='test -s conftest.$ac_objext'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #define _FILE_OFFSET_BITS 64
20748 #include <sys/types.h>
20749 /* Check that off_t can represent 2**63 - 1 correctly.
20750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20751 since some C++ compilers masquerading as C compilers
20752 incorrectly reject 9223372036854775807. */
20753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20755 && LARGE_OFF_T % 2147483647 == 1)
20765 rm -f conftest.$ac_objext
20766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20767 (eval $ac_compile) 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag"
20775 || test ! -s conftest.err'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; } &&
20781 { ac_try='test -s conftest.$ac_objext'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
20787 ac_cv_sys_file_offset_bits=64; break
20789 echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20797 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20799 if test "$ac_cv_sys_file_offset_bits" != no; then
20801 cat >>confdefs.h <<_ACEOF
20802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20807 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20808 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20809 if test "${ac_cv_sys_large_files+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 ac_cv_sys_large_files=no
20814 cat >conftest.$ac_ext <<_ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 #include <sys/types.h>
20821 /* Check that off_t can represent 2**63 - 1 correctly.
20822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20823 since some C++ compilers masquerading as C compilers
20824 incorrectly reject 9223372036854775807. */
20825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20827 && LARGE_OFF_T % 2147483647 == 1)
20837 rm -f conftest.$ac_objext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20839 (eval $ac_compile) 2>conftest.er1
20841 grep -v '^ *+' conftest.er1 >conftest.err
20843 cat conftest.err >&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } &&
20846 { ac_try='test -z "$ac_c_werror_flag"
20847 || test ! -s conftest.err'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; } &&
20853 { ac_try='test -s conftest.$ac_objext'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20866 cat >conftest.$ac_ext <<_ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 #define _LARGE_FILES 1
20873 #include <sys/types.h>
20874 /* Check that off_t can represent 2**63 - 1 correctly.
20875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20876 since some C++ compilers masquerading as C compilers
20877 incorrectly reject 9223372036854775807. */
20878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20880 && LARGE_OFF_T % 2147483647 == 1)
20890 rm -f conftest.$ac_objext
20891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20892 (eval $ac_compile) 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_c_werror_flag"
20900 || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest.$ac_objext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_cv_sys_large_files=1; break
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20922 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20923 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20924 if test "$ac_cv_sys_large_files" != no; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define _LARGE_FILES $ac_cv_sys_large_files
20936 # SunOS doesn't handle negative byte comparisons properly with +/- return
20937 echo "$as_me:$LINENO: checking for working memcmp" >&5
20938 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20939 if test "${ac_cv_func_memcmp_working+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 if test "$cross_compiling" = yes; then
20943 ac_cv_func_memcmp_working=no
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 $ac_includes_default
20956 /* Some versions of memcmp are not 8-bit clean. */
20957 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20958 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20961 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20962 or more and with at least one buffer not starting on a 4-byte boundary.
20963 William Lewis provided this test program. */
20968 for (i = 0; i < 4; i++)
20972 strcpy (a, "--------01111111");
20973 strcpy (b, "--------10000000");
20974 if (memcmp (a, b, 16) >= 0)
20984 rm -f conftest$ac_exeext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20986 (eval $ac_link) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_func_memcmp_working=yes
20997 echo "$as_me: program exited with status $ac_status" >&5
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ( exit $ac_status )
21002 ac_cv_func_memcmp_working=no
21004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21007 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21008 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21009 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21010 "memcmp.$ac_objext" | \
21011 *" memcmp.$ac_objext" | \
21012 "memcmp.$ac_objext "* | \
21013 *" memcmp.$ac_objext "* ) ;;
21014 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21020 # Select semaphore implementation type.
21021 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21023 cat >>confdefs.h <<\_ACEOF
21024 #define USE_NAMED_POSIX_SEMAPHORES 1
21027 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21029 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21031 cat >>confdefs.h <<\_ACEOF
21032 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21035 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21038 cat >>confdefs.h <<\_ACEOF
21039 #define USE_SYSV_SEMAPHORES 1
21042 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21047 # Select shared-memory implementation type.
21049 cat >>confdefs.h <<\_ACEOF
21050 #define USE_SYSV_SHARED_MEMORY 1
21053 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21056 # If not set in template file, set bytes to use libc memset()
21057 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21058 MEMSET_LOOP_LIMIT=1024
21061 cat >>confdefs.h <<_ACEOF
21062 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21067 if test "$enable_nls" = yes ; then
21069 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21070 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21071 if test "${ac_cv_search_gettext+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 ac_func_search_save_LIBS=$LIBS
21075 ac_cv_search_gettext=no
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21083 /* Override any gcc2 internal prototype to avoid an error. */
21087 /* We use char because int might match the return type of a gcc2
21088 builtin and then its argument prototype would still apply. */
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100 (eval $ac_link) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
21107 { ac_try='test -z "$ac_c_werror_flag"
21108 || test ! -s conftest.err'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; } &&
21114 { ac_try='test -s conftest$ac_exeext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_cv_search_gettext="none required"
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21126 rm -f conftest.err conftest.$ac_objext \
21127 conftest$ac_exeext conftest.$ac_ext
21128 if test "$ac_cv_search_gettext" = no; then
21129 for ac_lib in intl; do
21130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21138 /* Override any gcc2 internal prototype to avoid an error. */
21142 /* We use char because int might match the return type of a gcc2
21143 builtin and then its argument prototype would still apply. */
21153 rm -f conftest.$ac_objext conftest$ac_exeext
21154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21155 (eval $ac_link) 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_c_werror_flag"
21163 || test ! -s conftest.err'
21164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165 (eval $ac_try) 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; } &&
21169 { ac_try='test -s conftest$ac_exeext'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 ac_cv_search_gettext="-l$ac_lib"
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21182 rm -f conftest.err conftest.$ac_objext \
21183 conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_func_search_save_LIBS
21188 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21189 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21190 if test "$ac_cv_search_gettext" != no; then
21191 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21194 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21195 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21196 { (exit 1); exit 1; }; }
21199 if test "${ac_cv_header_libintl_h+set}" = set; then
21200 echo "$as_me:$LINENO: checking for libintl.h" >&5
21201 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21202 if test "${ac_cv_header_libintl_h+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21206 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21208 # Is the header compilable?
21209 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21210 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21218 #include <libintl.h>
21220 rm -f conftest.$ac_objext
21221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21222 (eval $ac_compile) 2>conftest.er1
21224 grep -v '^ *+' conftest.er1 >conftest.err
21226 cat conftest.err >&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } &&
21229 { ac_try='test -z "$ac_c_werror_flag"
21230 || test ! -s conftest.err'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; } &&
21236 { ac_try='test -s conftest.$ac_objext'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; }; then
21242 ac_header_compiler=yes
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_header_compiler=no
21249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21251 echo "${ECHO_T}$ac_header_compiler" >&6
21253 # Is the header present?
21254 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21255 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <libintl.h>
21264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } >/dev/null; then
21272 if test -s conftest.err; then
21273 ac_cpp_err=$ac_c_preproc_warn_flag
21274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21281 if test -z "$ac_cpp_err"; then
21282 ac_header_preproc=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_header_preproc=no
21289 rm -f conftest.err conftest.$ac_ext
21290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21291 echo "${ECHO_T}$ac_header_preproc" >&6
21293 # So? What about this header?
21294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21296 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21297 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21299 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21300 ac_header_preproc=yes
21303 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21304 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21305 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21306 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21307 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21308 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21309 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21310 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21312 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21314 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21317 ## ---------------------------------------- ##
21318 ## Report this to pgsql-bugs@postgresql.org ##
21319 ## ---------------------------------------- ##
21322 sed "s/^/$as_me: WARNING: /" >&2
21325 echo "$as_me:$LINENO: checking for libintl.h" >&5
21326 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21327 if test "${ac_cv_header_libintl_h+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 ac_cv_header_libintl_h=$ac_header_preproc
21332 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21333 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21336 if test $ac_cv_header_libintl_h = yes; then
21339 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21340 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21341 { (exit 1); exit 1; }; }
21345 for ac_prog in msgfmt
21347 # Extract the first word of "$ac_prog", so it can be a program name with args.
21348 set dummy $ac_prog; ac_word=$2
21349 echo "$as_me:$LINENO: checking for $ac_word" >&5
21350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21351 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 if test -n "$MSGFMT"; then
21355 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21358 for as_dir in $PATH
21361 test -z "$as_dir" && as_dir=.
21362 for ac_exec_ext in '' $ac_executable_extensions; do
21363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21364 ac_cv_prog_MSGFMT="$ac_prog"
21365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21373 MSGFMT=$ac_cv_prog_MSGFMT
21374 if test -n "$MSGFMT"; then
21375 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21376 echo "${ECHO_T}$MSGFMT" >&6
21378 echo "$as_me:$LINENO: result: no" >&5
21379 echo "${ECHO_T}no" >&6
21382 test -n "$MSGFMT" && break
21385 if test -z "$MSGFMT"; then
21386 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21387 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21388 { (exit 1); exit 1; }; }
21390 for ac_prog in msgmerge
21392 # Extract the first word of "$ac_prog", so it can be a program name with args.
21393 set dummy $ac_prog; ac_word=$2
21394 echo "$as_me:$LINENO: checking for $ac_word" >&5
21395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21396 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 if test -n "$MSGMERGE"; then
21400 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21403 for as_dir in $PATH
21406 test -z "$as_dir" && as_dir=.
21407 for ac_exec_ext in '' $ac_executable_extensions; do
21408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21409 ac_cv_prog_MSGMERGE="$ac_prog"
21410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21418 MSGMERGE=$ac_cv_prog_MSGMERGE
21419 if test -n "$MSGMERGE"; then
21420 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21421 echo "${ECHO_T}$MSGMERGE" >&6
21423 echo "$as_me:$LINENO: result: no" >&5
21424 echo "${ECHO_T}no" >&6
21427 test -n "$MSGMERGE" && break
21430 for ac_prog in xgettext
21432 # Extract the first word of "$ac_prog", so it can be a program name with args.
21433 set dummy $ac_prog; ac_word=$2
21434 echo "$as_me:$LINENO: checking for $ac_word" >&5
21435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21436 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 if test -n "$XGETTEXT"; then
21440 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21443 for as_dir in $PATH
21446 test -z "$as_dir" && as_dir=.
21447 for ac_exec_ext in '' $ac_executable_extensions; do
21448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21449 ac_cv_prog_XGETTEXT="$ac_prog"
21450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21458 XGETTEXT=$ac_cv_prog_XGETTEXT
21459 if test -n "$XGETTEXT"; then
21460 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21461 echo "${ECHO_T}$XGETTEXT" >&6
21463 echo "$as_me:$LINENO: result: no" >&5
21464 echo "${ECHO_T}no" >&6
21467 test -n "$XGETTEXT" && break
21471 # Note: share/locale is always the default, independent of $datadir
21472 localedir='${prefix}/share/locale'
21473 if test x"$prefix" = x"NONE"; then
21474 exp_localedir="$ac_default_prefix/share/locale"
21476 exp_localedir="$prefix/share/locale"
21481 cat >>confdefs.h <<_ACEOF
21482 #define LOCALEDIR "$exp_localedir"
21488 # Check for Tcl configuration script tclConfig.sh
21489 if test "$with_tcl" = yes; then
21490 for ac_prog in tclsh tcl
21492 # Extract the first word of "$ac_prog", so it can be a program name with args.
21493 set dummy $ac_prog; ac_word=$2
21494 echo "$as_me:$LINENO: checking for $ac_word" >&5
21495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21496 if test "${ac_cv_path_TCLSH+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21505 for as_dir in $PATH
21508 test -z "$as_dir" && as_dir=.
21509 for ac_exec_ext in '' $ac_executable_extensions; do
21510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21511 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21521 TCLSH=$ac_cv_path_TCLSH
21523 if test -n "$TCLSH"; then
21524 echo "$as_me:$LINENO: result: $TCLSH" >&5
21525 echo "${ECHO_T}$TCLSH" >&6
21527 echo "$as_me:$LINENO: result: no" >&5
21528 echo "${ECHO_T}no" >&6
21531 test -n "$TCLSH" && break
21534 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21535 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21536 # Let user override test
21537 if test -z "$TCL_CONFIG_SH"; then
21538 pgac_test_dirs="$with_tclconfig"
21540 set X $pgac_test_dirs; shift
21541 if test $# -eq 0; then
21542 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21543 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21544 { (exit 1); exit 1; }; }
21545 set X `echo 'puts $auto_path' | $TCLSH`; shift
21549 if test -r "$pgac_dir/tclConfig.sh"; then
21550 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21556 if test -z "$TCL_CONFIG_SH"; then
21557 echo "$as_me:$LINENO: result: no" >&5
21558 echo "${ECHO_T}no" >&6
21559 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21560 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21561 { (exit 1); exit 1; }; }
21563 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21564 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21570 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21571 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21572 eval TCL_LIBS=\"$TCL_LIBS\"
21573 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21574 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21576 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21577 ac_save_CPPFLAGS=$CPPFLAGS
21578 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21579 if test "${ac_cv_header_tcl_h+set}" = set; then
21580 echo "$as_me:$LINENO: checking for tcl.h" >&5
21581 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21582 if test "${ac_cv_header_tcl_h+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21585 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21586 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21588 # Is the header compilable?
21589 echo "$as_me:$LINENO: checking tcl.h usability" >&5
21590 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
21591 cat >conftest.$ac_ext <<_ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h. */
21597 $ac_includes_default
21600 rm -f conftest.$ac_objext
21601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21602 (eval $ac_compile) 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try='test -z "$ac_c_werror_flag"
21610 || test ! -s conftest.err'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest.$ac_objext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_header_compiler=yes
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_header_compiler=no
21629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21631 echo "${ECHO_T}$ac_header_compiler" >&6
21633 # Is the header present?
21634 echo "$as_me:$LINENO: checking tcl.h presence" >&5
21635 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
21636 cat >conftest.$ac_ext <<_ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } >/dev/null; then
21652 if test -s conftest.err; then
21653 ac_cpp_err=$ac_c_preproc_warn_flag
21654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21661 if test -z "$ac_cpp_err"; then
21662 ac_header_preproc=yes
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ac_header_preproc=no
21669 rm -f conftest.err conftest.$ac_ext
21670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21671 echo "${ECHO_T}$ac_header_preproc" >&6
21673 # So? What about this header?
21674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21676 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21677 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
21679 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
21680 ac_header_preproc=yes
21683 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
21684 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
21686 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
21687 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
21688 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
21690 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
21692 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
21694 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
21697 ## ---------------------------------------- ##
21698 ## Report this to pgsql-bugs@postgresql.org ##
21699 ## ---------------------------------------- ##
21702 sed "s/^/$as_me: WARNING: /" >&2
21705 echo "$as_me:$LINENO: checking for tcl.h" >&5
21706 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21707 if test "${ac_cv_header_tcl_h+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 ac_cv_header_tcl_h=$ac_header_preproc
21712 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21713 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21716 if test $ac_cv_header_tcl_h = yes; then
21719 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
21720 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
21721 { (exit 1); exit 1; }; }
21725 CPPFLAGS=$ac_save_CPPFLAGS
21729 # Check for DocBook and tools
21731 for ac_prog in onsgmls nsgmls
21733 # Extract the first word of "$ac_prog", so it can be a program name with args.
21734 set dummy $ac_prog; ac_word=$2
21735 echo "$as_me:$LINENO: checking for $ac_word" >&5
21736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21737 if test "${ac_cv_prog_NSGMLS+set}" = set; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 if test -n "$NSGMLS"; then
21741 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
21743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21744 for as_dir in $PATH
21747 test -z "$as_dir" && as_dir=.
21748 for ac_exec_ext in '' $ac_executable_extensions; do
21749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21750 ac_cv_prog_NSGMLS="$ac_prog"
21751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21759 NSGMLS=$ac_cv_prog_NSGMLS
21760 if test -n "$NSGMLS"; then
21761 echo "$as_me:$LINENO: result: $NSGMLS" >&5
21762 echo "${ECHO_T}$NSGMLS" >&6
21764 echo "$as_me:$LINENO: result: no" >&5
21765 echo "${ECHO_T}no" >&6
21768 test -n "$NSGMLS" && break
21771 for ac_prog in openjade jade
21773 # Extract the first word of "$ac_prog", so it can be a program name with args.
21774 set dummy $ac_prog; ac_word=$2
21775 echo "$as_me:$LINENO: checking for $ac_word" >&5
21776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21777 if test "${ac_cv_prog_JADE+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 if test -n "$JADE"; then
21781 ac_cv_prog_JADE="$JADE" # Let the user override the test.
21783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21784 for as_dir in $PATH
21787 test -z "$as_dir" && as_dir=.
21788 for ac_exec_ext in '' $ac_executable_extensions; do
21789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21790 ac_cv_prog_JADE="$ac_prog"
21791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21799 JADE=$ac_cv_prog_JADE
21800 if test -n "$JADE"; then
21801 echo "$as_me:$LINENO: result: $JADE" >&5
21802 echo "${ECHO_T}$JADE" >&6
21804 echo "$as_me:$LINENO: result: no" >&5
21805 echo "${ECHO_T}no" >&6
21808 test -n "$JADE" && break
21812 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
21813 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
21814 if test "${pgac_cv_check_docbook+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 cat >conftest.sgml <<EOF
21818 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
21820 <title>test</title>
21822 <title>random</title>
21824 <title>testsect</title>
21831 pgac_cv_check_docbook=no
21833 if test -n "$NSGMLS"; then
21834 $NSGMLS -s conftest.sgml 1>&5 2>&1
21835 if test $? -eq 0; then
21836 pgac_cv_check_docbook=yes
21839 rm -f conftest.sgml
21841 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
21842 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
21844 have_docbook=$pgac_cv_check_docbook
21847 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
21848 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
21849 if test "${pgac_cv_path_stylesheets+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 if test -n "$DOCBOOKSTYLE"; then
21853 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
21855 for pgac_prefix in /usr /usr/local /opt; do
21856 for pgac_infix in share lib; do
21857 for pgac_postfix in \
21858 sgml/stylesheets/nwalsh-modular \
21859 sgml/stylesheets/docbook \
21860 sgml/docbook-dsssl \
21861 sgml/docbook/dsssl/modular \
21862 sgml/docbook/stylesheet/dsssl/modular \
21863 sgml/docbook/dsssl-stylesheets
21865 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
21866 if test -r "$pgac_candidate/html/docbook.dsl" \
21867 && test -r "$pgac_candidate/print/docbook.dsl"
21869 pgac_cv_path_stylesheets=$pgac_candidate
21878 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
21880 if test -n "$DOCBOOKSTYLE"; then
21881 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
21882 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
21884 echo "$as_me:$LINENO: result: no" >&5
21885 echo "${ECHO_T}no" >&6
21887 if test -n "$DOCBOOKSTYLE"; then
21888 for ac_prog in collateindex.pl
21890 # Extract the first word of "$ac_prog", so it can be a program name with args.
21891 set dummy $ac_prog; ac_word=$2
21892 echo "$as_me:$LINENO: checking for $ac_word" >&5
21893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21894 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 case $COLLATEINDEX in
21899 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21903 for as_dir in $DOCBOOKSTYLE/bin $PATH
21906 test -z "$as_dir" && as_dir=.
21907 for ac_exec_ext in '' $ac_executable_extensions; do
21908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21909 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21919 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21921 if test -n "$COLLATEINDEX"; then
21922 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21923 echo "${ECHO_T}$COLLATEINDEX" >&6
21925 echo "$as_me:$LINENO: result: no" >&5
21926 echo "${ECHO_T}no" >&6
21929 test -n "$COLLATEINDEX" && break
21933 for ac_prog in collateindex.pl
21935 # Extract the first word of "$ac_prog", so it can be a program name with args.
21936 set dummy $ac_prog; ac_word=$2
21937 echo "$as_me:$LINENO: checking for $ac_word" >&5
21938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21939 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 case $COLLATEINDEX in
21944 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21948 for as_dir in $PATH
21951 test -z "$as_dir" && as_dir=.
21952 for ac_exec_ext in '' $ac_executable_extensions; do
21953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21954 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21964 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21966 if test -n "$COLLATEINDEX"; then
21967 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21968 echo "${ECHO_T}$COLLATEINDEX" >&6
21970 echo "$as_me:$LINENO: result: no" >&5
21971 echo "${ECHO_T}no" >&6
21974 test -n "$COLLATEINDEX" && break
21978 for ac_prog in sgmlspl
21980 # Extract the first word of "$ac_prog", so it can be a program name with args.
21981 set dummy $ac_prog; ac_word=$2
21982 echo "$as_me:$LINENO: checking for $ac_word" >&5
21983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21984 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 if test -n "$SGMLSPL"; then
21988 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
21990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991 for as_dir in $PATH
21994 test -z "$as_dir" && as_dir=.
21995 for ac_exec_ext in '' $ac_executable_extensions; do
21996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21997 ac_cv_prog_SGMLSPL="$ac_prog"
21998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22006 SGMLSPL=$ac_cv_prog_SGMLSPL
22007 if test -n "$SGMLSPL"; then
22008 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22009 echo "${ECHO_T}$SGMLSPL" >&6
22011 echo "$as_me:$LINENO: result: no" >&5
22012 echo "${ECHO_T}no" >&6
22015 test -n "$SGMLSPL" && break
22021 # We have to run the thread test near the end so we have all our symbols
22022 # defined. Cross compiling throws a warning.
22024 if test "$enable_thread_safety_force" = yes; then
22025 if test x"$template" != x"win32"
22027 { echo "$as_me:$LINENO: WARNING:
22028 *** Skipping thread test program. --enable-thread-safety-force was used.
22029 *** Run the program in src/test/thread on the your machine and add
22030 proper locking function calls to your applications to guarantee thread
22033 echo "$as_me: WARNING:
22034 *** Skipping thread test program. --enable-thread-safety-force was used.
22035 *** Run the program in src/test/thread on the your machine and add
22036 proper locking function calls to your applications to guarantee thread
22040 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22041 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22043 elif test "$enable_thread_safety" = yes; then
22044 if test x"$template" != x"win32"
22046 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22047 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22051 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22052 LIBS="$LIBS $PTHREAD_LIBS"
22053 if test "$cross_compiling" = yes; then
22054 echo "$as_me:$LINENO: result: maybe" >&5
22055 echo "${ECHO_T}maybe" >&6
22056 { echo "$as_me:$LINENO: WARNING:
22057 *** Skipping thread test program because of cross-compile build.
22058 *** Run the program in src/test/thread on the target machine.
22060 echo "$as_me: WARNING:
22061 *** Skipping thread test program because of cross-compile build.
22062 *** Run the program in src/test/thread on the target machine.
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 #include "$srcdir/src/test/thread/thread_test.c"
22073 rm -f conftest$ac_exeext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075 (eval $ac_link) 2>&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 echo "$as_me:$LINENO: result: yes" >&5
22085 echo "${ECHO_T}yes" >&6
22087 echo "$as_me: program exited with status $ac_status" >&5
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ( exit $ac_status )
22092 echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6
22094 { { echo "$as_me:$LINENO: error:
22095 *** Thread test program failed. Your platform is not thread-safe.
22096 *** Check the file 'config.log'for the exact reason.
22098 *** You can use the configure option --enable-thread-safety-force
22099 *** to force threads to be enabled. However, you must then run
22100 *** the program in src/test/thread and add locking function calls
22101 *** to your applications to guarantee thread safety.
22103 echo "$as_me: error:
22104 *** Thread test program failed. Your platform is not thread-safe.
22105 *** Check the file 'config.log'for the exact reason.
22107 *** You can use the configure option --enable-thread-safety-force
22108 *** to force threads to be enabled. However, you must then run
22109 *** the program in src/test/thread and add locking function calls
22110 *** to your applications to guarantee thread safety.
22112 { (exit 1); exit 1; }; }
22114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22120 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22124 # prepare build tree if outside source tree
22125 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22126 # Note 2: /bin/pwd might be better than shell's built-in at getting
22127 # a symlink-free name.
22128 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22132 if test "$no_create" != yes; then
22133 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22134 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22135 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22136 || { { echo "$as_me:$LINENO: error: failed" >&5
22137 echo "$as_me: error: failed" >&2;}
22138 { (exit 1); exit 1; }; }
22139 echo "$as_me:$LINENO: result: done" >&5
22140 echo "${ECHO_T}done" >&6
22146 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22149 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}"
22152 if test "$PORTNAME" = "win32"; then
22153 ac_config_commands="$ac_config_commands check_win32_symlinks"
22157 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22160 cat >confcache <<\_ACEOF
22161 # This file is a shell script that caches the results of configure
22162 # tests run on this system so they can be shared between configure
22163 # scripts and configure runs, see configure's option --config-cache.
22164 # It is not useful on other systems. If it contains results you don't
22165 # want to keep, you may remove or edit it.
22167 # config.status only pays attention to the cache file if you give it
22168 # the --recheck option to rerun configure.
22170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22172 # following values.
22176 # The following way of writing the cache mishandles newlines in values,
22177 # but we know of no workaround that is simple, portable, and efficient.
22178 # So, don't put newlines in cache variables' values.
22179 # Ultrix sh set writes to stderr and can't be redirected directly,
22180 # and sets the high bit in the cache file unless we assign to the vars.
22183 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22185 # `set' does not quote correctly, so add quotes (double-quote
22186 # substitution turns \\\\ into \\, and sed turns \\ into \).
22189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22192 # `set' quotes correctly as required by POSIX, so do not add quotes.
22194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22203 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22205 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22206 if test -w $cache_file; then
22207 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22208 cat confcache >$cache_file
22210 echo "not updating unwritable cache $cache_file"
22215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22216 # Let make expand exec_prefix.
22217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22221 # trailing colons and then remove the whole line if VPATH becomes empty
22222 # (actually we leave an empty line to preserve line numbers).
22223 if test "x$srcdir" = x.; then
22224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22225 s/:*\$(srcdir):*/:/;
22226 s/:*\${srcdir}:*/:/;
22228 s/^\([^=]*=[ ]*\):*/\1/;
22234 DEFS=-DHAVE_CONFIG_H
22238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22239 # 1. Remove the extension, and $U if already installed.
22240 ac_i=`echo "$ac_i" |
22241 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22243 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22244 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22246 LIBOBJS=$ac_libobjs
22248 LTLIBOBJS=$ac_ltlibobjs
22252 : ${CONFIG_STATUS=./config.status}
22253 ac_clean_files_save=$ac_clean_files
22254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22255 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22256 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22257 cat >$CONFIG_STATUS <<_ACEOF
22259 # Generated by $as_me.
22260 # Run this file to recreate the current configuration.
22261 # Compiler output produced by configure, useful for debugging
22262 # configure, is in config.log if it exists.
22265 ac_cs_recheck=false
22267 SHELL=\${CONFIG_SHELL-$SHELL}
22270 cat >>$CONFIG_STATUS <<\_ACEOF
22271 ## --------------------- ##
22272 ## M4sh Initialization. ##
22273 ## --------------------- ##
22275 # Be Bourne compatible
22276 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22279 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22280 # is contrary to our usage. Disable this feature.
22281 alias -g '${1+"$@"}'='"$@"'
22282 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22285 DUALCASE=1; export DUALCASE # for MKS sh
22287 # Support unset when possible.
22288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22295 # Work around bugs in pre-3.0 UWIN ksh.
22296 $as_unset ENV MAIL MAILPATH
22303 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22304 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22305 LC_TELEPHONE LC_TIME
22307 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22308 eval $as_var=C; export $as_var
22314 # Required to use basename.
22315 if expr a : '\(a\)' >/dev/null 2>&1; then
22321 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22322 as_basename=basename
22328 # Name of the executable.
22329 as_me=`$as_basename "$0" ||
22330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22331 X"$0" : 'X\(//\)$' \| \
22332 X"$0" : 'X\(/\)$' \| \
22333 . : '\(.\)' 2>/dev/null ||
22335 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22336 /^X\/\(\/\/\)$/{ s//\1/; q; }
22337 /^X\/\(\/\).*/{ s//\1/; q; }
22341 # PATH needs CR, and LINENO needs CR and PATH.
22342 # Avoid depending upon Character Ranges.
22343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22346 as_cr_digits='0123456789'
22347 as_cr_alnum=$as_cr_Letters$as_cr_digits
22349 # The user is always right.
22350 if test "${PATH_SEPARATOR+set}" != set; then
22351 echo "#! /bin/sh" >conf$$.sh
22352 echo "exit 0" >>conf$$.sh
22354 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22363 as_lineno_1=$LINENO
22364 as_lineno_2=$LINENO
22365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22366 test "x$as_lineno_1" != "x$as_lineno_2" &&
22367 test "x$as_lineno_3" = "x$as_lineno_2" || {
22368 # Find who we are. Look in the path if we contain no path at all
22371 *[\\/]* ) as_myself=$0 ;;
22372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22373 for as_dir in $PATH
22376 test -z "$as_dir" && as_dir=.
22377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22382 # We did not find ourselves, most probably we were run as `sh COMMAND'
22383 # in which case we are not to be found in the path.
22384 if test "x$as_myself" = x; then
22387 if test ! -f "$as_myself"; then
22388 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22389 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22390 { (exit 1); exit 1; }; }
22392 case $CONFIG_SHELL in
22394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22395 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22398 test -z "$as_dir" && as_dir=.
22399 for as_base in sh bash ksh sh5; do
22402 if ("$as_dir/$as_base" -c '
22403 as_lineno_1=$LINENO
22404 as_lineno_2=$LINENO
22405 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22406 test "x$as_lineno_1" != "x$as_lineno_2" &&
22407 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22408 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22409 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22410 CONFIG_SHELL=$as_dir/$as_base
22411 export CONFIG_SHELL
22412 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22420 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22421 # uniformly replaced by the line number. The first 'sed' inserts a
22422 # line-number line before each line; the second 'sed' does the real
22423 # work. The second script uses 'N' to pair each line-number line
22424 # with the numbered line, and appends trailing '-' during
22425 # substitution so that $LINENO is not a special case at line end.
22426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22427 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22428 sed '=' <$as_myself |
22433 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22436 s,^['$as_cr_digits']*\n,,
22437 ' >$as_me.lineno &&
22438 chmod +x $as_me.lineno ||
22439 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22440 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22441 { (exit 1); exit 1; }; }
22443 # Don't try to exec as it changes $[0], causing all sort of problems
22444 # (the dirname of $[0] is not the place where we might find the
22445 # original and so on. Autoconf is especially sensible to this).
22447 # Exit status is that of the last command.
22452 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22453 *c*,-n*) ECHO_N= ECHO_C='
22455 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22456 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22459 if expr a : '\(a\)' >/dev/null 2>&1; then
22465 rm -f conf$$ conf$$.exe conf$$.file
22467 if ln -s conf$$.file conf$$ 2>/dev/null; then
22468 # We could just check for DJGPP; but this test a) works b) is more generic
22469 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22470 if test -f conf$$.exe; then
22471 # Don't use ln at all; we don't have any links
22476 elif ln conf$$.file conf$$ 2>/dev/null; then
22481 rm -f conf$$ conf$$.exe conf$$.file
22483 if mkdir -p . 2>/dev/null; then
22486 test -d ./-p && rmdir ./-p
22490 as_executable_p="test -f"
22492 # Sed expression to map a string onto a valid CPP name.
22493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22495 # Sed expression to map a string onto a valid variable name.
22496 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22500 # We need space, tab and new line, in precisely that order.
22510 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22511 # report actual input values of CONFIG_FILES etc. instead of their
22512 # values after options handling. Logging --version etc. is OK.
22516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22517 ## Running $as_me. ##
22522 This file was extended by PostgreSQL $as_me 8.2devel, which was
22523 generated by GNU Autoconf 2.59. Invocation command line was
22525 CONFIG_FILES = $CONFIG_FILES
22526 CONFIG_HEADERS = $CONFIG_HEADERS
22527 CONFIG_LINKS = $CONFIG_LINKS
22528 CONFIG_COMMANDS = $CONFIG_COMMANDS
22532 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22536 # Files that config.status was made for.
22537 if test -n "$ac_config_files"; then
22538 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22541 if test -n "$ac_config_headers"; then
22542 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22545 if test -n "$ac_config_links"; then
22546 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22549 if test -n "$ac_config_commands"; then
22550 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22553 cat >>$CONFIG_STATUS <<\_ACEOF
22556 \`$as_me' instantiates files from templates according to the
22557 current configuration.
22559 Usage: $0 [OPTIONS] [FILE]...
22561 -h, --help print this help, then exit
22562 -V, --version print version number, then exit
22563 -q, --quiet do not print progress messages
22564 -d, --debug don't remove temporary files
22565 --recheck update $as_me by reconfiguring in the same conditions
22566 --file=FILE[:TEMPLATE]
22567 instantiate the configuration file FILE
22568 --header=FILE[:TEMPLATE]
22569 instantiate the configuration header FILE
22571 Configuration files:
22574 Configuration headers:
22577 Configuration links:
22580 Configuration commands:
22583 Report bugs to <bug-autoconf@gnu.org>."
22586 cat >>$CONFIG_STATUS <<_ACEOF
22588 PostgreSQL config.status 8.2devel
22589 configured by $0, generated by GNU Autoconf 2.59,
22590 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22592 Copyright (C) 2003 Free Software Foundation, Inc.
22593 This config.status script is free software; the Free Software Foundation
22594 gives unlimited permission to copy, distribute and modify it."
22598 cat >>$CONFIG_STATUS <<\_ACEOF
22599 # If no file are specified by the user, then we need to provide default
22600 # value. By we need to know if files were specified by the user.
22606 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22607 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22615 *) # This is not an option, so the user has probably given explicit
22618 ac_need_defaults=false;;
22622 # Handling of the options.
22624 cat >>$CONFIG_STATUS <<\_ACEOF
22625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22627 --version | --vers* | -V )
22628 echo "$ac_cs_version"; exit 0 ;;
22630 # Conflict between --help and --header
22631 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22632 Try \`$0 --help' for more information." >&5
22633 echo "$as_me: error: ambiguous option: $1
22634 Try \`$0 --help' for more information." >&2;}
22635 { (exit 1); exit 1; }; };;
22636 --help | --hel | -h )
22637 echo "$ac_cs_usage"; exit 0 ;;
22638 --debug | --d* | -d )
22640 --file | --fil | --fi | --f )
22642 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22643 ac_need_defaults=false;;
22644 --header | --heade | --head | --hea )
22646 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22647 ac_need_defaults=false;;
22648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22652 # This is an error.
22653 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22654 Try \`$0 --help' for more information." >&5
22655 echo "$as_me: error: unrecognized option: $1
22656 Try \`$0 --help' for more information." >&2;}
22657 { (exit 1); exit 1; }; } ;;
22659 *) ac_config_targets="$ac_config_targets $1" ;;
22665 ac_configure_extra_args=
22667 if $ac_cs_silent; then
22669 ac_configure_extra_args="$ac_configure_extra_args --silent"
22673 cat >>$CONFIG_STATUS <<_ACEOF
22674 if \$ac_cs_recheck; then
22675 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22676 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22685 cat >>$CONFIG_STATUS <<\_ACEOF
22686 for ac_config_target in $ac_config_targets
22688 case "$ac_config_target" in
22689 # Handling of arguments.
22690 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
22691 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
22692 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
22693 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
22694 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
22695 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
22696 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
22697 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
22698 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
22699 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
22700 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
22701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22702 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22703 { (exit 1); exit 1; }; };;
22707 # If the user did not use the arguments to specify the items to instantiate,
22708 # then the envvar interface is used. Set only those that are not.
22709 # We use the long form for the default assignment because of an extremely
22710 # bizarre bug on SunOS 4.1.3.
22711 if $ac_need_defaults; then
22712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22713 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22714 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22718 # Have a temporary directory for convenience. Make it in the build tree
22719 # simply because there is no reason to put it here, and in addition,
22720 # creating and moving files from /tmp can sometimes cause problems.
22721 # Create a temporary directory, and hook for its removal unless debugging.
22724 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22725 trap '{ (exit 1); exit 1; }' 1 2 13 15
22728 # Create a (secure) tmp directory for tmp files.
22731 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22732 test -n "$tmp" && test -d "$tmp"
22735 tmp=./confstat$$-$RANDOM
22736 (umask 077 && mkdir $tmp)
22739 echo "$me: cannot create a temporary directory in ." >&2
22740 { (exit 1); exit 1; }
22745 cat >>$CONFIG_STATUS <<_ACEOF
22748 # CONFIG_FILES section.
22751 # No need to generate the scripts if there are no CONFIG_FILES.
22752 # This happens for instance when ./config.status config.h
22753 if test -n "\$CONFIG_FILES"; then
22754 # Protect against being on the right side of a sed subst in config.status.
22755 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22756 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22757 s,@SHELL@,$SHELL,;t t
22758 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22759 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22760 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22761 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22762 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22763 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22764 s,@exec_prefix@,$exec_prefix,;t t
22765 s,@prefix@,$prefix,;t t
22766 s,@program_transform_name@,$program_transform_name,;t t
22767 s,@bindir@,$bindir,;t t
22768 s,@sbindir@,$sbindir,;t t
22769 s,@libexecdir@,$libexecdir,;t t
22770 s,@datadir@,$datadir,;t t
22771 s,@sysconfdir@,$sysconfdir,;t t
22772 s,@sharedstatedir@,$sharedstatedir,;t t
22773 s,@localstatedir@,$localstatedir,;t t
22774 s,@libdir@,$libdir,;t t
22775 s,@includedir@,$includedir,;t t
22776 s,@oldincludedir@,$oldincludedir,;t t
22777 s,@infodir@,$infodir,;t t
22778 s,@mandir@,$mandir,;t t
22779 s,@build_alias@,$build_alias,;t t
22780 s,@host_alias@,$host_alias,;t t
22781 s,@target_alias@,$target_alias,;t t
22782 s,@DEFS@,$DEFS,;t t
22783 s,@ECHO_C@,$ECHO_C,;t t
22784 s,@ECHO_N@,$ECHO_N,;t t
22785 s,@ECHO_T@,$ECHO_T,;t t
22786 s,@LIBS@,$LIBS,;t t
22787 s,@configure_args@,$configure_args,;t t
22788 s,@build@,$build,;t t
22789 s,@build_cpu@,$build_cpu,;t t
22790 s,@build_vendor@,$build_vendor,;t t
22791 s,@build_os@,$build_os,;t t
22792 s,@host@,$host,;t t
22793 s,@host_cpu@,$host_cpu,;t t
22794 s,@host_vendor@,$host_vendor,;t t
22795 s,@host_os@,$host_os,;t t
22796 s,@PORTNAME@,$PORTNAME,;t t
22797 s,@docdir@,$docdir,;t t
22798 s,@enable_nls@,$enable_nls,;t t
22799 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
22800 s,@default_port@,$default_port,;t t
22801 s,@enable_shared@,$enable_shared,;t t
22802 s,@enable_rpath@,$enable_rpath,;t t
22803 s,@enable_debug@,$enable_debug,;t t
22805 s,@CFLAGS@,$CFLAGS,;t t
22806 s,@LDFLAGS@,$LDFLAGS,;t t
22807 s,@CPPFLAGS@,$CPPFLAGS,;t t
22808 s,@ac_ct_CC@,$ac_ct_CC,;t t
22809 s,@EXEEXT@,$EXEEXT,;t t
22810 s,@OBJEXT@,$OBJEXT,;t t
22814 s,@autodepend@,$autodepend,;t t
22815 s,@INCLUDES@,$INCLUDES,;t t
22816 s,@enable_thread_safety@,$enable_thread_safety,;t t
22817 s,@with_tcl@,$with_tcl,;t t
22818 s,@with_perl@,$with_perl,;t t
22819 s,@with_python@,$with_python,;t t
22820 s,@with_krb5@,$with_krb5,;t t
22821 s,@krb_srvtab@,$krb_srvtab,;t t
22822 s,@with_pam@,$with_pam,;t t
22823 s,@with_bonjour@,$with_bonjour,;t t
22824 s,@with_openssl@,$with_openssl,;t t
22825 s,@with_zlib@,$with_zlib,;t t
22826 s,@EGREP@,$EGREP,;t t
22827 s,@ELF_SYS@,$ELF_SYS,;t t
22828 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
22830 s,@FLEX@,$FLEX,;t t
22831 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
22832 s,@LN_S@,$LN_S,;t t
22834 s,@with_gnu_ld@,$with_gnu_ld,;t t
22835 s,@ld_R_works@,$ld_R_works,;t t
22836 s,@RANLIB@,$RANLIB,;t t
22837 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22838 s,@LORDER@,$LORDER,;t t
22840 s,@STRIP@,$STRIP,;t t
22841 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22842 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
22843 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
22844 s,@YACC@,$YACC,;t t
22845 s,@YFLAGS@,$YFLAGS,;t t
22846 s,@PERL@,$PERL,;t t
22847 s,@perl_archlibexp@,$perl_archlibexp,;t t
22848 s,@perl_privlibexp@,$perl_privlibexp,;t t
22849 s,@perl_useshrplib@,$perl_useshrplib,;t t
22850 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
22851 s,@PYTHON@,$PYTHON,;t t
22852 s,@python_version@,$python_version,;t t
22853 s,@python_configdir@,$python_configdir,;t t
22854 s,@python_includespec@,$python_includespec,;t t
22855 s,@python_libdir@,$python_libdir,;t t
22856 s,@python_libspec@,$python_libspec,;t t
22857 s,@python_additional_libs@,$python_additional_libs,;t t
22858 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
22859 s,@LIBOBJS@,$LIBOBJS,;t t
22860 s,@acx_pthread_config@,$acx_pthread_config,;t t
22861 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22862 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22863 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22864 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
22865 s,@MSGFMT@,$MSGFMT,;t t
22866 s,@MSGMERGE@,$MSGMERGE,;t t
22867 s,@XGETTEXT@,$XGETTEXT,;t t
22868 s,@localedir@,$localedir,;t t
22869 s,@TCLSH@,$TCLSH,;t t
22870 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
22871 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
22872 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22873 s,@TCL_LIBS@,$TCL_LIBS,;t t
22874 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22875 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
22876 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22877 s,@NSGMLS@,$NSGMLS,;t t
22878 s,@JADE@,$JADE,;t t
22879 s,@have_docbook@,$have_docbook,;t t
22880 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
22881 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
22882 s,@SGMLSPL@,$SGMLSPL,;t t
22883 s,@vpath_build@,$vpath_build,;t t
22884 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22889 cat >>$CONFIG_STATUS <<\_ACEOF
22890 # Split the substitutions into bite-sized pieces for seds with
22891 # small command number limits, like on Digital OSF/1 and HP-UX.
22892 ac_max_sed_lines=48
22893 ac_sed_frag=1 # Number of current file.
22894 ac_beg=1 # First line for current file.
22895 ac_end=$ac_max_sed_lines # Line after last line for current file.
22898 while $ac_more_lines; do
22899 if test $ac_beg -gt 1; then
22900 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22902 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22904 if test ! -s $tmp/subs.frag; then
22905 ac_more_lines=false
22907 # The purpose of the label and of the branching condition is to
22908 # speed up the sed processing (if there are no `@' at all, there
22909 # is no need to browse any of the substitutions).
22910 # These are the two extra sed commands mentioned above.
22912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22913 if test -z "$ac_sed_cmds"; then
22914 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22916 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22918 ac_sed_frag=`expr $ac_sed_frag + 1`
22920 ac_end=`expr $ac_end + $ac_max_sed_lines`
22923 if test -z "$ac_sed_cmds"; then
22926 fi # test -n "$CONFIG_FILES"
22929 cat >>$CONFIG_STATUS <<\_ACEOF
22930 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22933 - | *:- | *:-:* ) # input from stdin
22935 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22937 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22938 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22939 * ) ac_file_in=$ac_file.in ;;
22942 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22943 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22945 X"$ac_file" : 'X\(//\)[^/]' \| \
22946 X"$ac_file" : 'X\(//\)$' \| \
22947 X"$ac_file" : 'X\(/\)' \| \
22948 . : '\(.\)' 2>/dev/null ||
22950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22952 /^X\(\/\/\)$/{ s//\1/; q; }
22953 /^X\(\/\).*/{ s//\1/; q; }
22955 { if $as_mkdir_p; then
22960 while test ! -d "$as_dir"; do
22961 as_dirs="$as_dir $as_dirs"
22962 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22964 X"$as_dir" : 'X\(//\)[^/]' \| \
22965 X"$as_dir" : 'X\(//\)$' \| \
22966 X"$as_dir" : 'X\(/\)' \| \
22967 . : '\(.\)' 2>/dev/null ||
22969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22971 /^X\(\/\/\)$/{ s//\1/; q; }
22972 /^X\(\/\).*/{ s//\1/; q; }
22975 test ! -n "$as_dirs" || mkdir $as_dirs
22976 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22977 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22978 { (exit 1); exit 1; }; }; }
22982 if test "$ac_dir" != .; then
22983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22984 # A "../" for each directory in $ac_dir_suffix.
22985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22987 ac_dir_suffix= ac_top_builddir=
22991 .) # No --srcdir option. We are building in place.
22993 if test -z "$ac_top_builddir"; then
22996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22998 [\\/]* | ?:[\\/]* ) # Absolute path.
22999 ac_srcdir=$srcdir$ac_dir_suffix;
23000 ac_top_srcdir=$srcdir ;;
23001 *) # Relative path.
23002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23006 # Do not use `cd foo && pwd` to compute absolute paths, because
23007 # the directories may not exist.
23009 .) ac_abs_builddir="$ac_dir";;
23012 .) ac_abs_builddir=`pwd`;;
23013 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23014 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23017 case $ac_abs_builddir in
23018 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23020 case ${ac_top_builddir}. in
23021 .) ac_abs_top_builddir=$ac_abs_builddir;;
23022 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23023 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23026 case $ac_abs_builddir in
23027 .) ac_abs_srcdir=$ac_srcdir;;
23030 .) ac_abs_srcdir=$ac_abs_builddir;;
23031 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23032 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23035 case $ac_abs_builddir in
23036 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23038 case $ac_top_srcdir in
23039 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23040 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23041 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23047 if test x"$ac_file" != x-; then
23048 { echo "$as_me:$LINENO: creating $ac_file" >&5
23049 echo "$as_me: creating $ac_file" >&6;}
23052 # Let's still pretend it is `configure' which instantiates (i.e., don't
23053 # use $as_me), people would be surprised to read:
23054 # /* config.h. Generated by config.status. */
23055 if test x"$ac_file" = x-; then
23058 configure_input="$ac_file. "
23060 configure_input=$configure_input"Generated from `echo $ac_file_in |
23061 sed 's,.*/,,'` by configure."
23063 # First look for the input files in the build tree, otherwise in the
23065 ac_file_inputs=`IFS=:
23066 for f in $ac_file_in; do
23068 -) echo $tmp/stdin ;;
23070 # Absolute (can't be DOS-style, as IFS=:)
23071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23072 echo "$as_me: error: cannot find input file: $f" >&2;}
23073 { (exit 1); exit 1; }; }
23076 if test -f "$f"; then
23079 elif test -f "$srcdir/$f"; then
23084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23085 echo "$as_me: error: cannot find input file: $f" >&2;}
23086 { (exit 1); exit 1; }; }
23089 done` || { (exit 1); exit 1; }
23091 cat >>$CONFIG_STATUS <<_ACEOF
23095 cat >>$CONFIG_STATUS <<\_ACEOF
23097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23098 s,@configure_input@,$configure_input,;t t
23099 s,@srcdir@,$ac_srcdir,;t t
23100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23101 s,@top_srcdir@,$ac_top_srcdir,;t t
23102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23103 s,@builddir@,$ac_builddir,;t t
23104 s,@abs_builddir@,$ac_abs_builddir,;t t
23105 s,@top_builddir@,$ac_top_builddir,;t t
23106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23109 if test x"$ac_file" != x-; then
23110 mv $tmp/out $ac_file
23118 cat >>$CONFIG_STATUS <<\_ACEOF
23121 # CONFIG_HEADER section.
23124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23127 # ac_d sets the value in "#define NAME VALUE" lines.
23128 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23129 ac_dB='[ ].*$,\1#\2'
23132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23133 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23134 ac_uB='$,\1#\2define\3'
23138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23141 - | *:- | *:-:* ) # input from stdin
23143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23147 * ) ac_file_in=$ac_file.in ;;
23150 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23151 echo "$as_me: creating $ac_file" >&6;}
23153 # First look for the input files in the build tree, otherwise in the
23155 ac_file_inputs=`IFS=:
23156 for f in $ac_file_in; do
23158 -) echo $tmp/stdin ;;
23160 # Absolute (can't be DOS-style, as IFS=:)
23161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23162 echo "$as_me: error: cannot find input file: $f" >&2;}
23163 { (exit 1); exit 1; }; }
23164 # Do quote $f, to prevent DOS paths from being IFS'd.
23167 if test -f "$f"; then
23170 elif test -f "$srcdir/$f"; then
23175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23176 echo "$as_me: error: cannot find input file: $f" >&2;}
23177 { (exit 1); exit 1; }; }
23180 done` || { (exit 1); exit 1; }
23181 # Remove the trailing spaces.
23182 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23186 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23187 # `conftest.undefs', that substitutes the proper values into
23188 # config.h.in to produce config.h. The first handles `#define'
23189 # templates, and the second `#undef' templates.
23190 # And first: Protect against being on the right side of a sed subst in
23191 # config.status. Protect against being in an unquoted here document
23192 # in config.status.
23193 rm -f conftest.defines conftest.undefs
23194 # Using a here document instead of a string reduces the quoting nightmare.
23195 # Putting comments in sed scripts is not portable.
23197 # `end' is used to avoid that the second main sed command (meant for
23198 # 0-ary CPP macros) applies to n-ary macro definitions.
23199 # See the Autoconf documentation for `clear'.
23200 cat >confdef2sed.sed <<\_ACEOF
23205 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23207 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23210 # If some macros were called several times there might be several times
23211 # the same #defines, which is useless. Nevertheless, we may not want to
23212 # sort them, since we want the *last* AC-DEFINE to be honored.
23213 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23214 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23215 rm -f confdef2sed.sed
23217 # This sed command replaces #undef with comments. This is necessary, for
23218 # example, in the case of _POSIX_SOURCE, which is predefined and required
23219 # on some systems where configure will not decide to define it.
23220 cat >>conftest.undefs <<\_ACEOF
23221 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23224 # Break up conftest.defines because some shells have a limit on the size
23225 # of here documents, and old seds have small limits too (100 cmds).
23226 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23227 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23228 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23229 echo ' :' >>$CONFIG_STATUS
23230 rm -f conftest.tail
23231 while grep . conftest.defines >/dev/null
23233 # Write a limited-size here document to $tmp/defines.sed.
23234 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23235 # Speed up: don't consider the non `#define' lines.
23236 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23237 # Work around the forget-to-reset-the-flag bug.
23238 echo 't clr' >>$CONFIG_STATUS
23239 echo ': clr' >>$CONFIG_STATUS
23240 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23242 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23244 mv $tmp/out $tmp/in
23246 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23247 rm -f conftest.defines
23248 mv conftest.tail conftest.defines
23250 rm -f conftest.defines
23251 echo ' fi # grep' >>$CONFIG_STATUS
23252 echo >>$CONFIG_STATUS
23254 # Break up conftest.undefs because some shells have a limit on the size
23255 # of here documents, and old seds have small limits too (100 cmds).
23256 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23257 rm -f conftest.tail
23258 while grep . conftest.undefs >/dev/null
23260 # Write a limited-size here document to $tmp/undefs.sed.
23261 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23262 # Speed up: don't consider the non `#undef'
23263 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23264 # Work around the forget-to-reset-the-flag bug.
23265 echo 't clr' >>$CONFIG_STATUS
23266 echo ': clr' >>$CONFIG_STATUS
23267 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23269 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23271 mv $tmp/out $tmp/in
23273 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23274 rm -f conftest.undefs
23275 mv conftest.tail conftest.undefs
23277 rm -f conftest.undefs
23279 cat >>$CONFIG_STATUS <<\_ACEOF
23280 # Let's still pretend it is `configure' which instantiates (i.e., don't
23281 # use $as_me), people would be surprised to read:
23282 # /* config.h. Generated by config.status. */
23283 if test x"$ac_file" = x-; then
23284 echo "/* Generated by configure. */" >$tmp/config.h
23286 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23288 cat $tmp/in >>$tmp/config.h
23290 if test x"$ac_file" != x-; then
23291 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23293 echo "$as_me: $ac_file is unchanged" >&6;}
23295 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23297 X"$ac_file" : 'X\(//\)[^/]' \| \
23298 X"$ac_file" : 'X\(//\)$' \| \
23299 X"$ac_file" : 'X\(/\)' \| \
23300 . : '\(.\)' 2>/dev/null ||
23302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23304 /^X\(\/\/\)$/{ s//\1/; q; }
23305 /^X\(\/\).*/{ s//\1/; q; }
23307 { if $as_mkdir_p; then
23312 while test ! -d "$as_dir"; do
23313 as_dirs="$as_dir $as_dirs"
23314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23316 X"$as_dir" : 'X\(//\)[^/]' \| \
23317 X"$as_dir" : 'X\(//\)$' \| \
23318 X"$as_dir" : 'X\(/\)' \| \
23319 . : '\(.\)' 2>/dev/null ||
23321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23323 /^X\(\/\/\)$/{ s//\1/; q; }
23324 /^X\(\/\).*/{ s//\1/; q; }
23327 test ! -n "$as_dirs" || mkdir $as_dirs
23328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23330 { (exit 1); exit 1; }; }; }
23333 mv $tmp/config.h $ac_file
23337 rm -f $tmp/config.h
23339 # Run the commands associated with the file.
23341 src/include/pg_config.h )
23342 # Update timestamp for pg_config.h (see Makefile.global)
23343 echo >src/include/stamp-h
23348 cat >>$CONFIG_STATUS <<\_ACEOF
23351 # CONFIG_LINKS section.
23354 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23355 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23356 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23358 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23359 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23361 if test ! -r $srcdir/$ac_source; then
23362 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23363 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23364 { (exit 1); exit 1; }; }
23368 # Make relative symlinks.
23369 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23370 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23371 X"$ac_dest" : 'X\(//\)[^/]' \| \
23372 X"$ac_dest" : 'X\(//\)$' \| \
23373 X"$ac_dest" : 'X\(/\)' \| \
23374 . : '\(.\)' 2>/dev/null ||
23376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23378 /^X\(\/\/\)$/{ s//\1/; q; }
23379 /^X\(\/\).*/{ s//\1/; q; }
23381 { if $as_mkdir_p; then
23382 mkdir -p "$ac_dest_dir"
23384 as_dir="$ac_dest_dir"
23386 while test ! -d "$as_dir"; do
23387 as_dirs="$as_dir $as_dirs"
23388 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23390 X"$as_dir" : 'X\(//\)[^/]' \| \
23391 X"$as_dir" : 'X\(//\)$' \| \
23392 X"$as_dir" : 'X\(/\)' \| \
23393 . : '\(.\)' 2>/dev/null ||
23395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23397 /^X\(\/\/\)$/{ s//\1/; q; }
23398 /^X\(\/\).*/{ s//\1/; q; }
23401 test ! -n "$as_dirs" || mkdir $as_dirs
23402 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23403 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23404 { (exit 1); exit 1; }; }; }
23408 if test "$ac_dest_dir" != .; then
23409 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23410 # A "../" for each directory in $ac_dir_suffix.
23411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23413 ac_dir_suffix= ac_top_builddir=
23417 .) # No --srcdir option. We are building in place.
23419 if test -z "$ac_top_builddir"; then
23422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23424 [\\/]* | ?:[\\/]* ) # Absolute path.
23425 ac_srcdir=$srcdir$ac_dir_suffix;
23426 ac_top_srcdir=$srcdir ;;
23427 *) # Relative path.
23428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23432 # Do not use `cd foo && pwd` to compute absolute paths, because
23433 # the directories may not exist.
23435 .) ac_abs_builddir="$ac_dest_dir";;
23437 case "$ac_dest_dir" in
23438 .) ac_abs_builddir=`pwd`;;
23439 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23440 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23443 case $ac_abs_builddir in
23444 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23446 case ${ac_top_builddir}. in
23447 .) ac_abs_top_builddir=$ac_abs_builddir;;
23448 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23449 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23452 case $ac_abs_builddir in
23453 .) ac_abs_srcdir=$ac_srcdir;;
23456 .) ac_abs_srcdir=$ac_abs_builddir;;
23457 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23458 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23461 case $ac_abs_builddir in
23462 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23464 case $ac_top_srcdir in
23465 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23466 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23467 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23473 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23474 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23477 # Try a symlink, then a hard link, then a copy.
23478 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23479 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23480 cp -p $srcdir/$ac_source $ac_dest ||
23481 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23482 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23483 { (exit 1); exit 1; }; }
23486 cat >>$CONFIG_STATUS <<\_ACEOF
23489 # CONFIG_COMMANDS section.
23491 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23492 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23493 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23494 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23495 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23496 X"$ac_dest" : 'X\(//\)[^/]' \| \
23497 X"$ac_dest" : 'X\(//\)$' \| \
23498 X"$ac_dest" : 'X\(/\)' \| \
23499 . : '\(.\)' 2>/dev/null ||
23501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23503 /^X\(\/\/\)$/{ s//\1/; q; }
23504 /^X\(\/\).*/{ s//\1/; q; }
23506 { if $as_mkdir_p; then
23511 while test ! -d "$as_dir"; do
23512 as_dirs="$as_dir $as_dirs"
23513 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23515 X"$as_dir" : 'X\(//\)[^/]' \| \
23516 X"$as_dir" : 'X\(//\)$' \| \
23517 X"$as_dir" : 'X\(/\)' \| \
23518 . : '\(.\)' 2>/dev/null ||
23520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23522 /^X\(\/\/\)$/{ s//\1/; q; }
23523 /^X\(\/\).*/{ s//\1/; q; }
23526 test ! -n "$as_dirs" || mkdir $as_dirs
23527 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23529 { (exit 1); exit 1; }; }; }
23533 if test "$ac_dir" != .; then
23534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23535 # A "../" for each directory in $ac_dir_suffix.
23536 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23538 ac_dir_suffix= ac_top_builddir=
23542 .) # No --srcdir option. We are building in place.
23544 if test -z "$ac_top_builddir"; then
23547 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23549 [\\/]* | ?:[\\/]* ) # Absolute path.
23550 ac_srcdir=$srcdir$ac_dir_suffix;
23551 ac_top_srcdir=$srcdir ;;
23552 *) # Relative path.
23553 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23554 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23557 # Do not use `cd foo && pwd` to compute absolute paths, because
23558 # the directories may not exist.
23560 .) ac_abs_builddir="$ac_dir";;
23563 .) ac_abs_builddir=`pwd`;;
23564 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23565 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23568 case $ac_abs_builddir in
23569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23571 case ${ac_top_builddir}. in
23572 .) ac_abs_top_builddir=$ac_abs_builddir;;
23573 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23574 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23577 case $ac_abs_builddir in
23578 .) ac_abs_srcdir=$ac_srcdir;;
23581 .) ac_abs_srcdir=$ac_abs_builddir;;
23582 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23583 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23586 case $ac_abs_builddir in
23587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23589 case $ac_top_srcdir in
23590 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23591 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23592 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23597 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23598 echo "$as_me: executing $ac_dest commands" >&6;}
23600 check_win32_symlinks )
23601 # Links sometimes fail undetected on Mingw -
23602 # so here we detect it and warn the user
23603 for FILE in $CONFIG_LINKS
23605 # test -e works for symlinks in the MinGW console
23606 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
23607 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
23614 cat >>$CONFIG_STATUS <<\_ACEOF
23616 { (exit 0); exit 0; }
23618 chmod +x $CONFIG_STATUS
23619 ac_clean_files=$ac_clean_files_save
23622 # configure is writing to config.log, and then calls config.status.
23623 # config.status does its own redirection, appending to config.log.
23624 # Unfortunately, on DOS this fails, as config.log is still kept open
23625 # by configure, so config.status won't be able to write to it; its
23626 # output is simply discarded. So we exec the FD to /dev/null,
23627 # effectively closing config.log, so it can be properly (re)opened and
23628 # appended to by config.status. When coming back to configure, we
23629 # need to make the FD available again.
23630 if test "$no_create" != yes; then
23632 ac_config_status_args=
23633 test "$silent" = yes &&
23634 ac_config_status_args="$ac_config_status_args --quiet"
23636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23639 # would make configure fail if this is the last instruction.
23640 $ac_cs_success || { (exit 1); exit 1; }