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 # awk -F is a regex on some platforms, and not on others, so make "." a tab
4747 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4749 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4751 cat >>confdefs.h <<_ACEOF
4752 #define PG_VERSION_NUM $PG_VERSION_NUM
4760 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4761 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4762 if test "${ac_cv_search_setproctitle+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_func_search_save_LIBS=$LIBS
4766 ac_cv_search_setproctitle=no
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4774 /* Override any gcc2 internal prototype to avoid an error. */
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4780 char setproctitle ();
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791 (eval $ac_link) 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_c_werror_flag"
4799 || test ! -s conftest.err'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; } &&
4805 { ac_try='test -s conftest$ac_exeext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 ac_cv_search_setproctitle="none required"
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819 if test "$ac_cv_search_setproctitle" = no; then
4820 for ac_lib in util; do
4821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4822 cat >conftest.$ac_ext <<_ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4829 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4835 char setproctitle ();
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846 (eval $ac_link) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_search_setproctitle="-l$ac_lib"
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4873 rm -f conftest.err conftest.$ac_objext \
4874 conftest$ac_exeext conftest.$ac_ext
4877 LIBS=$ac_func_search_save_LIBS
4879 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4880 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4881 if test "$ac_cv_search_setproctitle" != no; then
4882 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4886 echo "$as_me:$LINENO: checking for library containing pow" >&5
4887 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4888 if test "${ac_cv_search_pow+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_func_search_save_LIBS=$LIBS
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4900 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4915 rm -f conftest.$ac_objext conftest$ac_exeext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917 (eval $ac_link) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest$ac_exeext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_search_pow="none required"
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4943 rm -f conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
4945 if test "$ac_cv_search_pow" = no; then
4947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 /* Override any gcc2 internal prototype to avoid an error. */
4959 /* We use char because int might match the return type of a gcc2
4960 builtin and then its argument prototype would still apply. */
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_search_pow="-l$ac_lib"
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4999 rm -f conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5003 LIBS=$ac_func_search_save_LIBS
5005 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5006 echo "${ECHO_T}$ac_cv_search_pow" >&6
5007 if test "$ac_cv_search_pow" != no; then
5008 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5012 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5013 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5014 if test "${ac_cv_search_dlopen+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 ac_func_search_save_LIBS=$LIBS
5018 ac_cv_search_dlopen=no
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5026 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest$ac_exeext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_search_dlopen="none required"
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -f conftest.err conftest.$ac_objext \
5070 conftest$ac_exeext conftest.$ac_ext
5071 if test "$ac_cv_search_dlopen" = no; then
5072 for ac_lib in dl; do
5073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_search_dlopen="-l$ac_lib"
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5125 rm -f conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5129 LIBS=$ac_func_search_save_LIBS
5131 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5132 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5133 if test "$ac_cv_search_dlopen" != no; then
5134 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5138 echo "$as_me:$LINENO: checking for library containing socket" >&5
5139 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5140 if test "${ac_cv_search_socket+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 ac_func_search_save_LIBS=$LIBS
5144 ac_cv_search_socket=no
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5152 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5167 rm -f conftest.$ac_objext conftest$ac_exeext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5169 (eval $ac_link) 2>conftest.er1
5171 grep -v '^ *+' conftest.er1 >conftest.err
5173 cat conftest.err >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -z "$ac_c_werror_flag"
5177 || test ! -s conftest.err'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; } &&
5183 { ac_try='test -s conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_search_socket="none required"
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5195 rm -f conftest.err conftest.$ac_objext \
5196 conftest$ac_exeext conftest.$ac_ext
5197 if test "$ac_cv_search_socket" = no; then
5198 for ac_lib in socket wsock32; do
5199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_search_socket="-l$ac_lib"
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5251 rm -f conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5255 LIBS=$ac_func_search_save_LIBS
5257 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5258 echo "${ECHO_T}$ac_cv_search_socket" >&6
5259 if test "$ac_cv_search_socket" != no; then
5260 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5264 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5265 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5266 if test "${ac_cv_search_shl_load+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 ac_func_search_save_LIBS=$LIBS
5270 ac_cv_search_shl_load=no
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5278 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295 (eval $ac_link) 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -z "$ac_c_werror_flag"
5303 || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_cv_search_shl_load="none required"
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5321 rm -f conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 if test "$ac_cv_search_shl_load" = no; then
5324 for ac_lib in dld; do
5325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5333 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350 (eval $ac_link) 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -z "$ac_c_werror_flag"
5358 || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_search_shl_load="-l$ac_lib"
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5377 rm -f conftest.err conftest.$ac_objext \
5378 conftest$ac_exeext conftest.$ac_ext
5381 LIBS=$ac_func_search_save_LIBS
5383 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5384 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5385 if test "$ac_cv_search_shl_load" != no; then
5386 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5390 # We only use libld in port/dynloader/aix.c
5393 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5394 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5395 if test "${ac_cv_search_ldopen+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 ac_func_search_save_LIBS=$LIBS
5399 ac_cv_search_ldopen=no
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_search_ldopen="none required"
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5450 rm -f conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5452 if test "$ac_cv_search_ldopen" = no; then
5453 for ac_lib in ld; do
5454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>conftest.er1
5481 grep -v '^ *+' conftest.er1 >conftest.err
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -z "$ac_c_werror_flag"
5487 || test ! -s conftest.err'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest$ac_exeext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_cv_search_ldopen="-l$ac_lib"
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5506 rm -f conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext conftest.$ac_ext
5510 LIBS=$ac_func_search_save_LIBS
5512 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5513 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5514 if test "$ac_cv_search_ldopen" != no; then
5515 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5521 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5522 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5523 if test "${ac_cv_search_getopt_long+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 ac_func_search_save_LIBS=$LIBS
5527 ac_cv_search_getopt_long=no
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5535 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5541 char getopt_long ();
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_search_getopt_long="none required"
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5578 rm -f conftest.err conftest.$ac_objext \
5579 conftest$ac_exeext conftest.$ac_ext
5580 if test "$ac_cv_search_getopt_long" = no; then
5581 for ac_lib in getopt gnugetopt; do
5582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5596 char getopt_long ();
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -z "$ac_c_werror_flag"
5615 || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_search_getopt_long="-l$ac_lib"
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5634 rm -f conftest.err conftest.$ac_objext \
5635 conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_func_search_save_LIBS
5640 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5641 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5642 if test "$ac_cv_search_getopt_long" != no; then
5643 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5647 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5648 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5649 if test "${ac_cv_search_crypt+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 ac_func_search_save_LIBS=$LIBS
5653 ac_cv_search_crypt=no
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest$ac_exeext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_search_crypt="none required"
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_crypt" = no; then
5707 for ac_lib in crypt; do
5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_c_werror_flag"
5741 || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 ac_cv_search_crypt="-l$ac_lib"
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5760 rm -f conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5764 LIBS=$ac_func_search_save_LIBS
5766 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5767 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5768 if test "$ac_cv_search_crypt" != no; then
5769 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5774 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5775 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5776 if test "${ac_cv_search_fdatasync+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_func_search_save_LIBS=$LIBS
5780 ac_cv_search_fdatasync=no
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5788 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest$ac_exeext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_cv_search_fdatasync="none required"
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5831 rm -f conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833 if test "$ac_cv_search_fdatasync" = no; then
5834 for ac_lib in rt posix4; do
5835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest$ac_exeext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_search_fdatasync="-l$ac_lib"
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5887 rm -f conftest.err conftest.$ac_objext \
5888 conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_func_search_save_LIBS
5893 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5894 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5895 if test "$ac_cv_search_fdatasync" != no; then
5896 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5901 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5902 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5903 if test "${ac_cv_search_shmget+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_func_search_save_LIBS=$LIBS
5907 ac_cv_search_shmget=no
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5915 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -z "$ac_c_werror_flag"
5940 || test ! -s conftest.err'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; } &&
5946 { ac_try='test -s conftest$ac_exeext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_search_shmget="none required"
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5960 if test "$ac_cv_search_shmget" = no; then
5961 for ac_lib in cygipc; do
5962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any gcc2 internal prototype to avoid an error. */
5974 /* We use char because int might match the return type of a gcc2
5975 builtin and then its argument prototype would still apply. */
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest$ac_exeext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_search_shmget="-l$ac_lib"
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_func_search_save_LIBS
6020 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6021 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6022 if test "$ac_cv_search_shmget" != no; then
6023 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6028 if test "$with_readline" = yes; then
6031 if test "${pgac_cv_check_readline+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 pgac_cv_check_readline=no
6035 pgac_save_LIBS=$LIBS
6036 if test x"$with_libedit_preferred" != x"yes"
6037 then READLINE_ORDER="-lreadline -ledit"
6038 else READLINE_ORDER="-ledit -lreadline"
6040 for pgac_rllib in $READLINE_ORDER ; do
6041 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6042 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6043 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6044 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6052 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag"
6077 || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try='test -s conftest$ac_exeext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6090 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6091 # recognize dependent libraries; assume curses is needed if we didn't
6092 # find any dependency.
6094 netbsd* | openbsd* | irix*)
6095 if test x"$pgac_lib" = x"" ; then
6096 pgac_lib=" -lcurses"
6100 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6108 rm -f conftest.err conftest.$ac_objext \
6109 conftest$ac_exeext conftest.$ac_ext
6111 if test "$pgac_cv_check_readline" != no ; then
6112 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6113 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6116 echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6120 LIBS=$pgac_save_LIBS
6124 if test "$pgac_cv_check_readline" != no ; then
6125 LIBS="$pgac_cv_check_readline $LIBS"
6127 cat >>confdefs.h <<\_ACEOF
6128 #define HAVE_LIBREADLINE 1
6134 if test x"$pgac_cv_check_readline" = x"no"; then
6135 { { echo "$as_me:$LINENO: error: readline library not found
6136 If you have readline already installed, see config.log for details on the
6137 failure. It is possible the compiler isn't looking in the proper directory.
6138 Use --without-readline to disable readline support." >&5
6139 echo "$as_me: error: readline library not found
6140 If you have readline already installed, see config.log for details on the
6141 failure. It is possible the compiler isn't looking in the proper directory.
6142 Use --without-readline to disable readline support." >&2;}
6143 { (exit 1); exit 1; }; }
6147 if test "$with_zlib" = yes; then
6149 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6150 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6151 if test "${ac_cv_lib_z_inflate+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_check_lib_save_LIBS=$LIBS
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_lib_z_inflate=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_lib_z_inflate=no
6207 rm -f conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209 LIBS=$ac_check_lib_save_LIBS
6211 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6212 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6213 if test $ac_cv_lib_z_inflate = yes; then
6214 cat >>confdefs.h <<_ACEOF
6221 { { echo "$as_me:$LINENO: error: zlib library not found
6222 If you have zlib already installed, see config.log for details on the
6223 failure. It is possible the compiler isn't looking in the proper directory.
6224 Use --without-zlib to disable zlib support." >&5
6225 echo "$as_me: error: zlib library not found
6226 If you have zlib already installed, see config.log for details on the
6227 failure. It is possible the compiler isn't looking in the proper directory.
6228 Use --without-zlib to disable zlib support." >&2;}
6229 { (exit 1); exit 1; }; }
6234 if test "$enable_spinlocks" = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define HAVE_SPINLOCKS 1
6241 { echo "$as_me:$LINENO: WARNING:
6242 *** Not using spinlocks will cause poor performance." >&5
6243 echo "$as_me: WARNING:
6244 *** Not using spinlocks will cause poor performance." >&2;}
6247 if test "$with_krb5" = yes ; then
6248 if test "$PORTNAME" != "win32"; then
6249 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6250 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6251 if test "${ac_cv_search_com_err+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 ac_func_search_save_LIBS=$LIBS
6255 ac_cv_search_com_err=no
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6263 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_search_com_err="none required"
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6306 rm -f conftest.err conftest.$ac_objext \
6307 conftest$ac_exeext conftest.$ac_ext
6308 if test "$ac_cv_search_com_err" = no; then
6309 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_search_com_err="-l$ac_lib"
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -f conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_func_search_save_LIBS
6368 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6369 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6370 if test "$ac_cv_search_com_err" != no; then
6371 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6374 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6375 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6376 { (exit 1); exit 1; }; }
6379 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6380 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6381 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 ac_func_search_save_LIBS=$LIBS
6385 ac_cv_search_krb5_encrypt=no
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6393 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6399 char krb5_encrypt ();
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_search_krb5_encrypt="none required"
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6436 rm -f conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 if test "$ac_cv_search_krb5_encrypt" = no; then
6439 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6448 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6454 char krb5_encrypt ();
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 ac_cv_search_krb5_encrypt="-l$ac_lib"
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6492 rm -f conftest.err conftest.$ac_objext \
6493 conftest$ac_exeext conftest.$ac_ext
6496 LIBS=$ac_func_search_save_LIBS
6498 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6499 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6500 if test "$ac_cv_search_krb5_encrypt" != no; then
6501 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6504 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6505 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6506 { (exit 1); exit 1; }; }
6509 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6510 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6511 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 ac_func_search_save_LIBS=$LIBS
6515 ac_cv_search_krb5_sendauth=no
6516 cat >conftest.$ac_ext <<_ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6523 /* Override any gcc2 internal prototype to avoid an error. */
6527 /* We use char because int might match the return type of a gcc2
6528 builtin and then its argument prototype would still apply. */
6529 char krb5_sendauth ();
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_c_werror_flag"
6548 || test ! -s conftest.err'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try='test -s conftest$ac_exeext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_search_krb5_sendauth="none required"
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6566 rm -f conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6568 if test "$ac_cv_search_krb5_sendauth" = no; then
6569 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6578 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6584 char krb5_sendauth ();
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_search_krb5_sendauth="-l$ac_lib"
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6622 rm -f conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_func_search_save_LIBS
6628 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6629 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6630 if test "$ac_cv_search_krb5_sendauth" != no; then
6631 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6634 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6635 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6636 { (exit 1); exit 1; }; }
6640 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6641 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6642 if test "${ac_cv_search_com_err+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_func_search_save_LIBS=$LIBS
6646 ac_cv_search_com_err=no
6647 cat >conftest.$ac_ext <<_ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6654 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag"
6679 || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest$ac_exeext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_cv_search_com_err="none required"
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6697 rm -f conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 if test "$ac_cv_search_com_err" = no; then
6700 for ac_lib in 'comerr32 -lkrb5_32'; do
6701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6709 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag"
6734 || test ! -s conftest.err'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_search_com_err="-l$ac_lib"
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6753 rm -f conftest.err conftest.$ac_objext \
6754 conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_func_search_save_LIBS
6759 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6760 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6761 if test "$ac_cv_search_com_err" != no; then
6762 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6765 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6766 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6767 { (exit 1); exit 1; }; }
6773 if test "$with_openssl" = yes ; then
6774 if test "$PORTNAME" != "win32"; then
6776 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6777 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6778 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_check_lib_save_LIBS=$LIBS
6782 LIBS="-lcrypto $LIBS"
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6790 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796 char CRYPTO_new_ex_data ();
6800 CRYPTO_new_ex_data ();
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6834 rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836 LIBS=$ac_check_lib_save_LIBS
6838 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6839 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6840 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6841 cat >>confdefs.h <<_ACEOF
6842 #define HAVE_LIBCRYPTO 1
6845 LIBS="-lcrypto $LIBS"
6848 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6849 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6850 { (exit 1); exit 1; }; }
6854 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6855 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6856 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_check_lib_save_LIBS=$LIBS
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6868 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char SSL_library_init ();
6878 SSL_library_init ();
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>conftest.er1
6887 grep -v '^ *+' conftest.er1 >conftest.err
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_lib_ssl_SSL_library_init=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 ac_cv_lib_ssl_SSL_library_init=no
6912 rm -f conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 LIBS=$ac_check_lib_save_LIBS
6916 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6917 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6918 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_LIBSSL 1
6926 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6927 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6928 { (exit 1); exit 1; }; }
6933 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6934 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6935 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-leay32 $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6947 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6953 char CRYPTO_new_ex_data ();
6957 CRYPTO_new_ex_data ();
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -z "$ac_c_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6991 rm -f conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6995 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6996 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6997 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_LIBEAY32 1
7002 LIBS="-leay32 $LIBS"
7005 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7006 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7007 { (exit 1); exit 1; }; }
7011 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7012 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7013 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 ac_check_lib_save_LIBS=$LIBS
7017 LIBS="-lssleay32 $LIBS"
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7025 /* Override any gcc2 internal prototype to avoid an error. */
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7031 char SSL_library_init ();
7035 SSL_library_init ();
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042 (eval $ac_link) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_lib_ssleay32_SSL_library_init=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_lib_ssleay32_SSL_library_init=no
7069 rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7074 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7075 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7076 cat >>confdefs.h <<_ACEOF
7077 #define HAVE_LIBSSLEAY32 1
7080 LIBS="-lssleay32 $LIBS"
7083 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7084 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7085 { (exit 1); exit 1; }; }
7091 if test "$with_pam" = yes ; then
7093 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7094 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7095 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 ac_check_lib_save_LIBS=$LIBS
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7107 /* Override any gcc2 internal prototype to avoid an error. */
7111 /* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>conftest.er1
7126 grep -v '^ *+' conftest.er1 >conftest.err
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
7131 { ac_try='test -z "$ac_c_werror_flag"
7132 || test ! -s conftest.err'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; } &&
7138 { ac_try='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_pam_pam_start=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_cv_lib_pam_pam_start=no
7151 rm -f conftest.err conftest.$ac_objext \
7152 conftest$ac_exeext conftest.$ac_ext
7153 LIBS=$ac_check_lib_save_LIBS
7155 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7156 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7157 if test $ac_cv_lib_pam_pam_start = yes; then
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBPAM 1
7165 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7166 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7167 { (exit 1); exit 1; }; }
7177 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7179 if test "${ac_cv_header_stdc+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
7210 { ac_try='test -z "$ac_c_werror_flag"
7211 || test ! -s conftest.err'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; } &&
7217 { ac_try='test -s conftest.$ac_objext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_cv_header_stdc=yes
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ac_cv_header_stdc=no
7230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7232 if test $ac_cv_header_stdc = yes; then
7233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244 $EGREP "memchr" >/dev/null 2>&1; then
7247 ac_cv_header_stdc=no
7253 if test $ac_cv_header_stdc = yes; then
7254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265 $EGREP "free" >/dev/null 2>&1; then
7268 ac_cv_header_stdc=no
7274 if test $ac_cv_header_stdc = yes; then
7275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7276 if test "$cross_compiling" = yes; then
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7286 #if ((' ' & 0x0FF) == 0x020)
7287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7290 # define ISLOWER(c) \
7291 (('a' <= (c) && (c) <= 'i') \
7292 || ('j' <= (c) && (c) <= 'r') \
7293 || ('s' <= (c) && (c) <= 'z'))
7294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7302 for (i = 0; i < 256; i++)
7303 if (XOR (islower (i), ISLOWER (i))
7304 || toupper (i) != TOUPPER (i))
7309 rm -f conftest$ac_exeext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7311 (eval $ac_link) 2>&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7322 echo "$as_me: program exited with status $ac_status" >&5
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7327 ac_cv_header_stdc=no
7329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7334 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7335 if test $ac_cv_header_stdc = yes; then
7337 cat >>confdefs.h <<\_ACEOF
7338 #define STDC_HEADERS 1
7343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7354 inttypes.h stdint.h unistd.h
7356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7357 echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7370 #include <$ac_header>
7372 rm -f conftest.$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -z "$ac_c_werror_flag"
7382 || test ! -s conftest.err'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 eval "$as_ac_Header=yes"
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 eval "$as_ac_Header=no"
7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406 cat >>confdefs.h <<_ACEOF
7407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7440 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
7442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7444 echo "$as_me:$LINENO: checking for $ac_header" >&5
7445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452 # Is the header compilable?
7453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 #include <$ac_header>
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -z "$ac_c_werror_flag"
7474 || test ! -s conftest.err'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest.$ac_objext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_header_compiler=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7491 ac_header_compiler=no
7493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7495 echo "${ECHO_T}$ac_header_compiler" >&6
7497 # Is the header present?
7498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7500 cat >conftest.$ac_ext <<_ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 #include <$ac_header>
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } >/dev/null; then
7516 if test -s conftest.err; then
7517 ac_cpp_err=$ac_c_preproc_warn_flag
7518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7525 if test -z "$ac_cpp_err"; then
7526 ac_header_preproc=yes
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_header_preproc=no
7533 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6
7537 # So? What about this header?
7538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7544 ac_header_preproc=yes
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7561 ## ---------------------------------------- ##
7562 ## Report this to pgsql-bugs@postgresql.org ##
7563 ## ---------------------------------------- ##
7566 sed "s/^/$as_me: WARNING: /" >&2
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 eval "$as_ac_Header=\$ac_header_preproc"
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7590 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7591 # netinet/in.h is included first.
7593 for ac_header in netinet/in.h
7595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7597 echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7605 # Is the header compilable?
7606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7615 #include <$ac_header>
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_header_compiler=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_header_compiler=no
7646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #include <$ac_header>
7661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } >/dev/null; then
7669 if test -s conftest.err; then
7670 ac_cpp_err=$ac_c_preproc_warn_flag
7671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7678 if test -z "$ac_cpp_err"; then
7679 ac_header_preproc=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_header_preproc=no
7686 rm -f conftest.err conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7697 ac_header_preproc=yes
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7714 ## ---------------------------------------- ##
7715 ## Report this to pgsql-bugs@postgresql.org ##
7716 ## ---------------------------------------- ##
7719 sed "s/^/$as_me: WARNING: /" >&2
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 eval "$as_ac_Header=\$ac_header_preproc"
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 for ac_header in netinet/tcp.h
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7758 #ifdef HAVE_NETINET_IN_H
7759 #include <netinet/in.h>
7763 #include <$ac_header>
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 (eval $ac_compile) 2>conftest.er1
7769 grep -v '^ *+' conftest.er1 >conftest.err
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -z "$ac_c_werror_flag"
7775 || test ! -s conftest.err'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; } &&
7781 { ac_try='test -s conftest.$ac_objext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 eval "$as_ac_Header=yes"
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 eval "$as_ac_Header=no"
7794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7799 cat >>confdefs.h <<_ACEOF
7800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7808 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7810 for ac_header in readline/readline.h
7812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7814 echo "$as_me:$LINENO: checking for $ac_header" >&5
7815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7822 # Is the header compilable?
7823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 $ac_includes_default
7832 #include <$ac_header>
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag"
7844 || test ! -s conftest.err'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_header_compiler=yes
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_header_compiler=no
7863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7865 echo "${ECHO_T}$ac_header_compiler" >&6
7867 # Is the header present?
7868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 #include <$ac_header>
7878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } >/dev/null; then
7886 if test -s conftest.err; then
7887 ac_cpp_err=$ac_c_preproc_warn_flag
7888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7895 if test -z "$ac_cpp_err"; then
7896 ac_header_preproc=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_header_preproc=no
7903 rm -f conftest.err conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7905 echo "${ECHO_T}$ac_header_preproc" >&6
7907 # So? What about this header?
7908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7914 ac_header_preproc=yes
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7931 ## ---------------------------------------- ##
7932 ## Report this to pgsql-bugs@postgresql.org ##
7933 ## ---------------------------------------- ##
7936 sed "s/^/$as_me: WARNING: /" >&2
7939 echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 eval "$as_ac_Header=\$ac_header_preproc"
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951 cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957 for ac_header in readline.h
7959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7961 echo "$as_me:$LINENO: checking for $ac_header" >&5
7962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7969 # Is the header compilable?
7970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 $ac_includes_default
7979 #include <$ac_header>
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_header_compiler=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_header_compiler=no
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 echo "${ECHO_T}$ac_header_compiler" >&6
8014 # Is the header present?
8015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 #include <$ac_header>
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } >/dev/null; then
8033 if test -s conftest.err; then
8034 ac_cpp_err=$ac_c_preproc_warn_flag
8035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8042 if test -z "$ac_cpp_err"; then
8043 ac_header_preproc=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_header_preproc=no
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061 ac_header_preproc=yes
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8078 ## ---------------------------------------- ##
8079 ## Report this to pgsql-bugs@postgresql.org ##
8080 ## ---------------------------------------- ##
8083 sed "s/^/$as_me: WARNING: /" >&2
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 eval "$as_ac_Header=\$ac_header_preproc"
8093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8103 { { echo "$as_me:$LINENO: error: readline header not found
8104 If you have readline already installed, see config.log for details on the
8105 failure. It is possible the compiler isn't looking in the proper directory.
8106 Use --without-readline to disable readline support." >&5
8107 echo "$as_me: error: readline header not found
8108 If you have readline already installed, see config.log for details on the
8109 failure. It is possible the compiler isn't looking in the proper directory.
8110 Use --without-readline to disable readline support." >&2;}
8111 { (exit 1); exit 1; }; }
8121 for ac_header in readline/history.h
8123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8125 echo "$as_me:$LINENO: checking for $ac_header" >&5
8126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133 # Is the header compilable?
8134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 #include <$ac_header>
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest.$ac_objext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 ac_header_compiler=yes
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 ac_header_compiler=no
8174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8176 echo "${ECHO_T}$ac_header_compiler" >&6
8178 # Is the header present?
8179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <$ac_header>
8189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } >/dev/null; then
8197 if test -s conftest.err; then
8198 ac_cpp_err=$ac_c_preproc_warn_flag
8199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8206 if test -z "$ac_cpp_err"; then
8207 ac_header_preproc=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 ac_header_preproc=no
8214 rm -f conftest.err conftest.$ac_ext
8215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6
8218 # So? What about this header?
8219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8225 ac_header_preproc=yes
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8242 ## ---------------------------------------- ##
8243 ## Report this to pgsql-bugs@postgresql.org ##
8244 ## ---------------------------------------- ##
8247 sed "s/^/$as_me: WARNING: /" >&2
8250 echo "$as_me:$LINENO: checking for $ac_header" >&5
8251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 eval "$as_ac_Header=\$ac_header_preproc"
8257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8262 cat >>confdefs.h <<_ACEOF
8263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8268 for ac_header in history.h
8270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8272 echo "$as_me:$LINENO: checking for $ac_header" >&5
8273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8280 # Is the header compilable?
8281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #include <$ac_header>
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag"
8302 || test ! -s conftest.err'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_header_compiler=yes
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_header_compiler=no
8321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8323 echo "${ECHO_T}$ac_header_compiler" >&6
8325 # Is the header present?
8326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 #include <$ac_header>
8336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } >/dev/null; then
8344 if test -s conftest.err; then
8345 ac_cpp_err=$ac_c_preproc_warn_flag
8346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8353 if test -z "$ac_cpp_err"; then
8354 ac_header_preproc=yes
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8359 ac_header_preproc=no
8361 rm -f conftest.err conftest.$ac_ext
8362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8363 echo "${ECHO_T}$ac_header_preproc" >&6
8365 # So? What about this header?
8366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8372 ac_header_preproc=yes
8375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8389 ## ---------------------------------------- ##
8390 ## Report this to pgsql-bugs@postgresql.org ##
8391 ## ---------------------------------------- ##
8394 sed "s/^/$as_me: WARNING: /" >&2
8397 echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 eval "$as_ac_Header=\$ac_header_preproc"
8404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8414 { { echo "$as_me:$LINENO: error: history header not found
8415 If you have readline already installed, see config.log for details on the
8416 failure. It is possible the compiler isn't looking in the proper directory.
8417 Use --without-readline to disable readline support." >&5
8418 echo "$as_me: error: history header not found
8419 If you have readline already installed, see config.log for details on the
8420 failure. It is possible the compiler isn't looking in the proper directory.
8421 Use --without-readline to disable readline support." >&2;}
8422 { (exit 1); exit 1; }; }
8433 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8434 # Some installations of libedit usurp /usr/include/readline/, which seems
8435 # bad practice, since in combined installations readline will have its headers
8436 # there. We might have to resort to AC_EGREP checks to make sure we found
8437 # the proper header...
8439 for ac_header in editline/readline.h
8441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8443 echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8451 # Is the header compilable?
8452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 $ac_includes_default
8461 #include <$ac_header>
8463 rm -f conftest.$ac_objext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8465 (eval $ac_compile) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest.$ac_objext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_header_compiler=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_header_compiler=no
8492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 #include <$ac_header>
8507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8510 grep -v '^ *+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } >/dev/null; then
8515 if test -s conftest.err; then
8516 ac_cpp_err=$ac_c_preproc_warn_flag
8517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8524 if test -z "$ac_cpp_err"; then
8525 ac_header_preproc=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 ac_header_preproc=no
8532 rm -f conftest.err conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534 echo "${ECHO_T}$ac_header_preproc" >&6
8536 # So? What about this header?
8537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8543 ac_header_preproc=yes
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8560 ## ---------------------------------------- ##
8561 ## Report this to pgsql-bugs@postgresql.org ##
8562 ## ---------------------------------------- ##
8565 sed "s/^/$as_me: WARNING: /" >&2
8568 echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 eval "$as_ac_Header=\$ac_header_preproc"
8575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8580 cat >>confdefs.h <<_ACEOF
8581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8586 for ac_header in readline.h
8588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590 echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8598 # Is the header compilable?
8599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 #include <$ac_header>
8610 rm -f conftest.$ac_objext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8612 (eval $ac_compile) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag"
8620 || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest.$ac_objext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_header_compiler=yes
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 ac_header_compiler=no
8639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8643 # Is the header present?
8644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 #include <$ac_header>
8654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } >/dev/null; then
8662 if test -s conftest.err; then
8663 ac_cpp_err=$ac_c_preproc_warn_flag
8664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8671 if test -z "$ac_cpp_err"; then
8672 ac_header_preproc=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_header_preproc=no
8679 rm -f conftest.err conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8681 echo "${ECHO_T}$ac_header_preproc" >&6
8683 # So? What about this header?
8684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8690 ac_header_preproc=yes
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8707 ## ---------------------------------------- ##
8708 ## Report this to pgsql-bugs@postgresql.org ##
8709 ## ---------------------------------------- ##
8712 sed "s/^/$as_me: WARNING: /" >&2
8715 echo "$as_me:$LINENO: checking for $ac_header" >&5
8716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 eval "$as_ac_Header=\$ac_header_preproc"
8722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8733 for ac_header in readline/readline.h
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745 # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 #include <$ac_header>
8757 rm -f conftest.$ac_objext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759 (eval $ac_compile) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest.$ac_objext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_header_compiler=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_header_compiler=no
8786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8788 echo "${ECHO_T}$ac_header_compiler" >&6
8790 # Is the header present?
8791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 #include <$ac_header>
8801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } >/dev/null; then
8809 if test -s conftest.err; then
8810 ac_cpp_err=$ac_c_preproc_warn_flag
8811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8818 if test -z "$ac_cpp_err"; then
8819 ac_header_preproc=yes
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_header_preproc=no
8826 rm -f conftest.err conftest.$ac_ext
8827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8828 echo "${ECHO_T}$ac_header_preproc" >&6
8830 # So? What about this header?
8831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8837 ac_header_preproc=yes
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8854 ## ---------------------------------------- ##
8855 ## Report this to pgsql-bugs@postgresql.org ##
8856 ## ---------------------------------------- ##
8859 sed "s/^/$as_me: WARNING: /" >&2
8862 echo "$as_me:$LINENO: checking for $ac_header" >&5
8863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 eval "$as_ac_Header=\$ac_header_preproc"
8869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8879 { { echo "$as_me:$LINENO: error: readline header not found
8880 If you have libedit already installed, see config.log for details on the
8881 failure. It is possible the compiler isn't looking in the proper directory.
8882 Use --without-readline to disable libedit support." >&5
8883 echo "$as_me: error: readline header not found
8884 If you have libedit already installed, see config.log for details on the
8885 failure. It is possible the compiler isn't looking in the proper directory.
8886 Use --without-readline to disable libedit support." >&2;}
8887 { (exit 1); exit 1; }; }
8901 for ac_header in editline/history.h
8903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913 # Is the header compilable?
8914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 #include <$ac_header>
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1 >conftest.err
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_header_compiler=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_header_compiler=no
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 echo "${ECHO_T}$ac_header_compiler" >&6
8958 # Is the header present?
8959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <$ac_header>
8969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } >/dev/null; then
8977 if test -s conftest.err; then
8978 ac_cpp_err=$ac_c_preproc_warn_flag
8979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8986 if test -z "$ac_cpp_err"; then
8987 ac_header_preproc=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_header_preproc=no
8994 rm -f conftest.err conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996 echo "${ECHO_T}$ac_header_preproc" >&6
8998 # So? What about this header?
8999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005 ac_header_preproc=yes
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9022 ## ---------------------------------------- ##
9023 ## Report this to pgsql-bugs@postgresql.org ##
9024 ## ---------------------------------------- ##
9027 sed "s/^/$as_me: WARNING: /" >&2
9030 echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 eval "$as_ac_Header=\$ac_header_preproc"
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9048 for ac_header in history.h
9050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060 # Is the header compilable?
9061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 $ac_includes_default
9070 #include <$ac_header>
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1 >conftest.err
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_header_compiler=no
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <$ac_header>
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } >/dev/null; then
9124 if test -s conftest.err; then
9125 ac_cpp_err=$ac_c_preproc_warn_flag
9126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc=yes
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_header_preproc=no
9141 rm -f conftest.err conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152 ac_header_preproc=yes
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9169 ## ---------------------------------------- ##
9170 ## Report this to pgsql-bugs@postgresql.org ##
9171 ## ---------------------------------------- ##
9174 sed "s/^/$as_me: WARNING: /" >&2
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 eval "$as_ac_Header=\$ac_header_preproc"
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9195 for ac_header in readline/history.h
9197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo "$as_me:$LINENO: checking for $ac_header" >&5
9200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9207 # Is the header compilable?
9208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9217 #include <$ac_header>
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag"
9229 || test ! -s conftest.err'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_header_compiler=yes
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_header_compiler=no
9248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9250 echo "${ECHO_T}$ac_header_compiler" >&6
9252 # Is the header present?
9253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 #include <$ac_header>
9263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } >/dev/null; then
9271 if test -s conftest.err; then
9272 ac_cpp_err=$ac_c_preproc_warn_flag
9273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9280 if test -z "$ac_cpp_err"; then
9281 ac_header_preproc=yes
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_header_preproc=no
9288 rm -f conftest.err conftest.$ac_ext
9289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9290 echo "${ECHO_T}$ac_header_preproc" >&6
9292 # So? What about this header?
9293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9299 ac_header_preproc=yes
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9316 ## ---------------------------------------- ##
9317 ## Report this to pgsql-bugs@postgresql.org ##
9318 ## ---------------------------------------- ##
9321 sed "s/^/$as_me: WARNING: /" >&2
9324 echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 eval "$as_ac_Header=\$ac_header_preproc"
9331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336 cat >>confdefs.h <<_ACEOF
9337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9341 { { echo "$as_me:$LINENO: error: history header not found
9342 If you have libedit already installed, see config.log for details on the
9343 failure. It is possible the compiler isn't looking in the proper directory.
9344 Use --without-readline to disable libedit support." >&5
9345 echo "$as_me: error: history header not found
9346 If you have libedit already installed, see config.log for details on the
9347 failure. It is possible the compiler isn't looking in the proper directory.
9348 Use --without-readline to disable libedit support." >&2;}
9349 { (exit 1); exit 1; }; }
9364 if test "$with_zlib" = yes; then
9365 if test "${ac_cv_header_zlib_h+set}" = set; then
9366 echo "$as_me:$LINENO: checking for zlib.h" >&5
9367 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9368 if test "${ac_cv_header_zlib_h+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9372 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9374 # Is the header compilable?
9375 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9376 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 $ac_includes_default
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_header_compiler=yes
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_header_compiler=no
9415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9421 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9433 grep -v '^ *+' conftest.er1 >conftest.err
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } >/dev/null; then
9438 if test -s conftest.err; then
9439 ac_cpp_err=$ac_c_preproc_warn_flag
9440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9447 if test -z "$ac_cpp_err"; then
9448 ac_header_preproc=yes
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_header_preproc=no
9455 rm -f conftest.err conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457 echo "${ECHO_T}$ac_header_preproc" >&6
9459 # So? What about this header?
9460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9462 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9463 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9465 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9466 ac_header_preproc=yes
9469 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9470 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9472 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9474 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9476 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9478 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9480 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9483 ## ---------------------------------------- ##
9484 ## Report this to pgsql-bugs@postgresql.org ##
9485 ## ---------------------------------------- ##
9488 sed "s/^/$as_me: WARNING: /" >&2
9491 echo "$as_me:$LINENO: checking for zlib.h" >&5
9492 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9493 if test "${ac_cv_header_zlib_h+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 ac_cv_header_zlib_h=$ac_header_preproc
9498 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9499 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9502 if test $ac_cv_header_zlib_h = yes; then
9505 { { echo "$as_me:$LINENO: error: zlib header not found
9506 If you have zlib already installed, see config.log for details on the
9507 failure. It is possible the compiler isn't looking in the proper directory.
9508 Use --without-zlib to disable zlib support." >&5
9509 echo "$as_me: error: zlib header not found
9510 If you have zlib already installed, see config.log for details on the
9511 failure. It is possible the compiler isn't looking in the proper directory.
9512 Use --without-zlib to disable zlib support." >&2;}
9513 { (exit 1); exit 1; }; }
9519 if test "$with_krb5" = yes ; then
9520 if test "${ac_cv_header_krb5_h+set}" = set; then
9521 echo "$as_me:$LINENO: checking for krb5.h" >&5
9522 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9523 if test "${ac_cv_header_krb5_h+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9527 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9529 # Is the header compilable?
9530 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9531 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9541 rm -f conftest.$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543 (eval $ac_compile) 2>conftest.er1
9545 grep -v '^ *+' conftest.er1 >conftest.err
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_header_compiler=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_header_compiler=no
9570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9576 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev/null; then
9593 if test -s conftest.err; then
9594 ac_cpp_err=$ac_c_preproc_warn_flag
9595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9602 if test -z "$ac_cpp_err"; then
9603 ac_header_preproc=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_preproc=no
9610 rm -f conftest.err conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9614 # So? What about this header?
9615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9617 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9620 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9621 ac_header_preproc=yes
9624 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9625 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9627 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9629 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9631 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9635 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9638 ## ---------------------------------------- ##
9639 ## Report this to pgsql-bugs@postgresql.org ##
9640 ## ---------------------------------------- ##
9643 sed "s/^/$as_me: WARNING: /" >&2
9646 echo "$as_me:$LINENO: checking for krb5.h" >&5
9647 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9648 if test "${ac_cv_header_krb5_h+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 ac_cv_header_krb5_h=$ac_header_preproc
9653 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9654 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9657 if test $ac_cv_header_krb5_h = yes; then
9660 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9661 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9662 { (exit 1); exit 1; }; }
9668 if test "$with_openssl" = yes ; then
9669 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9670 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9671 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9672 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9678 # Is the header compilable?
9679 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9680 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 $ac_includes_default
9688 #include <openssl/ssl.h>
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_header_compiler=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_header_compiler=no
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6
9723 # Is the header present?
9724 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9725 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <openssl/ssl.h>
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9751 if test -z "$ac_cpp_err"; then
9752 ac_header_preproc=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_header_preproc=no
9759 rm -f conftest.err conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6
9763 # So? What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9773 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9787 ## ---------------------------------------- ##
9788 ## Report this to pgsql-bugs@postgresql.org ##
9789 ## ---------------------------------------- ##
9792 sed "s/^/$as_me: WARNING: /" >&2
9795 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9796 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9797 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9802 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9803 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9806 if test $ac_cv_header_openssl_ssl_h = yes; then
9809 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9810 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9811 { (exit 1); exit 1; }; }
9815 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9816 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9817 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9818 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9822 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9824 # Is the header compilable?
9825 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9826 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9834 #include <openssl/err.h>
9836 rm -f conftest.$ac_objext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>conftest.er1
9840 grep -v '^ *+' conftest.er1 >conftest.err
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag"
9846 || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest.$ac_objext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 ac_header_compiler=yes
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_header_compiler=no
9865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9867 echo "${ECHO_T}$ac_header_compiler" >&6
9869 # Is the header present?
9870 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9871 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <openssl/err.h>
9880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev/null; then
9888 if test -s conftest.err; then
9889 ac_cpp_err=$ac_c_preproc_warn_flag
9890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9897 if test -z "$ac_cpp_err"; then
9898 ac_header_preproc=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_header_preproc=no
9905 rm -f conftest.err conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9907 echo "${ECHO_T}$ac_header_preproc" >&6
9909 # So? What about this header?
9910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9912 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9913 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
9915 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
9916 ac_header_preproc=yes
9919 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9920 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9922 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
9924 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
9926 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9928 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
9930 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
9933 ## ---------------------------------------- ##
9934 ## Report this to pgsql-bugs@postgresql.org ##
9935 ## ---------------------------------------- ##
9938 sed "s/^/$as_me: WARNING: /" >&2
9941 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9942 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9943 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_cv_header_openssl_err_h=$ac_header_preproc
9948 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9949 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9952 if test $ac_cv_header_openssl_err_h = yes; then
9955 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9956 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9957 { (exit 1); exit 1; }; }
9963 if test "$with_pam" = yes ; then
9965 for ac_header in security/pam_appl.h
9967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9969 echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9977 # Is the header compilable?
9978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 #include <$ac_header>
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991 (eval $ac_compile) 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag"
9999 || test ! -s conftest.err'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest.$ac_objext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_header_compiler=yes
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_header_compiler=no
10018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 echo "${ECHO_T}$ac_header_compiler" >&6
10022 # Is the header present?
10023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 #include <$ac_header>
10033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } >/dev/null; then
10041 if test -s conftest.err; then
10042 ac_cpp_err=$ac_c_preproc_warn_flag
10043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10050 if test -z "$ac_cpp_err"; then
10051 ac_header_preproc=yes
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_header_preproc=no
10058 rm -f conftest.err conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 echo "${ECHO_T}$ac_header_preproc" >&6
10062 # So? What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10069 ac_header_preproc=yes
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10086 ## ---------------------------------------- ##
10087 ## Report this to pgsql-bugs@postgresql.org ##
10088 ## ---------------------------------------- ##
10091 sed "s/^/$as_me: WARNING: /" >&2
10094 echo "$as_me:$LINENO: checking for $ac_header" >&5
10095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 eval "$as_ac_Header=\$ac_header_preproc"
10101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10106 cat >>confdefs.h <<_ACEOF
10107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10112 for ac_header in pam/pam_appl.h
10114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10116 echo "$as_me:$LINENO: checking for $ac_header" >&5
10117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10124 # Is the header compilable?
10125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 $ac_includes_default
10134 #include <$ac_header>
10136 rm -f conftest.$ac_objext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10138 (eval $ac_compile) 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag"
10146 || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest.$ac_objext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_header_compiler=yes
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_header_compiler=no
10165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10167 echo "${ECHO_T}$ac_header_compiler" >&6
10169 # Is the header present?
10170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #include <$ac_header>
10180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } >/dev/null; then
10188 if test -s conftest.err; then
10189 ac_cpp_err=$ac_c_preproc_warn_flag
10190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10197 if test -z "$ac_cpp_err"; then
10198 ac_header_preproc=yes
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_header_preproc=no
10205 rm -f conftest.err conftest.$ac_ext
10206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10207 echo "${ECHO_T}$ac_header_preproc" >&6
10209 # So? What about this header?
10210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10216 ac_header_preproc=yes
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10233 ## ---------------------------------------- ##
10234 ## Report this to pgsql-bugs@postgresql.org ##
10235 ## ---------------------------------------- ##
10238 sed "s/^/$as_me: WARNING: /" >&2
10241 echo "$as_me:$LINENO: checking for $ac_header" >&5
10242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 eval "$as_ac_Header=\$ac_header_preproc"
10248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10253 cat >>confdefs.h <<_ACEOF
10254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10258 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10259 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10260 { (exit 1); exit 1; }; }
10271 if test "$with_bonjour" = yes ; then
10272 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10273 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10274 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10275 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10279 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10281 # Is the header compilable?
10282 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10283 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 $ac_includes_default
10291 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag"
10303 || test ! -s conftest.err'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest.$ac_objext'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_header_compiler=yes
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_header_compiler=no
10322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10324 echo "${ECHO_T}$ac_header_compiler" >&6
10326 # Is the header present?
10327 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10328 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } >/dev/null; then
10345 if test -s conftest.err; then
10346 ac_cpp_err=$ac_c_preproc_warn_flag
10347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10354 if test -z "$ac_cpp_err"; then
10355 ac_header_preproc=yes
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 ac_header_preproc=no
10362 rm -f conftest.err conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10364 echo "${ECHO_T}$ac_header_preproc" >&6
10366 # So? What about this header?
10367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10369 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10370 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10372 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10373 ac_header_preproc=yes
10376 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10377 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10379 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10381 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10383 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10385 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10387 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10390 ## ---------------------------------------- ##
10391 ## Report this to pgsql-bugs@postgresql.org ##
10392 ## ---------------------------------------- ##
10395 sed "s/^/$as_me: WARNING: /" >&2
10398 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10399 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10400 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10405 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10406 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10409 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10412 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10413 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10414 { (exit 1); exit 1; }; }
10422 ## Types, structures, compiler characteristics
10425 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10426 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10427 if test "${ac_cv_c_const+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10440 /* FIXME: Include the comments suggested by Paul. */
10441 #ifndef __cplusplus
10442 /* Ultrix mips cc rejects this. */
10443 typedef int charset[2];
10445 /* SunOS 4.1.1 cc rejects this. */
10446 char const *const *ccp;
10448 /* NEC SVR4.0.2 mips cc rejects this. */
10449 struct point {int x, y;};
10450 static struct point const zero = {0,0};
10451 /* AIX XL C 1.02.0.0 rejects this.
10452 It does not let you subtract one const X* pointer from another in
10453 an arm of an if-expression whose if-part is not a constant
10455 const char *g = "string";
10456 ccp = &g + (g ? g-g : 0);
10457 /* HPUX 7.0 cc rejects these. */
10460 ccp = (char const *const *) p;
10461 { /* SCO 3.2v4 cc rejects this. */
10463 char const *s = 0 ? (char *) 0 : (char const *) 0;
10467 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10468 int x[] = {25, 17};
10469 const int *foo = &x[0];
10472 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10473 typedef const int *iptr;
10477 { /* AIX XL C 1.02.0.0 rejects this saying
10478 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10479 struct s { int j; const int *ap[3]; };
10480 struct s *b; b->j = 5;
10482 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10483 const int foo = 10;
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10523 echo "${ECHO_T}$ac_cv_c_const" >&6
10524 if test $ac_cv_c_const = no; then
10526 cat >>confdefs.h <<\_ACEOF
10533 echo "$as_me:$LINENO: checking for inline" >&5
10534 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10535 if test "${ac_cv_c_inline+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 for ac_kw in inline __inline__ __inline; do
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #ifndef __cplusplus
10548 static $ac_kw foo_t static_foo () {return 0; }
10549 $ac_kw int foo () {return 0; }
10553 rm -f conftest.$ac_objext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555 (eval $ac_compile) 2>conftest.er1
10557 grep -v '^ *+' conftest.er1 >conftest.err
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -z "$ac_c_werror_flag"
10563 || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_c_inline=$ac_kw; break
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10585 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10586 echo "${ECHO_T}$ac_cv_c_inline" >&6
10587 case $ac_cv_c_inline in
10590 cat >>confdefs.h <<\_ACEOF
10594 *) cat >>confdefs.h <<_ACEOF
10595 #define inline $ac_cv_c_inline
10600 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10601 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10602 if test "${ac_cv_c_stringize+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10613 char *s = x(teststring);
10615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10616 $EGREP "#teststring" >/dev/null 2>&1; then
10617 ac_cv_c_stringize=no
10619 ac_cv_c_stringize=yes
10624 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10625 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10626 if test $ac_cv_c_stringize = yes; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_STRINGIZE 1
10634 echo "$as_me:$LINENO: checking for signed types" >&5
10635 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10636 if test "${pgac_cv_c_signed+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 cat >conftest.$ac_ext <<_ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10649 signed char c; signed short s; signed int i;
10654 rm -f conftest.$ac_objext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>conftest.er1
10658 grep -v '^ *+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag"
10664 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } &&
10670 { ac_try='test -s conftest.$ac_objext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 pgac_cv_c_signed=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 pgac_cv_c_signed=no
10683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10686 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10687 if test x"$pgac_cv_c_signed" = xno ; then
10689 cat >>confdefs.h <<\_ACEOF
10694 echo "$as_me:$LINENO: checking for working volatile" >&5
10695 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10696 if test "${ac_cv_c_volatile+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10716 rm -f conftest.$ac_objext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_c_volatile=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_cv_c_volatile=no
10745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10747 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10748 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10749 if test $ac_cv_c_volatile = no; then
10751 cat >>confdefs.h <<\_ACEOF
10757 echo "$as_me:$LINENO: checking for __func__" >&5
10758 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10759 if test "${pgac_cv_funcname_func_support+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10772 printf("%s\n", __func__);
10777 rm -f conftest.$ac_objext
10778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10779 (eval $ac_compile) 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag"
10787 || test ! -s conftest.err'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest.$ac_objext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 pgac_cv_funcname_func_support=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 pgac_cv_funcname_func_support=no
10806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10809 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10810 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_FUNCNAME__FUNC 1
10817 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10818 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10819 if test "${pgac_cv_funcname_function_support+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10832 printf("%s\n", __FUNCTION__);
10837 rm -f conftest.$ac_objext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10839 (eval $ac_compile) 2>conftest.er1
10841 grep -v '^ *+' conftest.er1 >conftest.err
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest.$ac_objext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 pgac_cv_funcname_function_support=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 pgac_cv_funcname_function_support=no
10866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10868 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10869 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10870 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_FUNCNAME__FUNCTION 1
10878 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10879 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10880 if test "${ac_cv_struct_tm+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 cat >conftest.$ac_ext <<_ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <sys/types.h>
10895 struct tm *tp; tp->tm_sec;
10900 rm -f conftest.$ac_objext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902 (eval $ac_compile) 2>conftest.er1
10904 grep -v '^ *+' conftest.er1 >conftest.err
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_struct_tm=time.h
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_cv_struct_tm=sys/time.h
10929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10931 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10932 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10933 if test $ac_cv_struct_tm = sys/time.h; then
10935 cat >>confdefs.h <<\_ACEOF
10936 #define TM_IN_SYS_TIME 1
10941 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10942 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10943 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 cat >conftest.$ac_ext <<_ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 #include <sys/types.h>
10953 #include <$ac_cv_struct_tm>
10959 static struct tm ac_aggr;
10960 if (ac_aggr.tm_zone)
10966 rm -f conftest.$ac_objext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968 (eval $ac_compile) 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag"
10976 || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_member_struct_tm_tm_zone=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 #include <sys/types.h>
11000 #include <$ac_cv_struct_tm>
11006 static struct tm ac_aggr;
11007 if (sizeof ac_aggr.tm_zone)
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_cv_member_struct_tm_tm_zone=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_cv_member_struct_tm_tm_zone=no
11042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11047 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11048 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define HAVE_STRUCT_TM_TM_ZONE 1
11057 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11059 cat >>confdefs.h <<\_ACEOF
11060 #define HAVE_TM_ZONE 1
11064 echo "$as_me:$LINENO: checking for tzname" >&5
11065 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11066 if test "${ac_cv_var_tzname+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 cat >conftest.$ac_ext <<_ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11076 #ifndef tzname /* For SGI. */
11077 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_var_tzname=yes
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_cv_var_tzname=no
11117 rm -f conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11120 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11121 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11122 if test $ac_cv_var_tzname = yes; then
11124 cat >>confdefs.h <<\_ACEOF
11125 #define HAVE_TZNAME 1
11130 echo "$as_me:$LINENO: checking for union semun" >&5
11131 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11132 if test "${ac_cv_type_union_semun+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 cat >conftest.$ac_ext <<_ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 #include <sys/types.h>
11142 #include <sys/ipc.h>
11143 #include <sys/sem.h>
11148 if ((union semun *) 0)
11150 if (sizeof (union semun))
11156 rm -f conftest.$ac_objext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>conftest.er1
11160 grep -v '^ *+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag"
11166 || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_type_union_semun=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_cv_type_union_semun=no
11185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11187 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11188 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11189 if test $ac_cv_type_union_semun = yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define HAVE_UNION_SEMUN 1
11198 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11199 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11200 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <sys/types.h>
11210 #ifdef HAVE_SYS_UN_H
11211 #include <sys/un.h>
11218 if ((struct sockaddr_un *) 0)
11220 if (sizeof (struct sockaddr_un))
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>conftest.er1
11230 grep -v '^ *+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag"
11236 || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest.$ac_objext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_type_struct_sockaddr_un=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_type_struct_sockaddr_un=no
11255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11258 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11259 if test $ac_cv_type_struct_sockaddr_un = yes; then
11261 cat >>confdefs.h <<_ACEOF
11262 #define HAVE_STRUCT_SOCKADDR_UN 1
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_UNIX_SOCKETS 1
11272 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11273 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11274 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <sys/types.h>
11284 #ifdef HAVE_SYS_SOCKET_H
11285 #include <sys/socket.h>
11292 if ((struct sockaddr_storage *) 0)
11294 if (sizeof (struct sockaddr_storage))
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_type_struct_sockaddr_storage=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_type_struct_sockaddr_storage=no
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11331 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11332 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11333 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11342 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11343 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11344 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 cat >conftest.$ac_ext <<_ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <sys/types.h>
11354 #ifdef HAVE_SYS_SOCKET_H
11355 #include <sys/socket.h>
11362 static struct sockaddr_storage ac_aggr;
11363 if (ac_aggr.ss_family)
11369 rm -f conftest.$ac_objext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11371 (eval $ac_compile) 2>conftest.er1
11373 grep -v '^ *+' conftest.er1 >conftest.err
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -z "$ac_c_werror_flag"
11379 || test ! -s conftest.err'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest.$ac_objext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11393 echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <sys/types.h>
11403 #ifdef HAVE_SYS_SOCKET_H
11404 #include <sys/socket.h>
11411 static struct sockaddr_storage ac_aggr;
11412 if (sizeof ac_aggr.ss_family)
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420 (eval $ac_compile) 2>conftest.er1
11422 grep -v '^ *+' conftest.er1 >conftest.err
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_cv_member_struct_sockaddr_storage_ss_family=no
11447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11452 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11453 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11461 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11462 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11463 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 #include <sys/types.h>
11473 #ifdef HAVE_SYS_SOCKET_H
11474 #include <sys/socket.h>
11481 static struct sockaddr_storage ac_aggr;
11482 if (ac_aggr.__ss_family)
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 cat >conftest.$ac_ext <<_ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <sys/types.h>
11522 #ifdef HAVE_SYS_SOCKET_H
11523 #include <sys/socket.h>
11530 static struct sockaddr_storage ac_aggr;
11531 if (sizeof ac_aggr.__ss_family)
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11541 grep -v '^ *+' conftest.er1 >conftest.err
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag"
11547 || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest.$ac_objext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_cv_member_struct_sockaddr_storage___ss_family=no
11566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11571 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11572 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11580 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11581 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11582 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 #include <sys/types.h>
11592 #ifdef HAVE_SYS_SOCKET_H
11593 #include <sys/socket.h>
11600 static struct sockaddr_storage ac_aggr;
11601 if (ac_aggr.ss_len)
11607 rm -f conftest.$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609 (eval $ac_compile) 2>conftest.er1
11611 grep -v '^ *+' conftest.er1 >conftest.err
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest.$ac_objext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 #include <sys/types.h>
11641 #ifdef HAVE_SYS_SOCKET_H
11642 #include <sys/socket.h>
11649 static struct sockaddr_storage ac_aggr;
11650 if (sizeof ac_aggr.ss_len)
11656 rm -f conftest.$ac_objext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11658 (eval $ac_compile) 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag"
11666 || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest.$ac_objext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_cv_member_struct_sockaddr_storage_ss_len=no
11685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
11690 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
11691 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
11693 cat >>confdefs.h <<_ACEOF
11694 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11699 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
11700 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
11701 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 cat >conftest.$ac_ext <<_ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 #include <sys/types.h>
11711 #ifdef HAVE_SYS_SOCKET_H
11712 #include <sys/socket.h>
11719 static struct sockaddr_storage ac_aggr;
11720 if (ac_aggr.__ss_len)
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag"
11736 || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <sys/types.h>
11760 #ifdef HAVE_SYS_SOCKET_H
11761 #include <sys/socket.h>
11768 static struct sockaddr_storage ac_aggr;
11769 if (sizeof ac_aggr.__ss_len)
11775 rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777 (eval $ac_compile) 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_member_struct_sockaddr_storage___ss_len=no
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
11809 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
11810 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11818 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
11819 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
11820 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <sys/types.h>
11830 #ifdef HAVE_SYS_SOCKET_H
11831 #include <sys/socket.h>
11838 static struct sockaddr ac_aggr;
11839 if (ac_aggr.sa_len)
11845 rm -f conftest.$ac_objext
11846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11847 (eval $ac_compile) 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag"
11855 || test ! -s conftest.err'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest.$ac_objext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_cv_member_struct_sockaddr_sa_len=yes
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <sys/types.h>
11879 #ifdef HAVE_SYS_SOCKET_H
11880 #include <sys/socket.h>
11887 static struct sockaddr ac_aggr;
11888 if (sizeof ac_aggr.sa_len)
11894 rm -f conftest.$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_cv_member_struct_sockaddr_sa_len=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_cv_member_struct_sockaddr_sa_len=no
11923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11927 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
11928 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
11929 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11938 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11939 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11940 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <sys/types.h>
11950 #include <sys/socket.h>
11957 if ((struct addrinfo *) 0)
11959 if (sizeof (struct addrinfo))
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_type_struct_addrinfo=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_cv_type_struct_addrinfo=no
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11996 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11997 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11998 if test $ac_cv_type_struct_addrinfo = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_STRUCT_ADDRINFO 1
12008 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12009 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12010 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 cat >conftest.$ac_ext <<_ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 #include <sys/param.h>
12020 #include <sys/types.h>
12021 #include <sys/socket.h>
12022 #include <sys/ucred.h>
12027 if ((struct cmsgcred *) 0)
12029 if (sizeof (struct cmsgcred))
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_type_struct_cmsgcred=yes
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_cv_type_struct_cmsgcred=no
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12066 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12067 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12068 if test $ac_cv_type_struct_cmsgcred = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define HAVE_STRUCT_CMSGCRED 1
12076 echo "$as_me:$LINENO: checking for struct fcred" >&5
12077 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12078 if test "${ac_cv_type_struct_fcred+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <sys/param.h>
12088 #include <sys/types.h>
12089 #include <sys/socket.h>
12090 #include <sys/ucred.h>
12095 if ((struct fcred *) 0)
12097 if (sizeof (struct fcred))
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest.$ac_objext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_type_struct_fcred=yes
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 ac_cv_type_struct_fcred=no
12132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12135 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12136 if test $ac_cv_type_struct_fcred = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define HAVE_STRUCT_FCRED 1
12144 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12145 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12146 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <sys/param.h>
12156 #include <sys/types.h>
12157 #include <sys/socket.h>
12158 #include <sys/ucred.h>
12163 if ((struct sockcred *) 0)
12165 if (sizeof (struct sockcred))
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -z "$ac_c_werror_flag"
12181 || test ! -s conftest.err'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_type_struct_sockcred=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_cv_type_struct_sockcred=no
12200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12203 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12204 if test $ac_cv_type_struct_sockcred = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_STRUCT_SOCKCRED 1
12214 echo "$as_me:$LINENO: checking for struct option" >&5
12215 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12216 if test "${ac_cv_type_struct_option+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 cat >conftest.$ac_ext <<_ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 #ifdef HAVE_GETOPT_H
12226 #include <getopt.h>
12232 if ((struct option *) 0)
12234 if (sizeof (struct option))
12240 rm -f conftest.$ac_objext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12242 (eval $ac_compile) 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag"
12250 || test ! -s conftest.err'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; } &&
12256 { ac_try='test -s conftest.$ac_objext'
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12262 ac_cv_type_struct_option=yes
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_type_struct_option=no
12269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12271 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12272 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12273 if test $ac_cv_type_struct_option = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_STRUCT_OPTION 1
12283 if test "$with_zlib" = yes; then
12284 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12285 # did not). While we could work around the lack of z_streamp, it
12286 # seems unwise to encourage people to use such old zlib versions...
12287 echo "$as_me:$LINENO: checking for z_streamp" >&5
12288 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12289 if test "${ac_cv_type_z_streamp+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12303 if ((z_streamp *) 0)
12305 if (sizeof (z_streamp))
12311 rm -f conftest.$ac_objext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12313 (eval $ac_compile) 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag"
12321 || test ! -s conftest.err'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest.$ac_objext'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_cv_type_z_streamp=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_type_z_streamp=no
12340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12342 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12343 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12344 if test $ac_cv_type_z_streamp = yes; then
12347 { { echo "$as_me:$LINENO: error: zlib version is too old
12348 Use --without-zlib to disable zlib support." >&5
12349 echo "$as_me: error: zlib version is too old
12350 Use --without-zlib to disable zlib support." >&2;}
12351 { (exit 1); exit 1; }; }
12356 if test "$with_krb5" = yes; then
12357 # Check for differences between MIT and Heimdal (KTH) releases
12358 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12359 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12360 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12374 static krb5_ticket ac_aggr;
12375 if (ac_aggr.enc_part2)
12381 rm -f conftest.$ac_objext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_member_krb5_ticket_enc_part2=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12419 static krb5_ticket ac_aggr;
12420 if (sizeof ac_aggr.enc_part2)
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag"
12436 || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_member_krb5_ticket_enc_part2=yes
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_cv_member_krb5_ticket_enc_part2=no
12455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12460 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12461 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_KRB5_TICKET_ENC_PART2 1
12469 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12470 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12471 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12485 static krb5_ticket ac_aggr;
12486 if (ac_aggr.client)
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag"
12502 || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_member_krb5_ticket_client=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12530 static krb5_ticket ac_aggr;
12531 if (sizeof ac_aggr.client)
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_member_krb5_ticket_client=yes
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_member_krb5_ticket_client=no
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12571 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12572 if test $ac_cv_member_krb5_ticket_client = yes; then
12574 cat >>confdefs.h <<_ACEOF
12575 #define HAVE_KRB5_TICKET_CLIENT 1
12580 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12581 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12582 { (exit 1); exit 1; }; }
12587 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12588 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12589 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12603 static krb5_error ac_aggr;
12604 if (ac_aggr.text.data)
12610 rm -f conftest.$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>conftest.er1
12614 grep -v '^ *+' conftest.er1 >conftest.err
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest.$ac_objext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_member_krb5_error_text_data=yes
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12648 static krb5_error ac_aggr;
12649 if (sizeof ac_aggr.text.data)
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>conftest.er1
12659 grep -v '^ *+' conftest.er1 >conftest.err
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag"
12665 || test ! -s conftest.err'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_member_krb5_error_text_data=yes
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_cv_member_krb5_error_text_data=no
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12688 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
12689 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
12690 if test $ac_cv_member_krb5_error_text_data = yes; then
12692 cat >>confdefs.h <<_ACEOF
12693 #define HAVE_KRB5_ERROR_TEXT_DATA 1
12698 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
12699 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
12700 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12714 static krb5_error ac_aggr;
12715 if (ac_aggr.e_data)
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest.$ac_objext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 ac_cv_member_krb5_error_e_data=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12759 static krb5_error ac_aggr;
12760 if (sizeof ac_aggr.e_data)
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12770 grep -v '^ *+' conftest.er1 >conftest.err
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest.$ac_objext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 ac_cv_member_krb5_error_e_data=yes
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 ac_cv_member_krb5_error_e_data=no
12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
12800 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
12801 if test $ac_cv_member_krb5_error_e_data = yes; then
12803 cat >>confdefs.h <<_ACEOF
12804 #define HAVE_KRB5_ERROR_E_DATA 1
12809 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
12810 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
12811 { (exit 1); exit 1; }; }
12818 # This is probably only present on Darwin, but may as well check always
12819 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
12820 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
12821 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12835 #ifndef F_FULLFSYNC
12836 char *p = (char *) F_FULLFSYNC;
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag"
12853 || test ! -s conftest.err'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest.$ac_objext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_cv_have_decl_F_FULLFSYNC=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_cv_have_decl_F_FULLFSYNC=no
12872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12874 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
12875 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
12876 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
12878 cat >>confdefs.h <<_ACEOF
12879 #define HAVE_DECL_F_FULLFSYNC 1
12884 cat >>confdefs.h <<_ACEOF
12885 #define HAVE_DECL_F_FULLFSYNC 0
12894 ## Functions, global variables
12897 echo "$as_me:$LINENO: checking for int timezone" >&5
12898 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
12899 if test "${pgac_cv_var_int_timezone+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12914 res = timezone / 60;
12916 res = _timezone / 60;
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 pgac_cv_var_int_timezone=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 pgac_cv_var_int_timezone=no
12951 rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12954 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
12955 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
12956 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_INT_TIMEZONE
12963 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
12964 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
12965 if test "${ac_cv_func_accept_return+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 if test "${ac_cv_func_accept_arg1+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 if test "${ac_cv_func_accept_arg2+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 if test "${ac_cv_func_accept_arg3+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
12978 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
12979 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12980 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12981 cat >conftest.$ac_ext <<_ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #ifdef HAVE_SYS_TYPES_H
12988 #include <sys/types.h>
12990 #ifdef HAVE_SYS_SOCKET_H
12991 #include <sys/socket.h>
12993 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13002 rm -f conftest.$ac_objext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13004 (eval $ac_compile) 2>conftest.er1
13006 grep -v '^ *+' conftest.er1 >conftest.err
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
13011 { ac_try='test -z "$ac_c_werror_flag"
13012 || test ! -s conftest.err'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest.$ac_objext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_not_found=no; break 4
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13036 if test "$ac_not_found" = yes; then
13037 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13038 echo "$as_me: error: could not determine argument types" >&2;}
13039 { (exit 1); exit 1; }; }
13041 if test "$ac_cv_func_accept_arg3" = "void"; then
13042 ac_cv_func_accept_arg3=int
13052 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
13053 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13055 cat >>confdefs.h <<_ACEOF
13056 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13060 cat >>confdefs.h <<_ACEOF
13061 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13065 cat >>confdefs.h <<_ACEOF
13066 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13070 cat >>confdefs.h <<_ACEOF
13071 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13075 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13076 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13077 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 #include <sys/time.h>
13090 struct timeval *tp;
13091 struct timezone *tzp;
13092 gettimeofday(tp,tzp);
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 pgac_cv_func_gettimeofday_1arg=no
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 pgac_cv_func_gettimeofday_1arg=yes
13126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13128 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13129 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13130 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13132 cat >>confdefs.h <<\_ACEOF
13133 #define GETTIMEOFDAY_1ARG
13159 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13162 echo "$as_me:$LINENO: checking for $ac_func" >&5
13163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13164 if eval "test \"\${$as_ac_var+set}\" = set"; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13175 #define $ac_func innocuous_$ac_func
13177 /* System header to define __stub macros and hopefully few prototypes,
13178 which can conflict with char $ac_func (); below.
13179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13180 <limits.h> exists even on freestanding compilers. */
13183 # include <limits.h>
13185 # include <assert.h>
13190 /* Override any gcc2 internal prototype to avoid an error. */
13195 /* We use char because int might match the return type of a gcc2
13196 builtin and then its argument prototype would still apply. */
13198 /* The GNU C library defines this for functions which it implements
13199 to always fail with ENOSYS. Some functions are actually named
13200 something starting with __ and the normal name is an alias. */
13201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13204 char (*f) () = $ac_func;
13213 return f != $ac_func;
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_c_werror_flag"
13228 || test ! -s conftest.err'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; } &&
13234 { ac_try='test -s conftest$ac_exeext'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13240 eval "$as_ac_var=yes"
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 eval "$as_ac_var=no"
13247 rm -f conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13252 if test `eval echo '${'$as_ac_var'}'` = yes; then
13253 cat >>confdefs.h <<_ACEOF
13254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13261 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13262 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13263 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <unistd.h>
13278 char *p = (char *) fdatasync;
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_have_decl_fdatasync=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_cv_have_decl_fdatasync=no
13314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13317 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13318 if test $ac_cv_have_decl_fdatasync = yes; then
13320 cat >>confdefs.h <<_ACEOF
13321 #define HAVE_DECL_FDATASYNC 1
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_DECL_FDATASYNC 0
13336 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13337 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13338 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13348 #include <netinet/in.h>
13353 if ((struct sockaddr_in6 *) 0)
13355 if (sizeof (struct sockaddr_in6))
13361 rm -f conftest.$ac_objext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag"
13371 || test ! -s conftest.err'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_type_struct_sockaddr_in6=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 ac_cv_type_struct_sockaddr_in6=no
13390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13393 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13394 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13396 cat >>confdefs.h <<\_ACEOF
13397 #define HAVE_IPV6 1
13405 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13406 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13407 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include <machine/vmparam.h>
13417 #include <sys/exec.h>
13422 PS_STRINGS->ps_nargvstr = 1;
13423 PS_STRINGS->ps_argvstr = "foo";
13428 rm -f conftest.$ac_objext conftest$ac_exeext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13430 (eval $ac_link) 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_c_werror_flag"
13438 || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest$ac_exeext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 pgac_cv_var_PS_STRINGS=yes
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13455 pgac_cv_var_PS_STRINGS=no
13457 rm -f conftest.err conftest.$ac_objext \
13458 conftest$ac_exeext conftest.$ac_ext
13460 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13461 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13462 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_PS_STRINGS
13471 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13472 # is missing. Yes, there are machines that have only one. We may
13473 # also decide to use snprintf.c if snprintf() is present but does not
13474 # have all the features we need --- see below.
13476 if test "$PORTNAME" = "win32"; then
13477 # Win32 gets snprintf.c built unconditionally.
13479 # To properly translate all NLS languages strings, we must support the
13480 # *printf() %$ format, which allows *printf() arguments to be selected
13481 # by position in the translated string.
13483 # libintl versions < 0.13 use the native *printf() functions, and Win32
13484 # *printf() doesn't understand %$, so we must use our /port versions,
13485 # which do understand %$. libintl versions >= 0.13 include their own
13486 # *printf versions on Win32. The libintl 0.13 release note text is:
13488 # C format strings with positions, as they arise when a translator
13489 # needs to reorder a sentence, are now supported on all platforms.
13490 # On those few platforms (NetBSD and Woe32) for which the native
13491 # printf()/fprintf()/... functions don't support such format
13492 # strings, replacements are provided through <libintl.h>.
13494 # We could use libintl >= 0.13's *printf() if we were sure that we had
13495 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13496 # to guarantee that, it is best to just use our own, so we are sure to
13497 # get %$ support. In include/port.h we disable the *printf() macros
13498 # that might have been defined by libintl.
13500 # We do this unconditionally whether NLS is used or not so we are sure
13501 # that all Win32 libraries and binaries behave the same.
13502 pgac_need_repl_snprintf=yes
13504 pgac_need_repl_snprintf=no
13506 for ac_func in snprintf
13508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13509 echo "$as_me:$LINENO: checking for $ac_func" >&5
13510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13511 if eval "test \"\${$as_ac_var+set}\" = set"; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13522 #define $ac_func innocuous_$ac_func
13524 /* System header to define __stub macros and hopefully few prototypes,
13525 which can conflict with char $ac_func (); below.
13526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13527 <limits.h> exists even on freestanding compilers. */
13530 # include <limits.h>
13532 # include <assert.h>
13537 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13545 /* The GNU C library defines this for functions which it implements
13546 to always fail with ENOSYS. Some functions are actually named
13547 something starting with __ and the normal name is an alias. */
13548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13551 char (*f) () = $ac_func;
13560 return f != $ac_func;
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13567 (eval $ac_link) 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 eval "$as_ac_var=yes"
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 eval "$as_ac_var=no"
13594 rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13599 if test `eval echo '${'$as_ac_var'}'` = yes; then
13600 cat >>confdefs.h <<_ACEOF
13601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13605 pgac_need_repl_snprintf=yes
13610 for ac_func in vsnprintf
13612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13613 echo "$as_me:$LINENO: checking for $ac_func" >&5
13614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13615 if eval "test \"\${$as_ac_var+set}\" = set"; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13626 #define $ac_func innocuous_$ac_func
13628 /* System header to define __stub macros and hopefully few prototypes,
13629 which can conflict with char $ac_func (); below.
13630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13631 <limits.h> exists even on freestanding compilers. */
13634 # include <limits.h>
13636 # include <assert.h>
13641 /* Override any gcc2 internal prototype to avoid an error. */
13646 /* We use char because int might match the return type of a gcc2
13647 builtin and then its argument prototype would still apply. */
13649 /* The GNU C library defines this for functions which it implements
13650 to always fail with ENOSYS. Some functions are actually named
13651 something starting with __ and the normal name is an alias. */
13652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13655 char (*f) () = $ac_func;
13664 return f != $ac_func;
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13671 (eval $ac_link) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag"
13679 || test ! -s conftest.err'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 eval "$as_ac_var=yes"
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 eval "$as_ac_var=no"
13698 rm -f conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13703 if test `eval echo '${'$as_ac_var'}'` = yes; then
13704 cat >>confdefs.h <<_ACEOF
13705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13709 pgac_need_repl_snprintf=yes
13716 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13717 # include/c.h will provide declarations. Note this is a separate test
13718 # from whether the functions exist in the C library --- there are
13719 # systems that have the functions but don't bother to declare them :-(
13721 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13722 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13723 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 $ac_includes_default
13737 char *p = (char *) snprintf;
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746 (eval $ac_compile) 2>conftest.er1
13748 grep -v '^ *+' conftest.er1 >conftest.err
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag"
13754 || test ! -s conftest.err'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_have_decl_snprintf=yes
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_cv_have_decl_snprintf=no
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13775 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13776 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13777 if test $ac_cv_have_decl_snprintf = yes; then
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_DECL_SNPRINTF 1
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_DECL_SNPRINTF 0
13791 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13792 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13793 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13807 char *p = (char *) vsnprintf;
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816 (eval $ac_compile) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_have_decl_vsnprintf=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_have_decl_vsnprintf=no
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13846 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13847 if test $ac_cv_have_decl_vsnprintf = yes; then
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_DECL_VSNPRINTF 1
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_DECL_VSNPRINTF 0
13865 echo "$as_me:$LINENO: checking for isinf" >&5
13866 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13867 if test "${ac_cv_func_isinf+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13878 double glob_double;
13883 return isinf(glob_double) ? 0 : 1;
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag"
13898 || test ! -s conftest.err'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_cv_func_isinf=yes
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ac_cv_func_isinf=no
13917 rm -f conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext conftest.$ac_ext
13920 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13921 echo "${ECHO_T}$ac_cv_func_isinf" >&6
13923 if test $ac_cv_func_isinf = yes ; then
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_ISINF 1
13931 "isinf.$ac_objext" | \
13932 *" isinf.$ac_objext" | \
13933 "isinf.$ac_objext "* | \
13934 *" isinf.$ac_objext "* ) ;;
13935 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
13938 # Look for a way to implement a substitute for isinf()
13943 for ac_func in fpclass fp_class fp_class_d class
13945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13946 echo "$as_me:$LINENO: checking for $ac_func" >&5
13947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13948 if eval "test \"\${$as_ac_var+set}\" = set"; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13959 #define $ac_func innocuous_$ac_func
13961 /* System header to define __stub macros and hopefully few prototypes,
13962 which can conflict with char $ac_func (); below.
13963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13964 <limits.h> exists even on freestanding compilers. */
13967 # include <limits.h>
13969 # include <assert.h>
13974 /* Override any gcc2 internal prototype to avoid an error. */
13979 /* We use char because int might match the return type of a gcc2
13980 builtin and then its argument prototype would still apply. */
13982 /* The GNU C library defines this for functions which it implements
13983 to always fail with ENOSYS. Some functions are actually named
13984 something starting with __ and the normal name is an alias. */
13985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13988 char (*f) () = $ac_func;
13997 return f != $ac_func;
14002 rm -f conftest.$ac_objext conftest$ac_exeext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14004 (eval $ac_link) 2>conftest.er1
14006 grep -v '^ *+' conftest.er1 >conftest.err
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } &&
14011 { ac_try='test -z "$ac_c_werror_flag"
14012 || test ! -s conftest.err'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; } &&
14018 { ac_try='test -s conftest$ac_exeext'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }; then
14024 eval "$as_ac_var=yes"
14026 echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14029 eval "$as_ac_var=no"
14031 rm -f conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14036 if test `eval echo '${'$as_ac_var'}'` = yes; then
14037 cat >>confdefs.h <<_ACEOF
14038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14059 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_var+set}\" = set"; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14075 #define $ac_func innocuous_$ac_func
14077 /* System header to define __stub macros and hopefully few prototypes,
14078 which can conflict with char $ac_func (); below.
14079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080 <limits.h> exists even on freestanding compilers. */
14083 # include <limits.h>
14085 # include <assert.h>
14090 /* Override any gcc2 internal prototype to avoid an error. */
14095 /* We use char because int might match the return type of a gcc2
14096 builtin and then its argument prototype would still apply. */
14098 /* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14104 char (*f) () = $ac_func;
14113 return f != $ac_func;
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 eval "$as_ac_var=yes"
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 eval "$as_ac_var=no"
14147 rm -f conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14152 if test `eval echo '${'$as_ac_var'}'` = yes; then
14153 cat >>confdefs.h <<_ACEOF
14154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14159 "$ac_func.$ac_objext" | \
14160 *" $ac_func.$ac_objext" | \
14161 "$ac_func.$ac_objext "* | \
14162 *" $ac_func.$ac_objext "* ) ;;
14163 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14171 # System's version of getaddrinfo(), if any, may be used only if we found
14172 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14173 # (Note: the AC_TRY_LINK probe fails on Windows, where the available
14174 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14175 # because we want to use our own getaddrinfo.c on Windows anyway.)
14176 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14177 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
14178 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
14179 cat >conftest.$ac_ext <<_ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14186 #include <sys/socket.h>
14192 return getaddrinfo("", "", NULL, NULL) ? 0 : 1;
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14199 (eval $ac_link) 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag"
14207 || test ! -s conftest.err'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest$ac_exeext'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14220 cat >>confdefs.h <<\_ACEOF
14221 #define HAVE_GETADDRINFO 1
14224 echo "$as_me:$LINENO: result: yes" >&5
14225 echo "${ECHO_T}yes" >&6
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 echo "$as_me:$LINENO: result: no" >&5
14231 echo "${ECHO_T}no" >&6
14233 "getaddrinfo.$ac_objext" | \
14234 *" getaddrinfo.$ac_objext" | \
14235 "getaddrinfo.$ac_objext "* | \
14236 *" getaddrinfo.$ac_objext "* ) ;;
14237 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14241 rm -f conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14245 "getaddrinfo.$ac_objext" | \
14246 *" getaddrinfo.$ac_objext" | \
14247 "getaddrinfo.$ac_objext "* | \
14248 *" getaddrinfo.$ac_objext "* ) ;;
14249 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14254 # similarly, use system's getopt_long() only if system provides struct option.
14255 if test x"$ac_cv_type_struct_option" = xyes ; then
14257 for ac_func in getopt_long
14259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 echo "$as_me:$LINENO: checking for $ac_func" >&5
14261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_var+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 cat >conftest.$ac_ext <<_ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14273 #define $ac_func innocuous_$ac_func
14275 /* System header to define __stub macros and hopefully few prototypes,
14276 which can conflict with char $ac_func (); below.
14277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14278 <limits.h> exists even on freestanding compilers. */
14281 # include <limits.h>
14283 # include <assert.h>
14288 /* Override any gcc2 internal prototype to avoid an error. */
14293 /* We use char because int might match the return type of a gcc2
14294 builtin and then its argument prototype would still apply. */
14296 /* The GNU C library defines this for functions which it implements
14297 to always fail with ENOSYS. Some functions are actually named
14298 something starting with __ and the normal name is an alias. */
14299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14302 char (*f) () = $ac_func;
14311 return f != $ac_func;
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>conftest.er1
14320 grep -v '^ *+' conftest.er1 >conftest.err
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -z "$ac_c_werror_flag"
14326 || test ! -s conftest.err'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest$ac_exeext'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 eval "$as_ac_var=yes"
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 eval "$as_ac_var=no"
14345 rm -f conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14350 if test `eval echo '${'$as_ac_var'}'` = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14357 "$ac_func.$ac_objext" | \
14358 *" $ac_func.$ac_objext" | \
14359 "$ac_func.$ac_objext "* | \
14360 *" $ac_func.$ac_objext "* ) ;;
14361 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14370 "getopt_long.$ac_objext" | \
14371 *" getopt_long.$ac_objext" | \
14372 "getopt_long.$ac_objext "* | \
14373 *" getopt_long.$ac_objext "* ) ;;
14374 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14379 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14380 # We override the previous test that said fseeko/ftello didn't exist
14381 # OS tests are also done in include/c.h and port/fseeko.c
14382 case $host_os in bsdi*|netbsd*)
14383 ac_cv_func_fseeko=yes
14386 # Solaris has a very slow qsort in certain cases, so we replace it:
14387 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14388 # Supposedly it is fixed in Solaris, but not sure which version, and
14389 # no confirmed testing. 2005-12-16
14390 if test "$PORTNAME" = "solaris"; then
14392 "qsort.$ac_objext" | \
14393 *" qsort.$ac_objext" | \
14394 "qsort.$ac_objext "* | \
14395 *" qsort.$ac_objext "* ) ;;
14396 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14402 if test "$PORTNAME" = "win32"; then
14404 "gettimeofday.$ac_objext" | \
14405 *" gettimeofday.$ac_objext" | \
14406 "gettimeofday.$ac_objext "* | \
14407 *" gettimeofday.$ac_objext "* ) ;;
14408 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14412 "kill.$ac_objext" | \
14413 *" kill.$ac_objext" | \
14414 "kill.$ac_objext "* | \
14415 *" kill.$ac_objext "* ) ;;
14416 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14420 "open.$ac_objext" | \
14421 *" open.$ac_objext" | \
14422 "open.$ac_objext "* | \
14423 *" open.$ac_objext "* ) ;;
14424 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14428 "rand.$ac_objext" | \
14429 *" rand.$ac_objext" | \
14430 "rand.$ac_objext "* | \
14431 *" rand.$ac_objext "* ) ;;
14432 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_SYMLINK 1
14442 if test "$with_readline" = yes; then
14443 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14444 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14452 #ifdef HAVE_READLINE_READLINE_H
14453 # include <readline/readline.h>
14454 #elif defined(HAVE_READLINE_H)
14455 # include <readline.h>
14461 rl_completion_append_character = 'x';
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14468 (eval $ac_link) 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_c_werror_flag"
14476 || test ! -s conftest.err'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest$ac_exeext'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 echo "$as_me:$LINENO: result: yes" >&5
14489 echo "${ECHO_T}yes" >&6
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 echo "$as_me:$LINENO: result: no" >&5
14500 echo "${ECHO_T}no" >&6
14502 rm -f conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14506 for ac_func in rl_completion_matches rl_filename_completion_function
14508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14509 echo "$as_me:$LINENO: checking for $ac_func" >&5
14510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14511 if eval "test \"\${$as_ac_var+set}\" = set"; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14522 #define $ac_func innocuous_$ac_func
14524 /* System header to define __stub macros and hopefully few prototypes,
14525 which can conflict with char $ac_func (); below.
14526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14527 <limits.h> exists even on freestanding compilers. */
14530 # include <limits.h>
14532 # include <assert.h>
14537 /* Override any gcc2 internal prototype to avoid an error. */
14542 /* We use char because int might match the return type of a gcc2
14543 builtin and then its argument prototype would still apply. */
14545 /* The GNU C library defines this for functions which it implements
14546 to always fail with ENOSYS. Some functions are actually named
14547 something starting with __ and the normal name is an alias. */
14548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14551 char (*f) () = $ac_func;
14560 return f != $ac_func;
14565 rm -f conftest.$ac_objext conftest$ac_exeext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14567 (eval $ac_link) 2>conftest.er1
14569 grep -v '^ *+' conftest.er1 >conftest.err
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 eval "$as_ac_var=yes"
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 eval "$as_ac_var=no"
14594 rm -f conftest.err conftest.$ac_objext \
14595 conftest$ac_exeext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14599 if test `eval echo '${'$as_ac_var'}'` = yes; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14608 for ac_func in replace_history_entry
14610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611 echo "$as_me:$LINENO: checking for $ac_func" >&5
14612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_var+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14624 #define $ac_func innocuous_$ac_func
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char $ac_func (); below.
14628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629 <limits.h> exists even on freestanding compilers. */
14632 # include <limits.h>
14634 # include <assert.h>
14639 /* Override any gcc2 internal prototype to avoid an error. */
14644 /* We use char because int might match the return type of a gcc2
14645 builtin and then its argument prototype would still apply. */
14647 /* The GNU C library defines this for functions which it implements
14648 to always fail with ENOSYS. Some functions are actually named
14649 something starting with __ and the normal name is an alias. */
14650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14653 char (*f) () = $ac_func;
14662 return f != $ac_func;
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>conftest.er1
14671 grep -v '^ *+' conftest.er1 >conftest.err
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -z "$ac_c_werror_flag"
14677 || test ! -s conftest.err'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; } &&
14683 { ac_try='test -s conftest$ac_exeext'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 eval "$as_ac_var=yes"
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 eval "$as_ac_var=no"
14696 rm -f conftest.err conftest.$ac_objext \
14697 conftest$ac_exeext conftest.$ac_ext
14699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14701 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702 cat >>confdefs.h <<_ACEOF
14703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14712 echo "$as_me:$LINENO: checking for finite" >&5
14713 echo $ECHO_N "checking for finite... $ECHO_C" >&6
14714 cat >conftest.$ac_ext <<_ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14722 double glob_double;
14727 return finite(glob_double) ? 0 : 1;
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>conftest.er1
14736 grep -v '^ *+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag"
14742 || test ! -s conftest.err'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; } &&
14748 { ac_try='test -s conftest$ac_exeext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_FINITE 1
14759 echo "$as_me:$LINENO: result: yes" >&5
14760 echo "${ECHO_T}yes" >&6
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 echo "$as_me:$LINENO: result: no" >&5
14766 echo "${ECHO_T}no" >&6
14768 rm -f conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14771 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
14772 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
14773 cat >conftest.$ac_ext <<_ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 #include <setjmp.h>
14783 sigjmp_buf x; sigsetjmp(x, 1);
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790 (eval $ac_link) 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest$ac_exeext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_SIGSETJMP 1
14815 echo "$as_me:$LINENO: result: yes" >&5
14816 echo "${ECHO_T}yes" >&6
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 echo "$as_me:$LINENO: result: no" >&5
14822 echo "${ECHO_T}no" >&6
14824 rm -f conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14827 echo "$as_me:$LINENO: checking for syslog" >&5
14828 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14829 if test "${ac_cv_func_syslog+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
14839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14840 #define syslog innocuous_syslog
14842 /* System header to define __stub macros and hopefully few prototypes,
14843 which can conflict with char syslog (); below.
14844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14845 <limits.h> exists even on freestanding compilers. */
14848 # include <limits.h>
14850 # include <assert.h>
14855 /* Override any gcc2 internal prototype to avoid an error. */
14860 /* We use char because int might match the return type of a gcc2
14861 builtin and then its argument prototype would still apply. */
14863 /* The GNU C library defines this for functions which it implements
14864 to always fail with ENOSYS. Some functions are actually named
14865 something starting with __ and the normal name is an alias. */
14866 #if defined (__stub_syslog) || defined (__stub___syslog)
14869 char (*f) () = syslog;
14878 return f != syslog;
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag"
14893 || test ! -s conftest.err'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest$ac_exeext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_cv_func_syslog=yes
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ac_cv_func_syslog=no
14912 rm -f conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14915 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
14916 echo "${ECHO_T}$ac_cv_func_syslog" >&6
14917 if test $ac_cv_func_syslog = yes; then
14918 if test "${ac_cv_header_syslog_h+set}" = set; then
14919 echo "$as_me:$LINENO: checking for syslog.h" >&5
14920 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
14921 if test "${ac_cv_header_syslog_h+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
14925 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
14927 # Is the header compilable?
14928 echo "$as_me:$LINENO: checking syslog.h usability" >&5
14929 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 $ac_includes_default
14937 #include <syslog.h>
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>conftest.er1
14943 grep -v '^ *+' conftest.er1 >conftest.err
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -z "$ac_c_werror_flag"
14949 || test ! -s conftest.err'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; } &&
14955 { ac_try='test -s conftest.$ac_objext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_header_compiler=yes
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_compiler=no
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6
14972 # Is the header present?
14973 echo "$as_me:$LINENO: checking syslog.h presence" >&5
14974 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <syslog.h>
14983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } >/dev/null; then
14991 if test -s conftest.err; then
14992 ac_cpp_err=$ac_c_preproc_warn_flag
14993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15000 if test -z "$ac_cpp_err"; then
15001 ac_header_preproc=yes
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15008 rm -f conftest.err conftest.$ac_ext
15009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 echo "${ECHO_T}$ac_header_preproc" >&6
15012 # So? What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15016 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15018 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15019 ac_header_preproc=yes
15022 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15027 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15029 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15031 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15033 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15036 ## ---------------------------------------- ##
15037 ## Report this to pgsql-bugs@postgresql.org ##
15038 ## ---------------------------------------- ##
15041 sed "s/^/$as_me: WARNING: /" >&2
15044 echo "$as_me:$LINENO: checking for syslog.h" >&5
15045 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15046 if test "${ac_cv_header_syslog_h+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 ac_cv_header_syslog_h=$ac_header_preproc
15051 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15052 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15055 if test $ac_cv_header_syslog_h = yes; then
15057 cat >>confdefs.h <<\_ACEOF
15058 #define HAVE_SYSLOG 1
15067 echo "$as_me:$LINENO: checking for optreset" >&5
15068 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15069 if test "${pgac_cv_var_int_optreset+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 cat >conftest.$ac_ext <<_ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 #include <unistd.h>
15082 extern int optreset; optreset = 1;
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag"
15097 || test ! -s conftest.err'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 pgac_cv_var_int_optreset=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 pgac_cv_var_int_optreset=no
15116 rm -f conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15119 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15120 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15121 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_INT_OPTRESET 1
15131 for ac_func in strtoll strtoq
15133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15134 echo "$as_me:$LINENO: checking for $ac_func" >&5
15135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15136 if eval "test \"\${$as_ac_var+set}\" = set"; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15147 #define $ac_func innocuous_$ac_func
15149 /* System header to define __stub macros and hopefully few prototypes,
15150 which can conflict with char $ac_func (); below.
15151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15152 <limits.h> exists even on freestanding compilers. */
15155 # include <limits.h>
15157 # include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error. */
15167 /* We use char because int might match the return type of a gcc2
15168 builtin and then its argument prototype would still apply. */
15170 /* The GNU C library defines this for functions which it implements
15171 to always fail with ENOSYS. Some functions are actually named
15172 something starting with __ and the normal name is an alias. */
15173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15176 char (*f) () = $ac_func;
15185 return f != $ac_func;
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15192 (eval $ac_link) 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag"
15200 || test ! -s conftest.err'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest$ac_exeext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 eval "$as_ac_var=yes"
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 eval "$as_ac_var=no"
15219 rm -f conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15224 if test `eval echo '${'$as_ac_var'}'` = yes; then
15225 cat >>confdefs.h <<_ACEOF
15226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234 for ac_func in strtoull strtouq
15236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15237 echo "$as_me:$LINENO: checking for $ac_func" >&5
15238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15239 if eval "test \"\${$as_ac_var+set}\" = set"; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15250 #define $ac_func innocuous_$ac_func
15252 /* System header to define __stub macros and hopefully few prototypes,
15253 which can conflict with char $ac_func (); below.
15254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15255 <limits.h> exists even on freestanding compilers. */
15258 # include <limits.h>
15260 # include <assert.h>
15265 /* Override any gcc2 internal prototype to avoid an error. */
15270 /* We use char because int might match the return type of a gcc2
15271 builtin and then its argument prototype would still apply. */
15273 /* The GNU C library defines this for functions which it implements
15274 to always fail with ENOSYS. Some functions are actually named
15275 something starting with __ and the normal name is an alias. */
15276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15279 char (*f) () = $ac_func;
15288 return f != $ac_func;
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15295 (eval $ac_link) 2>conftest.er1
15297 grep -v '^ *+' conftest.er1 >conftest.err
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -z "$ac_c_werror_flag"
15303 || test ! -s conftest.err'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 eval "$as_ac_var=yes"
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 eval "$as_ac_var=no"
15322 rm -f conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15327 if test `eval echo '${'$as_ac_var'}'` = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15336 # Check for one of atexit() or on_exit()
15338 for ac_func in atexit
15340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15341 echo "$as_me:$LINENO: checking for $ac_func" >&5
15342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15343 if eval "test \"\${$as_ac_var+set}\" = set"; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15354 #define $ac_func innocuous_$ac_func
15356 /* System header to define __stub macros and hopefully few prototypes,
15357 which can conflict with char $ac_func (); below.
15358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15359 <limits.h> exists even on freestanding compilers. */
15362 # include <limits.h>
15364 # include <assert.h>
15369 /* Override any gcc2 internal prototype to avoid an error. */
15374 /* We use char because int might match the return type of a gcc2
15375 builtin and then its argument prototype would still apply. */
15377 /* The GNU C library defines this for functions which it implements
15378 to always fail with ENOSYS. Some functions are actually named
15379 something starting with __ and the normal name is an alias. */
15380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15383 char (*f) () = $ac_func;
15392 return f != $ac_func;
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag"
15407 || test ! -s conftest.err'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; } &&
15413 { ac_try='test -s conftest$ac_exeext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 eval "$as_ac_var=yes"
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 eval "$as_ac_var=no"
15426 rm -f conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15431 if test `eval echo '${'$as_ac_var'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15438 for ac_func in on_exit
15440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15441 echo "$as_me:$LINENO: checking for $ac_func" >&5
15442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15443 if eval "test \"\${$as_ac_var+set}\" = set"; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15454 #define $ac_func innocuous_$ac_func
15456 /* System header to define __stub macros and hopefully few prototypes,
15457 which can conflict with char $ac_func (); below.
15458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459 <limits.h> exists even on freestanding compilers. */
15462 # include <limits.h>
15464 # include <assert.h>
15469 /* Override any gcc2 internal prototype to avoid an error. */
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15477 /* The GNU C library defines this for functions which it implements
15478 to always fail with ENOSYS. Some functions are actually named
15479 something starting with __ and the normal name is an alias. */
15480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15483 char (*f) () = $ac_func;
15492 return f != $ac_func;
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499 (eval $ac_link) 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag"
15507 || test ! -s conftest.err'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest$ac_exeext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 eval "$as_ac_var=yes"
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 eval "$as_ac_var=no"
15526 rm -f conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532 cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15537 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15538 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15539 { (exit 1); exit 1; }; }
15547 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15548 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15549 if test "${ac_cv_sys_largefile_source+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 ac_cv_sys_largefile_source=no
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571 (eval $ac_compile) 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -z "$ac_c_werror_flag"
15579 || test ! -s conftest.err'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #define _LARGEFILE_SOURCE 1
15614 rm -f conftest.$ac_objext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest.$ac_objext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_cv_sys_largefile_source=1; break
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15646 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15648 if test "$ac_cv_sys_largefile_source" != no; then
15650 cat >>confdefs.h <<_ACEOF
15651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15657 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15658 # in glibc 2.1.3, but that breaks too many other things.
15659 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15660 echo "$as_me:$LINENO: checking for fseeko" >&5
15661 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15662 if test "${ac_cv_func_fseeko+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15675 return fseeko && fseeko (stdin, 0, 0);
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_c_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_cv_func_fseeko=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_cv_func_fseeko=no
15709 rm -f conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15712 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15713 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15714 if test $ac_cv_func_fseeko = yes; then
15716 cat >>confdefs.h <<\_ACEOF
15717 #define HAVE_FSEEKO 1
15726 # For each platform, we need to know about any special compile and link
15727 # libraries, and whether the normal C function names are thread-safe.
15728 # See the comment at the top of src/port/thread.c for more information.
15730 if test "$enable_thread_safety" = yes; then
15736 ac_cpp='$CPP $CPPFLAGS'
15737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15743 # We used to check for pthread.h first, but this fails if pthread.h
15744 # requires special compiler flags (e.g. on True64 or Sequent).
15745 # It gets checked for in the link test anyway.
15747 # First of all, check if the user has set any of the PTHREAD_LIBS,
15748 # etcetera environment variables, and if threads linking works using
15750 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15751 save_CFLAGS="$CFLAGS"
15752 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15754 LIBS="$PTHREAD_LIBS $LIBS"
15755 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15756 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15764 /* Override any gcc2 internal prototype to avoid an error. */
15768 /* We use char because int might match the return type of a gcc2
15769 builtin and then its argument prototype would still apply. */
15770 char pthread_join ();
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781 (eval $ac_link) 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag"
15789 || test ! -s conftest.err'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try='test -s conftest$ac_exeext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15807 rm -f conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15809 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15810 echo "${ECHO_T}$acx_pthread_ok" >&6
15811 if test x"$acx_pthread_ok" = xno; then
15816 CFLAGS="$save_CFLAGS"
15819 # We must check for the threads library under a number of different
15820 # names; the ordering is very important because some systems
15821 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15822 # libraries is broken (non-POSIX).
15824 # Create a list of thread flags to try. Items starting with a "-" are
15825 # C compiler flags, and other items are library names, except for "none"
15826 # which indicates that we try without any flags at all, and "pthread-config"
15827 # which is a program returning the flags for the Pth emulation library.
15829 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
15831 # The ordering *is* (sometimes) important. Some notes on the
15832 # individual items follow:
15834 # pthreads: AIX (must check this before -lpthread)
15835 # none: in case threads are in libc; should be tried before -Kthread and
15836 # other compiler flags to prevent continual compiler warnings
15837 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15838 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15839 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15840 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15841 # -pthreads: Solaris/gcc
15842 # -mthreads: Mingw32/gcc, Lynx/gcc
15843 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15844 # doesn't hurt to check since this sometimes defines pthreads too;
15845 # also defines -D_REENTRANT)
15846 # pthread: Linux, etcetera
15847 # --thread-safe: KAI C++
15848 # pthread-config: use pthread-config program (for GNU Pth library)
15850 case "${host_cpu}-${host_os}" in
15853 # On Solaris (at least, for some versions), libc contains stubbed
15854 # (non-functional) versions of the pthreads routines, so link-based
15855 # tests will erroneously succeed. (We need to link with -pthread or
15856 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15857 # a function called by this macro, so we could check for that, but
15858 # who knows whether they'll stub that too in a future libc.) So,
15859 # we'll just look for -pthreads and -lpthread first:
15861 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15865 if test x"$acx_pthread_ok" = xno; then
15866 for flag in $acx_pthread_flags; do
15868 tryPTHREAD_CFLAGS=""
15872 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15873 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15877 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15878 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15879 tryPTHREAD_CFLAGS="$flag"
15883 # skip this if we already have flags defined, for PostgreSQL
15884 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
15885 # Extract the first word of "pthread-config", so it can be a program name with args.
15886 set dummy pthread-config; ac_word=$2
15887 echo "$as_me:$LINENO: checking for $ac_word" >&5
15888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15889 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 if test -n "$acx_pthread_config"; then
15893 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15899 test -z "$as_dir" && as_dir=.
15900 for ac_exec_ext in '' $ac_executable_extensions; do
15901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902 ac_cv_prog_acx_pthread_config="yes"
15903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15912 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15913 if test -n "$acx_pthread_config"; then
15914 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15915 echo "${ECHO_T}$acx_pthread_config" >&6
15917 echo "$as_me:$LINENO: result: no" >&5
15918 echo "${ECHO_T}no" >&6
15921 if test x"$acx_pthread_config" = xno; then continue; fi
15922 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
15923 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15927 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15928 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
15929 tryPTHREAD_LIBS="-l$flag"
15934 save_CFLAGS="$CFLAGS"
15935 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
15936 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
15938 # Check for various functions. We must include pthread.h,
15939 # since some functions may be macros. (On the Sequent, we
15940 # need a special flag -Kthread to make this header compile.)
15941 # We check for pthread_join because it is in -lpthread on IRIX
15942 # while pthread_create is in libc. We check for pthread_attr_init
15943 # due to DEC craziness with -lpthreads. We check for
15944 # pthread_cleanup_push because it is one of the few pthread
15945 # functions on Solaris that doesn't have a non-functional libc stub.
15946 # We try pthread_create on general principles.
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <pthread.h>
15957 pthread_t th; pthread_join(th, 0);
15958 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15959 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15966 (eval $ac_link) 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -z "$ac_c_werror_flag"
15974 || test ! -s conftest.err'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; } &&
15980 { ac_try='test -s conftest$ac_exeext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15993 rm -f conftest.err conftest.$ac_objext \
15994 conftest$ac_exeext conftest.$ac_ext
15996 if test "x$acx_pthread_ok" = xyes; then
15997 # Don't use options that are ignored by the compiler.
15998 # We find them by checking stderror.
15999 cat >conftest.$ac_ext <<_ACEOF
16001 main (int argc, char **argv)
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16010 # we continue with more flags because Linux needs -lpthread
16011 # for libpq builds on PostgreSQL. The test above only
16012 # tests for building binaries, not shared libraries.
16013 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16014 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16015 else acx_pthread_ok=no
16020 CFLAGS="$save_CFLAGS"
16022 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16023 echo "${ECHO_T}$acx_pthread_ok" >&6
16027 # Various other checks:
16028 if test "x$acx_pthread_ok" = xyes; then
16030 LIBS="$PTHREAD_LIBS $LIBS"
16031 save_CFLAGS="$CFLAGS"
16032 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16034 # Detect AIX lossage: threads are created detached by default
16035 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16036 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16037 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <pthread.h>
16048 int attr=PTHREAD_CREATE_JOINABLE;
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 (eval $ac_link) 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag"
16063 || test ! -s conftest.err'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; }; then
16075 ok=PTHREAD_CREATE_JOINABLE
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16082 rm -f conftest.err conftest.$ac_objext \
16083 conftest$ac_exeext conftest.$ac_ext
16084 if test x"$ok" = xunknown; then
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include <pthread.h>
16095 int attr=PTHREAD_CREATE_UNDETACHED;
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>conftest.er1
16104 grep -v '^ *+' conftest.er1 >conftest.err
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -z "$ac_c_werror_flag"
16110 || test ! -s conftest.err'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest$ac_exeext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122 ok=PTHREAD_CREATE_UNDETACHED
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16129 rm -f conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16132 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16134 cat >>confdefs.h <<\_ACEOF
16135 #define PTHREAD_CREATE_JOINABLE $ok
16139 echo "$as_me:$LINENO: result: ${ok}" >&5
16140 echo "${ECHO_T}${ok}" >&6
16141 if test x"$ok" = xunknown; then
16142 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16143 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16146 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16147 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16149 # We always add these in PostgreSQL
16150 # case "${host_cpu}-${host_os}" in
16151 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16152 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16154 echo "$as_me:$LINENO: result: ${flag}" >&5
16155 echo "${ECHO_T}${flag}" >&6
16156 if test "x$flag" != xno; then
16157 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16161 CFLAGS="$save_CFLAGS"
16163 # Supporting cc_r would require a special CC in all places that
16164 # use libpq, and that is ugly, so we don't do it. Users can still
16165 # define their compiler as cc_r to do thread builds of everything.
16166 # More AIX lossage: must compile with cc_r
16167 # Extract the first word of "cc_r", so it can be a program name with args.
16168 set dummy cc_r; ac_word=$2
16169 echo "$as_me:$LINENO: checking for $ac_word" >&5
16170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16171 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 if test -n "$PTHREAD_CC"; then
16175 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16178 for as_dir in $PATH
16181 test -z "$as_dir" && as_dir=.
16182 for ac_exec_ext in '' $ac_executable_extensions; do
16183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16184 ac_cv_prog_PTHREAD_CC="cc_r"
16185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16191 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16194 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16195 if test -n "$PTHREAD_CC"; then
16196 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16197 echo "${ECHO_T}$PTHREAD_CC" >&6
16199 echo "$as_me:$LINENO: result: no" >&5
16200 echo "${ECHO_T}no" >&6
16211 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16212 if test x"$acx_pthread_ok" = xyes; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_PTHREAD 1
16224 ac_cpp='$CPP $CPPFLAGS'
16225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16231 # Some platforms use these, so just defineed them. They can't hurt if they
16232 # are not supported.
16233 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16236 # At this point, we don't want to muck with the compiler name for threading.
16237 # Let's see who fails, perhaps AIX. 2004-04-23
16238 if test "$PTHREAD_CC" != "$CC"; then
16239 { { echo "$as_me:$LINENO: error:
16240 PostgreSQL does not support platforms that require a special
16241 compiler binary for thread-safety.
16243 echo "$as_me: error:
16244 PostgreSQL does not support platforms that require a special
16245 compiler binary for thread-safety.
16247 { (exit 1); exit 1; }; }
16250 if test "$THREAD_SUPPORT" = no; then
16251 { { echo "$as_me:$LINENO: error:
16252 Cannot enable threads on your platform.
16253 Your platform is known to not support thread-safe programs.
16254 For details, compile and run src/bin/pg_thread_test.
16256 echo "$as_me: error:
16257 Cannot enable threads on your platform.
16258 Your platform is known to not support thread-safe programs.
16259 For details, compile and run src/bin/pg_thread_test.
16261 { (exit 1); exit 1; }; }
16264 # Check for *_r functions
16267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16268 LIBS="$LIBS $PTHREAD_LIBS"
16270 if test "${ac_cv_header_pthread_h+set}" = set; then
16271 echo "$as_me:$LINENO: checking for pthread.h" >&5
16272 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16273 if test "${ac_cv_header_pthread_h+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16277 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16279 # Is the header compilable?
16280 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16281 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16282 cat >conftest.$ac_ext <<_ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16289 #include <pthread.h>
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try='test -z "$ac_c_werror_flag"
16301 || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_header_compiler=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_compiler=no
16320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6
16324 # Is the header present?
16325 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16326 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <pthread.h>
16335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16338 grep -v '^ *+' conftest.er1 >conftest.err
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } >/dev/null; then
16343 if test -s conftest.err; then
16344 ac_cpp_err=$ac_c_preproc_warn_flag
16345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16352 if test -z "$ac_cpp_err"; then
16353 ac_header_preproc=yes
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_header_preproc=no
16360 rm -f conftest.err conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6
16364 # So? What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16367 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16371 ac_header_preproc=yes
16374 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16388 ## ---------------------------------------- ##
16389 ## Report this to pgsql-bugs@postgresql.org ##
16390 ## ---------------------------------------- ##
16393 sed "s/^/$as_me: WARNING: /" >&2
16396 echo "$as_me:$LINENO: checking for pthread.h" >&5
16397 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16398 if test "${ac_cv_header_pthread_h+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 ac_cv_header_pthread_h=$ac_header_preproc
16403 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16404 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16407 if test $ac_cv_header_pthread_h = yes; then
16410 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16411 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16412 { (exit 1); exit 1; }; }
16420 for ac_func in strerror_r getpwuid_r gethostbyname_r
16422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16423 echo "$as_me:$LINENO: checking for $ac_func" >&5
16424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16425 if eval "test \"\${$as_ac_var+set}\" = set"; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 cat >conftest.$ac_ext <<_ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16436 #define $ac_func innocuous_$ac_func
16438 /* System header to define __stub macros and hopefully few prototypes,
16439 which can conflict with char $ac_func (); below.
16440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16441 <limits.h> exists even on freestanding compilers. */
16444 # include <limits.h>
16446 # include <assert.h>
16451 /* Override any gcc2 internal prototype to avoid an error. */
16456 /* We use char because int might match the return type of a gcc2
16457 builtin and then its argument prototype would still apply. */
16459 /* The GNU C library defines this for functions which it implements
16460 to always fail with ENOSYS. Some functions are actually named
16461 something starting with __ and the normal name is an alias. */
16462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16465 char (*f) () = $ac_func;
16474 return f != $ac_func;
16479 rm -f conftest.$ac_objext conftest$ac_exeext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16481 (eval $ac_link) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 eval "$as_ac_var=yes"
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 eval "$as_ac_var=no"
16508 rm -f conftest.err conftest.$ac_objext \
16509 conftest$ac_exeext conftest.$ac_ext
16511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16513 if test `eval echo '${'$as_ac_var'}'` = yes; then
16514 cat >>confdefs.h <<_ACEOF
16515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16522 # Do test here with the proper thread flags
16523 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16524 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16525 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 #include <sys/types.h>
16540 struct passwd *space;
16543 struct passwd **result;
16544 getpwuid_r(uid, space, buf, bufsize, result);
16549 rm -f conftest.$ac_objext
16550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16551 (eval $ac_compile) 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -z "$ac_c_werror_flag"
16559 || test ! -s conftest.err'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; } &&
16565 { ac_try='test -s conftest.$ac_objext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 pgac_func_getpwuid_r_5arg=yes
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 pgac_func_getpwuid_r_5arg=no
16578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16580 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
16581 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
16582 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
16584 cat >>confdefs.h <<\_ACEOF
16585 #define GETPWUID_R_5ARG
16590 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
16591 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
16592 if test "${pgac_func_strerror_r_int+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <string.h>
16606 int strerror_r(int, char *, size_t);
16608 /* Older AIX has 'int' for the third argument so we don't test the args. */
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag"
16625 || test ! -s conftest.err'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; } &&
16631 { ac_try='test -s conftest.$ac_objext'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 pgac_func_strerror_r_int=yes
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 pgac_func_strerror_r_int=no
16644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16646 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
16647 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
16648 if test x"$pgac_func_strerror_r_int" = xyes ; then
16650 cat >>confdefs.h <<\_ACEOF
16651 #define STRERROR_R_INT
16661 # do not use values from template file
16670 # This test makes sure that run tests work at all. Sometimes a shared
16671 # library is found by the linker, but the runtime linker can't find it.
16672 # This check should come after all modifications of compiler or linker
16673 # variables, and before any other run tests.
16674 echo "$as_me:$LINENO: checking test program" >&5
16675 echo $ECHO_N "checking test program... $ECHO_C" >&6
16676 if test "$cross_compiling" = yes; then
16677 echo "$as_me:$LINENO: result: cross-compiling" >&5
16678 echo "${ECHO_T}cross-compiling" >&6
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 int main() { return 0; }
16688 rm -f conftest$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 echo "$as_me:$LINENO: result: ok" >&5
16700 echo "${ECHO_T}ok" >&6
16702 echo "$as_me: program exited with status $ac_status" >&5
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ( exit $ac_status )
16707 echo "$as_me:$LINENO: result: failed" >&5
16708 echo "${ECHO_T}failed" >&6
16709 { { echo "$as_me:$LINENO: error:
16710 *** Could not execute a simple test program. This may be a problem
16711 *** related to locating shared libraries. Check the file 'config.log'
16712 *** for the exact reason." >&5
16713 echo "$as_me: error:
16714 *** Could not execute a simple test program. This may be a problem
16715 *** related to locating shared libraries. Check the file 'config.log'
16716 *** for the exact reason." >&2;}
16717 { (exit 1); exit 1; }; }
16719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16722 # --------------------
16723 # Run tests below here
16724 # --------------------
16726 # Force use of our snprintf if system's doesn't do arg control
16727 # See comment above at snprintf test for details.
16728 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
16729 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
16730 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
16731 if test "${pgac_cv_printf_arg_control+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 if test "$cross_compiling" = yes; then
16735 pgac_cv_printf_arg_control=cross
16737 cat >conftest.$ac_ext <<_ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16744 #include <string.h>
16750 /* can it swap arguments? */
16751 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
16752 if (strcmp(buf, "4 3") != 0)
16757 rm -f conftest$ac_exeext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16759 (eval $ac_link) 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 pgac_cv_printf_arg_control=yes
16770 echo "$as_me: program exited with status $ac_status" >&5
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ( exit $ac_status )
16775 pgac_cv_printf_arg_control=no
16777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16781 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
16782 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
16784 if test $pgac_cv_printf_arg_control != yes ; then
16785 pgac_need_repl_snprintf=yes
16791 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
16792 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
16793 if test "${pgac_cv_type_long_int_64+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 if test "$cross_compiling" = yes; then
16797 # If cross-compiling, check the size reported by the compiler and
16798 # trust that the arithmetic works.
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16809 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16816 rm -f conftest.$ac_objext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818 (eval $ac_compile) 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag"
16826 || test ! -s conftest.err'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 pgac_cv_type_long_int_64=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 pgac_cv_type_long_int_64=no
16845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16847 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 typedef long int ac_int64;
16856 * These are globals to discourage the compiler from folding all the
16857 * arithmetic tests down to compile-time constants.
16859 ac_int64 a = 20000001;
16860 ac_int64 b = 40000005;
16862 int does_int64_work()
16866 if (sizeof(ac_int64) != 8)
16867 return 0; /* definitely not the right size */
16869 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16877 exit(! does_int64_work());
16880 rm -f conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882 (eval $ac_link) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 pgac_cv_type_long_int_64=yes
16893 echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ( exit $ac_status )
16898 pgac_cv_type_long_int_64=no
16900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
16904 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
16906 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
16907 if test x"$pgac_cv_type_long_int_64" = xyes ; then
16909 cat >>confdefs.h <<\_ACEOF
16910 #define HAVE_LONG_INT_64
16916 if test x"$HAVE_LONG_INT_64" = x"no" ; then
16917 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
16918 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
16919 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 if test "$cross_compiling" = yes; then
16923 # If cross-compiling, check the size reported by the compiler and
16924 # trust that the arithmetic works.
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16935 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944 (eval $ac_compile) 2>conftest.er1
16946 grep -v '^ *+' conftest.er1 >conftest.err
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -z "$ac_c_werror_flag"
16952 || test ! -s conftest.err'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest.$ac_objext'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 pgac_cv_type_long_long_int_64=yes
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 pgac_cv_type_long_long_int_64=no
16971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 typedef long long int ac_int64;
16982 * These are globals to discourage the compiler from folding all the
16983 * arithmetic tests down to compile-time constants.
16985 ac_int64 a = 20000001;
16986 ac_int64 b = 40000005;
16988 int does_int64_work()
16992 if (sizeof(ac_int64) != 8)
16993 return 0; /* definitely not the right size */
16995 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17003 exit(! does_int64_work());
17006 rm -f conftest$ac_exeext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 pgac_cv_type_long_long_int_64=yes
17019 echo "$as_me: program exited with status $ac_status" >&5
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ( exit $ac_status )
17024 pgac_cv_type_long_long_int_64=no
17026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17029 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17030 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17032 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17033 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_LONG_LONG_INT_64
17045 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17053 #define INT64CONST(x) x##LL
17054 long long int foo = INT64CONST(0x1234567890123456);
17064 rm -f conftest.$ac_objext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066 (eval $ac_compile) 2>conftest.er1
17068 grep -v '^ *+' conftest.er1 >conftest.err
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag"
17074 || test ! -s conftest.err'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest.$ac_objext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_LL_CONSTANTS 1
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17100 # If we found "long int" is 64 bits, assume snprintf handles it. If
17101 # we found we need to use "long long int", better check. We cope with
17102 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17103 # work, fall back to our own snprintf emulation (which we know uses %lld).
17105 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17106 if test $pgac_need_repl_snprintf = no; then
17107 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17108 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17109 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 for pgac_format in '%lld' '%qd' '%I64d'; do
17113 if test "$cross_compiling" = yes; then
17114 pgac_cv_snprintf_long_long_int_format=cross; break
17116 cat >conftest.$ac_ext <<_ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17123 typedef long long int ac_int64;
17124 #define INT64_FORMAT "$pgac_format"
17126 ac_int64 a = 20000001;
17127 ac_int64 b = 40000005;
17129 int does_int64_snprintf_work()
17134 if (sizeof(ac_int64) != 8)
17135 return 0; /* doesn't look like the right size */
17138 snprintf(buf, 100, INT64_FORMAT, c);
17139 if (strcmp(buf, "800000140000005") != 0)
17140 return 0; /* either multiply or snprintf is busted */
17144 exit(! does_int64_snprintf_work());
17147 rm -f conftest$ac_exeext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17149 (eval $ac_link) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17160 echo "$as_me: program exited with status $ac_status" >&5
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17170 LONG_LONG_INT_FORMAT=''
17172 case $pgac_cv_snprintf_long_long_int_format in
17173 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17174 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17175 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17176 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17177 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17178 *) echo "$as_me:$LINENO: result: none" >&5
17179 echo "${ECHO_T}none" >&6;;
17181 if test "$LONG_LONG_INT_FORMAT" = ""; then
17182 # Force usage of our own snprintf, since system snprintf is broken
17183 pgac_need_repl_snprintf=yes
17184 LONG_LONG_INT_FORMAT='%lld'
17187 # Here if we previously decided we needed to use our own snprintf
17188 LONG_LONG_INT_FORMAT='%lld'
17190 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17191 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17192 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17194 # Here if we are not using 'long long int' at all
17195 INT64_FORMAT='"%ld"'
17196 UINT64_FORMAT='"%lu"'
17200 cat >>confdefs.h <<_ACEOF
17201 #define INT64_FORMAT $INT64_FORMAT
17206 cat >>confdefs.h <<_ACEOF
17207 #define UINT64_FORMAT $UINT64_FORMAT
17211 # Now we have checked all the reasons to replace snprintf
17212 if test $pgac_need_repl_snprintf = yes; then
17214 cat >>confdefs.h <<\_ACEOF
17215 #define USE_REPL_SNPRINTF 1
17219 "snprintf.$ac_objext" | \
17220 *" snprintf.$ac_objext" | \
17221 "snprintf.$ac_objext "* | \
17222 *" snprintf.$ac_objext "* ) ;;
17223 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17228 # Need a #define for the size of Datum (unsigned long)
17229 echo "$as_me:$LINENO: checking for unsigned long" >&5
17230 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17231 if test "${ac_cv_type_unsigned_long+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 cat >conftest.$ac_ext <<_ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 $ac_includes_default
17244 if ((unsigned long *) 0)
17246 if (sizeof (unsigned long))
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>conftest.er1
17256 grep -v '^ *+' conftest.er1 >conftest.err
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -z "$ac_c_werror_flag"
17262 || test ! -s conftest.err'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_type_unsigned_long=yes
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17279 ac_cv_type_unsigned_long=no
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17283 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17284 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17286 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17287 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17288 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 if test "$ac_cv_type_unsigned_long" = yes; then
17292 # The cast to unsigned long works around a bug in the HP C Compiler
17293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17295 # This bug is HP SR number 8606223364.
17296 if test "$cross_compiling" = yes; then
17297 # Depending upon the size, compute the lo and hi bounds.
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 $ac_includes_default
17308 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17315 rm -f conftest.$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317 (eval $ac_compile) 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest.$ac_objext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17349 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag"
17366 || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_hi=$ac_mid; break
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_lo=`expr $ac_mid + 1`
17384 if test $ac_lo -le $ac_mid; then
17388 ac_mid=`expr 2 '*' $ac_mid + 1`
17390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 $ac_includes_default
17406 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17413 rm -f conftest.$ac_objext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17415 (eval $ac_compile) 2>conftest.er1
17417 grep -v '^ *+' conftest.er1 >conftest.err
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest.$ac_objext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17437 cat >conftest.$ac_ext <<_ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17447 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_lo=$ac_mid; break
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_hi=`expr '(' $ac_mid ')' - 1`
17482 if test $ac_mid -le $ac_hi; then
17486 ac_mid=`expr 2 '*' $ac_mid`
17488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17499 # Binary search between lo and hi bounds.
17500 while test "x$ac_lo" != "x$ac_hi"; do
17501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 $ac_includes_default
17512 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17519 rm -f conftest.$ac_objext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17521 (eval $ac_compile) 2>conftest.er1
17523 grep -v '^ *+' conftest.er1 >conftest.err
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ac_lo=`expr '(' $ac_mid ')' + 1`
17548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17551 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17552 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17553 See \`config.log' for more details." >&5
17554 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17555 See \`config.log' for more details." >&2;}
17556 { (exit 1); exit 1; }; } ;;
17559 if test "$cross_compiling" = yes; then
17560 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17561 See \`config.log' for more details." >&5
17562 echo "$as_me: error: cannot run test program while cross compiling
17563 See \`config.log' for more details." >&2;}
17564 { (exit 1); exit 1; }; }
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 $ac_includes_default
17573 long longval () { return (long) (sizeof (unsigned long)); }
17574 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17576 #include <stdlib.h>
17581 FILE *f = fopen ("conftest.val", "w");
17584 if (((long) (sizeof (unsigned long))) < 0)
17586 long i = longval ();
17587 if (i != ((long) (sizeof (unsigned long))))
17589 fprintf (f, "%ld\n", i);
17593 unsigned long i = ulongval ();
17594 if (i != ((long) (sizeof (unsigned long))))
17596 fprintf (f, "%lu\n", i);
17598 exit (ferror (f) || fclose (f) != 0);
17604 rm -f conftest$ac_exeext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17606 (eval $ac_link) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_sizeof_unsigned_long=`cat conftest.val`
17617 echo "$as_me: program exited with status $ac_status" >&5
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ( exit $ac_status )
17622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17623 See \`config.log' for more details." >&5
17624 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17625 See \`config.log' for more details." >&2;}
17626 { (exit 1); exit 1; }; }
17628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17633 ac_cv_sizeof_unsigned_long=0
17636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17637 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17638 cat >>confdefs.h <<_ACEOF
17639 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17644 # And one for the size of size_t (enables tweaks for > 32bit address space)
17645 echo "$as_me:$LINENO: checking for size_t" >&5
17646 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17647 if test "${ac_cv_type_size_t+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 $ac_includes_default
17662 if (sizeof (size_t))
17668 rm -f conftest.$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670 (eval $ac_compile) 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_type_size_t=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_type_size_t=no
17697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17699 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17700 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17702 echo "$as_me:$LINENO: checking size of size_t" >&5
17703 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17704 if test "${ac_cv_sizeof_size_t+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 if test "$ac_cv_type_size_t" = yes; then
17708 # The cast to unsigned long works around a bug in the HP C Compiler
17709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17711 # This bug is HP SR number 8606223364.
17712 if test "$cross_compiling" = yes; then
17713 # Depending upon the size, compute the lo and hi bounds.
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 $ac_includes_default
17724 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17735 grep -v '^ *+' conftest.er1 >conftest.err
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 $ac_includes_default
17765 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17772 rm -f conftest.$ac_objext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774 (eval $ac_compile) 2>conftest.er1
17776 grep -v '^ *+' conftest.er1 >conftest.err
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_hi=$ac_mid; break
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 ac_lo=`expr $ac_mid + 1`
17800 if test $ac_lo -le $ac_mid; then
17804 ac_mid=`expr 2 '*' $ac_mid + 1`
17806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 cat >conftest.$ac_ext <<_ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 $ac_includes_default
17822 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17829 rm -f conftest.$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>conftest.er1
17833 grep -v '^ *+' conftest.er1 >conftest.err
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest.$ac_objext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17853 cat >conftest.$ac_ext <<_ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 $ac_includes_default
17863 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17870 rm -f conftest.$ac_objext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17872 (eval $ac_compile) 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_lo=$ac_mid; break
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_hi=`expr '(' $ac_mid ')' - 1`
17898 if test $ac_mid -le $ac_hi; then
17902 ac_mid=`expr 2 '*' $ac_mid`
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17915 # Binary search between lo and hi bounds.
17916 while test "x$ac_lo" != "x$ac_hi"; do
17917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17928 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>conftest.er1
17939 grep -v '^ *+' conftest.er1 >conftest.err
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_lo=`expr '(' $ac_mid ')' + 1`
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17967 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17969 See \`config.log' for more details." >&5
17970 echo "$as_me: error: cannot compute sizeof (size_t), 77
17971 See \`config.log' for more details." >&2;}
17972 { (exit 1); exit 1; }; } ;;
17975 if test "$cross_compiling" = yes; then
17976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17977 See \`config.log' for more details." >&5
17978 echo "$as_me: error: cannot run test program while cross compiling
17979 See \`config.log' for more details." >&2;}
17980 { (exit 1); exit 1; }; }
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 $ac_includes_default
17989 long longval () { return (long) (sizeof (size_t)); }
17990 unsigned long ulongval () { return (long) (sizeof (size_t)); }
17992 #include <stdlib.h>
17997 FILE *f = fopen ("conftest.val", "w");
18000 if (((long) (sizeof (size_t))) < 0)
18002 long i = longval ();
18003 if (i != ((long) (sizeof (size_t))))
18005 fprintf (f, "%ld\n", i);
18009 unsigned long i = ulongval ();
18010 if (i != ((long) (sizeof (size_t))))
18012 fprintf (f, "%lu\n", i);
18014 exit (ferror (f) || fclose (f) != 0);
18020 rm -f conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_sizeof_size_t=`cat conftest.val`
18033 echo "$as_me: program exited with status $ac_status" >&5
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ( exit $ac_status )
18038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18039 See \`config.log' for more details." >&5
18040 echo "$as_me: error: cannot compute sizeof (size_t), 77
18041 See \`config.log' for more details." >&2;}
18042 { (exit 1); exit 1; }; }
18044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18049 ac_cv_sizeof_size_t=0
18052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18053 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18054 cat >>confdefs.h <<_ACEOF
18055 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18060 # Determine memory alignment requirements for the basic C data types.
18062 echo "$as_me:$LINENO: checking for short" >&5
18063 echo $ECHO_N "checking for short... $ECHO_C" >&6
18064 if test "${ac_cv_type_short+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18079 if (sizeof (short))
18085 rm -f conftest.$ac_objext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18087 (eval $ac_compile) 2>conftest.er1
18089 grep -v '^ *+' conftest.er1 >conftest.err
18091 cat conftest.err >&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } &&
18094 { ac_try='test -z "$ac_c_werror_flag"
18095 || test ! -s conftest.err'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_type_short=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_type_short=no
18114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18116 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18117 echo "${ECHO_T}$ac_cv_type_short" >&6
18119 echo "$as_me:$LINENO: checking alignment of short" >&5
18120 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18121 if test "${pgac_cv_alignof_short+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 if test "$ac_cv_type_short" = yes; then
18125 if test "$cross_compiling" = yes; then
18126 # Depending upon the size, compute the lo and hi bounds.
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 struct { char filler; short field; } pgac_struct;
18138 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18145 rm -f conftest.$ac_objext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18147 (eval $ac_compile) 2>conftest.er1
18149 grep -v '^ *+' conftest.er1 >conftest.err
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -z "$ac_c_werror_flag"
18155 || test ! -s conftest.err'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try='test -s conftest.$ac_objext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 $ac_includes_default
18176 struct { char filler; short field; } pgac_struct;
18180 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18187 rm -f conftest.$ac_objext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189 (eval $ac_compile) 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag"
18197 || test ! -s conftest.err'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest.$ac_objext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_hi=$ac_mid; break
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_lo=`expr $ac_mid + 1`
18215 if test $ac_lo -le $ac_mid; then
18219 ac_mid=`expr 2 '*' $ac_mid + 1`
18221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 $ac_includes_default
18234 struct { char filler; short field; } pgac_struct;
18238 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18245 rm -f conftest.$ac_objext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 $ac_includes_default
18276 struct { char filler; short field; } pgac_struct;
18280 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18287 rm -f conftest.$ac_objext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289 (eval $ac_compile) 2>conftest.er1
18291 grep -v '^ *+' conftest.er1 >conftest.err
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag"
18297 || test ! -s conftest.err'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest.$ac_objext'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_lo=$ac_mid; break
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_hi=`expr '(' $ac_mid ')' - 1`
18315 if test $ac_mid -le $ac_hi; then
18319 ac_mid=`expr 2 '*' $ac_mid`
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18332 # Binary search between lo and hi bounds.
18333 while test "x$ac_lo" != "x$ac_hi"; do
18334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18335 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 $ac_includes_default
18342 struct { char filler; short field; } pgac_struct;
18346 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18380 ac_lo=`expr '(' $ac_mid ')' + 1`
18382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18385 ?*) pgac_cv_alignof_short=$ac_lo;;
18386 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18387 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18388 { (exit 1); exit 1; }; } ;;
18391 if test "$cross_compiling" = yes; then
18392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18393 See \`config.log' for more details." >&5
18394 echo "$as_me: error: cannot run test program while cross compiling
18395 See \`config.log' for more details." >&2;}
18396 { (exit 1); exit 1; }; }
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 $ac_includes_default
18405 struct { char filler; short field; } pgac_struct;
18406 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18407 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18409 #include <stdlib.h>
18414 FILE *f = fopen ("conftest.val", "w");
18417 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18419 long i = longval ();
18420 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18422 fprintf (f, "%ld\n", i);
18426 unsigned long i = ulongval ();
18427 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18429 fprintf (f, "%lu\n", i);
18431 exit (ferror (f) || fclose (f) != 0);
18437 rm -f conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439 (eval $ac_link) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 pgac_cv_alignof_short=`cat conftest.val`
18450 echo "$as_me: program exited with status $ac_status" >&5
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ( exit $ac_status )
18455 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18456 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18457 { (exit 1); exit 1; }; }
18459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18464 pgac_cv_alignof_short=0
18467 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18468 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18469 cat >>confdefs.h <<_ACEOF
18470 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18474 echo "$as_me:$LINENO: checking for int" >&5
18475 echo $ECHO_N "checking for int... $ECHO_C" >&6
18476 if test "${ac_cv_type_int+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 $ac_includes_default
18497 rm -f conftest.$ac_objext
18498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18499 (eval $ac_compile) 2>conftest.er1
18501 grep -v '^ *+' conftest.er1 >conftest.err
18503 cat conftest.err >&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } &&
18506 { ac_try='test -z "$ac_c_werror_flag"
18507 || test ! -s conftest.err'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; } &&
18513 { ac_try='test -s conftest.$ac_objext'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18528 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18529 echo "${ECHO_T}$ac_cv_type_int" >&6
18531 echo "$as_me:$LINENO: checking alignment of int" >&5
18532 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18533 if test "${pgac_cv_alignof_int+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 if test "$ac_cv_type_int" = yes; then
18537 if test "$cross_compiling" = yes; then
18538 # Depending upon the size, compute the lo and hi bounds.
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 $ac_includes_default
18546 struct { char filler; int field; } pgac_struct;
18550 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18557 rm -f conftest.$ac_objext
18558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18559 (eval $ac_compile) 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try='test -z "$ac_c_werror_flag"
18567 || test ! -s conftest.err'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try='test -s conftest.$ac_objext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18581 cat >conftest.$ac_ext <<_ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18587 $ac_includes_default
18588 struct { char filler; int field; } pgac_struct;
18592 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18601 (eval $ac_compile) 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
18608 { ac_try='test -z "$ac_c_werror_flag"
18609 || test ! -s conftest.err'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18621 ac_hi=$ac_mid; break
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 ac_lo=`expr $ac_mid + 1`
18627 if test $ac_lo -le $ac_mid; then
18631 ac_mid=`expr 2 '*' $ac_mid + 1`
18633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 $ac_includes_default
18646 struct { char filler; int field; } pgac_struct;
18650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18657 rm -f conftest.$ac_objext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18659 (eval $ac_compile) 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag"
18667 || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18681 cat >conftest.$ac_ext <<_ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 $ac_includes_default
18688 struct { char filler; int field; } pgac_struct;
18692 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18699 rm -f conftest.$ac_objext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18701 (eval $ac_compile) 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag"
18709 || test ! -s conftest.err'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; } &&
18715 { ac_try='test -s conftest.$ac_objext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_lo=$ac_mid; break
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 ac_hi=`expr '(' $ac_mid ')' - 1`
18727 if test $ac_mid -le $ac_hi; then
18731 ac_mid=`expr 2 '*' $ac_mid`
18733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18744 # Binary search between lo and hi bounds.
18745 while test "x$ac_lo" != "x$ac_hi"; do
18746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18747 cat >conftest.$ac_ext <<_ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 $ac_includes_default
18754 struct { char filler; int field; } pgac_struct;
18758 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18765 rm -f conftest.$ac_objext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18767 (eval $ac_compile) 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_c_werror_flag"
18775 || test ! -s conftest.err'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; } &&
18781 { ac_try='test -s conftest.$ac_objext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_lo=`expr '(' $ac_mid ')' + 1`
18794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18797 ?*) pgac_cv_alignof_int=$ac_lo;;
18798 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18799 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18800 { (exit 1); exit 1; }; } ;;
18803 if test "$cross_compiling" = yes; then
18804 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18805 See \`config.log' for more details." >&5
18806 echo "$as_me: error: cannot run test program while cross compiling
18807 See \`config.log' for more details." >&2;}
18808 { (exit 1); exit 1; }; }
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 $ac_includes_default
18817 struct { char filler; int field; } pgac_struct;
18818 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18819 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18821 #include <stdlib.h>
18826 FILE *f = fopen ("conftest.val", "w");
18829 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18831 long i = longval ();
18832 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18834 fprintf (f, "%ld\n", i);
18838 unsigned long i = ulongval ();
18839 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18841 fprintf (f, "%lu\n", i);
18843 exit (ferror (f) || fclose (f) != 0);
18849 rm -f conftest$ac_exeext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18851 (eval $ac_link) 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 pgac_cv_alignof_int=`cat conftest.val`
18862 echo "$as_me: program exited with status $ac_status" >&5
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 ( exit $ac_status )
18867 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18868 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18869 { (exit 1); exit 1; }; }
18871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18876 pgac_cv_alignof_int=0
18879 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
18880 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
18881 cat >>confdefs.h <<_ACEOF
18882 #define ALIGNOF_INT $pgac_cv_alignof_int
18886 echo "$as_me:$LINENO: checking for long" >&5
18887 echo $ECHO_N "checking for long... $ECHO_C" >&6
18888 if test "${ac_cv_type_long+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18913 grep -v '^ *+' conftest.er1 >conftest.err
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
18918 { ac_try='test -z "$ac_c_werror_flag"
18919 || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 ac_cv_type_long=yes
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18940 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18941 echo "${ECHO_T}$ac_cv_type_long" >&6
18943 echo "$as_me:$LINENO: checking alignment of long" >&5
18944 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
18945 if test "${pgac_cv_alignof_long+set}" = set; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 if test "$ac_cv_type_long" = yes; then
18949 if test "$cross_compiling" = yes; then
18950 # Depending upon the size, compute the lo and hi bounds.
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 $ac_includes_default
18958 struct { char filler; long field; } pgac_struct;
18962 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18969 rm -f conftest.$ac_objext
18970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18971 (eval $ac_compile) 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } &&
18978 { ac_try='test -z "$ac_c_werror_flag"
18979 || test ! -s conftest.err'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest.$ac_objext'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18993 cat >conftest.$ac_ext <<_ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 $ac_includes_default
19000 struct { char filler; long field; } pgac_struct;
19004 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19011 rm -f conftest.$ac_objext
19012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19013 (eval $ac_compile) 2>conftest.er1
19015 grep -v '^ *+' conftest.er1 >conftest.err
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
19020 { ac_try='test -z "$ac_c_werror_flag"
19021 || test ! -s conftest.err'
19022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023 (eval $ac_try) 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest.$ac_objext'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; }; then
19033 ac_hi=$ac_mid; break
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 ac_lo=`expr $ac_mid + 1`
19039 if test $ac_lo -le $ac_mid; then
19043 ac_mid=`expr 2 '*' $ac_mid + 1`
19045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 $ac_includes_default
19058 struct { char filler; long field; } pgac_struct;
19062 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19069 rm -f conftest.$ac_objext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19071 (eval $ac_compile) 2>conftest.er1
19073 grep -v '^ *+' conftest.er1 >conftest.err
19075 cat conftest.err >&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try='test -z "$ac_c_werror_flag"
19079 || test ! -s conftest.err'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 $ac_includes_default
19100 struct { char filler; long field; } pgac_struct;
19104 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19111 rm -f conftest.$ac_objext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113 (eval $ac_compile) 2>conftest.er1
19115 grep -v '^ *+' conftest.er1 >conftest.err
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_lo=$ac_mid; break
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19138 ac_hi=`expr '(' $ac_mid ')' - 1`
19139 if test $ac_mid -le $ac_hi; then
19143 ac_mid=`expr 2 '*' $ac_mid`
19145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19156 # Binary search between lo and hi bounds.
19157 while test "x$ac_lo" != "x$ac_hi"; do
19158 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 $ac_includes_default
19166 struct { char filler; long field; } pgac_struct;
19170 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19177 rm -f conftest.$ac_objext
19178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19179 (eval $ac_compile) 2>conftest.er1
19181 grep -v '^ *+' conftest.er1 >conftest.err
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
19186 { ac_try='test -z "$ac_c_werror_flag"
19187 || test ! -s conftest.err'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_lo=`expr '(' $ac_mid ')' + 1`
19206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19209 ?*) pgac_cv_alignof_long=$ac_lo;;
19210 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19211 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19212 { (exit 1); exit 1; }; } ;;
19215 if test "$cross_compiling" = yes; then
19216 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19217 See \`config.log' for more details." >&5
19218 echo "$as_me: error: cannot run test program while cross compiling
19219 See \`config.log' for more details." >&2;}
19220 { (exit 1); exit 1; }; }
19222 cat >conftest.$ac_ext <<_ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19228 $ac_includes_default
19229 struct { char filler; long field; } pgac_struct;
19230 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19231 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19233 #include <stdlib.h>
19238 FILE *f = fopen ("conftest.val", "w");
19241 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19243 long i = longval ();
19244 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19246 fprintf (f, "%ld\n", i);
19250 unsigned long i = ulongval ();
19251 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19253 fprintf (f, "%lu\n", i);
19255 exit (ferror (f) || fclose (f) != 0);
19261 rm -f conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263 (eval $ac_link) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 pgac_cv_alignof_long=`cat conftest.val`
19274 echo "$as_me: program exited with status $ac_status" >&5
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ( exit $ac_status )
19279 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19280 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19281 { (exit 1); exit 1; }; }
19283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19288 pgac_cv_alignof_long=0
19291 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19292 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19293 cat >>confdefs.h <<_ACEOF
19294 #define ALIGNOF_LONG $pgac_cv_alignof_long
19298 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19299 echo "$as_me:$LINENO: checking for long long int" >&5
19300 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19301 if test "${ac_cv_type_long_long_int+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 $ac_includes_default
19314 if ((long long int *) 0)
19316 if (sizeof (long long int))
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324 (eval $ac_compile) 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_type_long_long_int=yes
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_cv_type_long_long_int=no
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19353 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19354 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19356 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19357 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19358 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 if test "$ac_cv_type_long_long_int" = yes; then
19362 if test "$cross_compiling" = yes; then
19363 # Depending upon the size, compute the lo and hi bounds.
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 $ac_includes_default
19371 struct { char filler; long long int field; } pgac_struct;
19375 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19382 rm -f conftest.$ac_objext
19383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384 (eval $ac_compile) 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
19391 { ac_try='test -z "$ac_c_werror_flag"
19392 || test ! -s conftest.err'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest.$ac_objext'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; }; then
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19413 struct { char filler; long long int field; } pgac_struct;
19417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag"
19434 || test ! -s conftest.err'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_hi=$ac_mid; break
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_lo=`expr $ac_mid + 1`
19452 if test $ac_lo -le $ac_mid; then
19456 ac_mid=`expr 2 '*' $ac_mid + 1`
19458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 $ac_includes_default
19471 struct { char filler; long long int field; } pgac_struct;
19475 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484 (eval $ac_compile) 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag"
19492 || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest.$ac_objext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 $ac_includes_default
19513 struct { char filler; long long int field; } pgac_struct;
19517 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19524 rm -f conftest.$ac_objext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19526 (eval $ac_compile) 2>conftest.er1
19528 grep -v '^ *+' conftest.er1 >conftest.err
19530 cat conftest.err >&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } &&
19533 { ac_try='test -z "$ac_c_werror_flag"
19534 || test ! -s conftest.err'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_lo=$ac_mid; break
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_hi=`expr '(' $ac_mid ')' - 1`
19552 if test $ac_mid -le $ac_hi; then
19556 ac_mid=`expr 2 '*' $ac_mid`
19558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569 # Binary search between lo and hi bounds.
19570 while test "x$ac_lo" != "x$ac_hi"; do
19571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 $ac_includes_default
19579 struct { char filler; long long int field; } pgac_struct;
19583 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_lo=`expr '(' $ac_mid ')' + 1`
19619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
19623 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19624 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19625 { (exit 1); exit 1; }; } ;;
19628 if test "$cross_compiling" = yes; then
19629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19630 See \`config.log' for more details." >&5
19631 echo "$as_me: error: cannot run test program while cross compiling
19632 See \`config.log' for more details." >&2;}
19633 { (exit 1); exit 1; }; }
19635 cat >conftest.$ac_ext <<_ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 $ac_includes_default
19642 struct { char filler; long long int field; } pgac_struct;
19643 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19644 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19646 #include <stdlib.h>
19651 FILE *f = fopen ("conftest.val", "w");
19654 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19656 long i = longval ();
19657 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19659 fprintf (f, "%ld\n", i);
19663 unsigned long i = ulongval ();
19664 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19666 fprintf (f, "%lu\n", i);
19668 exit (ferror (f) || fclose (f) != 0);
19674 rm -f conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 pgac_cv_alignof_long_long_int=`cat conftest.val`
19687 echo "$as_me: program exited with status $ac_status" >&5
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ( exit $ac_status )
19692 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19693 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19694 { (exit 1); exit 1; }; }
19696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19701 pgac_cv_alignof_long_long_int=0
19704 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
19705 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
19706 cat >>confdefs.h <<_ACEOF
19707 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
19712 echo "$as_me:$LINENO: checking for double" >&5
19713 echo $ECHO_N "checking for double... $ECHO_C" >&6
19714 if test "${ac_cv_type_double+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 $ac_includes_default
19729 if (sizeof (double))
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_type_double=yes
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_type_double=no
19764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19767 echo "${ECHO_T}$ac_cv_type_double" >&6
19769 echo "$as_me:$LINENO: checking alignment of double" >&5
19770 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
19771 if test "${pgac_cv_alignof_double+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 if test "$ac_cv_type_double" = yes; then
19775 if test "$cross_compiling" = yes; then
19776 # Depending upon the size, compute the lo and hi bounds.
19777 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 struct { char filler; double field; } pgac_struct;
19788 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 $ac_includes_default
19826 struct { char filler; double field; } pgac_struct;
19830 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19837 rm -f conftest.$ac_objext
19838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19839 (eval $ac_compile) 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_c_werror_flag"
19847 || test ! -s conftest.err'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 ac_hi=$ac_mid; break
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_lo=`expr $ac_mid + 1`
19865 if test $ac_lo -le $ac_mid; then
19869 ac_mid=`expr 2 '*' $ac_mid + 1`
19871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 $ac_includes_default
19884 struct { char filler; double field; } pgac_struct;
19888 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19895 rm -f conftest.$ac_objext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897 (eval $ac_compile) 2>conftest.er1
19899 grep -v '^ *+' conftest.er1 >conftest.err
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -z "$ac_c_werror_flag"
19905 || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 $ac_includes_default
19926 struct { char filler; double field; } pgac_struct;
19930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19937 rm -f conftest.$ac_objext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939 (eval $ac_compile) 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag"
19947 || test ! -s conftest.err'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; } &&
19953 { ac_try='test -s conftest.$ac_objext'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_lo=$ac_mid; break
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_hi=`expr '(' $ac_mid ')' - 1`
19965 if test $ac_mid -le $ac_hi; then
19969 ac_mid=`expr 2 '*' $ac_mid`
19971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19982 # Binary search between lo and hi bounds.
19983 while test "x$ac_lo" != "x$ac_hi"; do
19984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19985 cat >conftest.$ac_ext <<_ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 $ac_includes_default
19992 struct { char filler; double field; } pgac_struct;
19996 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20003 rm -f conftest.$ac_objext
20004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20005 (eval $ac_compile) 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_c_werror_flag"
20013 || test ! -s conftest.err'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_lo=`expr '(' $ac_mid ')' + 1`
20032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20035 ?*) pgac_cv_alignof_double=$ac_lo;;
20036 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20037 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20038 { (exit 1); exit 1; }; } ;;
20041 if test "$cross_compiling" = yes; then
20042 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20043 See \`config.log' for more details." >&5
20044 echo "$as_me: error: cannot run test program while cross compiling
20045 See \`config.log' for more details." >&2;}
20046 { (exit 1); exit 1; }; }
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20055 struct { char filler; double field; } pgac_struct;
20056 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20057 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20059 #include <stdlib.h>
20064 FILE *f = fopen ("conftest.val", "w");
20067 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20069 long i = longval ();
20070 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20072 fprintf (f, "%ld\n", i);
20076 unsigned long i = ulongval ();
20077 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20079 fprintf (f, "%lu\n", i);
20081 exit (ferror (f) || fclose (f) != 0);
20087 rm -f conftest$ac_exeext
20088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20089 (eval $ac_link) 2>&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 pgac_cv_alignof_double=`cat conftest.val`
20100 echo "$as_me: program exited with status $ac_status" >&5
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ( exit $ac_status )
20105 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20106 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20107 { (exit 1); exit 1; }; }
20109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20114 pgac_cv_alignof_double=0
20117 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20118 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20119 cat >>confdefs.h <<_ACEOF
20120 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20125 # Compute maximum alignment of any basic type.
20126 # We assume long's alignment is at least as strong as char, short, or int;
20127 # but we must check long long (if it exists) and double.
20129 MAX_ALIGNOF=$pgac_cv_alignof_long
20130 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20131 MAX_ALIGNOF=$pgac_cv_alignof_double
20133 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20134 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20137 cat >>confdefs.h <<_ACEOF
20138 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20143 # Some platforms predefine the types int8, int16, etc. Only check
20144 # a (hopefully) representative subset.
20145 echo "$as_me:$LINENO: checking for int8" >&5
20146 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20147 if test "${ac_cv_type_int8+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20157 #ifdef HAVE_SUPPORTDEFS_H
20158 #include <SupportDefs.h>
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174 (eval $ac_compile) 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_c_werror_flag"
20182 || test ! -s conftest.err'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest.$ac_objext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 ac_cv_type_int8=yes
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20203 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20204 echo "${ECHO_T}$ac_cv_type_int8" >&6
20205 if test $ac_cv_type_int8 = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_INT8 1
20213 echo "$as_me:$LINENO: checking for uint8" >&5
20214 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20215 if test "${ac_cv_type_uint8+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20225 #ifdef HAVE_SUPPORTDEFS_H
20226 #include <SupportDefs.h>
20234 if (sizeof (uint8))
20240 rm -f conftest.$ac_objext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20244 grep -v '^ *+' conftest.er1 >conftest.err
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_cv_type_uint8=yes
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_type_uint8=no
20269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20271 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20272 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20273 if test $ac_cv_type_uint8 = yes; then
20275 cat >>confdefs.h <<_ACEOF
20276 #define HAVE_UINT8 1
20281 echo "$as_me:$LINENO: checking for int64" >&5
20282 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20283 if test "${ac_cv_type_int64+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 #ifdef HAVE_SUPPORTDEFS_H
20294 #include <SupportDefs.h>
20302 if (sizeof (int64))
20308 rm -f conftest.$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 ac_cv_type_int64=yes
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_cv_type_int64=no
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20339 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20340 echo "${ECHO_T}$ac_cv_type_int64" >&6
20341 if test $ac_cv_type_int64 = yes; then
20343 cat >>confdefs.h <<_ACEOF
20344 #define HAVE_INT64 1
20349 echo "$as_me:$LINENO: checking for uint64" >&5
20350 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20351 if test "${ac_cv_type_uint64+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20361 #ifdef HAVE_SUPPORTDEFS_H
20362 #include <SupportDefs.h>
20370 if (sizeof (uint64))
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378 (eval $ac_compile) 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag"
20386 || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_cv_type_uint64=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 ac_cv_type_uint64=no
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20407 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20408 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20409 if test $ac_cv_type_uint64 = yes; then
20411 cat >>confdefs.h <<_ACEOF
20412 #define HAVE_UINT64 1
20419 # We also check for sig_atomic_t, which *should* be defined per ANSI
20420 # C, but is missing on some old platforms.
20421 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20422 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20423 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 cat >conftest.$ac_ext <<_ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 #include <signal.h>
20437 if ((sig_atomic_t *) 0)
20439 if (sizeof (sig_atomic_t))
20445 rm -f conftest.$ac_objext
20446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20447 (eval $ac_compile) 2>conftest.er1
20449 grep -v '^ *+' conftest.er1 >conftest.err
20451 cat conftest.err >&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } &&
20454 { ac_try='test -z "$ac_c_werror_flag"
20455 || test ! -s conftest.err'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; } &&
20461 { ac_try='test -s conftest.$ac_objext'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_cv_type_sig_atomic_t=yes
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 ac_cv_type_sig_atomic_t=no
20474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20476 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20477 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20478 if test $ac_cv_type_sig_atomic_t = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_SIG_ATOMIC_T 1
20489 if test x"$template" != x"win32"
20491 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20492 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20493 if test "${pgac_cv_func_posix_signals+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 cat >conftest.$ac_ext <<_ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 #include <signal.h>
20507 struct sigaction act, oact;
20508 sigemptyset(&act.sa_mask);
20509 act.sa_flags = SA_RESTART;
20510 sigaction(0, &act, &oact);
20515 rm -f conftest.$ac_objext conftest$ac_exeext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20517 (eval $ac_link) 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag"
20525 || test ! -s conftest.err'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest$ac_exeext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
20537 pgac_cv_func_posix_signals=yes
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 pgac_cv_func_posix_signals=no
20544 rm -f conftest.err conftest.$ac_objext \
20545 conftest$ac_exeext conftest.$ac_ext
20547 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20548 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20549 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_POSIX_SIGNALS
20556 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20558 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20559 { { echo "$as_me:$LINENO: error:
20560 *** Thread-safety requires POSIX signals, which are not supported by your
20561 *** operating system.
20563 echo "$as_me: error:
20564 *** Thread-safety requires POSIX signals, which are not supported by your
20565 *** operating system.
20567 { (exit 1); exit 1; }; }
20571 if test $ac_cv_func_fseeko = yes; then
20572 # Check whether --enable-largefile or --disable-largefile was given.
20573 if test "${enable_largefile+set}" = set; then
20574 enableval="$enable_largefile"
20577 if test "$enable_largefile" != no; then
20579 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20580 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20581 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 ac_cv_sys_largefile_CC=no
20585 if test "$GCC" != yes; then
20588 # IRIX 6.2 and later do not support large files by default,
20589 # so use the C compiler's -n32 option if that helps.
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 #include <sys/types.h>
20597 /* Check that off_t can represent 2**63 - 1 correctly.
20598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20599 since some C++ compilers masquerading as C compilers
20600 incorrectly reject 9223372036854775807. */
20601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20603 && LARGE_OFF_T % 2147483647 == 1)
20613 rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615 (eval $ac_compile) 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -z "$ac_c_werror_flag"
20623 || test ! -s conftest.err'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20641 rm -f conftest.err conftest.$ac_objext
20643 rm -f conftest.$ac_objext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645 (eval $ac_compile) 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag"
20653 || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest.$ac_objext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_sys_largefile_CC=' -n32'; break
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20671 rm -f conftest.err conftest.$ac_objext
20675 rm -f conftest.$ac_ext
20678 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20679 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
20680 if test "$ac_cv_sys_largefile_CC" != no; then
20681 CC=$CC$ac_cv_sys_largefile_CC
20684 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20685 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20686 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 ac_cv_sys_file_offset_bits=no
20691 cat >conftest.$ac_ext <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 #include <sys/types.h>
20698 /* Check that off_t can represent 2**63 - 1 correctly.
20699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20700 since some C++ compilers masquerading as C compilers
20701 incorrectly reject 9223372036854775807. */
20702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20704 && LARGE_OFF_T % 2147483647 == 1)
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest.$ac_objext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 #define _FILE_OFFSET_BITS 64
20750 #include <sys/types.h>
20751 /* Check that off_t can represent 2**63 - 1 correctly.
20752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20753 since some C++ compilers masquerading as C compilers
20754 incorrectly reject 9223372036854775807. */
20755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20757 && LARGE_OFF_T % 2147483647 == 1)
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -z "$ac_c_werror_flag"
20777 || test ! -s conftest.err'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } &&
20783 { ac_try='test -s conftest.$ac_objext'
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; }; then
20789 ac_cv_sys_file_offset_bits=64; break
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20799 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20800 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20801 if test "$ac_cv_sys_file_offset_bits" != no; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20809 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20810 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20811 if test "${ac_cv_sys_large_files+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 ac_cv_sys_large_files=no
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 #include <sys/types.h>
20823 /* Check that off_t can represent 2**63 - 1 correctly.
20824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20825 since some C++ compilers masquerading as C compilers
20826 incorrectly reject 9223372036854775807. */
20827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20829 && LARGE_OFF_T % 2147483647 == 1)
20839 rm -f conftest.$ac_objext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20841 (eval $ac_compile) 2>conftest.er1
20843 grep -v '^ *+' conftest.er1 >conftest.err
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try='test -z "$ac_c_werror_flag"
20849 || test ! -s conftest.err'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; } &&
20855 { ac_try='test -s conftest.$ac_objext'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; }; then
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #define _LARGE_FILES 1
20875 #include <sys/types.h>
20876 /* Check that off_t can represent 2**63 - 1 correctly.
20877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20878 since some C++ compilers masquerading as C compilers
20879 incorrectly reject 9223372036854775807. */
20880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20882 && LARGE_OFF_T % 2147483647 == 1)
20892 rm -f conftest.$ac_objext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20894 (eval $ac_compile) 2>conftest.er1
20896 grep -v '^ *+' conftest.er1 >conftest.err
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
20901 { ac_try='test -z "$ac_c_werror_flag"
20902 || test ! -s conftest.err'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; } &&
20908 { ac_try='test -s conftest.$ac_objext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_sys_large_files=1; break
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20924 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20925 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20926 if test "$ac_cv_sys_large_files" != no; then
20928 cat >>confdefs.h <<_ACEOF
20929 #define _LARGE_FILES $ac_cv_sys_large_files
20938 # SunOS doesn't handle negative byte comparisons properly with +/- return
20939 echo "$as_me:$LINENO: checking for working memcmp" >&5
20940 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20941 if test "${ac_cv_func_memcmp_working+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 if test "$cross_compiling" = yes; then
20945 ac_cv_func_memcmp_working=no
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 $ac_includes_default
20958 /* Some versions of memcmp are not 8-bit clean. */
20959 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20960 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20963 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20964 or more and with at least one buffer not starting on a 4-byte boundary.
20965 William Lewis provided this test program. */
20970 for (i = 0; i < 4; i++)
20974 strcpy (a, "--------01111111");
20975 strcpy (b, "--------10000000");
20976 if (memcmp (a, b, 16) >= 0)
20986 rm -f conftest$ac_exeext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20988 (eval $ac_link) 2>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_func_memcmp_working=yes
20999 echo "$as_me: program exited with status $ac_status" >&5
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ( exit $ac_status )
21004 ac_cv_func_memcmp_working=no
21006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21009 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21010 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21011 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21012 "memcmp.$ac_objext" | \
21013 *" memcmp.$ac_objext" | \
21014 "memcmp.$ac_objext "* | \
21015 *" memcmp.$ac_objext "* ) ;;
21016 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21022 # Select semaphore implementation type.
21023 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21025 cat >>confdefs.h <<\_ACEOF
21026 #define USE_NAMED_POSIX_SEMAPHORES 1
21029 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21031 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21033 cat >>confdefs.h <<\_ACEOF
21034 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21037 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21040 cat >>confdefs.h <<\_ACEOF
21041 #define USE_SYSV_SEMAPHORES 1
21044 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21049 # Select shared-memory implementation type.
21051 cat >>confdefs.h <<\_ACEOF
21052 #define USE_SYSV_SHARED_MEMORY 1
21055 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21058 # If not set in template file, set bytes to use libc memset()
21059 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21060 MEMSET_LOOP_LIMIT=1024
21063 cat >>confdefs.h <<_ACEOF
21064 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21069 if test "$enable_nls" = yes ; then
21071 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21072 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21073 if test "${ac_cv_search_gettext+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 ac_func_search_save_LIBS=$LIBS
21077 ac_cv_search_gettext=no
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21085 /* Override any gcc2 internal prototype to avoid an error. */
21089 /* We use char because int might match the return type of a gcc2
21090 builtin and then its argument prototype would still apply. */
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21102 (eval $ac_link) 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
21109 { ac_try='test -z "$ac_c_werror_flag"
21110 || test ! -s conftest.err'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest$ac_exeext'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_cv_search_gettext="none required"
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21128 rm -f conftest.err conftest.$ac_objext \
21129 conftest$ac_exeext conftest.$ac_ext
21130 if test "$ac_cv_search_gettext" = no; then
21131 for ac_lib in intl; do
21132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21140 /* Override any gcc2 internal prototype to avoid an error. */
21144 /* We use char because int might match the return type of a gcc2
21145 builtin and then its argument prototype would still apply. */
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157 (eval $ac_link) 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_c_werror_flag"
21165 || test ! -s conftest.err'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; } &&
21171 { ac_try='test -s conftest$ac_exeext'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_search_gettext="-l$ac_lib"
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21184 rm -f conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_func_search_save_LIBS
21190 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21191 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21192 if test "$ac_cv_search_gettext" != no; then
21193 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21196 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21197 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21198 { (exit 1); exit 1; }; }
21201 if test "${ac_cv_header_libintl_h+set}" = set; then
21202 echo "$as_me:$LINENO: checking for libintl.h" >&5
21203 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21204 if test "${ac_cv_header_libintl_h+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21208 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21210 # Is the header compilable?
21211 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21212 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21213 cat >conftest.$ac_ext <<_ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21220 #include <libintl.h>
21222 rm -f conftest.$ac_objext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224 (eval $ac_compile) 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try='test -z "$ac_c_werror_flag"
21232 || test ! -s conftest.err'
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_header_compiler=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_header_compiler=no
21251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21253 echo "${ECHO_T}$ac_header_compiler" >&6
21255 # Is the header present?
21256 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21257 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21258 cat >conftest.$ac_ext <<_ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 #include <libintl.h>
21266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21269 grep -v '^ *+' conftest.er1 >conftest.err
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } >/dev/null; then
21274 if test -s conftest.err; then
21275 ac_cpp_err=$ac_c_preproc_warn_flag
21276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21283 if test -z "$ac_cpp_err"; then
21284 ac_header_preproc=yes
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 ac_header_preproc=no
21291 rm -f conftest.err conftest.$ac_ext
21292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21293 echo "${ECHO_T}$ac_header_preproc" >&6
21295 # So? What about this header?
21296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21298 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21299 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21301 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21302 ac_header_preproc=yes
21305 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21306 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21307 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21308 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21309 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21310 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21312 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21314 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21316 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21319 ## ---------------------------------------- ##
21320 ## Report this to pgsql-bugs@postgresql.org ##
21321 ## ---------------------------------------- ##
21324 sed "s/^/$as_me: WARNING: /" >&2
21327 echo "$as_me:$LINENO: checking for libintl.h" >&5
21328 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21329 if test "${ac_cv_header_libintl_h+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 ac_cv_header_libintl_h=$ac_header_preproc
21334 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21335 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21338 if test $ac_cv_header_libintl_h = yes; then
21341 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21342 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21343 { (exit 1); exit 1; }; }
21347 for ac_prog in msgfmt
21349 # Extract the first word of "$ac_prog", so it can be a program name with args.
21350 set dummy $ac_prog; ac_word=$2
21351 echo "$as_me:$LINENO: checking for $ac_word" >&5
21352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21353 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 if test -n "$MSGFMT"; then
21357 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21360 for as_dir in $PATH
21363 test -z "$as_dir" && as_dir=.
21364 for ac_exec_ext in '' $ac_executable_extensions; do
21365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21366 ac_cv_prog_MSGFMT="$ac_prog"
21367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21375 MSGFMT=$ac_cv_prog_MSGFMT
21376 if test -n "$MSGFMT"; then
21377 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21378 echo "${ECHO_T}$MSGFMT" >&6
21380 echo "$as_me:$LINENO: result: no" >&5
21381 echo "${ECHO_T}no" >&6
21384 test -n "$MSGFMT" && break
21387 if test -z "$MSGFMT"; then
21388 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21389 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21390 { (exit 1); exit 1; }; }
21392 for ac_prog in msgmerge
21394 # Extract the first word of "$ac_prog", so it can be a program name with args.
21395 set dummy $ac_prog; ac_word=$2
21396 echo "$as_me:$LINENO: checking for $ac_word" >&5
21397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21398 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 if test -n "$MSGMERGE"; then
21402 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21405 for as_dir in $PATH
21408 test -z "$as_dir" && as_dir=.
21409 for ac_exec_ext in '' $ac_executable_extensions; do
21410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21411 ac_cv_prog_MSGMERGE="$ac_prog"
21412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21420 MSGMERGE=$ac_cv_prog_MSGMERGE
21421 if test -n "$MSGMERGE"; then
21422 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21423 echo "${ECHO_T}$MSGMERGE" >&6
21425 echo "$as_me:$LINENO: result: no" >&5
21426 echo "${ECHO_T}no" >&6
21429 test -n "$MSGMERGE" && break
21432 for ac_prog in xgettext
21434 # Extract the first word of "$ac_prog", so it can be a program name with args.
21435 set dummy $ac_prog; ac_word=$2
21436 echo "$as_me:$LINENO: checking for $ac_word" >&5
21437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21438 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 if test -n "$XGETTEXT"; then
21442 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21445 for as_dir in $PATH
21448 test -z "$as_dir" && as_dir=.
21449 for ac_exec_ext in '' $ac_executable_extensions; do
21450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21451 ac_cv_prog_XGETTEXT="$ac_prog"
21452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21460 XGETTEXT=$ac_cv_prog_XGETTEXT
21461 if test -n "$XGETTEXT"; then
21462 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21463 echo "${ECHO_T}$XGETTEXT" >&6
21465 echo "$as_me:$LINENO: result: no" >&5
21466 echo "${ECHO_T}no" >&6
21469 test -n "$XGETTEXT" && break
21473 # Note: share/locale is always the default, independent of $datadir
21474 localedir='${prefix}/share/locale'
21475 if test x"$prefix" = x"NONE"; then
21476 exp_localedir="$ac_default_prefix/share/locale"
21478 exp_localedir="$prefix/share/locale"
21483 cat >>confdefs.h <<_ACEOF
21484 #define LOCALEDIR "$exp_localedir"
21490 # Check for Tcl configuration script tclConfig.sh
21491 if test "$with_tcl" = yes; then
21492 for ac_prog in tclsh tcl
21494 # Extract the first word of "$ac_prog", so it can be a program name with args.
21495 set dummy $ac_prog; ac_word=$2
21496 echo "$as_me:$LINENO: checking for $ac_word" >&5
21497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21498 if test "${ac_cv_path_TCLSH+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21507 for as_dir in $PATH
21510 test -z "$as_dir" && as_dir=.
21511 for ac_exec_ext in '' $ac_executable_extensions; do
21512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21513 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21523 TCLSH=$ac_cv_path_TCLSH
21525 if test -n "$TCLSH"; then
21526 echo "$as_me:$LINENO: result: $TCLSH" >&5
21527 echo "${ECHO_T}$TCLSH" >&6
21529 echo "$as_me:$LINENO: result: no" >&5
21530 echo "${ECHO_T}no" >&6
21533 test -n "$TCLSH" && break
21536 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21537 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21538 # Let user override test
21539 if test -z "$TCL_CONFIG_SH"; then
21540 pgac_test_dirs="$with_tclconfig"
21542 set X $pgac_test_dirs; shift
21543 if test $# -eq 0; then
21544 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21545 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21546 { (exit 1); exit 1; }; }
21547 set X `echo 'puts $auto_path' | $TCLSH`; shift
21551 if test -r "$pgac_dir/tclConfig.sh"; then
21552 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21558 if test -z "$TCL_CONFIG_SH"; then
21559 echo "$as_me:$LINENO: result: no" >&5
21560 echo "${ECHO_T}no" >&6
21561 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21562 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21563 { (exit 1); exit 1; }; }
21565 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21566 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21572 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21573 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21574 eval TCL_LIBS=\"$TCL_LIBS\"
21575 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21576 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21578 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21579 ac_save_CPPFLAGS=$CPPFLAGS
21580 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21581 if test "${ac_cv_header_tcl_h+set}" = set; then
21582 echo "$as_me:$LINENO: checking for tcl.h" >&5
21583 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21584 if test "${ac_cv_header_tcl_h+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21588 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21590 # Is the header compilable?
21591 echo "$as_me:$LINENO: checking tcl.h usability" >&5
21592 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 $ac_includes_default
21602 rm -f conftest.$ac_objext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21604 (eval $ac_compile) 2>conftest.er1
21606 grep -v '^ *+' conftest.er1 >conftest.err
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } &&
21611 { ac_try='test -z "$ac_c_werror_flag"
21612 || test ! -s conftest.err'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; } &&
21618 { ac_try='test -s conftest.$ac_objext'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 ac_header_compiler=yes
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_header_compiler=no
21631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21633 echo "${ECHO_T}$ac_header_compiler" >&6
21635 # Is the header present?
21636 echo "$as_me:$LINENO: checking tcl.h presence" >&5
21637 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21649 grep -v '^ *+' conftest.er1 >conftest.err
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } >/dev/null; then
21654 if test -s conftest.err; then
21655 ac_cpp_err=$ac_c_preproc_warn_flag
21656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21663 if test -z "$ac_cpp_err"; then
21664 ac_header_preproc=yes
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_header_preproc=no
21671 rm -f conftest.err conftest.$ac_ext
21672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21673 echo "${ECHO_T}$ac_header_preproc" >&6
21675 # So? What about this header?
21676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21678 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21679 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
21681 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
21682 ac_header_preproc=yes
21685 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
21686 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
21687 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
21688 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
21690 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
21692 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
21694 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
21696 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
21699 ## ---------------------------------------- ##
21700 ## Report this to pgsql-bugs@postgresql.org ##
21701 ## ---------------------------------------- ##
21704 sed "s/^/$as_me: WARNING: /" >&2
21707 echo "$as_me:$LINENO: checking for tcl.h" >&5
21708 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21709 if test "${ac_cv_header_tcl_h+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 ac_cv_header_tcl_h=$ac_header_preproc
21714 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21715 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21718 if test $ac_cv_header_tcl_h = yes; then
21721 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
21722 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
21723 { (exit 1); exit 1; }; }
21727 CPPFLAGS=$ac_save_CPPFLAGS
21731 # Check for DocBook and tools
21733 for ac_prog in onsgmls nsgmls
21735 # Extract the first word of "$ac_prog", so it can be a program name with args.
21736 set dummy $ac_prog; ac_word=$2
21737 echo "$as_me:$LINENO: checking for $ac_word" >&5
21738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21739 if test "${ac_cv_prog_NSGMLS+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 if test -n "$NSGMLS"; then
21743 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
21745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21746 for as_dir in $PATH
21749 test -z "$as_dir" && as_dir=.
21750 for ac_exec_ext in '' $ac_executable_extensions; do
21751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21752 ac_cv_prog_NSGMLS="$ac_prog"
21753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21761 NSGMLS=$ac_cv_prog_NSGMLS
21762 if test -n "$NSGMLS"; then
21763 echo "$as_me:$LINENO: result: $NSGMLS" >&5
21764 echo "${ECHO_T}$NSGMLS" >&6
21766 echo "$as_me:$LINENO: result: no" >&5
21767 echo "${ECHO_T}no" >&6
21770 test -n "$NSGMLS" && break
21773 for ac_prog in openjade jade
21775 # Extract the first word of "$ac_prog", so it can be a program name with args.
21776 set dummy $ac_prog; ac_word=$2
21777 echo "$as_me:$LINENO: checking for $ac_word" >&5
21778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21779 if test "${ac_cv_prog_JADE+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 if test -n "$JADE"; then
21783 ac_cv_prog_JADE="$JADE" # Let the user override the test.
21785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21786 for as_dir in $PATH
21789 test -z "$as_dir" && as_dir=.
21790 for ac_exec_ext in '' $ac_executable_extensions; do
21791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21792 ac_cv_prog_JADE="$ac_prog"
21793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21801 JADE=$ac_cv_prog_JADE
21802 if test -n "$JADE"; then
21803 echo "$as_me:$LINENO: result: $JADE" >&5
21804 echo "${ECHO_T}$JADE" >&6
21806 echo "$as_me:$LINENO: result: no" >&5
21807 echo "${ECHO_T}no" >&6
21810 test -n "$JADE" && break
21814 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
21815 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
21816 if test "${pgac_cv_check_docbook+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 cat >conftest.sgml <<EOF
21820 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
21822 <title>test</title>
21824 <title>random</title>
21826 <title>testsect</title>
21833 pgac_cv_check_docbook=no
21835 if test -n "$NSGMLS"; then
21836 $NSGMLS -s conftest.sgml 1>&5 2>&1
21837 if test $? -eq 0; then
21838 pgac_cv_check_docbook=yes
21841 rm -f conftest.sgml
21843 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
21844 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
21846 have_docbook=$pgac_cv_check_docbook
21849 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
21850 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
21851 if test "${pgac_cv_path_stylesheets+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 if test -n "$DOCBOOKSTYLE"; then
21855 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
21857 for pgac_prefix in /usr /usr/local /opt; do
21858 for pgac_infix in share lib; do
21859 for pgac_postfix in \
21860 sgml/stylesheets/nwalsh-modular \
21861 sgml/stylesheets/docbook \
21862 sgml/docbook-dsssl \
21863 sgml/docbook/dsssl/modular \
21864 sgml/docbook/stylesheet/dsssl/modular \
21865 sgml/docbook/dsssl-stylesheets
21867 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
21868 if test -r "$pgac_candidate/html/docbook.dsl" \
21869 && test -r "$pgac_candidate/print/docbook.dsl"
21871 pgac_cv_path_stylesheets=$pgac_candidate
21880 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
21882 if test -n "$DOCBOOKSTYLE"; then
21883 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
21884 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
21886 echo "$as_me:$LINENO: result: no" >&5
21887 echo "${ECHO_T}no" >&6
21889 if test -n "$DOCBOOKSTYLE"; then
21890 for ac_prog in collateindex.pl
21892 # Extract the first word of "$ac_prog", so it can be a program name with args.
21893 set dummy $ac_prog; ac_word=$2
21894 echo "$as_me:$LINENO: checking for $ac_word" >&5
21895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21896 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 case $COLLATEINDEX in
21901 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $DOCBOOKSTYLE/bin $PATH
21908 test -z "$as_dir" && as_dir=.
21909 for ac_exec_ext in '' $ac_executable_extensions; do
21910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21911 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21921 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21923 if test -n "$COLLATEINDEX"; then
21924 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21925 echo "${ECHO_T}$COLLATEINDEX" >&6
21927 echo "$as_me:$LINENO: result: no" >&5
21928 echo "${ECHO_T}no" >&6
21931 test -n "$COLLATEINDEX" && break
21935 for ac_prog in collateindex.pl
21937 # Extract the first word of "$ac_prog", so it can be a program name with args.
21938 set dummy $ac_prog; ac_word=$2
21939 echo "$as_me:$LINENO: checking for $ac_word" >&5
21940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21941 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 case $COLLATEINDEX in
21946 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21950 for as_dir in $PATH
21953 test -z "$as_dir" && as_dir=.
21954 for ac_exec_ext in '' $ac_executable_extensions; do
21955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21956 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21966 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21968 if test -n "$COLLATEINDEX"; then
21969 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21970 echo "${ECHO_T}$COLLATEINDEX" >&6
21972 echo "$as_me:$LINENO: result: no" >&5
21973 echo "${ECHO_T}no" >&6
21976 test -n "$COLLATEINDEX" && break
21980 for ac_prog in sgmlspl
21982 # Extract the first word of "$ac_prog", so it can be a program name with args.
21983 set dummy $ac_prog; ac_word=$2
21984 echo "$as_me:$LINENO: checking for $ac_word" >&5
21985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21986 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 if test -n "$SGMLSPL"; then
21990 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
21992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21993 for as_dir in $PATH
21996 test -z "$as_dir" && as_dir=.
21997 for ac_exec_ext in '' $ac_executable_extensions; do
21998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21999 ac_cv_prog_SGMLSPL="$ac_prog"
22000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22008 SGMLSPL=$ac_cv_prog_SGMLSPL
22009 if test -n "$SGMLSPL"; then
22010 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22011 echo "${ECHO_T}$SGMLSPL" >&6
22013 echo "$as_me:$LINENO: result: no" >&5
22014 echo "${ECHO_T}no" >&6
22017 test -n "$SGMLSPL" && break
22023 # We have to run the thread test near the end so we have all our symbols
22024 # defined. Cross compiling throws a warning.
22026 if test "$enable_thread_safety_force" = yes; then
22027 if test x"$template" != x"win32"
22029 { echo "$as_me:$LINENO: WARNING:
22030 *** Skipping thread test program. --enable-thread-safety-force was used.
22031 *** Run the program in src/test/thread on the your machine and add
22032 proper locking function calls to your applications to guarantee thread
22035 echo "$as_me: WARNING:
22036 *** Skipping thread test program. --enable-thread-safety-force was used.
22037 *** Run the program in src/test/thread on the your machine and add
22038 proper locking function calls to your applications to guarantee thread
22042 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22043 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22045 elif test "$enable_thread_safety" = yes; then
22046 if test x"$template" != x"win32"
22048 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22049 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22053 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22054 LIBS="$LIBS $PTHREAD_LIBS"
22055 if test "$cross_compiling" = yes; then
22056 echo "$as_me:$LINENO: result: maybe" >&5
22057 echo "${ECHO_T}maybe" >&6
22058 { echo "$as_me:$LINENO: WARNING:
22059 *** Skipping thread test program because of cross-compile build.
22060 *** Run the program in src/test/thread on the target machine.
22062 echo "$as_me: WARNING:
22063 *** Skipping thread test program because of cross-compile build.
22064 *** Run the program in src/test/thread on the target machine.
22067 cat >conftest.$ac_ext <<_ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22073 #include "$srcdir/src/test/thread/thread_test.c"
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077 (eval $ac_link) 2>&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 echo "$as_me:$LINENO: result: yes" >&5
22087 echo "${ECHO_T}yes" >&6
22089 echo "$as_me: program exited with status $ac_status" >&5
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ( exit $ac_status )
22094 echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6
22096 { { echo "$as_me:$LINENO: error:
22097 *** Thread test program failed. Your platform is not thread-safe.
22098 *** Check the file 'config.log'for the exact reason.
22100 *** You can use the configure option --enable-thread-safety-force
22101 *** to force threads to be enabled. However, you must then run
22102 *** the program in src/test/thread and add locking function calls
22103 *** to your applications to guarantee thread safety.
22105 echo "$as_me: error:
22106 *** Thread test program failed. Your platform is not thread-safe.
22107 *** Check the file 'config.log'for the exact reason.
22109 *** You can use the configure option --enable-thread-safety-force
22110 *** to force threads to be enabled. However, you must then run
22111 *** the program in src/test/thread and add locking function calls
22112 *** to your applications to guarantee thread safety.
22114 { (exit 1); exit 1; }; }
22116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22121 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22122 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22126 # prepare build tree if outside source tree
22127 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22128 # Note 2: /bin/pwd might be better than shell's built-in at getting
22129 # a symlink-free name.
22130 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22134 if test "$no_create" != yes; then
22135 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22136 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22137 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22138 || { { echo "$as_me:$LINENO: error: failed" >&5
22139 echo "$as_me: error: failed" >&2;}
22140 { (exit 1); exit 1; }; }
22141 echo "$as_me:$LINENO: result: done" >&5
22142 echo "${ECHO_T}done" >&6
22148 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22151 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}"
22154 if test "$PORTNAME" = "win32"; then
22155 ac_config_commands="$ac_config_commands check_win32_symlinks"
22159 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22162 cat >confcache <<\_ACEOF
22163 # This file is a shell script that caches the results of configure
22164 # tests run on this system so they can be shared between configure
22165 # scripts and configure runs, see configure's option --config-cache.
22166 # It is not useful on other systems. If it contains results you don't
22167 # want to keep, you may remove or edit it.
22169 # config.status only pays attention to the cache file if you give it
22170 # the --recheck option to rerun configure.
22172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22174 # following values.
22178 # The following way of writing the cache mishandles newlines in values,
22179 # but we know of no workaround that is simple, portable, and efficient.
22180 # So, don't put newlines in cache variables' values.
22181 # Ultrix sh set writes to stderr and can't be redirected directly,
22182 # and sets the high bit in the cache file unless we assign to the vars.
22185 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22187 # `set' does not quote correctly, so add quotes (double-quote
22188 # substitution turns \\\\ into \\, and sed turns \\ into \).
22191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22194 # `set' quotes correctly as required by POSIX, so do not add quotes.
22196 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22205 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22207 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22208 if test -w $cache_file; then
22209 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22210 cat confcache >$cache_file
22212 echo "not updating unwritable cache $cache_file"
22217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22218 # Let make expand exec_prefix.
22219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22223 # trailing colons and then remove the whole line if VPATH becomes empty
22224 # (actually we leave an empty line to preserve line numbers).
22225 if test "x$srcdir" = x.; then
22226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22227 s/:*\$(srcdir):*/:/;
22228 s/:*\${srcdir}:*/:/;
22230 s/^\([^=]*=[ ]*\):*/\1/;
22236 DEFS=-DHAVE_CONFIG_H
22240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22241 # 1. Remove the extension, and $U if already installed.
22242 ac_i=`echo "$ac_i" |
22243 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22245 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22246 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22248 LIBOBJS=$ac_libobjs
22250 LTLIBOBJS=$ac_ltlibobjs
22254 : ${CONFIG_STATUS=./config.status}
22255 ac_clean_files_save=$ac_clean_files
22256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22257 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22258 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22259 cat >$CONFIG_STATUS <<_ACEOF
22261 # Generated by $as_me.
22262 # Run this file to recreate the current configuration.
22263 # Compiler output produced by configure, useful for debugging
22264 # configure, is in config.log if it exists.
22267 ac_cs_recheck=false
22269 SHELL=\${CONFIG_SHELL-$SHELL}
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 ## --------------------- ##
22274 ## M4sh Initialization. ##
22275 ## --------------------- ##
22277 # Be Bourne compatible
22278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22281 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22282 # is contrary to our usage. Disable this feature.
22283 alias -g '${1+"$@"}'='"$@"'
22284 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22287 DUALCASE=1; export DUALCASE # for MKS sh
22289 # Support unset when possible.
22290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22297 # Work around bugs in pre-3.0 UWIN ksh.
22298 $as_unset ENV MAIL MAILPATH
22305 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22306 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22307 LC_TELEPHONE LC_TIME
22309 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22310 eval $as_var=C; export $as_var
22316 # Required to use basename.
22317 if expr a : '\(a\)' >/dev/null 2>&1; then
22323 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22324 as_basename=basename
22330 # Name of the executable.
22331 as_me=`$as_basename "$0" ||
22332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22333 X"$0" : 'X\(//\)$' \| \
22334 X"$0" : 'X\(/\)$' \| \
22335 . : '\(.\)' 2>/dev/null ||
22337 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22338 /^X\/\(\/\/\)$/{ s//\1/; q; }
22339 /^X\/\(\/\).*/{ s//\1/; q; }
22343 # PATH needs CR, and LINENO needs CR and PATH.
22344 # Avoid depending upon Character Ranges.
22345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22348 as_cr_digits='0123456789'
22349 as_cr_alnum=$as_cr_Letters$as_cr_digits
22351 # The user is always right.
22352 if test "${PATH_SEPARATOR+set}" != set; then
22353 echo "#! /bin/sh" >conf$$.sh
22354 echo "exit 0" >>conf$$.sh
22356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22365 as_lineno_1=$LINENO
22366 as_lineno_2=$LINENO
22367 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22368 test "x$as_lineno_1" != "x$as_lineno_2" &&
22369 test "x$as_lineno_3" = "x$as_lineno_2" || {
22370 # Find who we are. Look in the path if we contain no path at all
22373 *[\\/]* ) as_myself=$0 ;;
22374 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22375 for as_dir in $PATH
22378 test -z "$as_dir" && as_dir=.
22379 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22384 # We did not find ourselves, most probably we were run as `sh COMMAND'
22385 # in which case we are not to be found in the path.
22386 if test "x$as_myself" = x; then
22389 if test ! -f "$as_myself"; then
22390 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22391 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22392 { (exit 1); exit 1; }; }
22394 case $CONFIG_SHELL in
22396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22397 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22400 test -z "$as_dir" && as_dir=.
22401 for as_base in sh bash ksh sh5; do
22404 if ("$as_dir/$as_base" -c '
22405 as_lineno_1=$LINENO
22406 as_lineno_2=$LINENO
22407 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22408 test "x$as_lineno_1" != "x$as_lineno_2" &&
22409 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22410 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22411 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22412 CONFIG_SHELL=$as_dir/$as_base
22413 export CONFIG_SHELL
22414 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22423 # uniformly replaced by the line number. The first 'sed' inserts a
22424 # line-number line before each line; the second 'sed' does the real
22425 # work. The second script uses 'N' to pair each line-number line
22426 # with the numbered line, and appends trailing '-' during
22427 # substitution so that $LINENO is not a special case at line end.
22428 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22429 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22430 sed '=' <$as_myself |
22435 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22438 s,^['$as_cr_digits']*\n,,
22439 ' >$as_me.lineno &&
22440 chmod +x $as_me.lineno ||
22441 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22442 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22443 { (exit 1); exit 1; }; }
22445 # Don't try to exec as it changes $[0], causing all sort of problems
22446 # (the dirname of $[0] is not the place where we might find the
22447 # original and so on. Autoconf is especially sensible to this).
22449 # Exit status is that of the last command.
22454 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22455 *c*,-n*) ECHO_N= ECHO_C='
22457 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22458 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22461 if expr a : '\(a\)' >/dev/null 2>&1; then
22467 rm -f conf$$ conf$$.exe conf$$.file
22469 if ln -s conf$$.file conf$$ 2>/dev/null; then
22470 # We could just check for DJGPP; but this test a) works b) is more generic
22471 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22472 if test -f conf$$.exe; then
22473 # Don't use ln at all; we don't have any links
22478 elif ln conf$$.file conf$$ 2>/dev/null; then
22483 rm -f conf$$ conf$$.exe conf$$.file
22485 if mkdir -p . 2>/dev/null; then
22488 test -d ./-p && rmdir ./-p
22492 as_executable_p="test -f"
22494 # Sed expression to map a string onto a valid CPP name.
22495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22497 # Sed expression to map a string onto a valid variable name.
22498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22502 # We need space, tab and new line, in precisely that order.
22512 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22513 # report actual input values of CONFIG_FILES etc. instead of their
22514 # values after options handling. Logging --version etc. is OK.
22518 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22519 ## Running $as_me. ##
22524 This file was extended by PostgreSQL $as_me 8.2devel, which was
22525 generated by GNU Autoconf 2.59. Invocation command line was
22527 CONFIG_FILES = $CONFIG_FILES
22528 CONFIG_HEADERS = $CONFIG_HEADERS
22529 CONFIG_LINKS = $CONFIG_LINKS
22530 CONFIG_COMMANDS = $CONFIG_COMMANDS
22534 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22538 # Files that config.status was made for.
22539 if test -n "$ac_config_files"; then
22540 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22543 if test -n "$ac_config_headers"; then
22544 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22547 if test -n "$ac_config_links"; then
22548 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22551 if test -n "$ac_config_commands"; then
22552 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22555 cat >>$CONFIG_STATUS <<\_ACEOF
22558 \`$as_me' instantiates files from templates according to the
22559 current configuration.
22561 Usage: $0 [OPTIONS] [FILE]...
22563 -h, --help print this help, then exit
22564 -V, --version print version number, then exit
22565 -q, --quiet do not print progress messages
22566 -d, --debug don't remove temporary files
22567 --recheck update $as_me by reconfiguring in the same conditions
22568 --file=FILE[:TEMPLATE]
22569 instantiate the configuration file FILE
22570 --header=FILE[:TEMPLATE]
22571 instantiate the configuration header FILE
22573 Configuration files:
22576 Configuration headers:
22579 Configuration links:
22582 Configuration commands:
22585 Report bugs to <bug-autoconf@gnu.org>."
22588 cat >>$CONFIG_STATUS <<_ACEOF
22590 PostgreSQL config.status 8.2devel
22591 configured by $0, generated by GNU Autoconf 2.59,
22592 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22594 Copyright (C) 2003 Free Software Foundation, Inc.
22595 This config.status script is free software; the Free Software Foundation
22596 gives unlimited permission to copy, distribute and modify it."
22600 cat >>$CONFIG_STATUS <<\_ACEOF
22601 # If no file are specified by the user, then we need to provide default
22602 # value. By we need to know if files were specified by the user.
22608 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22609 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22617 *) # This is not an option, so the user has probably given explicit
22620 ac_need_defaults=false;;
22624 # Handling of the options.
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22629 --version | --vers* | -V )
22630 echo "$ac_cs_version"; exit 0 ;;
22632 # Conflict between --help and --header
22633 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22634 Try \`$0 --help' for more information." >&5
22635 echo "$as_me: error: ambiguous option: $1
22636 Try \`$0 --help' for more information." >&2;}
22637 { (exit 1); exit 1; }; };;
22638 --help | --hel | -h )
22639 echo "$ac_cs_usage"; exit 0 ;;
22640 --debug | --d* | -d )
22642 --file | --fil | --fi | --f )
22644 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22645 ac_need_defaults=false;;
22646 --header | --heade | --head | --hea )
22648 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22649 ac_need_defaults=false;;
22650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22654 # This is an error.
22655 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22656 Try \`$0 --help' for more information." >&5
22657 echo "$as_me: error: unrecognized option: $1
22658 Try \`$0 --help' for more information." >&2;}
22659 { (exit 1); exit 1; }; } ;;
22661 *) ac_config_targets="$ac_config_targets $1" ;;
22667 ac_configure_extra_args=
22669 if $ac_cs_silent; then
22671 ac_configure_extra_args="$ac_configure_extra_args --silent"
22675 cat >>$CONFIG_STATUS <<_ACEOF
22676 if \$ac_cs_recheck; then
22677 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22678 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22687 cat >>$CONFIG_STATUS <<\_ACEOF
22688 for ac_config_target in $ac_config_targets
22690 case "$ac_config_target" in
22691 # Handling of arguments.
22692 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
22693 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
22694 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
22695 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
22696 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
22697 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
22698 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
22699 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
22700 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
22701 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
22702 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
22703 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22704 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22705 { (exit 1); exit 1; }; };;
22709 # If the user did not use the arguments to specify the items to instantiate,
22710 # then the envvar interface is used. Set only those that are not.
22711 # We use the long form for the default assignment because of an extremely
22712 # bizarre bug on SunOS 4.1.3.
22713 if $ac_need_defaults; then
22714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22715 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22716 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22720 # Have a temporary directory for convenience. Make it in the build tree
22721 # simply because there is no reason to put it here, and in addition,
22722 # creating and moving files from /tmp can sometimes cause problems.
22723 # Create a temporary directory, and hook for its removal unless debugging.
22726 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22727 trap '{ (exit 1); exit 1; }' 1 2 13 15
22730 # Create a (secure) tmp directory for tmp files.
22733 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22734 test -n "$tmp" && test -d "$tmp"
22737 tmp=./confstat$$-$RANDOM
22738 (umask 077 && mkdir $tmp)
22741 echo "$me: cannot create a temporary directory in ." >&2
22742 { (exit 1); exit 1; }
22747 cat >>$CONFIG_STATUS <<_ACEOF
22750 # CONFIG_FILES section.
22753 # No need to generate the scripts if there are no CONFIG_FILES.
22754 # This happens for instance when ./config.status config.h
22755 if test -n "\$CONFIG_FILES"; then
22756 # Protect against being on the right side of a sed subst in config.status.
22757 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22758 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22759 s,@SHELL@,$SHELL,;t t
22760 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22761 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22762 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22763 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22764 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22765 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22766 s,@exec_prefix@,$exec_prefix,;t t
22767 s,@prefix@,$prefix,;t t
22768 s,@program_transform_name@,$program_transform_name,;t t
22769 s,@bindir@,$bindir,;t t
22770 s,@sbindir@,$sbindir,;t t
22771 s,@libexecdir@,$libexecdir,;t t
22772 s,@datadir@,$datadir,;t t
22773 s,@sysconfdir@,$sysconfdir,;t t
22774 s,@sharedstatedir@,$sharedstatedir,;t t
22775 s,@localstatedir@,$localstatedir,;t t
22776 s,@libdir@,$libdir,;t t
22777 s,@includedir@,$includedir,;t t
22778 s,@oldincludedir@,$oldincludedir,;t t
22779 s,@infodir@,$infodir,;t t
22780 s,@mandir@,$mandir,;t t
22781 s,@build_alias@,$build_alias,;t t
22782 s,@host_alias@,$host_alias,;t t
22783 s,@target_alias@,$target_alias,;t t
22784 s,@DEFS@,$DEFS,;t t
22785 s,@ECHO_C@,$ECHO_C,;t t
22786 s,@ECHO_N@,$ECHO_N,;t t
22787 s,@ECHO_T@,$ECHO_T,;t t
22788 s,@LIBS@,$LIBS,;t t
22789 s,@configure_args@,$configure_args,;t t
22790 s,@build@,$build,;t t
22791 s,@build_cpu@,$build_cpu,;t t
22792 s,@build_vendor@,$build_vendor,;t t
22793 s,@build_os@,$build_os,;t t
22794 s,@host@,$host,;t t
22795 s,@host_cpu@,$host_cpu,;t t
22796 s,@host_vendor@,$host_vendor,;t t
22797 s,@host_os@,$host_os,;t t
22798 s,@PORTNAME@,$PORTNAME,;t t
22799 s,@docdir@,$docdir,;t t
22800 s,@enable_nls@,$enable_nls,;t t
22801 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
22802 s,@default_port@,$default_port,;t t
22803 s,@enable_shared@,$enable_shared,;t t
22804 s,@enable_rpath@,$enable_rpath,;t t
22805 s,@enable_debug@,$enable_debug,;t t
22807 s,@CFLAGS@,$CFLAGS,;t t
22808 s,@LDFLAGS@,$LDFLAGS,;t t
22809 s,@CPPFLAGS@,$CPPFLAGS,;t t
22810 s,@ac_ct_CC@,$ac_ct_CC,;t t
22811 s,@EXEEXT@,$EXEEXT,;t t
22812 s,@OBJEXT@,$OBJEXT,;t t
22816 s,@autodepend@,$autodepend,;t t
22817 s,@INCLUDES@,$INCLUDES,;t t
22818 s,@enable_thread_safety@,$enable_thread_safety,;t t
22819 s,@with_tcl@,$with_tcl,;t t
22820 s,@with_perl@,$with_perl,;t t
22821 s,@with_python@,$with_python,;t t
22822 s,@with_krb5@,$with_krb5,;t t
22823 s,@krb_srvtab@,$krb_srvtab,;t t
22824 s,@with_pam@,$with_pam,;t t
22825 s,@with_bonjour@,$with_bonjour,;t t
22826 s,@with_openssl@,$with_openssl,;t t
22827 s,@with_zlib@,$with_zlib,;t t
22828 s,@EGREP@,$EGREP,;t t
22829 s,@ELF_SYS@,$ELF_SYS,;t t
22830 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
22832 s,@FLEX@,$FLEX,;t t
22833 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
22834 s,@LN_S@,$LN_S,;t t
22836 s,@with_gnu_ld@,$with_gnu_ld,;t t
22837 s,@ld_R_works@,$ld_R_works,;t t
22838 s,@RANLIB@,$RANLIB,;t t
22839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22840 s,@LORDER@,$LORDER,;t t
22842 s,@STRIP@,$STRIP,;t t
22843 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22844 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
22845 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
22846 s,@YACC@,$YACC,;t t
22847 s,@YFLAGS@,$YFLAGS,;t t
22848 s,@PERL@,$PERL,;t t
22849 s,@perl_archlibexp@,$perl_archlibexp,;t t
22850 s,@perl_privlibexp@,$perl_privlibexp,;t t
22851 s,@perl_useshrplib@,$perl_useshrplib,;t t
22852 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
22853 s,@PYTHON@,$PYTHON,;t t
22854 s,@python_version@,$python_version,;t t
22855 s,@python_configdir@,$python_configdir,;t t
22856 s,@python_includespec@,$python_includespec,;t t
22857 s,@python_libdir@,$python_libdir,;t t
22858 s,@python_libspec@,$python_libspec,;t t
22859 s,@python_additional_libs@,$python_additional_libs,;t t
22860 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
22861 s,@LIBOBJS@,$LIBOBJS,;t t
22862 s,@acx_pthread_config@,$acx_pthread_config,;t t
22863 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22864 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22865 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22866 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
22867 s,@MSGFMT@,$MSGFMT,;t t
22868 s,@MSGMERGE@,$MSGMERGE,;t t
22869 s,@XGETTEXT@,$XGETTEXT,;t t
22870 s,@localedir@,$localedir,;t t
22871 s,@TCLSH@,$TCLSH,;t t
22872 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
22873 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
22874 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22875 s,@TCL_LIBS@,$TCL_LIBS,;t t
22876 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22877 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
22878 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22879 s,@NSGMLS@,$NSGMLS,;t t
22880 s,@JADE@,$JADE,;t t
22881 s,@have_docbook@,$have_docbook,;t t
22882 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
22883 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
22884 s,@SGMLSPL@,$SGMLSPL,;t t
22885 s,@vpath_build@,$vpath_build,;t t
22886 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22891 cat >>$CONFIG_STATUS <<\_ACEOF
22892 # Split the substitutions into bite-sized pieces for seds with
22893 # small command number limits, like on Digital OSF/1 and HP-UX.
22894 ac_max_sed_lines=48
22895 ac_sed_frag=1 # Number of current file.
22896 ac_beg=1 # First line for current file.
22897 ac_end=$ac_max_sed_lines # Line after last line for current file.
22900 while $ac_more_lines; do
22901 if test $ac_beg -gt 1; then
22902 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22904 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22906 if test ! -s $tmp/subs.frag; then
22907 ac_more_lines=false
22909 # The purpose of the label and of the branching condition is to
22910 # speed up the sed processing (if there are no `@' at all, there
22911 # is no need to browse any of the substitutions).
22912 # These are the two extra sed commands mentioned above.
22914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22915 if test -z "$ac_sed_cmds"; then
22916 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22918 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22920 ac_sed_frag=`expr $ac_sed_frag + 1`
22922 ac_end=`expr $ac_end + $ac_max_sed_lines`
22925 if test -z "$ac_sed_cmds"; then
22928 fi # test -n "$CONFIG_FILES"
22931 cat >>$CONFIG_STATUS <<\_ACEOF
22932 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22933 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22935 - | *:- | *:-:* ) # input from stdin
22937 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22938 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22939 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22941 * ) ac_file_in=$ac_file.in ;;
22944 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22945 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22947 X"$ac_file" : 'X\(//\)[^/]' \| \
22948 X"$ac_file" : 'X\(//\)$' \| \
22949 X"$ac_file" : 'X\(/\)' \| \
22950 . : '\(.\)' 2>/dev/null ||
22952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22954 /^X\(\/\/\)$/{ s//\1/; q; }
22955 /^X\(\/\).*/{ s//\1/; q; }
22957 { if $as_mkdir_p; then
22962 while test ! -d "$as_dir"; do
22963 as_dirs="$as_dir $as_dirs"
22964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22966 X"$as_dir" : 'X\(//\)[^/]' \| \
22967 X"$as_dir" : 'X\(//\)$' \| \
22968 X"$as_dir" : 'X\(/\)' \| \
22969 . : '\(.\)' 2>/dev/null ||
22971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22973 /^X\(\/\/\)$/{ s//\1/; q; }
22974 /^X\(\/\).*/{ s//\1/; q; }
22977 test ! -n "$as_dirs" || mkdir $as_dirs
22978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22979 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22980 { (exit 1); exit 1; }; }; }
22984 if test "$ac_dir" != .; then
22985 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22986 # A "../" for each directory in $ac_dir_suffix.
22987 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22989 ac_dir_suffix= ac_top_builddir=
22993 .) # No --srcdir option. We are building in place.
22995 if test -z "$ac_top_builddir"; then
22998 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23000 [\\/]* | ?:[\\/]* ) # Absolute path.
23001 ac_srcdir=$srcdir$ac_dir_suffix;
23002 ac_top_srcdir=$srcdir ;;
23003 *) # Relative path.
23004 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23005 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23008 # Do not use `cd foo && pwd` to compute absolute paths, because
23009 # the directories may not exist.
23011 .) ac_abs_builddir="$ac_dir";;
23014 .) ac_abs_builddir=`pwd`;;
23015 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23016 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23019 case $ac_abs_builddir in
23020 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23022 case ${ac_top_builddir}. in
23023 .) ac_abs_top_builddir=$ac_abs_builddir;;
23024 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23025 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23028 case $ac_abs_builddir in
23029 .) ac_abs_srcdir=$ac_srcdir;;
23032 .) ac_abs_srcdir=$ac_abs_builddir;;
23033 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23034 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23037 case $ac_abs_builddir in
23038 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23040 case $ac_top_srcdir in
23041 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23042 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23043 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23049 if test x"$ac_file" != x-; then
23050 { echo "$as_me:$LINENO: creating $ac_file" >&5
23051 echo "$as_me: creating $ac_file" >&6;}
23054 # Let's still pretend it is `configure' which instantiates (i.e., don't
23055 # use $as_me), people would be surprised to read:
23056 # /* config.h. Generated by config.status. */
23057 if test x"$ac_file" = x-; then
23060 configure_input="$ac_file. "
23062 configure_input=$configure_input"Generated from `echo $ac_file_in |
23063 sed 's,.*/,,'` by configure."
23065 # First look for the input files in the build tree, otherwise in the
23067 ac_file_inputs=`IFS=:
23068 for f in $ac_file_in; do
23070 -) echo $tmp/stdin ;;
23072 # Absolute (can't be DOS-style, as IFS=:)
23073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23074 echo "$as_me: error: cannot find input file: $f" >&2;}
23075 { (exit 1); exit 1; }; }
23078 if test -f "$f"; then
23081 elif test -f "$srcdir/$f"; then
23086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23087 echo "$as_me: error: cannot find input file: $f" >&2;}
23088 { (exit 1); exit 1; }; }
23091 done` || { (exit 1); exit 1; }
23093 cat >>$CONFIG_STATUS <<_ACEOF
23097 cat >>$CONFIG_STATUS <<\_ACEOF
23099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23100 s,@configure_input@,$configure_input,;t t
23101 s,@srcdir@,$ac_srcdir,;t t
23102 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23103 s,@top_srcdir@,$ac_top_srcdir,;t t
23104 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23105 s,@builddir@,$ac_builddir,;t t
23106 s,@abs_builddir@,$ac_abs_builddir,;t t
23107 s,@top_builddir@,$ac_top_builddir,;t t
23108 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23109 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23111 if test x"$ac_file" != x-; then
23112 mv $tmp/out $ac_file
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23123 # CONFIG_HEADER section.
23126 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23127 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23129 # ac_d sets the value in "#define NAME VALUE" lines.
23130 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23131 ac_dB='[ ].*$,\1#\2'
23134 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23135 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23136 ac_uB='$,\1#\2define\3'
23140 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23143 - | *:- | *:-:* ) # input from stdin
23145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23149 * ) ac_file_in=$ac_file.in ;;
23152 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23153 echo "$as_me: creating $ac_file" >&6;}
23155 # First look for the input files in the build tree, otherwise in the
23157 ac_file_inputs=`IFS=:
23158 for f in $ac_file_in; do
23160 -) echo $tmp/stdin ;;
23162 # Absolute (can't be DOS-style, as IFS=:)
23163 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23164 echo "$as_me: error: cannot find input file: $f" >&2;}
23165 { (exit 1); exit 1; }; }
23166 # Do quote $f, to prevent DOS paths from being IFS'd.
23169 if test -f "$f"; then
23172 elif test -f "$srcdir/$f"; then
23177 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23178 echo "$as_me: error: cannot find input file: $f" >&2;}
23179 { (exit 1); exit 1; }; }
23182 done` || { (exit 1); exit 1; }
23183 # Remove the trailing spaces.
23184 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23188 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23189 # `conftest.undefs', that substitutes the proper values into
23190 # config.h.in to produce config.h. The first handles `#define'
23191 # templates, and the second `#undef' templates.
23192 # And first: Protect against being on the right side of a sed subst in
23193 # config.status. Protect against being in an unquoted here document
23194 # in config.status.
23195 rm -f conftest.defines conftest.undefs
23196 # Using a here document instead of a string reduces the quoting nightmare.
23197 # Putting comments in sed scripts is not portable.
23199 # `end' is used to avoid that the second main sed command (meant for
23200 # 0-ary CPP macros) applies to n-ary macro definitions.
23201 # See the Autoconf documentation for `clear'.
23202 cat >confdef2sed.sed <<\_ACEOF
23207 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23209 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23212 # If some macros were called several times there might be several times
23213 # the same #defines, which is useless. Nevertheless, we may not want to
23214 # sort them, since we want the *last* AC-DEFINE to be honored.
23215 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23216 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23217 rm -f confdef2sed.sed
23219 # This sed command replaces #undef with comments. This is necessary, for
23220 # example, in the case of _POSIX_SOURCE, which is predefined and required
23221 # on some systems where configure will not decide to define it.
23222 cat >>conftest.undefs <<\_ACEOF
23223 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23226 # Break up conftest.defines because some shells have a limit on the size
23227 # of here documents, and old seds have small limits too (100 cmds).
23228 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23229 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23230 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23231 echo ' :' >>$CONFIG_STATUS
23232 rm -f conftest.tail
23233 while grep . conftest.defines >/dev/null
23235 # Write a limited-size here document to $tmp/defines.sed.
23236 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23237 # Speed up: don't consider the non `#define' lines.
23238 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23239 # Work around the forget-to-reset-the-flag bug.
23240 echo 't clr' >>$CONFIG_STATUS
23241 echo ': clr' >>$CONFIG_STATUS
23242 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23244 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23246 mv $tmp/out $tmp/in
23248 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23249 rm -f conftest.defines
23250 mv conftest.tail conftest.defines
23252 rm -f conftest.defines
23253 echo ' fi # grep' >>$CONFIG_STATUS
23254 echo >>$CONFIG_STATUS
23256 # Break up conftest.undefs because some shells have a limit on the size
23257 # of here documents, and old seds have small limits too (100 cmds).
23258 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23259 rm -f conftest.tail
23260 while grep . conftest.undefs >/dev/null
23262 # Write a limited-size here document to $tmp/undefs.sed.
23263 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23264 # Speed up: don't consider the non `#undef'
23265 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23266 # Work around the forget-to-reset-the-flag bug.
23267 echo 't clr' >>$CONFIG_STATUS
23268 echo ': clr' >>$CONFIG_STATUS
23269 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23271 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23273 mv $tmp/out $tmp/in
23275 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23276 rm -f conftest.undefs
23277 mv conftest.tail conftest.undefs
23279 rm -f conftest.undefs
23281 cat >>$CONFIG_STATUS <<\_ACEOF
23282 # Let's still pretend it is `configure' which instantiates (i.e., don't
23283 # use $as_me), people would be surprised to read:
23284 # /* config.h. Generated by config.status. */
23285 if test x"$ac_file" = x-; then
23286 echo "/* Generated by configure. */" >$tmp/config.h
23288 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23290 cat $tmp/in >>$tmp/config.h
23292 if test x"$ac_file" != x-; then
23293 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23294 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23295 echo "$as_me: $ac_file is unchanged" >&6;}
23297 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23299 X"$ac_file" : 'X\(//\)[^/]' \| \
23300 X"$ac_file" : 'X\(//\)$' \| \
23301 X"$ac_file" : 'X\(/\)' \| \
23302 . : '\(.\)' 2>/dev/null ||
23304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23306 /^X\(\/\/\)$/{ s//\1/; q; }
23307 /^X\(\/\).*/{ s//\1/; q; }
23309 { if $as_mkdir_p; then
23314 while test ! -d "$as_dir"; do
23315 as_dirs="$as_dir $as_dirs"
23316 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23318 X"$as_dir" : 'X\(//\)[^/]' \| \
23319 X"$as_dir" : 'X\(//\)$' \| \
23320 X"$as_dir" : 'X\(/\)' \| \
23321 . : '\(.\)' 2>/dev/null ||
23323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23325 /^X\(\/\/\)$/{ s//\1/; q; }
23326 /^X\(\/\).*/{ s//\1/; q; }
23329 test ! -n "$as_dirs" || mkdir $as_dirs
23330 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23332 { (exit 1); exit 1; }; }; }
23335 mv $tmp/config.h $ac_file
23339 rm -f $tmp/config.h
23341 # Run the commands associated with the file.
23343 src/include/pg_config.h )
23344 # Update timestamp for pg_config.h (see Makefile.global)
23345 echo >src/include/stamp-h
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23353 # CONFIG_LINKS section.
23356 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23357 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23358 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23360 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23361 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23363 if test ! -r $srcdir/$ac_source; then
23364 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23365 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23366 { (exit 1); exit 1; }; }
23370 # Make relative symlinks.
23371 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23372 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23373 X"$ac_dest" : 'X\(//\)[^/]' \| \
23374 X"$ac_dest" : 'X\(//\)$' \| \
23375 X"$ac_dest" : 'X\(/\)' \| \
23376 . : '\(.\)' 2>/dev/null ||
23378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23380 /^X\(\/\/\)$/{ s//\1/; q; }
23381 /^X\(\/\).*/{ s//\1/; q; }
23383 { if $as_mkdir_p; then
23384 mkdir -p "$ac_dest_dir"
23386 as_dir="$ac_dest_dir"
23388 while test ! -d "$as_dir"; do
23389 as_dirs="$as_dir $as_dirs"
23390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23392 X"$as_dir" : 'X\(//\)[^/]' \| \
23393 X"$as_dir" : 'X\(//\)$' \| \
23394 X"$as_dir" : 'X\(/\)' \| \
23395 . : '\(.\)' 2>/dev/null ||
23397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23399 /^X\(\/\/\)$/{ s//\1/; q; }
23400 /^X\(\/\).*/{ s//\1/; q; }
23403 test ! -n "$as_dirs" || mkdir $as_dirs
23404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23405 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23406 { (exit 1); exit 1; }; }; }
23410 if test "$ac_dest_dir" != .; then
23411 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23412 # A "../" for each directory in $ac_dir_suffix.
23413 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23415 ac_dir_suffix= ac_top_builddir=
23419 .) # No --srcdir option. We are building in place.
23421 if test -z "$ac_top_builddir"; then
23424 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23426 [\\/]* | ?:[\\/]* ) # Absolute path.
23427 ac_srcdir=$srcdir$ac_dir_suffix;
23428 ac_top_srcdir=$srcdir ;;
23429 *) # Relative path.
23430 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23431 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23434 # Do not use `cd foo && pwd` to compute absolute paths, because
23435 # the directories may not exist.
23437 .) ac_abs_builddir="$ac_dest_dir";;
23439 case "$ac_dest_dir" in
23440 .) ac_abs_builddir=`pwd`;;
23441 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23442 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23445 case $ac_abs_builddir in
23446 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23448 case ${ac_top_builddir}. in
23449 .) ac_abs_top_builddir=$ac_abs_builddir;;
23450 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23451 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23454 case $ac_abs_builddir in
23455 .) ac_abs_srcdir=$ac_srcdir;;
23458 .) ac_abs_srcdir=$ac_abs_builddir;;
23459 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23460 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23463 case $ac_abs_builddir in
23464 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23466 case $ac_top_srcdir in
23467 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23468 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23469 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23475 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23476 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23479 # Try a symlink, then a hard link, then a copy.
23480 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23481 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23482 cp -p $srcdir/$ac_source $ac_dest ||
23483 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23484 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23485 { (exit 1); exit 1; }; }
23488 cat >>$CONFIG_STATUS <<\_ACEOF
23491 # CONFIG_COMMANDS section.
23493 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23494 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23495 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23496 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23497 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23498 X"$ac_dest" : 'X\(//\)[^/]' \| \
23499 X"$ac_dest" : 'X\(//\)$' \| \
23500 X"$ac_dest" : 'X\(/\)' \| \
23501 . : '\(.\)' 2>/dev/null ||
23503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23505 /^X\(\/\/\)$/{ s//\1/; q; }
23506 /^X\(\/\).*/{ s//\1/; q; }
23508 { if $as_mkdir_p; then
23513 while test ! -d "$as_dir"; do
23514 as_dirs="$as_dir $as_dirs"
23515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23517 X"$as_dir" : 'X\(//\)[^/]' \| \
23518 X"$as_dir" : 'X\(//\)$' \| \
23519 X"$as_dir" : 'X\(/\)' \| \
23520 . : '\(.\)' 2>/dev/null ||
23522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23524 /^X\(\/\/\)$/{ s//\1/; q; }
23525 /^X\(\/\).*/{ s//\1/; q; }
23528 test ! -n "$as_dirs" || mkdir $as_dirs
23529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23531 { (exit 1); exit 1; }; }; }
23535 if test "$ac_dir" != .; then
23536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23537 # A "../" for each directory in $ac_dir_suffix.
23538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23540 ac_dir_suffix= ac_top_builddir=
23544 .) # No --srcdir option. We are building in place.
23546 if test -z "$ac_top_builddir"; then
23549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23551 [\\/]* | ?:[\\/]* ) # Absolute path.
23552 ac_srcdir=$srcdir$ac_dir_suffix;
23553 ac_top_srcdir=$srcdir ;;
23554 *) # Relative path.
23555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23559 # Do not use `cd foo && pwd` to compute absolute paths, because
23560 # the directories may not exist.
23562 .) ac_abs_builddir="$ac_dir";;
23565 .) ac_abs_builddir=`pwd`;;
23566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23570 case $ac_abs_builddir in
23571 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23573 case ${ac_top_builddir}. in
23574 .) ac_abs_top_builddir=$ac_abs_builddir;;
23575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23579 case $ac_abs_builddir in
23580 .) ac_abs_srcdir=$ac_srcdir;;
23583 .) ac_abs_srcdir=$ac_abs_builddir;;
23584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23588 case $ac_abs_builddir in
23589 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23591 case $ac_top_srcdir in
23592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23599 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23600 echo "$as_me: executing $ac_dest commands" >&6;}
23602 check_win32_symlinks )
23603 # Links sometimes fail undetected on Mingw -
23604 # so here we detect it and warn the user
23605 for FILE in $CONFIG_LINKS
23607 # test -e works for symlinks in the MinGW console
23608 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
23609 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
23616 cat >>$CONFIG_STATUS <<\_ACEOF
23618 { (exit 0); exit 0; }
23620 chmod +x $CONFIG_STATUS
23621 ac_clean_files=$ac_clean_files_save
23624 # configure is writing to config.log, and then calls config.status.
23625 # config.status does its own redirection, appending to config.log.
23626 # Unfortunately, on DOS this fails, as config.log is still kept open
23627 # by configure, so config.status won't be able to write to it; its
23628 # output is simply discarded. So we exec the FD to /dev/null,
23629 # effectively closing config.log, so it can be properly (re)opened and
23630 # appended to by config.status. When coming back to configure, we
23631 # need to make the FD available again.
23632 if test "$no_create" != yes; then
23634 ac_config_status_args=
23635 test "$silent" = yes &&
23636 ac_config_status_args="$ac_config_status_args --quiet"
23638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23641 # would make configure fail if this is the last instruction.
23642 $ac_cs_success || { (exit 1); exit 1; }