2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2007, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.3devel'
275 PACKAGE_STRING='PostgreSQL 8.3devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl XML2_CONFIG with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB 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 LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.3devel 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.3devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-profiling build with profiling enabled
869 --enable-dtrace build with DTrace support
870 --enable-depend turn on automatic dependency tracking
871 --enable-cassert enable assertion checks (for debugging)
872 --enable-thread-safety make client libraries thread-safe
873 --enable-thread-safety-force force thread-safety in spite of thread test failure
874 --disable-largefile omit support for large files
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
881 --without-docdir do not install the documentation
882 --with-includes=DIRS look for additional header files in DIRS
883 --with-libraries=DIRS look for additional libraries in DIRS
884 --with-libs=DIRS alternative spelling of --with-libraries
885 --with-pgport=PORTNUM change default port number [5432]
886 --with-tcl build Tcl modules (PL/Tcl)
887 --with-tclconfig=DIR tclConfig.sh is in DIR
888 --with-perl build Perl modules (PL/Perl)
889 --with-python build Python modules (PL/Python)
890 --with-krb5 build with Kerberos 5 support
891 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
892 --with-pam build with PAM support
893 --with-ldap build with LDAP support
894 --with-bonjour build with Bonjour support
895 --with-openssl build with OpenSSL support
896 --without-readline do not use GNU Readline nor BSD Libedit for editing
897 --with-libedit-preferred prefer BSD Libedit over GNU Readline
898 --with-libxml build with XML support
899 --without-zlib do not use Zlib
900 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
912 location of DocBook stylesheets
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 Report bugs to <pgsql-bugs@postgresql.org>.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1013 PostgreSQL configure 8.3devel
1014 generated by GNU Autoconf 2.59
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1020 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1026 This file contains any messages produced by compilers while
1027 running configure, to aid debugging if configure makes a mistake.
1029 It was created by PostgreSQL $as_me 8.3devel, which was
1030 generated by GNU Autoconf 2.59. Invocation command line was
1041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1064 test -z "$as_dir" && as_dir=.
1065 echo "PATH: $as_dir"
1080 # Keep a trace of the command line.
1081 # Strip out --no-create and --no-recursion so they do not pile up.
1082 # Strip out --silent because we don't want to record it for future runs.
1083 # Also quote any args containing shell meta-characters.
1084 # Make two passes to allow for proper duplicate-argument suppression.
1089 ac_must_keep_next=false
1095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106 if test $ac_must_keep_next = true; then
1107 ac_must_keep_next=false # Got value, back to normal.
1110 *=* | --config-cache | -C | -disable-* | --disable-* \
1111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113 | -with-* | --with-* | -without-* | --without-* | --x)
1114 case "$ac_configure_args0 " in
1115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118 -* ) ac_must_keep_next=true ;;
1121 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122 # Get rid of the leading space.
1128 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1131 # When interrupted or exit'd, cleanup temporary files, and complete
1132 # config.log. We remove comments because anyway the quotes in there
1133 # would cause problems or look ugly.
1134 # WARNING: Be sure not to use single quotes in there, as some shells,
1135 # such as our DU 5.0 friend, will then `close' the trap.
1136 trap 'exit_status=$?
1137 # Save into config.log some information that might help in debugging.
1142 ## ---------------- ##
1143 ## Cache variables. ##
1144 ## ---------------- ##
1147 # The following way of writing the cache mishandles newlines in values,
1150 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1165 ## ----------------- ##
1166 ## Output variables. ##
1167 ## ----------------- ##
1170 for ac_var in $ac_subst_vars
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1177 if test -n "$ac_subst_files"; then
1184 for ac_var in $ac_subst_files
1186 eval ac_val=$`echo $ac_var`
1187 echo "$ac_var='"'"'$ac_val'"'"'"
1192 if test -s confdefs.h; then
1199 sed "/^$/d" confdefs.h | sort
1202 test "$ac_signal" != 0 &&
1203 echo "$as_me: caught signal $ac_signal"
1204 echo "$as_me: exit $exit_status"
1206 rm -f core *.core &&
1207 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210 for ac_signal in 1 2 13 15; do
1211 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1216 rm -rf conftest* confdefs.h
1217 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 # Predefined preprocessor variables.
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_NAME "$PACKAGE_NAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_STRING "$PACKAGE_STRING"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1247 # Let the site file select an alternate cache file if it wants to.
1248 # Prefer explicitly selected file to automatically selected ones.
1249 if test -z "$CONFIG_SITE"; then
1250 if test "x$prefix" != xNONE; then
1251 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1253 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256 for ac_site_file in $CONFIG_SITE; do
1257 if test -r "$ac_site_file"; then
1258 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259 echo "$as_me: loading site script $ac_site_file" >&6;}
1260 sed 's/^/| /' "$ac_site_file" >&5
1265 if test -r "$cache_file"; then
1266 # Some versions of bash will fail to source /dev/null (special
1267 # files actually), so we avoid doing that.
1268 if test -f "$cache_file"; then
1269 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270 echo "$as_me: loading cache $cache_file" >&6;}
1272 [\\/]* | ?:[\\/]* ) . $cache_file;;
1273 *) . ./$cache_file;;
1277 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278 echo "$as_me: creating cache $cache_file" >&6;}
1282 # Check that the precious variables saved in the cache have kept the same
1284 ac_cache_corrupted=false
1285 for ac_var in `(set) 2>&1 |
1286 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288 eval ac_new_set=\$ac_env_${ac_var}_set
1289 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290 eval ac_new_val="\$ac_env_${ac_var}_value"
1291 case $ac_old_set,$ac_new_set in
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1302 if test "x$ac_old_val" != "x$ac_new_val"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1306 echo "$as_me: former value: $ac_old_val" >&2;}
1307 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1308 echo "$as_me: current value: $ac_new_val" >&2;}
1309 ac_cache_corrupted=:
1312 # Pass precious variables to config.status.
1313 if test "$ac_new_set" = set; then
1315 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317 *) ac_arg=$ac_var=$ac_new_val ;;
1319 case " $ac_configure_args " in
1320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1321 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325 if $ac_cache_corrupted; then
1326 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330 { (exit 1); exit 1; }; }
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370 for ac_dir in config $srcdir/config; do
1371 if test -f $ac_dir/install-sh; then
1373 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 elif test -f $ac_dir/install.sh; then
1377 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 elif test -f $ac_dir/shtool; then
1381 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 if test -z "$ac_aux_dir"; then
1386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1387 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1388 { (exit 1); exit 1; }; }
1390 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1391 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1392 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395 configure_args=$ac_configure_args
1399 cat >>confdefs.h <<_ACEOF
1400 #define PG_VERSION "$PACKAGE_VERSION"
1404 # Make sure we can run config.sub.
1405 $ac_config_sub sun4 >/dev/null 2>&1 ||
1406 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1407 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1408 { (exit 1); exit 1; }; }
1410 echo "$as_me:$LINENO: checking build system type" >&5
1411 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1412 if test "${ac_cv_build+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_build_alias=$build_alias
1416 test -z "$ac_cv_build_alias" &&
1417 ac_cv_build_alias=`$ac_config_guess`
1418 test -z "$ac_cv_build_alias" &&
1419 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1420 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1421 { (exit 1); exit 1; }; }
1422 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1429 echo "${ECHO_T}$ac_cv_build" >&6
1431 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1436 echo "$as_me:$LINENO: checking host system type" >&5
1437 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1438 if test "${ac_cv_host+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 ac_cv_host_alias=$host_alias
1442 test -z "$ac_cv_host_alias" &&
1443 ac_cv_host_alias=$ac_cv_build_alias
1444 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1446 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1451 echo "${ECHO_T}$ac_cv_host" >&6
1453 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking which template to use" >&5
1461 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1464 pgac_args="$pgac_args with_template"
1467 # Check whether --with-template or --without-template was given.
1468 if test "${with_template+set}" = set; then
1469 withval="$with_template"
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; }; }
1478 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1479 echo "$as_me: error: argument required for --with-template option" >&2;}
1480 { (exit 1); exit 1; }; }
1485 list) echo; ls "$srcdir/src/template"; exit;;
1486 *) if test -f "$srcdir/src/template/$with_template" ; then
1489 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1490 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1491 { (exit 1); exit 1; }; }
1500 # --with-template not given
1503 aix*) template=aix ;;
1504 bsdi*) template=bsdi ;;
1505 cygwin*) template=cygwin ;;
1506 darwin*) template=darwin ;;
1507 dgux*) template=dgux ;;
1508 freebsd*) template=freebsd ;;
1509 hpux*) template=hpux ;;
1510 irix*) template=irix ;;
1511 linux*|gnu*|k*bsd*-gnu)
1513 mingw*) template=win32 ;;
1514 netbsd*) template=netbsd ;;
1515 nextstep*) template=nextstep ;;
1516 openbsd*) template=openbsd ;;
1517 osf*) template=osf ;;
1518 sco*) template=sco ;;
1519 solaris*) template=solaris ;;
1520 sunos*) template=sunos4 ;;
1522 case $host_vendor in
1523 univel) template=univel ;;
1525 sysv4*) template=svr4 ;;
1526 sysv5*) template=unixware ;;
1527 ultrix*) template=ultrix4 ;;
1530 if test x"$template" = x"" ; then
1531 { { echo "$as_me:$LINENO: error:
1532 *******************************************************************
1533 PostgreSQL has apparently not been ported to your platform yet.
1534 To try a manual configuration, look into the src/template directory
1535 for a similar platform and use the '--with-template=' option.
1537 Please also contact <pgsql-ports@postgresql.org> to see about
1538 rectifying this. Include the above 'checking host system type...'
1540 *******************************************************************
1542 echo "$as_me: error:
1543 *******************************************************************
1544 PostgreSQL has apparently not been ported to your platform yet.
1545 To try a manual configuration, look into the src/template directory
1546 for a similar platform and use the '--with-template=' option.
1548 Please also contact <pgsql-ports@postgresql.org> to see about
1549 rectifying this. Include the above 'checking host system type...'
1551 *******************************************************************
1553 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $template" >&5
1561 echo "${ECHO_T}$template" >&6
1566 # Initialize default assumption that we do not need separate assembly code
1567 # for TAS (test-and-set). This can be overridden by the template file
1568 # when it's executed.
1575 ## Command line options
1579 # Installation directory for documentation
1582 pgac_args="$pgac_args with_docdir"
1585 # Check whether --with-docdir or --without-docdir was given.
1586 if test "${with_docdir+set}" = set; then
1587 withval="$with_docdir"
1591 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1592 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1593 { (exit 1); exit 1; }; }
1604 docdir='${prefix}/doc'
1611 # Add non-standard directories to the include path
1614 pgac_args="$pgac_args with_includes"
1617 # Check whether --with-includes or --without-includes was given.
1618 if test "${with_includes+set}" = set; then
1619 withval="$with_includes"
1623 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1624 echo "$as_me: error: argument required for --with-includes option" >&2;}
1625 { (exit 1); exit 1; }; }
1628 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1629 echo "$as_me: error: argument required for --with-includes option" >&2;}
1630 { (exit 1); exit 1; }; }
1642 # Add non-standard directories to the library search path
1645 pgac_args="$pgac_args with_libraries"
1648 # Check whether --with-libraries or --without-libraries was given.
1649 if test "${with_libraries+set}" = set; then
1650 withval="$with_libraries"
1654 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1655 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1656 { (exit 1); exit 1; }; }
1659 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1660 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1661 { (exit 1); exit 1; }; }
1664 LIBRARY_DIRS=$withval
1672 pgac_args="$pgac_args with_libs"
1675 # Check whether --with-libs or --without-libs was given.
1676 if test "${with_libs+set}" = set; then
1677 withval="$with_libs"
1681 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1682 echo "$as_me: error: argument required for --with-libs option" >&2;}
1683 { (exit 1); exit 1; }; }
1686 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1687 echo "$as_me: error: argument required for --with-libs option" >&2;}
1688 { (exit 1); exit 1; }; }
1691 LIBRARY_DIRS=$withval
1700 # 64-bit integer date/time storage (--enable-integer-datetimes)
1702 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1703 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1705 pgac_args="$pgac_args enable_integer_datetimes"
1707 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1708 if test "${enable_integer_datetimes+set}" = set; then
1709 enableval="$enable_integer_datetimes"
1714 cat >>confdefs.h <<\_ACEOF
1715 #define USE_INTEGER_DATETIMES 1
1723 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1724 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1725 { (exit 1); exit 1; }; }
1730 enable_integer_datetimes=no
1734 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1735 echo "${ECHO_T}$enable_integer_datetimes" >&6
1741 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1742 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1744 pgac_args="$pgac_args enable_nls"
1746 # Check whether --enable-nls or --disable-nls was given.
1747 if test "${enable_nls+set}" = set; then
1748 enableval="$enable_nls"
1759 WANTED_LANGUAGES=$enableval
1768 if test "$enable_nls" = yes; then
1770 cat >>confdefs.h <<\_ACEOF
1771 #define ENABLE_NLS 1
1776 echo "$as_me:$LINENO: result: $enable_nls" >&5
1777 echo "${ECHO_T}$enable_nls" >&6
1782 # Default port number (--with-pgport), default 5432
1784 echo "$as_me:$LINENO: checking for default port number" >&5
1785 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1787 pgac_args="$pgac_args with_pgport"
1790 # Check whether --with-pgport or --without-pgport was given.
1791 if test "${with_pgport+set}" = set; then
1792 withval="$with_pgport"
1796 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1797 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1798 { (exit 1); exit 1; }; }
1801 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1802 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1803 { (exit 1); exit 1; }; }
1806 default_port=$withval
1814 echo "$as_me:$LINENO: result: $default_port" >&5
1815 echo "${ECHO_T}$default_port" >&6
1816 # Need both of these because some places want an integer and some a string
1818 cat >>confdefs.h <<_ACEOF
1819 #define DEF_PGPORT ${default_port}
1823 cat >>confdefs.h <<_ACEOF
1824 #define DEF_PGPORT_STR "${default_port}"
1830 # Option to disable shared libraries
1833 pgac_args="$pgac_args enable_shared"
1835 # Check whether --enable-shared or --disable-shared was given.
1836 if test "${enable_shared+set}" = set; then
1837 enableval="$enable_shared"
1847 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1848 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1849 { (exit 1); exit 1; }; }
1861 # '-rpath'-like feature can be disabled
1864 pgac_args="$pgac_args enable_rpath"
1866 # Check whether --enable-rpath or --disable-rpath was given.
1867 if test "${enable_rpath+set}" = set; then
1868 enableval="$enable_rpath"
1878 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1879 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1880 { (exit 1); exit 1; }; }
1895 pgac_args="$pgac_args enable_spinlocks"
1897 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1898 if test "${enable_spinlocks+set}" = set; then
1899 enableval="$enable_spinlocks"
1909 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1910 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1911 { (exit 1); exit 1; }; }
1916 enable_spinlocks=yes
1922 # --enable-debug adds -g to compiler flags
1925 pgac_args="$pgac_args enable_debug"
1927 # Check whether --enable-debug or --disable-debug was given.
1928 if test "${enable_debug+set}" = set; then
1929 enableval="$enable_debug"
1939 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1940 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1941 { (exit 1); exit 1; }; }
1953 # --enable-profiling enables gcc profiling
1956 pgac_args="$pgac_args enable_profiling"
1958 # Check whether --enable-profiling or --disable-profiling was given.
1959 if test "${enable_profiling+set}" = set; then
1960 enableval="$enable_profiling"
1970 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1971 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1972 { (exit 1); exit 1; }; }
1987 pgac_args="$pgac_args enable_dtrace"
1989 # Check whether --enable-dtrace or --disable-dtrace was given.
1990 if test "${enable_dtrace+set}" = set; then
1991 enableval="$enable_dtrace"
1996 cat >>confdefs.h <<\_ACEOF
1997 #define ENABLE_DTRACE 1
2000 for ac_prog in dtrace
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy $ac_prog; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_DTRACE+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$DTRACE"; then
2010 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_DTRACE="$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 DTRACE=$ac_cv_prog_DTRACE
2029 if test -n "$DTRACE"; then
2030 echo "$as_me:$LINENO: result: $DTRACE" >&5
2031 echo "${ECHO_T}$DTRACE" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2037 test -n "$DTRACE" && break
2040 if test -z "$DTRACE"; then
2041 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2042 echo "$as_me: error: dtrace not found" >&2;}
2043 { (exit 1); exit 1; }; }
2051 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2052 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2053 { (exit 1); exit 1; }; }
2068 # For historical reasons you can also use --with-CC to specify the C compiler
2069 # to use, although the standard way to do this is to set the CC environment
2072 pgac_args="$pgac_args with_CC"
2075 # Check whether --with-CC or --without-CC was given.
2076 if test "${with_CC+set}" = set; then
2081 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2082 echo "$as_me: error: argument required for --with-CC option" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2087 echo "$as_me: error: argument required for --with-CC option" >&2;}
2088 { (exit 1); exit 1; }; }
2099 aix) pgac_cc_list="gcc xlc";;
2100 irix) pgac_cc_list="cc";; # no gcc
2101 *) pgac_cc_list="gcc cc";;
2105 ac_cpp='$CPP $CPPFLAGS'
2106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 if test -n "$ac_tool_prefix"; then
2110 for ac_prog in $pgac_cc_list
2112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6
2143 echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2147 test -n "$CC" && break
2150 if test -z "$CC"; then
2152 for ac_prog in $pgac_cc_list
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_ac_ct_CC="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2189 test -n "$ac_ct_CC" && break
2196 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2202 # Provide some information about the compiler.
2203 echo "$as_me:$LINENO:" \
2204 "checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207 (eval $ac_compiler --version </dev/null >&5) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212 (eval $ac_compiler -v </dev/null >&5) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217 (eval $ac_compiler -V </dev/null >&5) 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2237 ac_clean_files_save=$ac_clean_files
2238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2239 # Try to create an executable without -o first, disregard a.out.
2240 # It will help us diagnose broken compilers, and finding out an intuition
2242 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2244 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2245 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2246 (eval $ac_link_default) 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; then
2250 # Find the output, starting from the most likely. This scheme is
2251 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2254 # Be careful to initialize this variable, since it used to be cached.
2255 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2257 # b.out is created by i960 compilers.
2258 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2265 # This is the source file.
2268 # We found the default executable, but exeext='' is most
2272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 # FIXME: I believe we export ac_cv_exeext for Libtool,
2274 # but it would be cool to find out if it's true. Does anybody
2275 # maintain Libtool? --akim.
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: C compiler cannot create executables
2289 See \`config.log' for more details." >&2;}
2290 { (exit 77); exit 77; }; }
2293 ac_exeext=$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_file" >&5
2295 echo "${ECHO_T}$ac_file" >&6
2297 # Check the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2300 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2301 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2302 # If not cross compiling, check that we can run a simple program.
2303 if test "$cross_compiling" != yes; then
2304 if { ac_try='./$ac_file'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 if test "$cross_compiling" = maybe; then
2315 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316 If you meant to cross compile, use \`--host'.
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot run C compiled programs.
2319 If you meant to cross compile, use \`--host'.
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2325 echo "$as_me:$LINENO: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6
2328 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329 ac_clean_files=$ac_clean_files_save
2330 # Check the compiler produces executables we can run. If not, either
2331 # the compiler is broken, or we cross compile.
2332 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2334 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335 echo "${ECHO_T}$cross_compiling" >&6
2337 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2340 (eval $ac_link) 2>&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; then
2344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2346 # work properly (i.e., refer to `conftest.exe'), while it won't with
2348 for ac_file in conftest.exe conftest conftest.*; do
2349 test -f "$ac_file" || continue
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2368 echo "${ECHO_T}$ac_cv_exeext" >&6
2370 rm -f conftest.$ac_ext
2371 EXEEXT=$ac_cv_exeext
2373 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2374 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2375 if test "${ac_cv_objext+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 rm -f conftest.o conftest.obj
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2417 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2419 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2420 echo "${ECHO_T}$ac_cv_objext" >&6
2421 OBJEXT=$ac_cv_objext
2423 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2424 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2425 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 cat >conftest.$ac_ext <<_ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2479 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2480 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2481 GCC=`test $ac_compiler_gnu = yes && echo yes`
2482 ac_test_CFLAGS=${CFLAGS+set}
2483 ac_save_CFLAGS=$CFLAGS
2485 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2486 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2487 if test "${ac_cv_prog_cc_g+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2505 rm -f conftest.$ac_objext
2506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>conftest.er1
2509 grep -v '^ *+' conftest.er1 >conftest.err
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -z "$ac_c_werror_flag"
2515 || test ! -s conftest.err'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2538 if test "$ac_test_CFLAGS" = set; then
2539 CFLAGS=$ac_save_CFLAGS
2540 elif test $ac_cv_prog_cc_g = yes; then
2541 if test "$GCC" = yes; then
2547 if test "$GCC" = yes; then
2553 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2554 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 ac_cv_prog_cc_stdc=no
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2568 #include <sys/types.h>
2569 #include <sys/stat.h>
2570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2571 struct buf { int x; };
2572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2573 static char *e (p, i)
2579 static char *f (char * (*g) (char **, int), char **p, ...)
2584 s = g (p, va_arg (v,int));
2589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2590 function prototypes and stuff, but not '\xHH' hex character constants.
2591 These don't provoke an error unfortunately, instead are silently treated
2592 as 'x'. The following induces an error, until -std1 is added to get
2593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2594 array size at least. It's necessary to write '\x00'==0 to get something
2595 that's true only with -std1. */
2596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2598 int test (int i, double x);
2599 struct s1 {int (*f) (int a);};
2600 struct s2 {int (*f) (double a);};
2601 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2607 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2612 # Don't try gcc -ansi; that turns off useful extensions and
2613 # breaks some systems' header files.
2614 # AIX -qlanglvl=ansi
2615 # Ultrix and OSF/1 -std1
2616 # HP-UX 10.20 and later -Ae
2617 # HP-UX older versions -Aa -D_HPUX_SOURCE
2618 # SVR4 -Xc -D__EXTENSIONS__
2619 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2621 CC="$ac_save_CC $ac_arg"
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_prog_cc_stdc=$ac_arg
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext
2653 rm -f conftest.$ac_ext conftest.$ac_objext
2658 case "x$ac_cv_prog_cc_stdc" in
2660 echo "$as_me:$LINENO: result: none needed" >&5
2661 echo "${ECHO_T}none needed" >&6 ;;
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2664 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2665 CC="$CC $ac_cv_prog_cc_stdc" ;;
2668 # Some people use a C++ compiler to compile C. Since we use `exit',
2669 # in C++ we need to declare it. In case someone uses the same compiler
2670 # for both compiling C and C++ we need to have the C++ compiler decide
2671 # the declaration of exit, since it's the most demanding environment.
2672 cat >conftest.$ac_ext <<_ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2681 grep -v '^ *+' conftest.er1 >conftest.err
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 for ac_declaration in \
2701 'extern "C" void std::exit (int) throw (); using std::exit;' \
2702 'extern "C" void std::exit (int); using std::exit;' \
2703 'extern "C" void exit (int) throw ();' \
2704 'extern "C" void exit (int);' \
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag"
2733 || test ! -s conftest.err'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1 >conftest.err
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 if test -n "$ac_declaration"; then
2800 echo '#ifdef __cplusplus' >>confdefs.h
2801 echo $ac_declaration >>confdefs.h
2802 echo '#endif' >>confdefs.h
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 . "$srcdir/src/template/$template" || exit
2825 # CFLAGS are selected so:
2826 # If the user specifies something in the environment, that is used.
2827 # else: If the template file set something, that is used.
2828 # else: If the compiler is GCC, then we use -O2.
2829 # else: If the compiler is something else, then we use -0.
2831 if test "$ac_env_CFLAGS_set" = set; then
2832 CFLAGS=$ac_env_CFLAGS_value
2833 elif test "${CFLAGS+set}" = set; then
2834 : # (keep what template set)
2835 elif test "$GCC" = yes; then
2838 # if the user selected debug mode, don't use -O
2839 if test "$enable_debug" != yes; then
2844 # Some versions of GCC support some additional useful warning flags.
2845 # Check whether they are supported, and add them to CFLAGS if so.
2847 if test "$GCC" = yes; then
2849 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2850 # So we have to check if "GCC" is really ICC.
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2862 #ifndef __INTEL_COMPILER
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 if test "$ICC" = no; then
2901 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2903 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2904 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2905 pgac_save_CFLAGS=$CFLAGS
2906 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -z "$ac_c_werror_flag"
2932 || test ! -s conftest.err'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945 echo "${ECHO_T}yes" >&6
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 CFLAGS="$pgac_save_CFLAGS"
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2957 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2958 pgac_save_CFLAGS=$CFLAGS
2959 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 echo "$as_me:$LINENO: result: yes" >&5
2998 echo "${ECHO_T}yes" >&6
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 CFLAGS="$pgac_save_CFLAGS"
3004 echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010 # Intel compiler has a bug/misoptimization in checking for
3011 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
3013 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3014 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3015 pgac_save_CFLAGS=$CFLAGS
3016 CFLAGS="$pgac_save_CFLAGS -mp1"
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_c_werror_flag"
3042 || test ! -s conftest.err'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055 echo "${ECHO_T}yes" >&6
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 CFLAGS="$pgac_save_CFLAGS"
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 # Disable strict-aliasing rules; needed for gcc 3.3+
3069 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3070 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3071 pgac_save_CFLAGS=$CFLAGS
3072 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 echo "$as_me:$LINENO: result: yes" >&5
3111 echo "${ECHO_T}yes" >&6
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 CFLAGS="$pgac_save_CFLAGS"
3117 echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3122 elif test x"${CC}" = x"xlc"; then
3123 # AIX xlc has to have strict aliasing turned off too
3124 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3125 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3126 pgac_save_CFLAGS=$CFLAGS
3127 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 CFLAGS="$pgac_save_CFLAGS"
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179 # supply -g if --enable-debug
3180 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3184 # enable profiling if --enable-profiling
3185 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3186 if test "$GCC" = yes; then
3188 cat >>confdefs.h <<\_ACEOF
3189 #define PROFILE_PID_DIR 1
3192 CFLAGS="$CFLAGS -pg"
3194 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3195 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3196 { (exit 1); exit 1; }; }
3200 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3201 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3203 # We already have this in Makefile.win32, but configure needs it too
3204 if test "$PORTNAME" = "win32"; then
3205 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3208 # Check if the compiler still works with the template settings
3209 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3210 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228 (eval $ac_link) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest$ac_exeext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3257 echo "$as_me: error: cannot proceed" >&2;}
3258 { (exit 1); exit 1; }; }
3260 rm -f conftest.err conftest.$ac_objext \
3261 conftest$ac_exeext conftest.$ac_ext
3263 # Defend against gcc -ffast-math
3264 if test "$GCC" = yes; then
3265 cat >conftest.$ac_ext <<_ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3275 #ifdef __FAST_MATH__
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3310 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3311 { (exit 1); exit 1; }; }
3313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3322 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3323 # On Suns, sometimes $CPP names a directory.
3324 if test -n "$CPP" && test -d "$CPP"; then
3327 if test -z "$CPP"; then
3328 if test "${ac_cv_prog_CPP+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 # Double quotes because CPP needs to be expanded
3332 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3335 for ac_c_preproc_warn_flag in '' yes
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3350 # include <limits.h>
3352 # include <assert.h>
3356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3359 grep -v '^ *+' conftest.er1 >conftest.err
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } >/dev/null; then
3364 if test -s conftest.err; then
3365 ac_cpp_err=$ac_c_preproc_warn_flag
3366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373 if test -z "$ac_cpp_err"; then
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 # Broken: fails on valid input.
3382 rm -f conftest.err conftest.$ac_ext
3384 # OK, works on sane cases. Now check whether non-existent headers
3385 # can be detected and how.
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 #include <ac_nonexistent.h>
3394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3412 # Broken: success on invalid input.
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Passes both tests.
3422 rm -f conftest.err conftest.$ac_ext
3425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3426 rm -f conftest.err conftest.$ac_ext
3427 if $ac_preproc_ok; then
3439 echo "$as_me:$LINENO: result: $CPP" >&5
3440 echo "${ECHO_T}$CPP" >&6
3442 for ac_c_preproc_warn_flag in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat >conftest.$ac_ext <<_ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3457 # include <limits.h>
3459 # include <assert.h>
3463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } >/dev/null; then
3471 if test -s conftest.err; then
3472 ac_cpp_err=$ac_c_preproc_warn_flag
3473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480 if test -z "$ac_cpp_err"; then
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether non-existent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null; then
3509 if test -s conftest.err; then
3510 ac_cpp_err=$ac_c_preproc_warn_flag
3511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 if test -z "$ac_cpp_err"; then
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Passes both tests.
3529 rm -f conftest.err conftest.$ac_ext
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 # Create compiler version string
3553 if test x"$GCC" = x"yes" ; then
3554 cc_string="GCC `${CC} --version | sed q`"
3559 cat >>confdefs.h <<_ACEOF
3560 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3566 # Set up TAS assembly code if needed; the template file has now had its
3567 # chance to request this.
3569 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3572 if test "$need_tas" = yes ; then
3581 # Automatic dependency tracking
3584 pgac_args="$pgac_args enable_depend"
3586 # Check whether --enable-depend or --disable-depend was given.
3587 if test "${enable_depend+set}" = set; then
3588 enableval="$enable_depend"
3598 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3599 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3600 { (exit 1); exit 1; }; }
3613 # Enable assert checks
3616 pgac_args="$pgac_args enable_cassert"
3618 # Check whether --enable-cassert or --disable-cassert was given.
3619 if test "${enable_cassert+set}" = set; then
3620 enableval="$enable_cassert"
3625 cat >>confdefs.h <<\_ACEOF
3626 #define USE_ASSERT_CHECKING 1
3634 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3635 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3636 { (exit 1); exit 1; }; }
3648 # Include directories
3651 IFS="${IFS}${PATH_SEPARATOR}"
3652 # SRCH_INC comes from the template file
3653 for dir in $with_includes $SRCH_INC; do
3654 if test -d "$dir"; then
3655 INCLUDES="$INCLUDES -I$dir"
3657 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3658 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3666 # Library directories
3669 IFS="${IFS}${PATH_SEPARATOR}"
3670 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3671 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3672 if test -d "$dir"; then
3673 LIBDIRS="$LIBDIRS -L$dir"
3675 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3676 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3682 # Enable thread-safe client libraries
3684 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3685 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3687 pgac_args="$pgac_args enable_thread_safety"
3689 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3690 if test "${enable_thread_safety+set}" = set; then
3691 enableval="$enable_thread_safety"
3701 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3702 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3703 { (exit 1); exit 1; }; }
3708 enable_thread_safety=no
3713 pgac_args="$pgac_args enable_thread_safety_force"
3715 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3716 if test "${enable_thread_safety_force+set}" = set; then
3717 enableval="$enable_thread_safety_force"
3727 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3728 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3729 { (exit 1); exit 1; }; }
3734 enable_thread_safety_force=no
3738 if test "$enable_thread_safety" = yes -o \
3739 "$enable_thread_safety_force" = yes; then
3740 enable_thread_safety="yes" # for 'force'
3742 cat >>confdefs.h <<\_ACEOF
3743 #define ENABLE_THREAD_SAFETY 1
3747 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3748 echo "${ECHO_T}$enable_thread_safety" >&6
3752 # Optionally build Tcl modules (PL/Tcl)
3754 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3755 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3757 pgac_args="$pgac_args with_tcl"
3760 # Check whether --with-tcl or --without-tcl was given.
3761 if test "${with_tcl+set}" = set; then
3772 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3773 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3774 { (exit 1); exit 1; }; }
3783 echo "$as_me:$LINENO: result: $with_tcl" >&5
3784 echo "${ECHO_T}$with_tcl" >&6
3787 # We see if the path to the Tcl/Tk configuration scripts is specified.
3788 # This will override the use of tclsh to find the paths to search.
3791 pgac_args="$pgac_args with_tclconfig"
3794 # Check whether --with-tclconfig or --without-tclconfig was given.
3795 if test "${with_tclconfig+set}" = set; then
3796 withval="$with_tclconfig"
3800 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3801 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3802 { (exit 1); exit 1; }; }
3805 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3806 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3807 { (exit 1); exit 1; }; }
3818 # Optionally build Perl modules (PL/Perl)
3820 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3821 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3823 pgac_args="$pgac_args with_perl"
3826 # Check whether --with-perl or --without-perl was given.
3827 if test "${with_perl+set}" = set; then
3828 withval="$with_perl"
3838 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3839 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3840 { (exit 1); exit 1; }; }
3849 echo "$as_me:$LINENO: result: $with_perl" >&5
3850 echo "${ECHO_T}$with_perl" >&6
3854 # Optionally build Python modules (PL/Python)
3856 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3857 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3859 pgac_args="$pgac_args with_python"
3862 # Check whether --with-python or --without-python was given.
3863 if test "${with_python+set}" = set; then
3864 withval="$with_python"
3874 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3875 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3876 { (exit 1); exit 1; }; }
3885 echo "$as_me:$LINENO: result: $with_python" >&5
3886 echo "${ECHO_T}$with_python" >&6
3892 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3893 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3895 pgac_args="$pgac_args with_krb5"
3898 # Check whether --with-krb5 or --without-krb5 was given.
3899 if test "${with_krb5+set}" = set; then
3900 withval="$with_krb5"
3906 cat >>confdefs.h <<\_ACEOF
3910 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3917 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3918 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3919 { (exit 1); exit 1; }; }
3928 echo "$as_me:$LINENO: result: $with_krb5" >&5
3929 echo "${ECHO_T}$with_krb5" >&6
3937 # Kerberos configuration parameters
3940 pgac_args="$pgac_args with_krb_srvnam"
3943 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3944 if test "${with_krb_srvnam+set}" = set; then
3945 withval="$with_krb_srvnam"
3949 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3950 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3951 { (exit 1); exit 1; }; }
3954 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3955 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3956 { (exit 1); exit 1; }; }
3964 with_krb_srvnam="postgres"
3968 cat >>confdefs.h <<_ACEOF
3969 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3977 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3978 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3980 pgac_args="$pgac_args with_pam"
3983 # Check whether --with-pam or --without-pam was given.
3984 if test "${with_pam+set}" = set; then
3990 cat >>confdefs.h <<\_ACEOF
3999 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4000 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4001 { (exit 1); exit 1; }; }
4010 echo "$as_me:$LINENO: result: $with_pam" >&5
4011 echo "${ECHO_T}$with_pam" >&6
4018 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4019 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4021 pgac_args="$pgac_args with_ldap"
4024 # Check whether --with-ldap or --without-ldap was given.
4025 if test "${with_ldap+set}" = set; then
4026 withval="$with_ldap"
4031 cat >>confdefs.h <<\_ACEOF
4040 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4041 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4042 { (exit 1); exit 1; }; }
4051 echo "$as_me:$LINENO: result: $with_ldap" >&5
4052 echo "${ECHO_T}$with_ldap" >&6
4059 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4060 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4062 pgac_args="$pgac_args with_bonjour"
4065 # Check whether --with-bonjour or --without-bonjour was given.
4066 if test "${with_bonjour+set}" = set; then
4067 withval="$with_bonjour"
4072 cat >>confdefs.h <<\_ACEOF
4073 #define USE_BONJOUR 1
4081 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4082 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4083 { (exit 1); exit 1; }; }
4092 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4093 echo "${ECHO_T}$with_bonjour" >&6
4100 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4101 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4103 pgac_args="$pgac_args with_openssl"
4106 # Check whether --with-openssl or --without-openssl was given.
4107 if test "${with_openssl+set}" = set; then
4108 withval="$with_openssl"
4113 cat >>confdefs.h <<\_ACEOF
4122 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4123 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4124 { (exit 1); exit 1; }; }
4133 echo "$as_me:$LINENO: result: $with_openssl" >&5
4134 echo "${ECHO_T}$with_openssl" >&6
4142 pgac_args="$pgac_args with_readline"
4145 # Check whether --with-readline or --without-readline was given.
4146 if test "${with_readline+set}" = set; then
4147 withval="$with_readline"
4157 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4158 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4159 { (exit 1); exit 1; }; }
4168 # readline on MinGW has problems with backslashes in psql and other bugs.
4169 # This is particularly a problem with non-US code pages.
4170 # Therefore disable its use until we understand the cause. 2004-07-20
4171 if test "$PORTNAME" = "win32"; then
4172 if test "$with_readline" = yes; then
4173 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4174 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4184 pgac_args="$pgac_args with_libedit_preferred"
4187 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4188 if test "${with_libedit_preferred+set}" = set; then
4189 withval="$with_libedit_preferred"
4199 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4200 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4201 { (exit 1); exit 1; }; }
4206 with_libedit_preferred=no
4216 pgac_args="$pgac_args with_libxml"
4219 # Check whether --with-libxml or --without-libxml was given.
4220 if test "${with_libxml+set}" = set; then
4221 withval="$with_libxml"
4226 cat >>confdefs.h <<\_ACEOF
4227 #define USE_LIBXML 1
4235 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4236 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4237 { (exit 1); exit 1; }; }
4247 if test "$with_libxml" = yes ; then
4248 for ac_prog in xml2-config
4250 # Extract the first word of "$ac_prog", so it can be a program name with args.
4251 set dummy $ac_prog; ac_word=$2
4252 echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -n "$XML2_CONFIG"; then
4258 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_XML2_CONFIG="$ac_prog"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4277 if test -n "$XML2_CONFIG"; then
4278 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4279 echo "${ECHO_T}$XML2_CONFIG" >&6
4281 echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4285 test -n "$XML2_CONFIG" && break
4288 if test -n "$XML2_CONFIG"; then
4289 for pgac_option in `$XML2_CONFIG --cflags`; do
4290 case $pgac_option in
4291 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4294 for pgac_option in `$XML2_CONFIG --libs`; do
4295 case $pgac_option in
4296 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4307 pgac_args="$pgac_args with_zlib"
4310 # Check whether --with-zlib or --without-zlib was given.
4311 if test "${with_zlib+set}" = set; then
4312 withval="$with_zlib"
4322 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4323 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4324 { (exit 1); exit 1; }; }
4339 # Assume system is ELF if it predefines __ELF__ as 1,
4340 # otherwise believe host_os based default.
4342 freebsd1*|freebsd2*) elf=no;;
4343 freebsd3*|freebsd4*) elf=yes;;
4347 echo "$as_me:$LINENO: checking for egrep" >&5
4348 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4349 if test "${ac_cv_prog_egrep+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4353 then ac_cv_prog_egrep='grep -E'
4354 else ac_cv_prog_egrep='egrep'
4357 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4358 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4359 EGREP=$ac_cv_prog_egrep
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374 $EGREP "yes" >/dev/null 2>&1; then
4377 if test "X$elf" = "Xyes" ; then
4391 CPPFLAGS="$CPPFLAGS $INCLUDES"
4392 LDFLAGS="$LDFLAGS $LIBDIRS"
4394 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4395 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4396 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4397 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4401 for ac_prog in gawk mawk nawk awk
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4407 if test "${ac_cv_prog_AWK+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 if test -n "$AWK"; then
4411 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_AWK="$ac_prog"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 if test -n "$AWK"; then
4431 echo "$as_me:$LINENO: result: $AWK" >&5
4432 echo "${ECHO_T}$AWK" >&6
4434 echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4438 test -n "$AWK" && break
4441 echo "$as_me:$LINENO: checking for flex" >&5
4442 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4443 if test "${pgac_cv_path_flex+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 # Let the user override the test
4447 if test -n "$FLEX"; then
4448 pgac_cv_path_flex=$FLEX
4452 for pgac_dir in $PATH; do
4454 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4457 for pgac_prog in flex lex; do
4458 pgac_candidate="$pgac_dir/$pgac_prog"
4459 if test -f "$pgac_candidate" \
4460 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4462 echo '%%' > conftest.l
4463 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4464 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4465 pgac_broken_flex=$pgac_candidate
4469 pgac_cv_path_flex=$pgac_candidate
4475 rm -f conftest.l lex.yy.c
4476 : ${pgac_cv_path_flex=no}
4480 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4481 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4482 if test x"$pgac_cv_path_flex" = x"no"; then
4483 if test -n "$pgac_broken_flex"; then
4484 { echo "$as_me:$LINENO: WARNING:
4485 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4486 *** should get version 2.5.4 or later." >&5
4487 echo "$as_me: WARNING:
4488 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4489 *** should get version 2.5.4 or later." >&2;}
4492 { echo "$as_me:$LINENO: WARNING:
4493 *** Without Flex you will not be able to build PostgreSQL from CVS or
4494 *** change any of the scanner definition files. You can obtain Flex from
4495 *** a GNU mirror site. (If you are using the official distribution of
4496 *** PostgreSQL then you do not need to worry about this because the Flex
4497 *** output is pre-generated.)" >&5
4498 echo "$as_me: WARNING:
4499 *** Without Flex you will not be able to build PostgreSQL from CVS or
4500 *** change any of the scanner definition files. You can obtain Flex from
4501 *** a GNU mirror site. (If you are using the official distribution of
4502 *** PostgreSQL then you do not need to worry about this because the Flex
4503 *** output is pre-generated.)" >&2;}
4506 if test x"$pgac_cv_path_flex" = x"no"; then
4509 FLEX=$pgac_cv_path_flex
4515 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4516 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4518 if test "$LN_S" = "ln -s"; then
4519 echo "$as_me:$LINENO: result: yes" >&5
4520 echo "${ECHO_T}yes" >&6
4522 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4523 echo "${ECHO_T}no, using $LN_S" >&6
4527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4528 if test "${with_gnu_ld+set}" = set; then
4529 withval="$with_gnu_ld"
4530 test "$withval" = no || with_gnu_ld=yes
4535 if test "$GCC" = yes; then
4536 # Check if gcc -print-prog-name=ld gives a path.
4537 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4538 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4541 # gcc leaves a trailing carriage return which upsets mingw
4542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4547 # Accept absolute paths.
4548 [\\/]* | [A-Za-z]:[\\/]*)
4549 re_direlt='/[^/][^/]*/\.\./'
4550 # Canonicalize the path of ld
4551 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4552 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4553 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4555 test -z "$LD" && LD="$ac_prog"
4558 # If it fails, then pretend we aren't using GCC.
4562 # If it is relative, then search for the first ld in PATH.
4566 elif test "$with_gnu_ld" = yes; then
4567 echo "$as_me:$LINENO: checking for GNU ld" >&5
4568 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4570 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4571 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4573 if test "${ac_cv_path_LD+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -z "$LD"; then
4577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4578 for ac_dir in $PATH; do
4579 test -z "$ac_dir" && ac_dir=.
4580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4581 ac_cv_path_LD="$ac_dir/$ac_prog"
4582 # Check to see if the program is GNU ld. I'd rather use --version,
4583 # but apparently some GNU ld's only accept -v.
4584 # Break only if it was the GNU/non-GNU ld that we prefer.
4585 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4586 test "$with_gnu_ld" != no && break
4588 test "$with_gnu_ld" != yes && break
4594 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4599 if test -n "$LD"; then
4600 echo "$as_me:$LINENO: result: $LD" >&5
4601 echo "${ECHO_T}$LD" >&6
4603 echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6
4606 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4607 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4608 { (exit 1); exit 1; }; }
4609 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4610 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4611 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4615 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4616 ac_cv_prog_gnu_ld=yes
4618 ac_cv_prog_gnu_ld=no
4621 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4622 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4623 with_gnu_ld=$ac_cv_prog_gnu_ld
4628 case $host_os in sysv5*)
4629 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4630 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4631 if test "${pgac_cv_prog_ld_R+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4651 rm -f conftest.$ac_objext conftest$ac_exeext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653 (eval $ac_link) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 pgac_cv_prog_ld_R=yes
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 pgac_cv_prog_ld_R=no
4680 rm -f conftest.err conftest.$ac_objext \
4681 conftest$ac_exeext conftest.$ac_ext
4682 LDFLAGS=$pgac_save_LDFLAGS
4685 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4686 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4687 ld_R_works=$pgac_cv_prog_ld_R
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4693 echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695 if test "${ac_cv_prog_RANLIB+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$RANLIB"; then
4699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 RANLIB=$ac_cv_prog_RANLIB
4718 if test -n "$RANLIB"; then
4719 echo "$as_me:$LINENO: result: $RANLIB" >&5
4720 echo "${ECHO_T}$RANLIB" >&6
4722 echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4727 if test -z "$ac_cv_prog_RANLIB"; then
4728 ac_ct_RANLIB=$RANLIB
4729 # Extract the first word of "ranlib", so it can be a program name with args.
4730 set dummy ranlib; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$ac_ct_RANLIB"; then
4737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_ac_ct_RANLIB="ranlib"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4757 if test -n "$ac_ct_RANLIB"; then
4758 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4759 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4765 RANLIB=$ac_ct_RANLIB
4767 RANLIB="$ac_cv_prog_RANLIB"
4770 # Extract the first word of "tar", so it can be a program name with args.
4771 set dummy tar; ac_word=$2
4772 echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4774 if test "${ac_cv_path_TAR+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 if test -n "$TAR"; then
4802 echo "$as_me:$LINENO: result: $TAR" >&5
4803 echo "${ECHO_T}$TAR" >&6
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}strip; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_prog_STRIP+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -n "$STRIP"; then
4819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 STRIP=$ac_cv_prog_STRIP
4838 if test -n "$STRIP"; then
4839 echo "$as_me:$LINENO: result: $STRIP" >&5
4840 echo "${ECHO_T}$STRIP" >&6
4842 echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4847 if test -z "$ac_cv_prog_STRIP"; then
4849 # Extract the first word of "strip", so it can be a program name with args.
4850 set dummy strip; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$ac_ct_STRIP"; then
4857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_ac_ct_STRIP="strip"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4877 if test -n "$ac_ct_STRIP"; then
4878 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4879 echo "${ECHO_T}$ac_ct_STRIP" >&6
4881 echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4887 STRIP="$ac_cv_prog_STRIP"
4891 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4892 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4893 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4894 STRIP_STATIC_LIB="$STRIP -x"
4895 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4896 echo "$as_me:$LINENO: result: yes" >&5
4897 echo "${ECHO_T}yes" >&6
4901 echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6
4908 if test -z "$YACC"; then
4909 for ac_prog in 'bison -y'
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_YACC+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 if test -n "$YACC"; then
4919 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_YACC="$ac_prog"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 YACC=$ac_cv_prog_YACC
4938 if test -n "$YACC"; then
4939 echo "$as_me:$LINENO: result: $YACC" >&5
4940 echo "${ECHO_T}$YACC" >&6
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 test -n "$YACC" && break
4950 if test "$YACC"; then
4951 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4952 { echo "$as_me:$LINENO: WARNING:
4953 *** The installed version of Bison is too old to use with PostgreSQL.
4954 *** Bison version 1.875 or later is required." >&5
4955 echo "$as_me: WARNING:
4956 *** The installed version of Bison is too old to use with PostgreSQL.
4957 *** Bison version 1.875 or later is required." >&2;}
4962 if test -z "$YACC"; then
4963 { echo "$as_me:$LINENO: WARNING:
4964 *** Without Bison you will not be able to build PostgreSQL from CVS nor
4965 *** change any of the parser definition files. You can obtain Bison from
4966 *** a GNU mirror site. (If you are using the official distribution of
4967 *** PostgreSQL then you do not need to worry about this, because the Bison
4968 *** output is pre-generated.) To use a different yacc program (possible,
4969 *** but not recommended), set the environment variable YACC before running
4970 *** 'configure'." >&5
4971 echo "$as_me: WARNING:
4972 *** Without Bison you will not be able to build PostgreSQL from CVS nor
4973 *** change any of the parser definition files. You can obtain Bison from
4974 *** a GNU mirror site. (If you are using the official distribution of
4975 *** PostgreSQL then you do not need to worry about this, because the Bison
4976 *** output is pre-generated.) To use a different yacc program (possible,
4977 *** but not recommended), set the environment variable YACC before running
4978 *** 'configure'." >&2;}
4983 # Extract the first word of "perl", so it can be a program name with args.
4984 set dummy perl; ac_word=$2
4985 echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987 if test "${ac_cv_path_PERL+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 PERL=$ac_cv_path_PERL
5014 if test -n "$PERL"; then
5015 echo "$as_me:$LINENO: result: $PERL" >&5
5016 echo "${ECHO_T}$PERL" >&6
5018 echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5022 if test "$with_perl" = yes; then
5024 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5025 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5026 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5027 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5028 echo "${ECHO_T}$perl_archlibexp" >&6
5029 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5030 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5031 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5032 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5033 echo "${ECHO_T}$perl_privlibexp" >&6
5034 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5035 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5036 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5037 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5038 echo "${ECHO_T}$perl_useshrplib" >&6
5040 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5041 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5042 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5043 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5044 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5045 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5046 echo "${ECHO_T}$perl_embed_ldflags" >&6
5049 if test "$with_python" = yes; then
5050 # Extract the first word of "python", so it can be a program name with args.
5051 set dummy python; ac_word=$2
5052 echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054 if test "${ac_cv_path_PYTHON+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 PYTHON=$ac_cv_path_PYTHON
5081 if test -n "$PYTHON"; then
5082 echo "$as_me:$LINENO: result: $PYTHON" >&5
5083 echo "${ECHO_T}$PYTHON" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5089 if test x"$PYTHON" = x""; then
5090 { { echo "$as_me:$LINENO: error: Python not found" >&5
5091 echo "$as_me: error: Python not found" >&2;}
5092 { (exit 1); exit 1; }; }
5096 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5097 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5098 if "${PYTHON}" 2>&- -c 'import distutils'
5100 echo "$as_me:$LINENO: result: yes" >&5
5101 echo "${ECHO_T}yes" >&6
5103 echo "$as_me:$LINENO: result: no" >&5
5104 echo "${ECHO_T}no" >&6
5105 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5106 echo "$as_me: error: distutils module not found" >&2;}
5107 { (exit 1); exit 1; }; }
5109 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5110 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5111 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5112 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')"`
5113 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5115 # This should be enough of a message.
5116 echo "$as_me:$LINENO: result: $python_configdir" >&5
5117 echo "${ECHO_T}$python_configdir" >&6
5120 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5121 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5123 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5124 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5125 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5126 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5128 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5130 # New way: use the official shared library
5131 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5132 python_libspec="-L${python_libdir} -l${ldlibrary}"
5134 # Old way: use libpython from python_configdir
5135 python_libdir="${python_configdir}"
5136 python_libspec="-L${python_libdir} -lpython${python_version}"
5139 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5141 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5142 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5145 # threaded python is not supported on bsd's
5146 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5147 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5148 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5149 if test "$pythreads" = "1"; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151 echo "${ECHO_T}yes" >&6
5154 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5155 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5156 { (exit 1); exit 1; }; }
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5167 # Supply a numeric version string for use by 3rd party add-ons
5168 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5169 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5171 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5173 cat >>confdefs.h <<_ACEOF
5174 #define PG_VERSION_NUM $PG_VERSION_NUM
5181 ## Most libraries are included only if they demonstrably provide a function
5182 ## we need, but libm is an exception: always include it, because there are
5183 ## too many compilers that play cute optimization games that will break
5184 ## probes for standard functions such as pow().
5188 echo "$as_me:$LINENO: checking for main in -lm" >&5
5189 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5190 if test "${ac_cv_lib_m_main+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_check_lib_save_LIBS=$LIBS
5195 cat >conftest.$ac_ext <<_ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag"
5221 || test ! -s conftest.err'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; } &&
5227 { ac_try='test -s conftest$ac_exeext'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5233 ac_cv_lib_m_main=yes
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5240 rm -f conftest.err conftest.$ac_objext \
5241 conftest$ac_exeext conftest.$ac_ext
5242 LIBS=$ac_check_lib_save_LIBS
5244 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5245 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5246 if test $ac_cv_lib_m_main = yes; then
5247 cat >>confdefs.h <<_ACEOF
5255 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5256 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5257 if test "${ac_cv_search_setproctitle+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 ac_func_search_save_LIBS=$LIBS
5261 ac_cv_search_setproctitle=no
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5269 /* Override any gcc2 internal prototype to avoid an error. */
5273 /* We use char because int might match the return type of a gcc2
5274 builtin and then its argument prototype would still apply. */
5275 char setproctitle ();
5284 rm -f conftest.$ac_objext conftest$ac_exeext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5286 (eval $ac_link) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag"
5294 || test ! -s conftest.err'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_cv_search_setproctitle="none required"
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5312 rm -f conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314 if test "$ac_cv_search_setproctitle" = no; then
5315 for ac_lib in util; do
5316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5324 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330 char setproctitle ();
5339 rm -f conftest.$ac_objext conftest$ac_exeext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5341 (eval $ac_link) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_cv_search_setproctitle="-l$ac_lib"
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5368 rm -f conftest.err conftest.$ac_objext \
5369 conftest$ac_exeext conftest.$ac_ext
5372 LIBS=$ac_func_search_save_LIBS
5374 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5375 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5376 if test "$ac_cv_search_setproctitle" != no; then
5377 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5381 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5382 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5383 if test "${ac_cv_search_dlopen+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_func_search_save_LIBS=$LIBS
5387 ac_cv_search_dlopen=no
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5395 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5410 rm -f conftest.$ac_objext conftest$ac_exeext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5412 (eval $ac_link) 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -z "$ac_c_werror_flag"
5420 || test ! -s conftest.err'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; } &&
5426 { ac_try='test -s conftest$ac_exeext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_search_dlopen="none required"
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5438 rm -f conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5440 if test "$ac_cv_search_dlopen" = no; then
5441 for ac_lib in dl; do
5442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5450 /* Override any gcc2 internal prototype to avoid an error. */
5454 /* We use char because int might match the return type of a gcc2
5455 builtin and then its argument prototype would still apply. */
5465 rm -f conftest.$ac_objext conftest$ac_exeext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467 (eval $ac_link) 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
5474 { ac_try='test -z "$ac_c_werror_flag"
5475 || test ! -s conftest.err'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; } &&
5481 { ac_try='test -s conftest$ac_exeext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_search_dlopen="-l$ac_lib"
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5494 rm -f conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
5498 LIBS=$ac_func_search_save_LIBS
5500 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5501 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5502 if test "$ac_cv_search_dlopen" != no; then
5503 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5507 echo "$as_me:$LINENO: checking for library containing socket" >&5
5508 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5509 if test "${ac_cv_search_socket+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_func_search_save_LIBS=$LIBS
5513 ac_cv_search_socket=no
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_search_socket="none required"
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5564 rm -f conftest.err conftest.$ac_objext \
5565 conftest$ac_exeext conftest.$ac_ext
5566 if test "$ac_cv_search_socket" = no; then
5567 for ac_lib in socket wsock32; do
5568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5576 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest$ac_exeext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_search_socket="-l$ac_lib"
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5620 rm -f conftest.err conftest.$ac_objext \
5621 conftest$ac_exeext conftest.$ac_ext
5624 LIBS=$ac_func_search_save_LIBS
5626 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5627 echo "${ECHO_T}$ac_cv_search_socket" >&6
5628 if test "$ac_cv_search_socket" != no; then
5629 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5633 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5634 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5635 if test "${ac_cv_search_shl_load+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_func_search_save_LIBS=$LIBS
5639 ac_cv_search_shl_load=no
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5647 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_search_shl_load="none required"
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5690 rm -f conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 if test "$ac_cv_search_shl_load" = no; then
5693 for ac_lib in dld; do
5694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_search_shl_load="-l$ac_lib"
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5746 rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5750 LIBS=$ac_func_search_save_LIBS
5752 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5753 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5754 if test "$ac_cv_search_shl_load" != no; then
5755 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5759 # We only use libld in port/dynloader/aix.c
5762 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5763 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5764 if test "${ac_cv_search_ldopen+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 ac_func_search_save_LIBS=$LIBS
5768 ac_cv_search_ldopen=no
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5776 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest$ac_exeext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_search_ldopen="none required"
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5819 rm -f conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5821 if test "$ac_cv_search_ldopen" = no; then
5822 for ac_lib in ld; do
5823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5831 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_search_ldopen="-l$ac_lib"
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5879 LIBS=$ac_func_search_save_LIBS
5881 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5882 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5883 if test "$ac_cv_search_ldopen" != no; then
5884 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5890 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5891 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5892 if test "${ac_cv_search_getopt_long+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 ac_func_search_save_LIBS=$LIBS
5896 ac_cv_search_getopt_long=no
5897 cat >conftest.$ac_ext <<_ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5904 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char getopt_long ();
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5921 (eval $ac_link) 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_search_getopt_long="none required"
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
5949 if test "$ac_cv_search_getopt_long" = no; then
5950 for ac_lib in getopt gnugetopt; do
5951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5959 /* Override any gcc2 internal prototype to avoid an error. */
5963 /* We use char because int might match the return type of a gcc2
5964 builtin and then its argument prototype would still apply. */
5965 char getopt_long ();
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5976 (eval $ac_link) 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest$ac_exeext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_search_getopt_long="-l$ac_lib"
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6003 rm -f conftest.err conftest.$ac_objext \
6004 conftest$ac_exeext conftest.$ac_ext
6007 LIBS=$ac_func_search_save_LIBS
6009 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6010 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6011 if test "$ac_cv_search_getopt_long" != no; then
6012 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6016 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6017 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6018 if test "${ac_cv_search_crypt+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 ac_func_search_save_LIBS=$LIBS
6022 ac_cv_search_crypt=no
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag"
6055 || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try='test -s conftest$ac_exeext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_search_crypt="none required"
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6073 rm -f conftest.err conftest.$ac_objext \
6074 conftest$ac_exeext conftest.$ac_ext
6075 if test "$ac_cv_search_crypt" = no; then
6076 for ac_lib in crypt; do
6077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6085 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102 (eval $ac_link) 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_c_werror_flag"
6110 || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_search_crypt="-l$ac_lib"
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6129 rm -f conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6133 LIBS=$ac_func_search_save_LIBS
6135 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6136 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6137 if test "$ac_cv_search_crypt" != no; then
6138 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6143 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6144 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6145 if test "${ac_cv_search_fdatasync+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 ac_func_search_save_LIBS=$LIBS
6149 ac_cv_search_fdatasync=no
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6157 /* Override any gcc2 internal prototype to avoid an error. */
6161 /* We use char because int might match the return type of a gcc2
6162 builtin and then its argument prototype would still apply. */
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag"
6182 || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest$ac_exeext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_cv_search_fdatasync="none required"
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6200 rm -f conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 if test "$ac_cv_search_fdatasync" = no; then
6203 for ac_lib in rt posix4; do
6204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6212 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6227 rm -f conftest.$ac_objext conftest$ac_exeext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229 (eval $ac_link) 2>conftest.er1
6231 grep -v '^ *+' conftest.er1 >conftest.err
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -z "$ac_c_werror_flag"
6237 || test ! -s conftest.err'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_search_fdatasync="-l$ac_lib"
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6256 rm -f conftest.err conftest.$ac_objext \
6257 conftest$ac_exeext conftest.$ac_ext
6260 LIBS=$ac_func_search_save_LIBS
6262 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6263 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6264 if test "$ac_cv_search_fdatasync" != no; then
6265 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6270 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6271 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6272 if test "${ac_cv_search_shmget+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_func_search_save_LIBS=$LIBS
6276 ac_cv_search_shmget=no
6277 cat >conftest.$ac_ext <<_ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6284 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6299 rm -f conftest.$ac_objext conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_search_shmget="none required"
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6327 rm -f conftest.err conftest.$ac_objext \
6328 conftest$ac_exeext conftest.$ac_ext
6329 if test "$ac_cv_search_shmget" = no; then
6330 for ac_lib in cygipc; do
6331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
6343 /* We use char because int might match the return type of a gcc2
6344 builtin and then its argument prototype would still apply. */
6354 rm -f conftest.$ac_objext conftest$ac_exeext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356 (eval $ac_link) 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_search_shmget="-l$ac_lib"
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6383 rm -f conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6387 LIBS=$ac_func_search_save_LIBS
6389 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6390 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6391 if test "$ac_cv_search_shmget" != no; then
6392 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6397 if test "$with_readline" = yes; then
6400 if test "${pgac_cv_check_readline+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 pgac_cv_check_readline=no
6404 pgac_save_LIBS=$LIBS
6405 if test x"$with_libedit_preferred" != x"yes"
6406 then READLINE_ORDER="-lreadline -ledit"
6407 else READLINE_ORDER="-ledit -lreadline"
6409 for pgac_rllib in $READLINE_ORDER ; do
6410 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6411 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6412 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6413 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6436 rm -f conftest.$ac_objext conftest$ac_exeext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438 (eval $ac_link) 2>conftest.er1
6440 grep -v '^ *+' conftest.er1 >conftest.err
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_c_werror_flag"
6446 || test ! -s conftest.err'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; } &&
6452 { ac_try='test -s conftest$ac_exeext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6459 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6460 # recognize dependent libraries; assume curses is needed if we didn't
6461 # find any dependency.
6463 netbsd* | openbsd* | irix*)
6464 if test x"$pgac_lib" = x"" ; then
6465 pgac_lib=" -lcurses"
6469 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6477 rm -f conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6480 if test "$pgac_cv_check_readline" != no ; then
6481 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6482 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6485 echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6489 LIBS=$pgac_save_LIBS
6493 if test "$pgac_cv_check_readline" != no ; then
6494 LIBS="$pgac_cv_check_readline $LIBS"
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_LIBREADLINE 1
6503 if test x"$pgac_cv_check_readline" = x"no"; then
6504 { { echo "$as_me:$LINENO: error: readline library not found
6505 If you have readline already installed, see config.log for details on the
6506 failure. It is possible the compiler isn't looking in the proper directory.
6507 Use --without-readline to disable readline support." >&5
6508 echo "$as_me: error: readline library not found
6509 If you have readline already installed, see config.log for details on the
6510 failure. It is possible the compiler isn't looking in the proper directory.
6511 Use --without-readline to disable readline support." >&2;}
6512 { (exit 1); exit 1; }; }
6516 if test "$with_zlib" = yes; then
6518 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6519 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6520 if test "${ac_cv_lib_z_inflate+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 ac_check_lib_save_LIBS=$LIBS
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6551 grep -v '^ *+' conftest.er1 >conftest.err
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_lib_z_inflate=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_lib_z_inflate=no
6576 rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 LIBS=$ac_check_lib_save_LIBS
6580 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6581 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6582 if test $ac_cv_lib_z_inflate = yes; then
6583 cat >>confdefs.h <<_ACEOF
6590 { { echo "$as_me:$LINENO: error: zlib library not found
6591 If you have zlib already installed, see config.log for details on the
6592 failure. It is possible the compiler isn't looking in the proper directory.
6593 Use --without-zlib to disable zlib support." >&5
6594 echo "$as_me: error: zlib library not found
6595 If you have zlib already installed, see config.log for details on the
6596 failure. It is possible the compiler isn't looking in the proper directory.
6597 Use --without-zlib to disable zlib support." >&2;}
6598 { (exit 1); exit 1; }; }
6603 if test "$enable_spinlocks" = yes; then
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_SPINLOCKS 1
6610 { echo "$as_me:$LINENO: WARNING:
6611 *** Not using spinlocks will cause poor performance." >&5
6612 echo "$as_me: WARNING:
6613 *** Not using spinlocks will cause poor performance." >&2;}
6616 if test "$with_krb5" = yes ; then
6617 if test "$PORTNAME" != "win32"; then
6618 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6619 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6620 if test "${ac_cv_search_com_err+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_func_search_save_LIBS=$LIBS
6624 ac_cv_search_com_err=no
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6632 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag"
6657 || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_search_com_err="none required"
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6675 rm -f conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 if test "$ac_cv_search_com_err" = no; then
6678 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6687 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag"
6712 || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_search_com_err="-l$ac_lib"
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6731 rm -f conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6735 LIBS=$ac_func_search_save_LIBS
6737 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6738 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6739 if test "$ac_cv_search_com_err" != no; then
6740 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6743 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6744 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6745 { (exit 1); exit 1; }; }
6748 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6749 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6750 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 ac_func_search_save_LIBS=$LIBS
6754 ac_cv_search_krb5_sendauth=no
6755 cat >conftest.$ac_ext <<_ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6762 /* Override any gcc2 internal prototype to avoid an error. */
6766 /* We use char because int might match the return type of a gcc2
6767 builtin and then its argument prototype would still apply. */
6768 char krb5_sendauth ();
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779 (eval $ac_link) 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -z "$ac_c_werror_flag"
6787 || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest$ac_exeext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_cv_search_krb5_sendauth="none required"
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6805 rm -f conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 if test "$ac_cv_search_krb5_sendauth" = no; then
6808 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6817 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6823 char krb5_sendauth ();
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834 (eval $ac_link) 2>conftest.er1
6836 grep -v '^ *+' conftest.er1 >conftest.err
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -z "$ac_c_werror_flag"
6842 || test ! -s conftest.err'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_search_krb5_sendauth="-l$ac_lib"
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6861 rm -f conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6865 LIBS=$ac_func_search_save_LIBS
6867 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6868 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6869 if test "$ac_cv_search_krb5_sendauth" != no; then
6870 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6873 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6874 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6875 { (exit 1); exit 1; }; }
6879 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6880 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6881 if test "${ac_cv_search_com_err+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 ac_func_search_save_LIBS=$LIBS
6885 ac_cv_search_com_err=no
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6893 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>conftest.er1
6912 grep -v '^ *+' conftest.er1 >conftest.err
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -z "$ac_c_werror_flag"
6918 || test ! -s conftest.err'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest$ac_exeext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 ac_cv_search_com_err="none required"
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6936 rm -f conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6938 if test "$ac_cv_search_com_err" = no; then
6939 for ac_lib in 'comerr32 -lkrb5_32'; do
6940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6948 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -z "$ac_c_werror_flag"
6973 || test ! -s conftest.err'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try='test -s conftest$ac_exeext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 ac_cv_search_com_err="-l$ac_lib"
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6992 rm -f conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6996 LIBS=$ac_func_search_save_LIBS
6998 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6999 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7000 if test "$ac_cv_search_com_err" != no; then
7001 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7004 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7005 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7006 { (exit 1); exit 1; }; }
7012 if test "$with_openssl" = yes ; then
7013 if test "$PORTNAME" != "win32"; then
7015 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7016 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7017 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 ac_check_lib_save_LIBS=$LIBS
7021 LIBS="-lcrypto $LIBS"
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7029 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035 char CRYPTO_new_ex_data ();
7039 CRYPTO_new_ex_data ();
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>conftest.er1
7048 grep -v '^ *+' conftest.er1 >conftest.err
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag"
7054 || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest$ac_exeext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7073 rm -f conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 LIBS=$ac_check_lib_save_LIBS
7077 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7078 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7079 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_LIBCRYPTO 1
7084 LIBS="-lcrypto $LIBS"
7087 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7088 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7089 { (exit 1); exit 1; }; }
7093 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7094 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7095 if test "${ac_cv_lib_ssl_SSL_library_init+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. */
7113 char SSL_library_init ();
7117 SSL_library_init ();
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_ssl_SSL_library_init=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_cv_lib_ssl_SSL_library_init=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_ssl_SSL_library_init" >&5
7156 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7157 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBSSL 1
7165 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7166 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7167 { (exit 1); exit 1; }; }
7172 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7173 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7174 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 ac_check_lib_save_LIBS=$LIBS
7178 LIBS="-leay32 $LIBS"
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7186 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7192 char CRYPTO_new_ex_data ();
7196 CRYPTO_new_ex_data ();
7201 rm -f conftest.$ac_objext conftest$ac_exeext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203 (eval $ac_link) 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_exeext'
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_lib_eay32_CRYPTO_new_ex_data=yes
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7230 rm -f conftest.err conftest.$ac_objext \
7231 conftest$ac_exeext conftest.$ac_ext
7232 LIBS=$ac_check_lib_save_LIBS
7234 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7235 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7236 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7237 cat >>confdefs.h <<_ACEOF
7238 #define HAVE_LIBEAY32 1
7241 LIBS="-leay32 $LIBS"
7244 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7245 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7246 { (exit 1); exit 1; }; }
7250 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7251 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7252 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_check_lib_save_LIBS=$LIBS
7256 LIBS="-lssleay32 $LIBS"
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7264 /* Override any gcc2 internal prototype to avoid an error. */
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7270 char SSL_library_init ();
7274 SSL_library_init ();
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1 >conftest.err
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest$ac_exeext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_lib_ssleay32_SSL_library_init=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_lib_ssleay32_SSL_library_init=no
7308 rm -f conftest.err conftest.$ac_objext \
7309 conftest$ac_exeext conftest.$ac_ext
7310 LIBS=$ac_check_lib_save_LIBS
7312 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7313 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7314 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7315 cat >>confdefs.h <<_ACEOF
7316 #define HAVE_LIBSSLEAY32 1
7319 LIBS="-lssleay32 $LIBS"
7322 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7323 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7324 { (exit 1); exit 1; }; }
7330 if test "$with_pam" = yes ; then
7332 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7333 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7334 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_check_lib_save_LIBS=$LIBS
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7346 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag"
7371 || test ! -s conftest.err'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest$ac_exeext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 ac_cv_lib_pam_pam_start=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_cv_lib_pam_pam_start=no
7390 rm -f conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7392 LIBS=$ac_check_lib_save_LIBS
7394 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7395 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7396 if test $ac_cv_lib_pam_pam_start = yes; then
7397 cat >>confdefs.h <<_ACEOF
7398 #define HAVE_LIBPAM 1
7404 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7405 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7406 { (exit 1); exit 1; }; }
7411 if test "$with_libxml" = yes ; then
7413 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7414 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7415 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_check_lib_save_LIBS=$LIBS
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any gcc2 internal prototype to avoid an error. */
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7433 char xmlSaveToBuffer ();
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest$ac_exeext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_cv_lib_xml2_xmlSaveToBuffer=no
7471 rm -f conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 LIBS=$ac_check_lib_save_LIBS
7475 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7476 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7477 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define HAVE_LIBXML2 1
7485 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7486 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7487 { (exit 1); exit 1; }; }
7497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7499 if test "${ac_cv_header_stdc+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_header_stdc=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_cv_header_stdc=no
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552 if test $ac_cv_header_stdc = yes; then
7553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564 $EGREP "memchr" >/dev/null 2>&1; then
7567 ac_cv_header_stdc=no
7573 if test $ac_cv_header_stdc = yes; then
7574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7585 $EGREP "free" >/dev/null 2>&1; then
7588 ac_cv_header_stdc=no
7594 if test $ac_cv_header_stdc = yes; then
7595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7596 if test "$cross_compiling" = yes; then
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7606 #if ((' ' & 0x0FF) == 0x020)
7607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7610 # define ISLOWER(c) \
7611 (('a' <= (c) && (c) <= 'i') \
7612 || ('j' <= (c) && (c) <= 'r') \
7613 || ('s' <= (c) && (c) <= 'z'))
7614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7622 for (i = 0; i < 256; i++)
7623 if (XOR (islower (i), ISLOWER (i))
7624 || toupper (i) != TOUPPER (i))
7629 rm -f conftest$ac_exeext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7631 (eval $ac_link) 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7642 echo "$as_me: program exited with status $ac_status" >&5
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_header_stdc=no
7649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7655 if test $ac_cv_header_stdc = yes; then
7657 cat >>confdefs.h <<\_ACEOF
7658 #define STDC_HEADERS 1
7663 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7673 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7674 inttypes.h stdint.h unistd.h
7676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7677 echo "$as_me:$LINENO: checking for $ac_header" >&5
7678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7690 #include <$ac_header>
7692 rm -f conftest.$ac_objext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7694 (eval $ac_compile) 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try='test -z "$ac_c_werror_flag"
7702 || test ! -s conftest.err'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 eval "$as_ac_Header=yes"
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 eval "$as_ac_Header=no"
7721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7761 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/resource.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
7763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7765 echo "$as_me:$LINENO: checking for $ac_header" >&5
7766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7773 # Is the header compilable?
7774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 $ac_includes_default
7783 #include <$ac_header>
7785 rm -f conftest.$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 (eval $ac_compile) 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag"
7795 || test ! -s conftest.err'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; } &&
7801 { ac_try='test -s conftest.$ac_objext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 ac_header_compiler=yes
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_header_compiler=no
7814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7816 echo "${ECHO_T}$ac_header_compiler" >&6
7818 # Is the header present?
7819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <$ac_header>
7829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7832 grep -v '^ *+' conftest.er1 >conftest.err
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } >/dev/null; then
7837 if test -s conftest.err; then
7838 ac_cpp_err=$ac_c_preproc_warn_flag
7839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7846 if test -z "$ac_cpp_err"; then
7847 ac_header_preproc=yes
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_header_preproc=no
7854 rm -f conftest.err conftest.$ac_ext
7855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7856 echo "${ECHO_T}$ac_header_preproc" >&6
7858 # So? What about this header?
7859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7865 ac_header_preproc=yes
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7882 ## ---------------------------------------- ##
7883 ## Report this to pgsql-bugs@postgresql.org ##
7884 ## ---------------------------------------- ##
7887 sed "s/^/$as_me: WARNING: /" >&2
7890 echo "$as_me:$LINENO: checking for $ac_header" >&5
7891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 eval "$as_ac_Header=\$ac_header_preproc"
7897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7912 # netinet/in.h is included first.
7914 for ac_header in netinet/in.h
7916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918 echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926 # Is the header compilable?
7927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #include <$ac_header>
7938 rm -f conftest.$ac_objext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7940 (eval $ac_compile) 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag"
7948 || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_header_compiler=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_header_compiler=no
7967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7969 echo "${ECHO_T}$ac_header_compiler" >&6
7971 # Is the header present?
7972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <$ac_header>
7982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7983 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7990 if test -s conftest.err; then
7991 ac_cpp_err=$ac_c_preproc_warn_flag
7992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7999 if test -z "$ac_cpp_err"; then
8000 ac_header_preproc=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 ac_header_preproc=no
8007 rm -f conftest.err conftest.$ac_ext
8008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8009 echo "${ECHO_T}$ac_header_preproc" >&6
8011 # So? What about this header?
8012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8018 ac_header_preproc=yes
8021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8035 ## ---------------------------------------- ##
8036 ## Report this to pgsql-bugs@postgresql.org ##
8037 ## ---------------------------------------- ##
8040 sed "s/^/$as_me: WARNING: /" >&2
8043 echo "$as_me:$LINENO: checking for $ac_header" >&5
8044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 eval "$as_ac_Header=\$ac_header_preproc"
8050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8055 cat >>confdefs.h <<_ACEOF
8056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8064 for ac_header in netinet/tcp.h
8066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8067 echo "$as_me:$LINENO: checking for $ac_header" >&5
8068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 #ifdef HAVE_NETINET_IN_H
8080 #include <netinet/in.h>
8084 #include <$ac_header>
8086 rm -f conftest.$ac_objext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088 (eval $ac_compile) 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest.$ac_objext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 eval "$as_ac_Header=yes"
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 eval "$as_ac_Header=no"
8115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120 cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8129 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8131 for ac_header in readline/readline.h
8133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8135 echo "$as_me:$LINENO: checking for $ac_header" >&5
8136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8143 # Is the header compilable?
8144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 #include <$ac_header>
8155 rm -f conftest.$ac_objext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157 (eval $ac_compile) 2>conftest.er1
8159 grep -v '^ *+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -z "$ac_c_werror_flag"
8165 || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 ac_header_compiler=yes
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8182 ac_header_compiler=no
8184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8186 echo "${ECHO_T}$ac_header_compiler" >&6
8188 # Is the header present?
8189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 #include <$ac_header>
8199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } >/dev/null; then
8207 if test -s conftest.err; then
8208 ac_cpp_err=$ac_c_preproc_warn_flag
8209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8216 if test -z "$ac_cpp_err"; then
8217 ac_header_preproc=yes
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 ac_header_preproc=no
8224 rm -f conftest.err conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8226 echo "${ECHO_T}$ac_header_preproc" >&6
8228 # So? What about this header?
8229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8235 ac_header_preproc=yes
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8252 ## ---------------------------------------- ##
8253 ## Report this to pgsql-bugs@postgresql.org ##
8254 ## ---------------------------------------- ##
8257 sed "s/^/$as_me: WARNING: /" >&2
8260 echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 eval "$as_ac_Header=\$ac_header_preproc"
8267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8272 cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 for ac_header in readline.h
8280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8282 echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8290 # Is the header compilable?
8291 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 #include <$ac_header>
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag"
8312 || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest.$ac_objext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_header_compiler=yes
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_header_compiler=no
8331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8333 echo "${ECHO_T}$ac_header_compiler" >&6
8335 # Is the header present?
8336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #include <$ac_header>
8346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8349 grep -v '^ *+' conftest.er1 >conftest.err
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } >/dev/null; then
8354 if test -s conftest.err; then
8355 ac_cpp_err=$ac_c_preproc_warn_flag
8356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8363 if test -z "$ac_cpp_err"; then
8364 ac_header_preproc=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_header_preproc=no
8371 rm -f conftest.err conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8373 echo "${ECHO_T}$ac_header_preproc" >&6
8375 # So? What about this header?
8376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8382 ac_header_preproc=yes
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8399 ## ---------------------------------------- ##
8400 ## Report this to pgsql-bugs@postgresql.org ##
8401 ## ---------------------------------------- ##
8404 sed "s/^/$as_me: WARNING: /" >&2
8407 echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 eval "$as_ac_Header=\$ac_header_preproc"
8414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8419 cat >>confdefs.h <<_ACEOF
8420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8424 { { echo "$as_me:$LINENO: error: readline header not found
8425 If you have readline already installed, see config.log for details on the
8426 failure. It is possible the compiler isn't looking in the proper directory.
8427 Use --without-readline to disable readline support." >&5
8428 echo "$as_me: error: readline header not found
8429 If you have readline already installed, see config.log for details on the
8430 failure. It is possible the compiler isn't looking in the proper directory.
8431 Use --without-readline to disable readline support." >&2;}
8432 { (exit 1); exit 1; }; }
8442 for ac_header in readline/history.h
8444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8454 # Is the header compilable?
8455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8464 #include <$ac_header>
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_header_compiler=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_header_compiler=no
8495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8497 echo "${ECHO_T}$ac_header_compiler" >&6
8499 # Is the header present?
8500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 #include <$ac_header>
8510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } >/dev/null; then
8518 if test -s conftest.err; then
8519 ac_cpp_err=$ac_c_preproc_warn_flag
8520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8527 if test -z "$ac_cpp_err"; then
8528 ac_header_preproc=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_header_preproc=no
8535 rm -f conftest.err conftest.$ac_ext
8536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8537 echo "${ECHO_T}$ac_header_preproc" >&6
8539 # So? What about this header?
8540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8546 ac_header_preproc=yes
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8563 ## ---------------------------------------- ##
8564 ## Report this to pgsql-bugs@postgresql.org ##
8565 ## ---------------------------------------- ##
8568 sed "s/^/$as_me: WARNING: /" >&2
8571 echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 eval "$as_ac_Header=\$ac_header_preproc"
8578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8583 cat >>confdefs.h <<_ACEOF
8584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8589 for ac_header in history.h
8591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8593 echo "$as_me:$LINENO: checking for $ac_header" >&5
8594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8601 # Is the header compilable?
8602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 #include <$ac_header>
8613 rm -f conftest.$ac_objext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8615 (eval $ac_compile) 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag"
8623 || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest.$ac_objext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_header_compiler=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_header_compiler=no
8642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8644 echo "${ECHO_T}$ac_header_compiler" >&6
8646 # Is the header present?
8647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 #include <$ac_header>
8657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } >/dev/null; then
8665 if test -s conftest.err; then
8666 ac_cpp_err=$ac_c_preproc_warn_flag
8667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674 if test -z "$ac_cpp_err"; then
8675 ac_header_preproc=yes
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ac_header_preproc=no
8682 rm -f conftest.err conftest.$ac_ext
8683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8684 echo "${ECHO_T}$ac_header_preproc" >&6
8686 # So? What about this header?
8687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8693 ac_header_preproc=yes
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8710 ## ---------------------------------------- ##
8711 ## Report this to pgsql-bugs@postgresql.org ##
8712 ## ---------------------------------------- ##
8715 sed "s/^/$as_me: WARNING: /" >&2
8718 echo "$as_me:$LINENO: checking for $ac_header" >&5
8719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 eval "$as_ac_Header=\$ac_header_preproc"
8725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 { { echo "$as_me:$LINENO: error: history header not found
8736 If you have readline already installed, see config.log for details on the
8737 failure. It is possible the compiler isn't looking in the proper directory.
8738 Use --without-readline to disable readline support." >&5
8739 echo "$as_me: error: history header not found
8740 If you have readline already installed, see config.log for details on the
8741 failure. It is possible the compiler isn't looking in the proper directory.
8742 Use --without-readline to disable readline support." >&2;}
8743 { (exit 1); exit 1; }; }
8754 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8755 # Some installations of libedit usurp /usr/include/readline/, which seems
8756 # bad practice, since in combined installations readline will have its headers
8757 # there. We might have to resort to AC_EGREP checks to make sure we found
8758 # the proper header...
8760 for ac_header in editline/readline.h
8762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo "$as_me:$LINENO: checking for $ac_header" >&5
8765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8772 # Is the header compilable?
8773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 $ac_includes_default
8782 #include <$ac_header>
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_header_compiler=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_header_compiler=no
8813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815 echo "${ECHO_T}$ac_header_compiler" >&6
8817 # Is the header present?
8818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 #include <$ac_header>
8828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } >/dev/null; then
8836 if test -s conftest.err; then
8837 ac_cpp_err=$ac_c_preproc_warn_flag
8838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8845 if test -z "$ac_cpp_err"; then
8846 ac_header_preproc=yes
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_header_preproc=no
8853 rm -f conftest.err conftest.$ac_ext
8854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8855 echo "${ECHO_T}$ac_header_preproc" >&6
8857 # So? What about this header?
8858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8864 ac_header_preproc=yes
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8881 ## ---------------------------------------- ##
8882 ## Report this to pgsql-bugs@postgresql.org ##
8883 ## ---------------------------------------- ##
8886 sed "s/^/$as_me: WARNING: /" >&2
8889 echo "$as_me:$LINENO: checking for $ac_header" >&5
8890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 eval "$as_ac_Header=\$ac_header_preproc"
8896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8901 cat >>confdefs.h <<_ACEOF
8902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907 for ac_header in readline.h
8909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8911 echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8919 # Is the header compilable?
8920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8929 #include <$ac_header>
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_header_compiler=yes
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 ac_header_compiler=no
8960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8962 echo "${ECHO_T}$ac_header_compiler" >&6
8964 # Is the header present?
8965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 #include <$ac_header>
8975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } >/dev/null; then
8983 if test -s conftest.err; then
8984 ac_cpp_err=$ac_c_preproc_warn_flag
8985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8992 if test -z "$ac_cpp_err"; then
8993 ac_header_preproc=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_header_preproc=no
9000 rm -f conftest.err conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9002 echo "${ECHO_T}$ac_header_preproc" >&6
9004 # So? What about this header?
9005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9011 ac_header_preproc=yes
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9028 ## ---------------------------------------- ##
9029 ## Report this to pgsql-bugs@postgresql.org ##
9030 ## ---------------------------------------- ##
9033 sed "s/^/$as_me: WARNING: /" >&2
9036 echo "$as_me:$LINENO: checking for $ac_header" >&5
9037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 eval "$as_ac_Header=\$ac_header_preproc"
9043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9048 cat >>confdefs.h <<_ACEOF
9049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9054 for ac_header in readline/readline.h
9056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058 echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9066 # Is the header compilable?
9067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 $ac_includes_default
9076 #include <$ac_header>
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest.$ac_objext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_header_compiler=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_header_compiler=no
9107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9109 echo "${ECHO_T}$ac_header_compiler" >&6
9111 # Is the header present?
9112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9114 cat >conftest.$ac_ext <<_ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9120 #include <$ac_header>
9122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } >/dev/null; then
9130 if test -s conftest.err; then
9131 ac_cpp_err=$ac_c_preproc_warn_flag
9132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9139 if test -z "$ac_cpp_err"; then
9140 ac_header_preproc=yes
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9145 ac_header_preproc=no
9147 rm -f conftest.err conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9149 echo "${ECHO_T}$ac_header_preproc" >&6
9151 # So? What about this header?
9152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9158 ac_header_preproc=yes
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9175 ## ---------------------------------------- ##
9176 ## Report this to pgsql-bugs@postgresql.org ##
9177 ## ---------------------------------------- ##
9180 sed "s/^/$as_me: WARNING: /" >&2
9183 echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 eval "$as_ac_Header=\$ac_header_preproc"
9190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200 { { echo "$as_me:$LINENO: error: readline header not found
9201 If you have libedit already installed, see config.log for details on the
9202 failure. It is possible the compiler isn't looking in the proper directory.
9203 Use --without-readline to disable libedit support." >&5
9204 echo "$as_me: error: readline header not found
9205 If you have libedit already installed, see config.log for details on the
9206 failure. It is possible the compiler isn't looking in the proper directory.
9207 Use --without-readline to disable libedit support." >&2;}
9208 { (exit 1); exit 1; }; }
9221 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9222 # not be there at all. Hence, don't complain if not found. We must check
9223 # though, since in yet other versions it is an independent header.
9225 for ac_header in editline/history.h
9227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237 # Is the header compilable?
9238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9247 #include <$ac_header>
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 ac_header_compiler=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_compiler=no
9278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9280 echo "${ECHO_T}$ac_header_compiler" >&6
9282 # Is the header present?
9283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 #include <$ac_header>
9293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } >/dev/null; then
9301 if test -s conftest.err; then
9302 ac_cpp_err=$ac_c_preproc_warn_flag
9303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9310 if test -z "$ac_cpp_err"; then
9311 ac_header_preproc=yes
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_header_preproc=no
9318 rm -f conftest.err conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9320 echo "${ECHO_T}$ac_header_preproc" >&6
9322 # So? What about this header?
9323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9329 ac_header_preproc=yes
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9346 ## ---------------------------------------- ##
9347 ## Report this to pgsql-bugs@postgresql.org ##
9348 ## ---------------------------------------- ##
9351 sed "s/^/$as_me: WARNING: /" >&2
9354 echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 eval "$as_ac_Header=\$ac_header_preproc"
9361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9366 cat >>confdefs.h <<_ACEOF
9367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9372 for ac_header in history.h
9374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo "$as_me:$LINENO: checking for $ac_header" >&5
9377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9384 # Is the header compilable?
9385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 $ac_includes_default
9394 #include <$ac_header>
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_header_compiler=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 ac_header_compiler=no
9425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 echo "${ECHO_T}$ac_header_compiler" >&6
9429 # Is the header present?
9430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <$ac_header>
9440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9443 grep -v '^ *+' conftest.er1 >conftest.err
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } >/dev/null; then
9448 if test -s conftest.err; then
9449 ac_cpp_err=$ac_c_preproc_warn_flag
9450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9457 if test -z "$ac_cpp_err"; then
9458 ac_header_preproc=yes
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_header_preproc=no
9465 rm -f conftest.err conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 echo "${ECHO_T}$ac_header_preproc" >&6
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9493 ## ---------------------------------------- ##
9494 ## Report this to pgsql-bugs@postgresql.org ##
9495 ## ---------------------------------------- ##
9498 sed "s/^/$as_me: WARNING: /" >&2
9501 echo "$as_me:$LINENO: checking for $ac_header" >&5
9502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 eval "$as_ac_Header=\$ac_header_preproc"
9508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9513 cat >>confdefs.h <<_ACEOF
9514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9519 for ac_header in readline/history.h
9521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9523 echo "$as_me:$LINENO: checking for $ac_header" >&5
9524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9531 # Is the header compilable?
9532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 $ac_includes_default
9541 #include <$ac_header>
9543 rm -f conftest.$ac_objext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545 (eval $ac_compile) 2>conftest.er1
9547 grep -v '^ *+' conftest.er1 >conftest.err
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -z "$ac_c_werror_flag"
9553 || test ! -s conftest.err'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest.$ac_objext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_header_compiler=yes
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9570 ac_header_compiler=no
9572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9574 echo "${ECHO_T}$ac_header_compiler" >&6
9576 # Is the header present?
9577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <$ac_header>
9587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9590 grep -v '^ *+' conftest.er1 >conftest.err
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } >/dev/null; then
9595 if test -s conftest.err; then
9596 ac_cpp_err=$ac_c_preproc_warn_flag
9597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9604 if test -z "$ac_cpp_err"; then
9605 ac_header_preproc=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 ac_header_preproc=no
9612 rm -f conftest.err conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9614 echo "${ECHO_T}$ac_header_preproc" >&6
9616 # So? What about this header?
9617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9623 ac_header_preproc=yes
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9640 ## ---------------------------------------- ##
9641 ## Report this to pgsql-bugs@postgresql.org ##
9642 ## ---------------------------------------- ##
9645 sed "s/^/$as_me: WARNING: /" >&2
9648 echo "$as_me:$LINENO: checking for $ac_header" >&5
9649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 eval "$as_ac_Header=\$ac_header_preproc"
9655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678 if test "$with_zlib" = yes; then
9679 if test "${ac_cv_header_zlib_h+set}" = set; then
9680 echo "$as_me:$LINENO: checking for zlib.h" >&5
9681 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9682 if test "${ac_cv_header_zlib_h+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9686 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9688 # Is the header compilable?
9689 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9690 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9691 cat >conftest.$ac_ext <<_ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 $ac_includes_default
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag"
9710 || test ! -s conftest.err'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest.$ac_objext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_header_compiler=yes
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_header_compiler=no
9729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6
9733 # Is the header present?
9734 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9735 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } >/dev/null; then
9752 if test -s conftest.err; then
9753 ac_cpp_err=$ac_c_preproc_warn_flag
9754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9761 if test -z "$ac_cpp_err"; then
9762 ac_header_preproc=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_header_preproc=no
9769 rm -f conftest.err conftest.$ac_ext
9770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 echo "${ECHO_T}$ac_header_preproc" >&6
9773 # So? What about this header?
9774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9776 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9777 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9779 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9780 ac_header_preproc=yes
9783 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9784 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9786 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9788 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9790 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9792 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9794 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9797 ## ---------------------------------------- ##
9798 ## Report this to pgsql-bugs@postgresql.org ##
9799 ## ---------------------------------------- ##
9802 sed "s/^/$as_me: WARNING: /" >&2
9805 echo "$as_me:$LINENO: checking for zlib.h" >&5
9806 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9807 if test "${ac_cv_header_zlib_h+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 ac_cv_header_zlib_h=$ac_header_preproc
9812 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9813 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9816 if test $ac_cv_header_zlib_h = yes; then
9819 { { echo "$as_me:$LINENO: error: zlib header not found
9820 If you have zlib already installed, see config.log for details on the
9821 failure. It is possible the compiler isn't looking in the proper directory.
9822 Use --without-zlib to disable zlib support." >&5
9823 echo "$as_me: error: zlib header not found
9824 If you have zlib already installed, see config.log for details on the
9825 failure. It is possible the compiler isn't looking in the proper directory.
9826 Use --without-zlib to disable zlib support." >&2;}
9827 { (exit 1); exit 1; }; }
9833 if test "$with_krb5" = yes ; then
9834 if test "${ac_cv_header_krb5_h+set}" = set; then
9835 echo "$as_me:$LINENO: checking for krb5.h" >&5
9836 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9837 if test "${ac_cv_header_krb5_h+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9841 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9843 # Is the header compilable?
9844 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9845 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 $ac_includes_default
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_header_compiler=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_header_compiler=no
9884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9890 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev/null; then
9907 if test -s conftest.err; then
9908 ac_cpp_err=$ac_c_preproc_warn_flag
9909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_preproc=no
9924 rm -f conftest.err conftest.$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9935 ac_header_preproc=yes
9938 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9952 ## ---------------------------------------- ##
9953 ## Report this to pgsql-bugs@postgresql.org ##
9954 ## ---------------------------------------- ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 echo "$as_me:$LINENO: checking for krb5.h" >&5
9961 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9962 if test "${ac_cv_header_krb5_h+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_cv_header_krb5_h=$ac_header_preproc
9967 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9968 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9971 if test $ac_cv_header_krb5_h = yes; then
9974 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9975 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9976 { (exit 1); exit 1; }; }
9982 if test "$with_openssl" = yes ; then
9983 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9984 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9985 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9986 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9990 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9992 # Is the header compilable?
9993 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9994 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 $ac_includes_default
10002 #include <openssl/ssl.h>
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag"
10014 || test ! -s conftest.err'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest.$ac_objext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_header_compiler=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_header_compiler=no
10033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10035 echo "${ECHO_T}$ac_header_compiler" >&6
10037 # Is the header present?
10038 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10039 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <openssl/ssl.h>
10048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null; then
10056 if test -s conftest.err; then
10057 ac_cpp_err=$ac_c_preproc_warn_flag
10058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10065 if test -z "$ac_cpp_err"; then
10066 ac_header_preproc=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_header_preproc=no
10073 rm -f conftest.err conftest.$ac_ext
10074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10075 echo "${ECHO_T}$ac_header_preproc" >&6
10077 # So? What about this header?
10078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10080 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10081 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10083 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10084 ac_header_preproc=yes
10087 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10088 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10090 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10092 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10094 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10096 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10098 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10101 ## ---------------------------------------- ##
10102 ## Report this to pgsql-bugs@postgresql.org ##
10103 ## ---------------------------------------- ##
10106 sed "s/^/$as_me: WARNING: /" >&2
10109 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10110 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10111 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10116 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10117 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10120 if test $ac_cv_header_openssl_ssl_h = yes; then
10123 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10124 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10125 { (exit 1); exit 1; }; }
10129 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10130 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10131 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10132 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10136 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10138 # Is the header compilable?
10139 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10140 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 $ac_includes_default
10148 #include <openssl/err.h>
10150 rm -f conftest.$ac_objext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag"
10160 || test ! -s conftest.err'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_header_compiler=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_header_compiler=no
10179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181 echo "${ECHO_T}$ac_header_compiler" >&6
10183 # Is the header present?
10184 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10185 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <openssl/err.h>
10194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10197 grep -v '^ *+' conftest.er1 >conftest.err
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10211 if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_header_preproc=no
10219 rm -f conftest.err conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10221 echo "${ECHO_T}$ac_header_preproc" >&6
10223 # So? What about this header?
10224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10226 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10227 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10229 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10230 ac_header_preproc=yes
10233 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10234 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10236 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10238 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10240 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10242 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10244 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10247 ## ---------------------------------------- ##
10248 ## Report this to pgsql-bugs@postgresql.org ##
10249 ## ---------------------------------------- ##
10252 sed "s/^/$as_me: WARNING: /" >&2
10255 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10256 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10257 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 ac_cv_header_openssl_err_h=$ac_header_preproc
10262 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10263 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10266 if test $ac_cv_header_openssl_err_h = yes; then
10269 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10270 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10271 { (exit 1); exit 1; }; }
10277 if test "$with_pam" = yes ; then
10279 for ac_header in security/pam_appl.h
10281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10283 echo "$as_me:$LINENO: checking for $ac_header" >&5
10284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10291 # Is the header compilable?
10292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10294 cat >conftest.$ac_ext <<_ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300 $ac_includes_default
10301 #include <$ac_header>
10303 rm -f conftest.$ac_objext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10305 (eval $ac_compile) 2>conftest.er1
10307 grep -v '^ *+' conftest.er1 >conftest.err
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest.$ac_objext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_header_compiler=yes
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_header_compiler=no
10332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334 echo "${ECHO_T}$ac_header_compiler" >&6
10336 # Is the header present?
10337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10339 cat >conftest.$ac_ext <<_ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <$ac_header>
10347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } >/dev/null; then
10355 if test -s conftest.err; then
10356 ac_cpp_err=$ac_c_preproc_warn_flag
10357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10364 if test -z "$ac_cpp_err"; then
10365 ac_header_preproc=yes
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 ac_header_preproc=no
10372 rm -f conftest.err conftest.$ac_ext
10373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374 echo "${ECHO_T}$ac_header_preproc" >&6
10376 # So? What about this header?
10377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10400 ## ---------------------------------------- ##
10401 ## Report this to pgsql-bugs@postgresql.org ##
10402 ## ---------------------------------------- ##
10405 sed "s/^/$as_me: WARNING: /" >&2
10408 echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 eval "$as_ac_Header=\$ac_header_preproc"
10415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426 for ac_header in pam/pam_appl.h
10428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10430 echo "$as_me:$LINENO: checking for $ac_header" >&5
10431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10438 # Is the header compilable?
10439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10441 cat >conftest.$ac_ext <<_ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #include <$ac_header>
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>conftest.er1
10454 grep -v '^ *+' conftest.er1 >conftest.err
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_header_compiler=yes
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_header_compiler=no
10479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10481 echo "${ECHO_T}$ac_header_compiler" >&6
10483 # Is the header present?
10484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 #include <$ac_header>
10494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } >/dev/null; then
10502 if test -s conftest.err; then
10503 ac_cpp_err=$ac_c_preproc_warn_flag
10504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10511 if test -z "$ac_cpp_err"; then
10512 ac_header_preproc=yes
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ac_header_preproc=no
10519 rm -f conftest.err conftest.$ac_ext
10520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10521 echo "${ECHO_T}$ac_header_preproc" >&6
10523 # So? What about this header?
10524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10530 ac_header_preproc=yes
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10547 ## ---------------------------------------- ##
10548 ## Report this to pgsql-bugs@postgresql.org ##
10549 ## ---------------------------------------- ##
10552 sed "s/^/$as_me: WARNING: /" >&2
10555 echo "$as_me:$LINENO: checking for $ac_header" >&5
10556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 eval "$as_ac_Header=\$ac_header_preproc"
10562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10572 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10573 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10574 { (exit 1); exit 1; }; }
10585 if test "$with_libxml" = yes ; then
10586 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10587 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10588 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10589 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10593 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10595 # Is the header compilable?
10596 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
10597 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 $ac_includes_default
10605 #include <libxml/parser.h>
10607 rm -f conftest.$ac_objext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609 (eval $ac_compile) 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag"
10617 || test ! -s conftest.err'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; } &&
10623 { ac_try='test -s conftest.$ac_objext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_header_compiler=yes
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_header_compiler=no
10636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10638 echo "${ECHO_T}$ac_header_compiler" >&6
10640 # Is the header present?
10641 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
10642 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 #include <libxml/parser.h>
10651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } >/dev/null; then
10659 if test -s conftest.err; then
10660 ac_cpp_err=$ac_c_preproc_warn_flag
10661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10668 if test -z "$ac_cpp_err"; then
10669 ac_header_preproc=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_header_preproc=no
10676 rm -f conftest.err conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10678 echo "${ECHO_T}$ac_header_preproc" >&6
10680 # So? What about this header?
10681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10683 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
10684 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
10686 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
10687 ac_header_preproc=yes
10690 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
10691 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
10693 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
10695 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
10697 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
10699 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
10701 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
10704 ## ---------------------------------------- ##
10705 ## Report this to pgsql-bugs@postgresql.org ##
10706 ## ---------------------------------------- ##
10709 sed "s/^/$as_me: WARNING: /" >&2
10712 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10713 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10714 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 ac_cv_header_libxml_parser_h=$ac_header_preproc
10719 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10720 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10723 if test $ac_cv_header_libxml_parser_h = yes; then
10726 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
10727 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
10728 { (exit 1); exit 1; }; }
10734 if test "$with_ldap" = yes ; then
10735 if test "$PORTNAME" != "win32"; then
10737 for ac_header in ldap.h
10739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10741 echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10749 # Is the header compilable?
10750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 $ac_includes_default
10759 #include <$ac_header>
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_header_compiler=yes
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_header_compiler=no
10790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10792 echo "${ECHO_T}$ac_header_compiler" >&6
10794 # Is the header present?
10795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <$ac_header>
10805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } >/dev/null; then
10813 if test -s conftest.err; then
10814 ac_cpp_err=$ac_c_preproc_warn_flag
10815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10822 if test -z "$ac_cpp_err"; then
10823 ac_header_preproc=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_header_preproc=no
10830 rm -f conftest.err conftest.$ac_ext
10831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10832 echo "${ECHO_T}$ac_header_preproc" >&6
10834 # So? What about this header?
10835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10841 ac_header_preproc=yes
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10858 ## ---------------------------------------- ##
10859 ## Report this to pgsql-bugs@postgresql.org ##
10860 ## ---------------------------------------- ##
10863 sed "s/^/$as_me: WARNING: /" >&2
10866 echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 eval "$as_ac_Header=\$ac_header_preproc"
10873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10878 cat >>confdefs.h <<_ACEOF
10879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10883 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10884 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10885 { (exit 1); exit 1; }; }
10892 for ac_header in winldap.h
10894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10895 echo "$as_me:$LINENO: checking for $ac_header" >&5
10896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <windows.h>
10910 #include <$ac_header>
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 eval "$as_ac_Header=yes"
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 eval "$as_ac_Header=no"
10941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10946 cat >>confdefs.h <<_ACEOF
10947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10952 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10953 { (exit 1); exit 1; }; }
10961 if test "$with_bonjour" = yes ; then
10962 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10963 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10964 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10965 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10969 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10971 # Is the header compilable?
10972 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10973 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 $ac_includes_default
10981 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10983 rm -f conftest.$ac_objext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_header_compiler=yes
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_header_compiler=no
11012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11014 echo "${ECHO_T}$ac_header_compiler" >&6
11016 # Is the header present?
11017 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
11018 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } >/dev/null; then
11035 if test -s conftest.err; then
11036 ac_cpp_err=$ac_c_preproc_warn_flag
11037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11044 if test -z "$ac_cpp_err"; then
11045 ac_header_preproc=yes
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_header_preproc=no
11052 rm -f conftest.err conftest.$ac_ext
11053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11054 echo "${ECHO_T}$ac_header_preproc" >&6
11056 # So? What about this header?
11057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11059 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
11060 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
11062 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
11063 ac_header_preproc=yes
11066 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
11067 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
11069 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
11071 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
11073 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
11075 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
11077 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
11080 ## ---------------------------------------- ##
11081 ## Report this to pgsql-bugs@postgresql.org ##
11082 ## ---------------------------------------- ##
11085 sed "s/^/$as_me: WARNING: /" >&2
11088 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11089 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11090 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
11095 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11096 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11099 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
11102 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
11103 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
11104 { (exit 1); exit 1; }; }
11112 ## Types, structures, compiler characteristics
11115 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11116 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11117 if test "${ac_cv_c_const+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11130 /* FIXME: Include the comments suggested by Paul. */
11131 #ifndef __cplusplus
11132 /* Ultrix mips cc rejects this. */
11133 typedef int charset[2];
11135 /* SunOS 4.1.1 cc rejects this. */
11136 char const *const *ccp;
11138 /* NEC SVR4.0.2 mips cc rejects this. */
11139 struct point {int x, y;};
11140 static struct point const zero = {0,0};
11141 /* AIX XL C 1.02.0.0 rejects this.
11142 It does not let you subtract one const X* pointer from another in
11143 an arm of an if-expression whose if-part is not a constant
11145 const char *g = "string";
11146 ccp = &g + (g ? g-g : 0);
11147 /* HPUX 7.0 cc rejects these. */
11150 ccp = (char const *const *) p;
11151 { /* SCO 3.2v4 cc rejects this. */
11153 char const *s = 0 ? (char *) 0 : (char const *) 0;
11157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11158 int x[] = {25, 17};
11159 const int *foo = &x[0];
11162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11163 typedef const int *iptr;
11167 { /* AIX XL C 1.02.0.0 rejects this saying
11168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11169 struct s { int j; const int *ap[3]; };
11170 struct s *b; b->j = 5;
11172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11173 const int foo = 10;
11181 rm -f conftest.$ac_objext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag"
11191 || test ! -s conftest.err'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11212 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11213 echo "${ECHO_T}$ac_cv_c_const" >&6
11214 if test $ac_cv_c_const = no; then
11216 cat >>confdefs.h <<\_ACEOF
11223 echo "$as_me:$LINENO: checking for inline" >&5
11224 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11225 if test "${ac_cv_c_inline+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 for ac_kw in inline __inline__ __inline; do
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 #ifndef __cplusplus
11238 static $ac_kw foo_t static_foo () {return 0; }
11239 $ac_kw int foo () {return 0; }
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>conftest.er1
11247 grep -v '^ *+' conftest.er1 >conftest.err
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest.$ac_objext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 ac_cv_c_inline=$ac_kw; break
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11276 echo "${ECHO_T}$ac_cv_c_inline" >&6
11277 case $ac_cv_c_inline in
11280 cat >>confdefs.h <<\_ACEOF
11284 *) cat >>confdefs.h <<_ACEOF
11285 #define inline $ac_cv_c_inline
11290 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11291 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11292 if test "${ac_cv_c_stringize+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11303 char *s = x(teststring);
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306 $EGREP "#teststring" >/dev/null 2>&1; then
11307 ac_cv_c_stringize=no
11309 ac_cv_c_stringize=yes
11314 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11315 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11316 if test $ac_cv_c_stringize = yes; then
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_STRINGIZE 1
11324 echo "$as_me:$LINENO: checking for signed types" >&5
11325 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11326 if test "${pgac_cv_c_signed+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11339 signed char c; signed short s; signed int i;
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag"
11354 || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 pgac_cv_c_signed=yes
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 pgac_cv_c_signed=no
11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11376 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11377 if test x"$pgac_cv_c_signed" = xno ; then
11379 cat >>confdefs.h <<\_ACEOF
11384 echo "$as_me:$LINENO: checking for working volatile" >&5
11385 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11386 if test "${ac_cv_c_volatile+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 cat >conftest.$ac_ext <<_ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_c_volatile=yes
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ac_cv_c_volatile=no
11435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11437 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11438 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11439 if test $ac_cv_c_volatile = no; then
11441 cat >>confdefs.h <<\_ACEOF
11447 echo "$as_me:$LINENO: checking for __func__" >&5
11448 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11449 if test "${pgac_cv_funcname_func_support+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 cat >conftest.$ac_ext <<_ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11462 printf("%s\n", __func__);
11467 rm -f conftest.$ac_objext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469 (eval $ac_compile) 2>conftest.er1
11471 grep -v '^ *+' conftest.er1 >conftest.err
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag"
11477 || test ! -s conftest.err'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 pgac_cv_funcname_func_support=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 pgac_cv_funcname_func_support=no
11496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11499 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11500 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_FUNCNAME__FUNC 1
11507 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11508 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11509 if test "${pgac_cv_funcname_function_support+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11522 printf("%s\n", __FUNCTION__);
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11531 grep -v '^ *+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag"
11537 || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 pgac_cv_funcname_function_support=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 pgac_cv_funcname_function_support=no
11556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11559 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11560 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_FUNCNAME__FUNCTION 1
11568 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11570 if test "${ac_cv_struct_tm+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <sys/types.h>
11585 struct tm *tp; tp->tm_sec;
11590 rm -f conftest.$ac_objext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
11594 grep -v '^ *+' conftest.er1 >conftest.err
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_c_werror_flag"
11600 || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest.$ac_objext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_cv_struct_tm=time.h
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_cv_struct_tm=sys/time.h
11619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11621 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11622 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11623 if test $ac_cv_struct_tm = sys/time.h; then
11625 cat >>confdefs.h <<\_ACEOF
11626 #define TM_IN_SYS_TIME 1
11631 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11632 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11633 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 #include <sys/types.h>
11643 #include <$ac_cv_struct_tm>
11649 static struct tm ac_aggr;
11650 if (ac_aggr.tm_zone)
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_tm_tm_zone=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 cat >conftest.$ac_ext <<_ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <sys/types.h>
11690 #include <$ac_cv_struct_tm>
11696 static struct tm ac_aggr;
11697 if (sizeof ac_aggr.tm_zone)
11703 rm -f conftest.$ac_objext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705 (eval $ac_compile) 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag"
11713 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_cv_member_struct_tm_tm_zone=yes
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 ac_cv_member_struct_tm_tm_zone=no
11732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11737 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11738 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define HAVE_STRUCT_TM_TM_ZONE 1
11747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11749 cat >>confdefs.h <<\_ACEOF
11750 #define HAVE_TM_ZONE 1
11754 echo "$as_me:$LINENO: checking for tzname" >&5
11755 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11756 if test "${ac_cv_var_tzname+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 cat >conftest.$ac_ext <<_ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11766 #ifndef tzname /* For SGI. */
11767 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_var_tzname=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_var_tzname=no
11807 rm -f conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11811 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11812 if test $ac_cv_var_tzname = yes; then
11814 cat >>confdefs.h <<\_ACEOF
11815 #define HAVE_TZNAME 1
11820 echo "$as_me:$LINENO: checking for union semun" >&5
11821 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11822 if test "${ac_cv_type_union_semun+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #include <sys/types.h>
11832 #include <sys/ipc.h>
11833 #include <sys/sem.h>
11838 if ((union semun *) 0)
11840 if (sizeof (union semun))
11846 rm -f conftest.$ac_objext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_cv_type_union_semun=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_cv_type_union_semun=no
11875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11877 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11878 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11879 if test $ac_cv_type_union_semun = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882 #define HAVE_UNION_SEMUN 1
11888 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11889 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11890 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 #include <sys/types.h>
11900 #ifdef HAVE_SYS_UN_H
11901 #include <sys/un.h>
11908 if ((struct sockaddr_un *) 0)
11910 if (sizeof (struct sockaddr_un))
11916 rm -f conftest.$ac_objext
11917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11918 (eval $ac_compile) 2>conftest.er1
11920 grep -v '^ *+' conftest.er1 >conftest.err
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag"
11926 || test ! -s conftest.err'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest.$ac_objext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 ac_cv_type_struct_sockaddr_un=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_type_struct_sockaddr_un=no
11945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11948 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11949 if test $ac_cv_type_struct_sockaddr_un = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define HAVE_STRUCT_SOCKADDR_UN 1
11956 cat >>confdefs.h <<\_ACEOF
11957 #define HAVE_UNIX_SOCKETS 1
11962 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11963 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11964 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <sys/types.h>
11974 #ifdef HAVE_SYS_SOCKET_H
11975 #include <sys/socket.h>
11982 if ((struct sockaddr_storage *) 0)
11984 if (sizeof (struct sockaddr_storage))
11990 rm -f conftest.$ac_objext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>conftest.er1
11994 grep -v '^ *+' conftest.er1 >conftest.err
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -z "$ac_c_werror_flag"
12000 || test ! -s conftest.err'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; } &&
12006 { ac_try='test -s conftest.$ac_objext'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_type_struct_sockaddr_storage=yes
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_cv_type_struct_sockaddr_storage=no
12019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12021 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
12022 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
12023 if test $ac_cv_type_struct_sockaddr_storage = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12032 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
12033 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
12034 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <sys/types.h>
12044 #ifdef HAVE_SYS_SOCKET_H
12045 #include <sys/socket.h>
12052 static struct sockaddr_storage ac_aggr;
12053 if (ac_aggr.ss_family)
12059 rm -f conftest.$ac_objext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest.$ac_objext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <sys/types.h>
12093 #ifdef HAVE_SYS_SOCKET_H
12094 #include <sys/socket.h>
12101 static struct sockaddr_storage ac_aggr;
12102 if (sizeof ac_aggr.ss_family)
12108 rm -f conftest.$ac_objext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110 (eval $ac_compile) 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag"
12118 || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_cv_member_struct_sockaddr_storage_ss_family=no
12137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12141 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
12142 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
12143 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12151 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
12152 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
12153 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 #include <sys/types.h>
12163 #ifdef HAVE_SYS_SOCKET_H
12164 #include <sys/socket.h>
12171 static struct sockaddr_storage ac_aggr;
12172 if (ac_aggr.__ss_family)
12178 rm -f conftest.$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 cat >conftest.$ac_ext <<_ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <sys/types.h>
12212 #ifdef HAVE_SYS_SOCKET_H
12213 #include <sys/socket.h>
12220 static struct sockaddr_storage ac_aggr;
12221 if (sizeof ac_aggr.__ss_family)
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>conftest.er1
12231 grep -v '^ *+' conftest.er1 >conftest.err
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag"
12237 || test ! -s conftest.err'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; } &&
12243 { ac_try='test -s conftest.$ac_objext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 ac_cv_member_struct_sockaddr_storage___ss_family=no
12256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12260 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12261 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12262 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12270 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12271 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12272 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <sys/types.h>
12282 #ifdef HAVE_SYS_SOCKET_H
12283 #include <sys/socket.h>
12290 static struct sockaddr_storage ac_aggr;
12291 if (ac_aggr.ss_len)
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 #include <sys/types.h>
12331 #ifdef HAVE_SYS_SOCKET_H
12332 #include <sys/socket.h>
12339 static struct sockaddr_storage ac_aggr;
12340 if (sizeof ac_aggr.ss_len)
12346 rm -f conftest.$ac_objext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 (eval $ac_compile) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest.$ac_objext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_member_struct_sockaddr_storage_ss_len=no
12375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12380 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12381 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12383 cat >>confdefs.h <<_ACEOF
12384 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12389 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12390 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12391 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 #include <sys/types.h>
12401 #ifdef HAVE_SYS_SOCKET_H
12402 #include <sys/socket.h>
12409 static struct sockaddr_storage ac_aggr;
12410 if (ac_aggr.__ss_len)
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <sys/types.h>
12450 #ifdef HAVE_SYS_SOCKET_H
12451 #include <sys/socket.h>
12458 static struct sockaddr_storage ac_aggr;
12459 if (sizeof ac_aggr.__ss_len)
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_cv_member_struct_sockaddr_storage___ss_len=no
12494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12499 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12500 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12508 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12509 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12510 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 #include <sys/types.h>
12520 #ifdef HAVE_SYS_SOCKET_H
12521 #include <sys/socket.h>
12528 static struct sockaddr ac_aggr;
12529 if (ac_aggr.sa_len)
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_member_struct_sockaddr_sa_len=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #include <sys/types.h>
12569 #ifdef HAVE_SYS_SOCKET_H
12570 #include <sys/socket.h>
12577 static struct sockaddr ac_aggr;
12578 if (sizeof ac_aggr.sa_len)
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_member_struct_sockaddr_sa_len=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_member_struct_sockaddr_sa_len=no
12613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12618 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12619 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12621 cat >>confdefs.h <<_ACEOF
12622 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12628 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12629 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12630 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 #include <sys/types.h>
12640 #include <sys/socket.h>
12647 if ((struct addrinfo *) 0)
12649 if (sizeof (struct addrinfo))
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_type_struct_addrinfo=yes
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_cv_type_struct_addrinfo=no
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12687 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12688 if test $ac_cv_type_struct_addrinfo = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691 #define HAVE_STRUCT_ADDRINFO 1
12698 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12699 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12700 if test "${ac_cv_type_struct_cmsgcred+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. */
12709 #include <sys/param.h>
12710 #include <sys/types.h>
12711 #include <sys/socket.h>
12712 #include <sys/ucred.h>
12717 if ((struct cmsgcred *) 0)
12719 if (sizeof (struct cmsgcred))
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727 (eval $ac_compile) 2>conftest.er1
12729 grep -v '^ *+' conftest.er1 >conftest.err
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_c_werror_flag"
12735 || test ! -s conftest.err'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; } &&
12741 { ac_try='test -s conftest.$ac_objext'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; }; then
12747 ac_cv_type_struct_cmsgcred=yes
12749 echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 ac_cv_type_struct_cmsgcred=no
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12757 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12758 if test $ac_cv_type_struct_cmsgcred = yes; then
12760 cat >>confdefs.h <<_ACEOF
12761 #define HAVE_STRUCT_CMSGCRED 1
12766 echo "$as_me:$LINENO: checking for struct fcred" >&5
12767 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12768 if test "${ac_cv_type_struct_fcred+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 cat >conftest.$ac_ext <<_ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 #include <sys/param.h>
12778 #include <sys/types.h>
12779 #include <sys/socket.h>
12780 #include <sys/ucred.h>
12785 if ((struct fcred *) 0)
12787 if (sizeof (struct fcred))
12793 rm -f conftest.$ac_objext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_type_struct_fcred=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_cv_type_struct_fcred=no
12822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12824 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12825 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12826 if test $ac_cv_type_struct_fcred = yes; then
12828 cat >>confdefs.h <<_ACEOF
12829 #define HAVE_STRUCT_FCRED 1
12834 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12835 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12836 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 cat >conftest.$ac_ext <<_ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 #include <sys/param.h>
12846 #include <sys/types.h>
12847 #include <sys/socket.h>
12848 #include <sys/ucred.h>
12853 if ((struct sockcred *) 0)
12855 if (sizeof (struct sockcred))
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_cv_type_struct_sockcred=yes
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_cv_type_struct_sockcred=no
12890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12893 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12894 if test $ac_cv_type_struct_sockcred = yes; then
12896 cat >>confdefs.h <<_ACEOF
12897 #define HAVE_STRUCT_SOCKCRED 1
12904 echo "$as_me:$LINENO: checking for struct option" >&5
12905 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12906 if test "${ac_cv_type_struct_option+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 #ifdef HAVE_GETOPT_H
12916 #include <getopt.h>
12922 if ((struct option *) 0)
12924 if (sizeof (struct option))
12930 rm -f conftest.$ac_objext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932 (eval $ac_compile) 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag"
12940 || test ! -s conftest.err'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest.$ac_objext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_cv_type_struct_option=yes
12954 echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12957 ac_cv_type_struct_option=no
12959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12961 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12962 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12963 if test $ac_cv_type_struct_option = yes; then
12965 cat >>confdefs.h <<_ACEOF
12966 #define HAVE_STRUCT_OPTION 1
12973 if test "$with_zlib" = yes; then
12974 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12975 # did not). While we could work around the lack of z_streamp, it
12976 # seems unwise to encourage people to use such old zlib versions...
12977 echo "$as_me:$LINENO: checking for z_streamp" >&5
12978 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12979 if test "${ac_cv_type_z_streamp+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 cat >conftest.$ac_ext <<_ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12993 if ((z_streamp *) 0)
12995 if (sizeof (z_streamp))
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag"
13011 || test ! -s conftest.err'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; } &&
13017 { ac_try='test -s conftest.$ac_objext'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_type_z_streamp=yes
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_cv_type_z_streamp=no
13030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13032 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
13033 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
13034 if test $ac_cv_type_z_streamp = yes; then
13037 { { echo "$as_me:$LINENO: error: zlib version is too old
13038 Use --without-zlib to disable zlib support." >&5
13039 echo "$as_me: error: zlib version is too old
13040 Use --without-zlib to disable zlib support." >&2;}
13041 { (exit 1); exit 1; }; }
13046 if test "$with_krb5" = yes; then
13047 # Check for differences between MIT and Heimdal (KTH) releases
13048 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
13049 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
13050 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13064 static krb5_ticket ac_aggr;
13065 if (ac_aggr.enc_part2)
13071 rm -f conftest.$ac_objext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>conftest.er1
13075 grep -v '^ *+' conftest.er1 >conftest.err
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -z "$ac_c_werror_flag"
13081 || test ! -s conftest.err'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest.$ac_objext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_member_krb5_ticket_enc_part2=yes
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13109 static krb5_ticket ac_aggr;
13110 if (sizeof ac_aggr.enc_part2)
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>conftest.er1
13120 grep -v '^ *+' conftest.er1 >conftest.err
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -z "$ac_c_werror_flag"
13126 || test ! -s conftest.err'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_member_krb5_ticket_enc_part2=yes
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_member_krb5_ticket_enc_part2=no
13145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13149 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
13150 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
13151 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_KRB5_TICKET_ENC_PART2 1
13159 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
13160 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
13161 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13175 static krb5_ticket ac_aggr;
13176 if (ac_aggr.client)
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_member_krb5_ticket_client=yes
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13220 static krb5_ticket ac_aggr;
13221 if (sizeof ac_aggr.client)
13227 rm -f conftest.$ac_objext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229 (eval $ac_compile) 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest.$ac_objext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_member_krb5_ticket_client=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_cv_member_krb5_ticket_client=no
13256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13260 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13261 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13262 if test $ac_cv_member_krb5_ticket_client = yes; then
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_KRB5_TICKET_CLIENT 1
13270 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13271 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13272 { (exit 1); exit 1; }; }
13277 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13278 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13279 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 cat >conftest.$ac_ext <<_ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13293 static krb5_error ac_aggr;
13294 if (ac_aggr.text.data)
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag"
13310 || test ! -s conftest.err'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest.$ac_objext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_member_krb5_error_text_data=yes
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13338 static krb5_error ac_aggr;
13339 if (sizeof ac_aggr.text.data)
13345 rm -f conftest.$ac_objext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347 (eval $ac_compile) 2>conftest.er1
13349 grep -v '^ *+' conftest.er1 >conftest.err
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_c_werror_flag"
13355 || test ! -s conftest.err'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_member_krb5_error_text_data=yes
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_member_krb5_error_text_data=no
13374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13378 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13379 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13380 if test $ac_cv_member_krb5_error_text_data = yes; then
13382 cat >>confdefs.h <<_ACEOF
13383 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13388 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13389 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13390 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13404 static krb5_error ac_aggr;
13405 if (ac_aggr.e_data)
13411 rm -f conftest.$ac_objext
13412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag"
13421 || test ! -s conftest.err'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } &&
13427 { ac_try='test -s conftest.$ac_objext'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13433 ac_cv_member_krb5_error_e_data=yes
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13449 static krb5_error ac_aggr;
13450 if (sizeof ac_aggr.e_data)
13456 rm -f conftest.$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13460 grep -v '^ *+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_member_krb5_error_e_data=yes
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_cv_member_krb5_error_e_data=no
13485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13489 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13490 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13491 if test $ac_cv_member_krb5_error_e_data = yes; then
13493 cat >>confdefs.h <<_ACEOF
13494 #define HAVE_KRB5_ERROR_E_DATA 1
13499 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13500 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13501 { (exit 1); exit 1; }; }
13510 ## Functions, global variables
13513 echo "$as_me:$LINENO: checking for int timezone" >&5
13514 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13515 if test "${pgac_cv_var_int_timezone+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13530 res = timezone / 60;
13532 res = _timezone / 60;
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest$ac_exeext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 pgac_cv_var_int_timezone=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 pgac_cv_var_int_timezone=no
13567 rm -f conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13570 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13571 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13572 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_INT_TIMEZONE
13579 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13580 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13581 if test "${ac_cv_func_accept_return+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 if test "${ac_cv_func_accept_arg1+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 if test "${ac_cv_func_accept_arg2+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 if test "${ac_cv_func_accept_arg3+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13594 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13595 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13596 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 #ifdef HAVE_SYS_TYPES_H
13604 #include <sys/types.h>
13606 #ifdef HAVE_SYS_SOCKET_H
13607 #include <sys/socket.h>
13609 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_not_found=no; break 4
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13652 if test "$ac_not_found" = yes; then
13653 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13654 echo "$as_me: error: could not determine argument types" >&2;}
13655 { (exit 1); exit 1; }; }
13657 if test "$ac_cv_func_accept_arg3" = "void"; then
13658 ac_cv_func_accept_arg3=int
13668 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
13669 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13671 cat >>confdefs.h <<_ACEOF
13672 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13676 cat >>confdefs.h <<_ACEOF
13677 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13681 cat >>confdefs.h <<_ACEOF
13682 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13686 cat >>confdefs.h <<_ACEOF
13687 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13691 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13692 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13693 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 #include <sys/time.h>
13706 struct timeval *tp;
13707 struct timezone *tzp;
13708 gettimeofday(tp,tzp);
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 pgac_cv_func_gettimeofday_1arg=no
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 pgac_cv_func_gettimeofday_1arg=yes
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13745 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13746 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13748 cat >>confdefs.h <<\_ACEOF
13749 #define GETTIMEOFDAY_1ARG
13776 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13779 echo "$as_me:$LINENO: checking for $ac_func" >&5
13780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13781 if eval "test \"\${$as_ac_var+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13792 #define $ac_func innocuous_$ac_func
13794 /* System header to define __stub macros and hopefully few prototypes,
13795 which can conflict with char $ac_func (); below.
13796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797 <limits.h> exists even on freestanding compilers. */
13800 # include <limits.h>
13802 # include <assert.h>
13807 /* Override any gcc2 internal prototype to avoid an error. */
13812 /* We use char because int might match the return type of a gcc2
13813 builtin and then its argument prototype would still apply. */
13815 /* The GNU C library defines this for functions which it implements
13816 to always fail with ENOSYS. Some functions are actually named
13817 something starting with __ and the normal name is an alias. */
13818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13821 char (*f) () = $ac_func;
13830 return f != $ac_func;
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>conftest.er1
13839 grep -v '^ *+' conftest.er1 >conftest.err
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 eval "$as_ac_var=yes"
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 eval "$as_ac_var=no"
13864 rm -f conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13869 if test `eval echo '${'$as_ac_var'}'` = yes; then
13870 cat >>confdefs.h <<_ACEOF
13871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13878 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13879 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13880 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 #include <unistd.h>
13895 char *p = (char *) fdatasync;
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag"
13912 || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_have_decl_fdatasync=yes
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_cv_have_decl_fdatasync=no
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13934 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13935 if test $ac_cv_have_decl_fdatasync = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_DECL_FDATASYNC 1
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_DECL_FDATASYNC 0
13951 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
13952 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
13953 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 cat >conftest.$ac_ext <<_ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13967 #ifndef posix_fadvise
13968 char *p = (char *) posix_fadvise;
13975 rm -f conftest.$ac_objext
13976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13977 (eval $ac_compile) 2>conftest.er1
13979 grep -v '^ *+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -z "$ac_c_werror_flag"
13985 || test ! -s conftest.err'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; } &&
13991 { ac_try='test -s conftest.$ac_objext'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_cv_have_decl_posix_fadvise=yes
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ac_cv_have_decl_posix_fadvise=no
14004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14006 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
14007 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
14008 if test $ac_cv_have_decl_posix_fadvise = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_DECL_POSIX_FADVISE 1
14016 cat >>confdefs.h <<_ACEOF
14017 #define HAVE_DECL_POSIX_FADVISE 0
14024 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
14025 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
14026 if test "${ac_cv_have_decl_strlcat+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 $ac_includes_default
14040 char *p = (char *) strlcat;
14047 rm -f conftest.$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag"
14057 || test ! -s conftest.err'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest.$ac_objext'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 ac_cv_have_decl_strlcat=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_have_decl_strlcat=no
14076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
14079 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
14080 if test $ac_cv_have_decl_strlcat = yes; then
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_DECL_STRLCAT 1
14088 cat >>confdefs.h <<_ACEOF
14089 #define HAVE_DECL_STRLCAT 0
14094 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
14095 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
14096 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14110 char *p = (char *) strlcpy;
14117 rm -f conftest.$ac_objext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119 (eval $ac_compile) 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag"
14127 || test ! -s conftest.err'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_cv_have_decl_strlcpy=yes
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_cv_have_decl_strlcpy=no
14146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
14149 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
14150 if test $ac_cv_have_decl_strlcpy = yes; then
14152 cat >>confdefs.h <<_ACEOF
14153 #define HAVE_DECL_STRLCPY 1
14158 cat >>confdefs.h <<_ACEOF
14159 #define HAVE_DECL_STRLCPY 0
14166 # This is probably only present on Darwin, but may as well check always
14167 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
14168 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
14169 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14183 #ifndef F_FULLFSYNC
14184 char *p = (char *) F_FULLFSYNC;
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>conftest.er1
14195 grep -v '^ *+' conftest.er1 >conftest.err
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_c_werror_flag"
14201 || test ! -s conftest.err'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14213 ac_cv_have_decl_F_FULLFSYNC=yes
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14218 ac_cv_have_decl_F_FULLFSYNC=no
14220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
14223 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
14224 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_DECL_F_FULLFSYNC 1
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_DECL_F_FULLFSYNC 0
14242 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
14243 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
14244 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 $ac_includes_default
14254 #include <netinet/in.h>
14259 if ((struct sockaddr_in6 *) 0)
14261 if (sizeof (struct sockaddr_in6))
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_cv_type_struct_sockaddr_in6=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_cv_type_struct_sockaddr_in6=no
14296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14298 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
14299 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
14300 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
14302 cat >>confdefs.h <<\_ACEOF
14303 #define HAVE_IPV6 1
14311 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
14312 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
14313 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <machine/vmparam.h>
14323 #include <sys/exec.h>
14328 PS_STRINGS->ps_nargvstr = 1;
14329 PS_STRINGS->ps_argvstr = "foo";
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14336 (eval $ac_link) 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -z "$ac_c_werror_flag"
14344 || test ! -s conftest.err'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; } &&
14350 { ac_try='test -s conftest$ac_exeext'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 pgac_cv_var_PS_STRINGS=yes
14358 echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14361 pgac_cv_var_PS_STRINGS=no
14363 rm -f conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
14367 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
14368 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
14370 cat >>confdefs.h <<\_ACEOF
14371 #define HAVE_PS_STRINGS
14377 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
14378 # is missing. Yes, there are machines that have only one. We may
14379 # also decide to use snprintf.c if snprintf() is present but does not
14380 # have all the features we need --- see below.
14382 if test "$PORTNAME" = "win32"; then
14383 # Win32 gets snprintf.c built unconditionally.
14385 # To properly translate all NLS languages strings, we must support the
14386 # *printf() %$ format, which allows *printf() arguments to be selected
14387 # by position in the translated string.
14389 # libintl versions < 0.13 use the native *printf() functions, and Win32
14390 # *printf() doesn't understand %$, so we must use our /port versions,
14391 # which do understand %$. libintl versions >= 0.13 include their own
14392 # *printf versions on Win32. The libintl 0.13 release note text is:
14394 # C format strings with positions, as they arise when a translator
14395 # needs to reorder a sentence, are now supported on all platforms.
14396 # On those few platforms (NetBSD and Woe32) for which the native
14397 # printf()/fprintf()/... functions don't support such format
14398 # strings, replacements are provided through <libintl.h>.
14400 # We could use libintl >= 0.13's *printf() if we were sure that we had
14401 # a litint >= 0.13 at runtime, but seeing that there is no clean way
14402 # to guarantee that, it is best to just use our own, so we are sure to
14403 # get %$ support. In include/port.h we disable the *printf() macros
14404 # that might have been defined by libintl.
14406 # We do this unconditionally whether NLS is used or not so we are sure
14407 # that all Win32 libraries and binaries behave the same.
14408 pgac_need_repl_snprintf=yes
14410 pgac_need_repl_snprintf=no
14412 for ac_func in snprintf
14414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14415 echo "$as_me:$LINENO: checking for $ac_func" >&5
14416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14417 if eval "test \"\${$as_ac_var+set}\" = set"; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14428 #define $ac_func innocuous_$ac_func
14430 /* System header to define __stub macros and hopefully few prototypes,
14431 which can conflict with char $ac_func (); below.
14432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14433 <limits.h> exists even on freestanding compilers. */
14436 # include <limits.h>
14438 # include <assert.h>
14443 /* Override any gcc2 internal prototype to avoid an error. */
14448 /* We use char because int might match the return type of a gcc2
14449 builtin and then its argument prototype would still apply. */
14451 /* The GNU C library defines this for functions which it implements
14452 to always fail with ENOSYS. Some functions are actually named
14453 something starting with __ and the normal name is an alias. */
14454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14457 char (*f) () = $ac_func;
14466 return f != $ac_func;
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14473 (eval $ac_link) 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest$ac_exeext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 eval "$as_ac_var=yes"
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 eval "$as_ac_var=no"
14500 rm -f conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14505 if test `eval echo '${'$as_ac_var'}'` = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511 pgac_need_repl_snprintf=yes
14516 for ac_func in vsnprintf
14518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14519 echo "$as_me:$LINENO: checking for $ac_func" >&5
14520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14521 if eval "test \"\${$as_ac_var+set}\" = set"; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14532 #define $ac_func innocuous_$ac_func
14534 /* System header to define __stub macros and hopefully few prototypes,
14535 which can conflict with char $ac_func (); below.
14536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14537 <limits.h> exists even on freestanding compilers. */
14540 # include <limits.h>
14542 # include <assert.h>
14547 /* Override any gcc2 internal prototype to avoid an error. */
14552 /* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14555 /* The GNU C library defines this for functions which it implements
14556 to always fail with ENOSYS. Some functions are actually named
14557 something starting with __ and the normal name is an alias. */
14558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14561 char (*f) () = $ac_func;
14570 return f != $ac_func;
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>conftest.er1
14579 grep -v '^ *+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -z "$ac_c_werror_flag"
14585 || test ! -s conftest.err'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest$ac_exeext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 eval "$as_ac_var=yes"
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 eval "$as_ac_var=no"
14604 rm -f conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14609 if test `eval echo '${'$as_ac_var'}'` = yes; then
14610 cat >>confdefs.h <<_ACEOF
14611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14615 pgac_need_repl_snprintf=yes
14622 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14623 # include/c.h will provide declarations. Note this is a separate test
14624 # from whether the functions exist in the C library --- there are
14625 # systems that have the functions but don't bother to declare them :-(
14627 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14628 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14629 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14643 char *p = (char *) snprintf;
14650 rm -f conftest.$ac_objext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag"
14660 || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_have_decl_snprintf=yes
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 ac_cv_have_decl_snprintf=no
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14681 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14682 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14683 if test $ac_cv_have_decl_snprintf = yes; then
14685 cat >>confdefs.h <<_ACEOF
14686 #define HAVE_DECL_SNPRINTF 1
14691 cat >>confdefs.h <<_ACEOF
14692 #define HAVE_DECL_SNPRINTF 0
14697 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14698 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14699 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14713 char *p = (char *) vsnprintf;
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_have_decl_vsnprintf=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_cv_have_decl_vsnprintf=no
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14752 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14753 if test $ac_cv_have_decl_vsnprintf = yes; then
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_DECL_VSNPRINTF 1
14761 cat >>confdefs.h <<_ACEOF
14762 #define HAVE_DECL_VSNPRINTF 0
14771 echo "$as_me:$LINENO: checking for isinf" >&5
14772 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14773 if test "${ac_cv_func_isinf+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14784 double glob_double;
14789 return isinf(glob_double) ? 0 : 1;
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14796 (eval $ac_link) 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag"
14804 || test ! -s conftest.err'
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); }; } &&
14810 { ac_try='test -s conftest$ac_exeext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_cv_func_isinf=yes
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_cv_func_isinf=no
14823 rm -f conftest.err conftest.$ac_objext \
14824 conftest$ac_exeext conftest.$ac_ext
14826 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14827 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14829 if test $ac_cv_func_isinf = yes ; then
14831 cat >>confdefs.h <<\_ACEOF
14832 #define HAVE_ISINF 1
14837 "isinf.$ac_objext" | \
14838 *" isinf.$ac_objext" | \
14839 "isinf.$ac_objext "* | \
14840 *" isinf.$ac_objext "* ) ;;
14841 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14844 # Look for a way to implement a substitute for isinf()
14849 for ac_func in fpclass fp_class fp_class_d class
14851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14852 echo "$as_me:$LINENO: checking for $ac_func" >&5
14853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14854 if eval "test \"\${$as_ac_var+set}\" = set"; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14865 #define $ac_func innocuous_$ac_func
14867 /* System header to define __stub macros and hopefully few prototypes,
14868 which can conflict with char $ac_func (); below.
14869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14870 <limits.h> exists even on freestanding compilers. */
14873 # include <limits.h>
14875 # include <assert.h>
14880 /* Override any gcc2 internal prototype to avoid an error. */
14885 /* We use char because int might match the return type of a gcc2
14886 builtin and then its argument prototype would still apply. */
14888 /* The GNU C library defines this for functions which it implements
14889 to always fail with ENOSYS. Some functions are actually named
14890 something starting with __ and the normal name is an alias. */
14891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14894 char (*f) () = $ac_func;
14903 return f != $ac_func;
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag"
14918 || test ! -s conftest.err'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; } &&
14924 { ac_try='test -s conftest$ac_exeext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 eval "$as_ac_var=yes"
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 eval "$as_ac_var=no"
14937 rm -f conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14942 if test `eval echo '${'$as_ac_var'}'` = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14952 # Some versions of libedit contain strlcpy(); so disregard that library while
14953 # checking for these standard libc functions.
14954 pgac_save_LIBS="$LIBS"
14955 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
14972 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
14974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14975 echo "$as_me:$LINENO: checking for $ac_func" >&5
14976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14977 if eval "test \"\${$as_ac_var+set}\" = set"; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14988 #define $ac_func innocuous_$ac_func
14990 /* System header to define __stub macros and hopefully few prototypes,
14991 which can conflict with char $ac_func (); below.
14992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14993 <limits.h> exists even on freestanding compilers. */
14996 # include <limits.h>
14998 # include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error. */
15008 /* We use char because int might match the return type of a gcc2
15009 builtin and then its argument prototype would still apply. */
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15017 char (*f) () = $ac_func;
15026 return f != $ac_func;
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag"
15041 || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 eval "$as_ac_var=yes"
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 eval "$as_ac_var=no"
15060 rm -f conftest.err conftest.$ac_objext \
15061 conftest$ac_exeext conftest.$ac_ext
15063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15065 if test `eval echo '${'$as_ac_var'}'` = yes; then
15066 cat >>confdefs.h <<_ACEOF
15067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15072 "$ac_func.$ac_objext" | \
15073 *" $ac_func.$ac_objext" | \
15074 "$ac_func.$ac_objext "* | \
15075 *" $ac_func.$ac_objext "* ) ;;
15076 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15084 LIBS="$pgac_save_LIBS"
15086 # System's version of getaddrinfo(), if any, may be used only if we found
15087 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15088 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
15089 # versions of getaddrinfo don't follow normal C call protocol. This is OK
15090 # because we want to use our own getaddrinfo.c on Windows anyway.)
15091 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
15093 for ac_func in getaddrinfo
15095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15096 echo "$as_me:$LINENO: checking for $ac_func" >&5
15097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15098 if eval "test \"\${$as_ac_var+set}\" = set"; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15109 #define $ac_func innocuous_$ac_func
15111 /* System header to define __stub macros and hopefully few prototypes,
15112 which can conflict with char $ac_func (); below.
15113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15114 <limits.h> exists even on freestanding compilers. */
15117 # include <limits.h>
15119 # include <assert.h>
15124 /* Override any gcc2 internal prototype to avoid an error. */
15129 /* We use char because int might match the return type of a gcc2
15130 builtin and then its argument prototype would still apply. */
15132 /* The GNU C library defines this for functions which it implements
15133 to always fail with ENOSYS. Some functions are actually named
15134 something starting with __ and the normal name is an alias. */
15135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15138 char (*f) () = $ac_func;
15147 return f != $ac_func;
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 eval "$as_ac_var=yes"
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 eval "$as_ac_var=no"
15181 rm -f conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
15184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15186 if test `eval echo '${'$as_ac_var'}'` = yes; then
15187 cat >>confdefs.h <<_ACEOF
15188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15193 "$ac_func.$ac_objext" | \
15194 *" $ac_func.$ac_objext" | \
15195 "$ac_func.$ac_objext "* | \
15196 *" $ac_func.$ac_objext "* ) ;;
15197 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15206 "getaddrinfo.$ac_objext" | \
15207 *" getaddrinfo.$ac_objext" | \
15208 "getaddrinfo.$ac_objext "* | \
15209 *" getaddrinfo.$ac_objext "* ) ;;
15210 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
15215 # similarly, use system's getopt_long() only if system provides struct option.
15216 if test x"$ac_cv_type_struct_option" = xyes ; then
15218 for ac_func in getopt_long
15220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15221 echo "$as_me:$LINENO: checking for $ac_func" >&5
15222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_var+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15234 #define $ac_func innocuous_$ac_func
15236 /* System header to define __stub macros and hopefully few prototypes,
15237 which can conflict with char $ac_func (); below.
15238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15239 <limits.h> exists even on freestanding compilers. */
15242 # include <limits.h>
15244 # include <assert.h>
15249 /* Override any gcc2 internal prototype to avoid an error. */
15254 /* We use char because int might match the return type of a gcc2
15255 builtin and then its argument prototype would still apply. */
15257 /* The GNU C library defines this for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15263 char (*f) () = $ac_func;
15272 return f != $ac_func;
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15279 (eval $ac_link) 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -z "$ac_c_werror_flag"
15287 || test ! -s conftest.err'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest$ac_exeext'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 eval "$as_ac_var=yes"
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 eval "$as_ac_var=no"
15306 rm -f conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15311 if test `eval echo '${'$as_ac_var'}'` = yes; then
15312 cat >>confdefs.h <<_ACEOF
15313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15318 "$ac_func.$ac_objext" | \
15319 *" $ac_func.$ac_objext" | \
15320 "$ac_func.$ac_objext "* | \
15321 *" $ac_func.$ac_objext "* ) ;;
15322 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15331 "getopt_long.$ac_objext" | \
15332 *" getopt_long.$ac_objext" | \
15333 "getopt_long.$ac_objext "* | \
15334 *" getopt_long.$ac_objext "* ) ;;
15335 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
15340 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
15341 # We override the previous test that said fseeko/ftello didn't exist
15342 # OS tests are also done in include/c.h and port/fseeko.c
15343 case $host_os in bsdi*|netbsd*)
15344 ac_cv_func_fseeko=yes
15348 if test "$PORTNAME" = "win32"; then
15350 "gettimeofday.$ac_objext" | \
15351 *" gettimeofday.$ac_objext" | \
15352 "gettimeofday.$ac_objext "* | \
15353 *" gettimeofday.$ac_objext "* ) ;;
15354 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15358 "kill.$ac_objext" | \
15359 *" kill.$ac_objext" | \
15360 "kill.$ac_objext "* | \
15361 *" kill.$ac_objext "* ) ;;
15362 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
15366 "open.$ac_objext" | \
15367 *" open.$ac_objext" | \
15368 "open.$ac_objext "* | \
15369 *" open.$ac_objext "* ) ;;
15370 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
15374 "rand.$ac_objext" | \
15375 *" rand.$ac_objext" | \
15376 "rand.$ac_objext "* | \
15377 *" rand.$ac_objext "* ) ;;
15378 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15382 "win32error.$ac_objext" | \
15383 *" win32error.$ac_objext" | \
15384 "win32error.$ac_objext "* | \
15385 *" win32error.$ac_objext "* ) ;;
15386 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15390 cat >>confdefs.h <<\_ACEOF
15391 #define HAVE_SYMLINK 1
15396 if test "$with_readline" = yes; then
15397 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15398 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15406 #ifdef HAVE_READLINE_READLINE_H
15407 # include <readline/readline.h>
15408 #elif defined(HAVE_READLINE_H)
15409 # include <readline.h>
15415 rl_completion_append_character = 'x';
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag"
15430 || test ! -s conftest.err'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 echo "$as_me:$LINENO: result: yes" >&5
15443 echo "${ECHO_T}yes" >&6
15445 cat >>confdefs.h <<\_ACEOF
15446 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 echo "$as_me:$LINENO: result: no" >&5
15454 echo "${ECHO_T}no" >&6
15456 rm -f conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15460 for ac_func in rl_completion_matches rl_filename_completion_function
15462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15463 echo "$as_me:$LINENO: checking for $ac_func" >&5
15464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_var+set}\" = set"; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15476 #define $ac_func innocuous_$ac_func
15478 /* System header to define __stub macros and hopefully few prototypes,
15479 which can conflict with char $ac_func (); below.
15480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15481 <limits.h> exists even on freestanding compilers. */
15484 # include <limits.h>
15486 # include <assert.h>
15491 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15499 /* The GNU C library defines this for functions which it implements
15500 to always fail with ENOSYS. Some functions are actually named
15501 something starting with __ and the normal name is an alias. */
15502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15505 char (*f) () = $ac_func;
15514 return f != $ac_func;
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag"
15529 || test ! -s conftest.err'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest$ac_exeext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 eval "$as_ac_var=yes"
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 eval "$as_ac_var=no"
15548 rm -f conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15553 if test `eval echo '${'$as_ac_var'}'` = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15562 for ac_func in replace_history_entry
15564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15565 echo "$as_me:$LINENO: checking for $ac_func" >&5
15566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15567 if eval "test \"\${$as_ac_var+set}\" = set"; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 cat >conftest.$ac_ext <<_ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15578 #define $ac_func innocuous_$ac_func
15580 /* System header to define __stub macros and hopefully few prototypes,
15581 which can conflict with char $ac_func (); below.
15582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15583 <limits.h> exists even on freestanding compilers. */
15586 # include <limits.h>
15588 # include <assert.h>
15593 /* Override any gcc2 internal prototype to avoid an error. */
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15601 /* The GNU C library defines this for functions which it implements
15602 to always fail with ENOSYS. Some functions are actually named
15603 something starting with __ and the normal name is an alias. */
15604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15607 char (*f) () = $ac_func;
15616 return f != $ac_func;
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15623 (eval $ac_link) 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try='test -z "$ac_c_werror_flag"
15631 || test ! -s conftest.err'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; } &&
15637 { ac_try='test -s conftest$ac_exeext'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 eval "$as_ac_var=yes"
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 eval "$as_ac_var=no"
15650 rm -f conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
15653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15655 if test `eval echo '${'$as_ac_var'}'` = yes; then
15656 cat >>confdefs.h <<_ACEOF
15657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15666 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15667 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 #include <setjmp.h>
15678 sigjmp_buf x; sigsetjmp(x, 1);
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>conftest.er1
15687 grep -v '^ *+' conftest.er1 >conftest.err
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15706 cat >>confdefs.h <<\_ACEOF
15707 #define HAVE_SIGSETJMP 1
15710 echo "$as_me:$LINENO: result: yes" >&5
15711 echo "${ECHO_T}yes" >&6
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 echo "$as_me:$LINENO: result: no" >&5
15717 echo "${ECHO_T}no" >&6
15719 rm -f conftest.err conftest.$ac_objext \
15720 conftest$ac_exeext conftest.$ac_ext
15722 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
15723 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
15724 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 #include <signal.h>
15734 /* NetBSD declares sys_siglist in unistd.h. */
15736 # include <unistd.h>
15743 #ifndef sys_siglist
15744 char *p = (char *) sys_siglist;
15751 rm -f conftest.$ac_objext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753 (eval $ac_compile) 2>conftest.er1
15755 grep -v '^ *+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -z "$ac_c_werror_flag"
15761 || test ! -s conftest.err'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; } &&
15767 { ac_try='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_have_decl_sys_siglist=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_have_decl_sys_siglist=no
15780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
15783 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
15784 if test $ac_cv_have_decl_sys_siglist = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787 #define HAVE_DECL_SYS_SIGLIST 1
15792 cat >>confdefs.h <<_ACEOF
15793 #define HAVE_DECL_SYS_SIGLIST 0
15802 echo "$as_me:$LINENO: checking for syslog" >&5
15803 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15804 if test "${ac_cv_func_syslog+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15815 #define syslog innocuous_syslog
15817 /* System header to define __stub macros and hopefully few prototypes,
15818 which can conflict with char syslog (); below.
15819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15820 <limits.h> exists even on freestanding compilers. */
15823 # include <limits.h>
15825 # include <assert.h>
15830 /* Override any gcc2 internal prototype to avoid an error. */
15835 /* We use char because int might match the return type of a gcc2
15836 builtin and then its argument prototype would still apply. */
15838 /* The GNU C library defines this for functions which it implements
15839 to always fail with ENOSYS. Some functions are actually named
15840 something starting with __ and the normal name is an alias. */
15841 #if defined (__stub_syslog) || defined (__stub___syslog)
15844 char (*f) () = syslog;
15853 return f != syslog;
15858 rm -f conftest.$ac_objext conftest$ac_exeext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15860 (eval $ac_link) 2>conftest.er1
15862 grep -v '^ *+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } &&
15867 { ac_try='test -z "$ac_c_werror_flag"
15868 || test ! -s conftest.err'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest$ac_exeext'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 ac_cv_func_syslog=yes
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 ac_cv_func_syslog=no
15887 rm -f conftest.err conftest.$ac_objext \
15888 conftest$ac_exeext conftest.$ac_ext
15890 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15891 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15892 if test $ac_cv_func_syslog = yes; then
15893 if test "${ac_cv_header_syslog_h+set}" = set; then
15894 echo "$as_me:$LINENO: checking for syslog.h" >&5
15895 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15896 if test "${ac_cv_header_syslog_h+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15900 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15902 # Is the header compilable?
15903 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15904 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 $ac_includes_default
15912 #include <syslog.h>
15914 rm -f conftest.$ac_objext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15916 (eval $ac_compile) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_header_compiler=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_header_compiler=no
15943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15945 echo "${ECHO_T}$ac_header_compiler" >&6
15947 # Is the header present?
15948 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15949 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15950 cat >conftest.$ac_ext <<_ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15956 #include <syslog.h>
15958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev/null; then
15966 if test -s conftest.err; then
15967 ac_cpp_err=$ac_c_preproc_warn_flag
15968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15975 if test -z "$ac_cpp_err"; then
15976 ac_header_preproc=yes
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ac_header_preproc=no
15983 rm -f conftest.err conftest.$ac_ext
15984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15985 echo "${ECHO_T}$ac_header_preproc" >&6
15987 # So? What about this header?
15988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15990 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15991 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15993 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15994 ac_header_preproc=yes
15997 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15998 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
16000 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
16002 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
16004 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
16006 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
16008 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
16011 ## ---------------------------------------- ##
16012 ## Report this to pgsql-bugs@postgresql.org ##
16013 ## ---------------------------------------- ##
16016 sed "s/^/$as_me: WARNING: /" >&2
16019 echo "$as_me:$LINENO: checking for syslog.h" >&5
16020 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
16021 if test "${ac_cv_header_syslog_h+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 ac_cv_header_syslog_h=$ac_header_preproc
16026 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
16027 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
16030 if test $ac_cv_header_syslog_h = yes; then
16032 cat >>confdefs.h <<\_ACEOF
16033 #define HAVE_SYSLOG 1
16042 echo "$as_me:$LINENO: checking for optreset" >&5
16043 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
16044 if test "${pgac_cv_var_int_optreset+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 cat >conftest.$ac_ext <<_ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 #include <unistd.h>
16057 extern int optreset; optreset = 1;
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag"
16072 || test ! -s conftest.err'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest$ac_exeext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 pgac_cv_var_int_optreset=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 pgac_cv_var_int_optreset=no
16091 rm -f conftest.err conftest.$ac_objext \
16092 conftest$ac_exeext conftest.$ac_ext
16094 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
16095 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
16096 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_INT_OPTRESET 1
16106 for ac_func in strtoll strtoq
16108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16109 echo "$as_me:$LINENO: checking for $ac_func" >&5
16110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16111 if eval "test \"\${$as_ac_var+set}\" = set"; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16122 #define $ac_func innocuous_$ac_func
16124 /* System header to define __stub macros and hopefully few prototypes,
16125 which can conflict with char $ac_func (); below.
16126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16127 <limits.h> exists even on freestanding compilers. */
16130 # include <limits.h>
16132 # include <assert.h>
16137 /* Override any gcc2 internal prototype to avoid an error. */
16142 /* We use char because int might match the return type of a gcc2
16143 builtin and then its argument prototype would still apply. */
16145 /* The GNU C library defines this for functions which it implements
16146 to always fail with ENOSYS. Some functions are actually named
16147 something starting with __ and the normal name is an alias. */
16148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16151 char (*f) () = $ac_func;
16160 return f != $ac_func;
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16167 (eval $ac_link) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag"
16175 || test ! -s conftest.err'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest$ac_exeext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 eval "$as_ac_var=yes"
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 eval "$as_ac_var=no"
16194 rm -f conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16199 if test `eval echo '${'$as_ac_var'}'` = yes; then
16200 cat >>confdefs.h <<_ACEOF
16201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16209 for ac_func in strtoull strtouq
16211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16212 echo "$as_me:$LINENO: checking for $ac_func" >&5
16213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_var+set}\" = set"; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16225 #define $ac_func innocuous_$ac_func
16227 /* System header to define __stub macros and hopefully few prototypes,
16228 which can conflict with char $ac_func (); below.
16229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16230 <limits.h> exists even on freestanding compilers. */
16233 # include <limits.h>
16235 # include <assert.h>
16240 /* Override any gcc2 internal prototype to avoid an error. */
16245 /* We use char because int might match the return type of a gcc2
16246 builtin and then its argument prototype would still apply. */
16248 /* The GNU C library defines this for functions which it implements
16249 to always fail with ENOSYS. Some functions are actually named
16250 something starting with __ and the normal name is an alias. */
16251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16254 char (*f) () = $ac_func;
16263 return f != $ac_func;
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16270 (eval $ac_link) 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 eval "$as_ac_var=yes"
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 eval "$as_ac_var=no"
16297 rm -f conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16302 if test `eval echo '${'$as_ac_var'}'` = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16311 # Check for one of atexit() or on_exit()
16313 for ac_func in atexit
16315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16316 echo "$as_me:$LINENO: checking for $ac_func" >&5
16317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16318 if eval "test \"\${$as_ac_var+set}\" = set"; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16329 #define $ac_func innocuous_$ac_func
16331 /* System header to define __stub macros and hopefully few prototypes,
16332 which can conflict with char $ac_func (); below.
16333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16334 <limits.h> exists even on freestanding compilers. */
16337 # include <limits.h>
16339 # include <assert.h>
16344 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16352 /* The GNU C library defines this for functions which it implements
16353 to always fail with ENOSYS. Some functions are actually named
16354 something starting with __ and the normal name is an alias. */
16355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16358 char (*f) () = $ac_func;
16367 return f != $ac_func;
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16374 (eval $ac_link) 2>conftest.er1
16376 grep -v '^ *+' conftest.er1 >conftest.err
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } &&
16381 { ac_try='test -z "$ac_c_werror_flag"
16382 || test ! -s conftest.err'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; } &&
16388 { ac_try='test -s conftest$ac_exeext'
16389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16390 (eval $ac_try) 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; }; then
16394 eval "$as_ac_var=yes"
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 eval "$as_ac_var=no"
16401 rm -f conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16406 if test `eval echo '${'$as_ac_var'}'` = yes; then
16407 cat >>confdefs.h <<_ACEOF
16408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16413 for ac_func in on_exit
16415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16416 echo "$as_me:$LINENO: checking for $ac_func" >&5
16417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16418 if eval "test \"\${$as_ac_var+set}\" = set"; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16429 #define $ac_func innocuous_$ac_func
16431 /* System header to define __stub macros and hopefully few prototypes,
16432 which can conflict with char $ac_func (); below.
16433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16434 <limits.h> exists even on freestanding compilers. */
16437 # include <limits.h>
16439 # include <assert.h>
16444 /* Override any gcc2 internal prototype to avoid an error. */
16449 /* We use char because int might match the return type of a gcc2
16450 builtin and then its argument prototype would still apply. */
16452 /* The GNU C library defines this for functions which it implements
16453 to always fail with ENOSYS. Some functions are actually named
16454 something starting with __ and the normal name is an alias. */
16455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16458 char (*f) () = $ac_func;
16467 return f != $ac_func;
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474 (eval $ac_link) 2>conftest.er1
16476 grep -v '^ *+' conftest.er1 >conftest.err
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -z "$ac_c_werror_flag"
16482 || test ! -s conftest.err'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 eval "$as_ac_var=yes"
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16499 eval "$as_ac_var=no"
16501 rm -f conftest.err conftest.$ac_objext \
16502 conftest$ac_exeext conftest.$ac_ext
16504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16506 if test `eval echo '${'$as_ac_var'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16513 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16514 { (exit 1); exit 1; }; }
16522 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16523 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16524 if test "${ac_cv_sys_largefile_source+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 ac_cv_sys_largefile_source=no
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #define _LARGEFILE_SOURCE 1
16589 rm -f conftest.$ac_objext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>conftest.er1
16593 grep -v '^ *+' conftest.er1 >conftest.err
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_c_werror_flag"
16599 || test ! -s conftest.err'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_cv_sys_largefile_source=1; break
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16621 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16622 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16623 if test "$ac_cv_sys_largefile_source" != no; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16632 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16633 # in glibc 2.1.3, but that breaks too many other things.
16634 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16635 echo "$as_me:$LINENO: checking for fseeko" >&5
16636 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16637 if test "${ac_cv_func_fseeko+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16650 return fseeko && fseeko (stdin, 0, 0);
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag"
16665 || test ! -s conftest.err'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; } &&
16671 { ac_try='test -s conftest$ac_exeext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_cv_func_fseeko=yes
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_cv_func_fseeko=no
16684 rm -f conftest.err conftest.$ac_objext \
16685 conftest$ac_exeext conftest.$ac_ext
16687 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16688 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16689 if test $ac_cv_func_fseeko = yes; then
16691 cat >>confdefs.h <<\_ACEOF
16692 #define HAVE_FSEEKO 1
16701 # For each platform, we need to know about any special compile and link
16702 # libraries, and whether the normal C function names are thread-safe.
16703 # See the comment at the top of src/port/thread.c for more information.
16705 if test "$enable_thread_safety" = yes; then
16711 ac_cpp='$CPP $CPPFLAGS'
16712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16718 # We used to check for pthread.h first, but this fails if pthread.h
16719 # requires special compiler flags (e.g. on True64 or Sequent).
16720 # It gets checked for in the link test anyway.
16722 # First of all, check if the user has set any of the PTHREAD_LIBS,
16723 # etcetera environment variables, and if threads linking works using
16725 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16726 save_CFLAGS="$CFLAGS"
16727 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16729 LIBS="$PTHREAD_LIBS $LIBS"
16730 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16731 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16739 /* Override any gcc2 internal prototype to avoid an error. */
16743 /* We use char because int might match the return type of a gcc2
16744 builtin and then its argument prototype would still apply. */
16745 char pthread_join ();
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756 (eval $ac_link) 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try='test -z "$ac_c_werror_flag"
16764 || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16782 rm -f conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16784 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16785 echo "${ECHO_T}$acx_pthread_ok" >&6
16786 if test x"$acx_pthread_ok" = xno; then
16791 CFLAGS="$save_CFLAGS"
16794 # We must check for the threads library under a number of different
16795 # names; the ordering is very important because some systems
16796 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16797 # libraries is broken (non-POSIX).
16799 # Create a list of thread flags to try. Items starting with a "-" are
16800 # C compiler flags, and other items are library names, except for "none"
16801 # which indicates that we try without any flags at all, and "pthread-config"
16802 # which is a program returning the flags for the Pth emulation library.
16804 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16806 # The ordering *is* (sometimes) important. Some notes on the
16807 # individual items follow:
16809 # pthreads: AIX (must check this before -lpthread)
16810 # none: in case threads are in libc; should be tried before -Kthread and
16811 # other compiler flags to prevent continual compiler warnings
16812 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16813 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16814 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16815 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16816 # -pthreads: Solaris/gcc
16817 # -mthreads: Mingw32/gcc, Lynx/gcc
16818 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16819 # doesn't hurt to check since this sometimes defines pthreads too;
16820 # also defines -D_REENTRANT)
16821 # pthread: Linux, etcetera
16822 # --thread-safe: KAI C++
16823 # pthread-config: use pthread-config program (for GNU Pth library)
16825 case "${host_cpu}-${host_os}" in
16828 # On Solaris (at least, for some versions), libc contains stubbed
16829 # (non-functional) versions of the pthreads routines, so link-based
16830 # tests will erroneously succeed. (We need to link with -pthread or
16831 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16832 # a function called by this macro, so we could check for that, but
16833 # who knows whether they'll stub that too in a future libc.) So,
16834 # we'll just look for -pthreads and -lpthread first:
16836 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16840 if test x"$acx_pthread_ok" = xno; then
16841 for flag in $acx_pthread_flags; do
16843 tryPTHREAD_CFLAGS=""
16847 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16848 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16852 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16853 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16854 tryPTHREAD_CFLAGS="$flag"
16858 # skip this if we already have flags defined, for PostgreSQL
16859 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16860 # Extract the first word of "pthread-config", so it can be a program name with args.
16861 set dummy pthread-config; ac_word=$2
16862 echo "$as_me:$LINENO: checking for $ac_word" >&5
16863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16864 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 if test -n "$acx_pthread_config"; then
16868 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16874 test -z "$as_dir" && as_dir=.
16875 for ac_exec_ext in '' $ac_executable_extensions; do
16876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16877 ac_cv_prog_acx_pthread_config="yes"
16878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16884 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16887 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16888 if test -n "$acx_pthread_config"; then
16889 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16890 echo "${ECHO_T}$acx_pthread_config" >&6
16892 echo "$as_me:$LINENO: result: no" >&5
16893 echo "${ECHO_T}no" >&6
16896 if test x"$acx_pthread_config" = xno; then continue; fi
16897 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16898 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16902 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16903 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16904 tryPTHREAD_LIBS="-l$flag"
16909 save_CFLAGS="$CFLAGS"
16910 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16911 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16913 # Check for various functions. We must include pthread.h,
16914 # since some functions may be macros. (On the Sequent, we
16915 # need a special flag -Kthread to make this header compile.)
16916 # We check for pthread_join because it is in -lpthread on IRIX
16917 # while pthread_create is in libc. We check for pthread_attr_init
16918 # due to DEC craziness with -lpthreads. We check for
16919 # pthread_cleanup_push because it is one of the few pthread
16920 # functions on Solaris that doesn't have a non-functional libc stub.
16921 # We try pthread_create on general principles.
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <pthread.h>
16932 pthread_t th; pthread_join(th, 0);
16933 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16934 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16941 (eval $ac_link) 2>conftest.er1
16943 grep -v '^ *+' conftest.er1 >conftest.err
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag"
16949 || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16968 rm -f conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 if test "x$acx_pthread_ok" = xyes; then
16972 # Don't use options that are ignored by the compiler.
16973 # We find them by checking stderror.
16974 cat >conftest.$ac_ext <<_ACEOF
16976 main (int argc, char **argv)
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16985 # we continue with more flags because Linux needs -lpthread
16986 # for libpq builds on PostgreSQL. The test above only
16987 # tests for building binaries, not shared libraries.
16988 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16989 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16990 else acx_pthread_ok=no
16995 CFLAGS="$save_CFLAGS"
16997 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16998 echo "${ECHO_T}$acx_pthread_ok" >&6
17002 # Various other checks:
17003 if test "x$acx_pthread_ok" = xyes; then
17005 LIBS="$PTHREAD_LIBS $LIBS"
17006 save_CFLAGS="$CFLAGS"
17007 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17009 # Detect AIX lossage: threads are created detached by default
17010 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
17011 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
17012 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 #include <pthread.h>
17023 int attr=PTHREAD_CREATE_JOINABLE;
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030 (eval $ac_link) 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ok=PTHREAD_CREATE_JOINABLE
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17057 rm -f conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 if test x"$ok" = xunknown; then
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <pthread.h>
17070 int attr=PTHREAD_CREATE_UNDETACHED;
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17077 (eval $ac_link) 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ok=PTHREAD_CREATE_UNDETACHED
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17104 rm -f conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17107 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
17109 cat >>confdefs.h <<\_ACEOF
17110 #define PTHREAD_CREATE_JOINABLE $ok
17114 echo "$as_me:$LINENO: result: ${ok}" >&5
17115 echo "${ECHO_T}${ok}" >&6
17116 if test x"$ok" = xunknown; then
17117 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
17118 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
17121 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
17122 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
17124 # We always add these in PostgreSQL
17125 # case "${host_cpu}-${host_os}" in
17126 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17127 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17129 echo "$as_me:$LINENO: result: ${flag}" >&5
17130 echo "${ECHO_T}${flag}" >&6
17131 if test "x$flag" != xno; then
17132 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17136 CFLAGS="$save_CFLAGS"
17138 # Supporting cc_r would require a special CC in all places that
17139 # use libpq, and that is ugly, so we don't do it. Users can still
17140 # define their compiler as cc_r to do thread builds of everything.
17141 # More AIX lossage: must compile with cc_r
17142 # Extract the first word of "cc_r", so it can be a program name with args.
17143 set dummy cc_r; ac_word=$2
17144 echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17146 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 if test -n "$PTHREAD_CC"; then
17150 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17156 test -z "$as_dir" && as_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17159 ac_cv_prog_PTHREAD_CC="cc_r"
17160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17166 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
17169 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17170 if test -n "$PTHREAD_CC"; then
17171 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
17172 echo "${ECHO_T}$PTHREAD_CC" >&6
17174 echo "$as_me:$LINENO: result: no" >&5
17175 echo "${ECHO_T}no" >&6
17186 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17187 if test x"$acx_pthread_ok" = xyes; then
17189 cat >>confdefs.h <<\_ACEOF
17190 #define HAVE_PTHREAD 1
17199 ac_cpp='$CPP $CPPFLAGS'
17200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17206 # Some platforms use these, so just defineed them. They can't hurt if they
17207 # are not supported.
17208 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
17211 # At this point, we don't want to muck with the compiler name for threading.
17212 # Let's see who fails, perhaps AIX. 2004-04-23
17213 if test "$PTHREAD_CC" != "$CC"; then
17214 { { echo "$as_me:$LINENO: error:
17215 PostgreSQL does not support platforms that require a special compiler
17216 for thread safety." >&5
17217 echo "$as_me: error:
17218 PostgreSQL does not support platforms that require a special compiler
17219 for thread safety." >&2;}
17220 { (exit 1); exit 1; }; }
17223 if test "$THREAD_SUPPORT" = no; then
17224 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
17225 This platform is known to not support thread-safe programs. For details,
17226 compile and run src/bin/pg_thread_test." >&5
17227 echo "$as_me: error: cannot enable threads on this platform
17228 This platform is known to not support thread-safe programs. For details,
17229 compile and run src/bin/pg_thread_test." >&2;}
17230 { (exit 1); exit 1; }; }
17233 # Check for *_r functions
17236 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17237 LIBS="$LIBS $PTHREAD_LIBS"
17239 if test "${ac_cv_header_pthread_h+set}" = set; then
17240 echo "$as_me:$LINENO: checking for pthread.h" >&5
17241 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17242 if test "${ac_cv_header_pthread_h+set}" = set; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17246 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17248 # Is the header compilable?
17249 echo "$as_me:$LINENO: checking pthread.h usability" >&5
17250 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 $ac_includes_default
17258 #include <pthread.h>
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag"
17270 || test ! -s conftest.err'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest.$ac_objext'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_header_compiler=yes
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_compiler=no
17289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17291 echo "${ECHO_T}$ac_header_compiler" >&6
17293 # Is the header present?
17294 echo "$as_me:$LINENO: checking pthread.h presence" >&5
17295 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 #include <pthread.h>
17304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } >/dev/null; then
17312 if test -s conftest.err; then
17313 ac_cpp_err=$ac_c_preproc_warn_flag
17314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17321 if test -z "$ac_cpp_err"; then
17322 ac_header_preproc=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 ac_header_preproc=no
17329 rm -f conftest.err conftest.$ac_ext
17330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 echo "${ECHO_T}$ac_header_preproc" >&6
17333 # So? What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
17337 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
17339 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
17340 ac_header_preproc=yes
17343 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
17344 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
17346 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
17347 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
17348 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
17350 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
17354 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
17357 ## ---------------------------------------- ##
17358 ## Report this to pgsql-bugs@postgresql.org ##
17359 ## ---------------------------------------- ##
17362 sed "s/^/$as_me: WARNING: /" >&2
17365 echo "$as_me:$LINENO: checking for pthread.h" >&5
17366 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17367 if test "${ac_cv_header_pthread_h+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 ac_cv_header_pthread_h=$ac_header_preproc
17372 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17373 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17376 if test $ac_cv_header_pthread_h = yes; then
17379 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
17380 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
17381 { (exit 1); exit 1; }; }
17389 for ac_func in strerror_r getpwuid_r gethostbyname_r
17391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 echo "$as_me:$LINENO: checking for $ac_func" >&5
17393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17394 if eval "test \"\${$as_ac_var+set}\" = set"; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17405 #define $ac_func innocuous_$ac_func
17407 /* System header to define __stub macros and hopefully few prototypes,
17408 which can conflict with char $ac_func (); below.
17409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17410 <limits.h> exists even on freestanding compilers. */
17413 # include <limits.h>
17415 # include <assert.h>
17420 /* Override any gcc2 internal prototype to avoid an error. */
17425 /* We use char because int might match the return type of a gcc2
17426 builtin and then its argument prototype would still apply. */
17428 /* The GNU C library defines this for functions which it implements
17429 to always fail with ENOSYS. Some functions are actually named
17430 something starting with __ and the normal name is an alias. */
17431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17434 char (*f) () = $ac_func;
17443 return f != $ac_func;
17448 rm -f conftest.$ac_objext conftest$ac_exeext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17450 (eval $ac_link) 2>conftest.er1
17452 grep -v '^ *+' conftest.er1 >conftest.err
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -z "$ac_c_werror_flag"
17458 || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17470 eval "$as_ac_var=yes"
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 eval "$as_ac_var=no"
17477 rm -f conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17482 if test `eval echo '${'$as_ac_var'}'` = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17491 # Do test here with the proper thread flags
17492 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17493 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17494 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <sys/types.h>
17509 struct passwd *space;
17512 struct passwd **result;
17513 getpwuid_r(uid, space, buf, bufsize, result);
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520 (eval $ac_compile) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest.$ac_objext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 pgac_func_getpwuid_r_5arg=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 pgac_func_getpwuid_r_5arg=no
17547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17549 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17550 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17551 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17553 cat >>confdefs.h <<\_ACEOF
17554 #define GETPWUID_R_5ARG
17559 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17560 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17561 if test "${pgac_func_strerror_r_int+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <string.h>
17575 int strerror_r(int, char *, size_t);
17577 /* Older AIX has 'int' for the third argument so we don't test the args. */
17584 rm -f conftest.$ac_objext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586 (eval $ac_compile) 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest.$ac_objext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 pgac_func_strerror_r_int=yes
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 pgac_func_strerror_r_int=no
17613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17615 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17616 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17617 if test x"$pgac_func_strerror_r_int" = xyes ; then
17619 cat >>confdefs.h <<\_ACEOF
17620 #define STRERROR_R_INT
17630 # do not use values from template file
17639 # We can test for libldap_r only after we know PTHREAD_LIBS
17640 if test "$with_ldap" = yes ; then
17642 if test "$PORTNAME" != "win32"; then
17644 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
17645 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
17646 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 ac_check_lib_save_LIBS=$LIBS
17650 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17658 /* Override any gcc2 internal prototype to avoid an error. */
17662 /* We use char because int might match the return type of a gcc2
17663 builtin and then its argument prototype would still apply. */
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try='test -s conftest$ac_exeext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_lib_ldap_ldap_bind=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_cv_lib_ldap_ldap_bind=no
17702 rm -f conftest.err conftest.$ac_objext \
17703 conftest$ac_exeext conftest.$ac_ext
17704 LIBS=$ac_check_lib_save_LIBS
17706 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
17707 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
17708 if test $ac_cv_lib_ldap_ldap_bind = yes; then
17709 cat >>confdefs.h <<_ACEOF
17710 #define HAVE_LIBLDAP 1
17713 LIBS="-lldap $LIBS"
17716 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
17717 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
17718 { (exit 1); exit 1; }; }
17721 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
17722 if test "$enable_thread_safety" = yes; then
17723 # on some platforms ldap_r fails to link without PTHREAD_LIBS
17725 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
17726 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
17727 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
17732 cat >conftest.$ac_ext <<_ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17739 /* Override any gcc2 internal prototype to avoid an error. */
17743 /* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17745 char ldap_simple_bind ();
17749 ldap_simple_bind ();
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_lib_ldap_r_ldap_simple_bind=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_lib_ldap_r_ldap_simple_bind=no
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
17788 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
17789 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define HAVE_LIBLDAP_R 1
17794 LIBS="-lldap_r $LIBS"
17797 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
17798 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
17799 { (exit 1); exit 1; }; }
17802 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
17804 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
17808 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
17809 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
17810 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-lwldap32 $LIBS"
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17822 /* Override any gcc2 internal prototype to avoid an error. */
17826 /* We use char because int might match the return type of a gcc2
17827 builtin and then its argument prototype would still apply. */
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest$ac_exeext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 ac_cv_lib_wldap32_ldap_bind=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_lib_wldap32_ldap_bind=no
17866 rm -f conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17870 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
17871 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
17872 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
17873 cat >>confdefs.h <<_ACEOF
17874 #define HAVE_LIBWLDAP32 1
17877 LIBS="-lwldap32 $LIBS"
17880 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
17881 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
17882 { (exit 1); exit 1; }; }
17885 LDAP_LIBS_FE="-lwldap32"
17886 LDAP_LIBS_BE="-lwldap32"
17894 # This test makes sure that run tests work at all. Sometimes a shared
17895 # library is found by the linker, but the runtime linker can't find it.
17896 # This check should come after all modifications of compiler or linker
17897 # variables, and before any other run tests.
17898 echo "$as_me:$LINENO: checking test program" >&5
17899 echo $ECHO_N "checking test program... $ECHO_C" >&6
17900 if test "$cross_compiling" = yes; then
17901 echo "$as_me:$LINENO: result: cross-compiling" >&5
17902 echo "${ECHO_T}cross-compiling" >&6
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 int main() { return 0; }
17912 rm -f conftest$ac_exeext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914 (eval $ac_link) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 echo "$as_me:$LINENO: result: ok" >&5
17924 echo "${ECHO_T}ok" >&6
17926 echo "$as_me: program exited with status $ac_status" >&5
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ( exit $ac_status )
17931 echo "$as_me:$LINENO: result: failed" >&5
17932 echo "${ECHO_T}failed" >&6
17933 { { echo "$as_me:$LINENO: error:
17934 Could not execute a simple test program. This may be a problem
17935 related to locating shared libraries. Check the file 'config.log'
17936 for the exact reason." >&5
17937 echo "$as_me: error:
17938 Could not execute a simple test program. This may be a problem
17939 related to locating shared libraries. Check the file 'config.log'
17940 for the exact reason." >&2;}
17941 { (exit 1); exit 1; }; }
17943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17946 # --------------------
17947 # Run tests below here
17948 # --------------------
17950 # Force use of our snprintf if system's doesn't do arg control
17951 # See comment above at snprintf test for details.
17952 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17953 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17954 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17955 if test "${pgac_cv_printf_arg_control+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 if test "$cross_compiling" = yes; then
17959 pgac_cv_printf_arg_control=cross
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17968 #include <string.h>
17974 /* can it swap arguments? */
17975 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17976 if (strcmp(buf, "4 3") != 0)
17981 rm -f conftest$ac_exeext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17983 (eval $ac_link) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17992 pgac_cv_printf_arg_control=yes
17994 echo "$as_me: program exited with status $ac_status" >&5
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 ( exit $ac_status )
17999 pgac_cv_printf_arg_control=no
18001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18005 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
18006 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
18008 if test $pgac_cv_printf_arg_control != yes ; then
18009 pgac_need_repl_snprintf=yes
18015 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
18016 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
18017 if test "${pgac_cv_type_long_int_64+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 if test "$cross_compiling" = yes; then
18021 # If cross-compiling, check the size reported by the compiler and
18022 # trust that the arithmetic works.
18023 cat >conftest.$ac_ext <<_ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18033 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
18040 rm -f conftest.$ac_objext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18042 (eval $ac_compile) 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -z "$ac_c_werror_flag"
18050 || test ! -s conftest.err'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; } &&
18056 { ac_try='test -s conftest.$ac_objext'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; }; then
18062 pgac_cv_type_long_int_64=yes
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 pgac_cv_type_long_int_64=no
18069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071 cat >conftest.$ac_ext <<_ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077 typedef long int ac_int64;
18080 * These are globals to discourage the compiler from folding all the
18081 * arithmetic tests down to compile-time constants.
18083 ac_int64 a = 20000001;
18084 ac_int64 b = 40000005;
18086 int does_int64_work()
18090 if (sizeof(ac_int64) != 8)
18091 return 0; /* definitely not the right size */
18093 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
18101 exit(! does_int64_work());
18104 rm -f conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 pgac_cv_type_long_int_64=yes
18117 echo "$as_me: program exited with status $ac_status" >&5
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ( exit $ac_status )
18122 pgac_cv_type_long_int_64=no
18124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18127 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
18128 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
18130 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
18131 if test x"$pgac_cv_type_long_int_64" = xyes ; then
18133 cat >>confdefs.h <<\_ACEOF
18134 #define HAVE_LONG_INT_64
18140 if test x"$HAVE_LONG_INT_64" = x"no" ; then
18141 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
18142 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
18143 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 if test "$cross_compiling" = yes; then
18147 # If cross-compiling, check the size reported by the compiler and
18148 # trust that the arithmetic works.
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18159 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
18166 rm -f conftest.$ac_objext
18167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18168 (eval $ac_compile) 2>conftest.er1
18170 grep -v '^ *+' conftest.er1 >conftest.err
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_c_werror_flag"
18176 || test ! -s conftest.err'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest.$ac_objext'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 pgac_cv_type_long_long_int_64=yes
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18193 pgac_cv_type_long_long_int_64=no
18195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18197 cat >conftest.$ac_ext <<_ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 typedef long long int ac_int64;
18206 * These are globals to discourage the compiler from folding all the
18207 * arithmetic tests down to compile-time constants.
18209 ac_int64 a = 20000001;
18210 ac_int64 b = 40000005;
18212 int does_int64_work()
18216 if (sizeof(ac_int64) != 8)
18217 return 0; /* definitely not the right size */
18219 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
18227 exit(! does_int64_work());
18230 rm -f conftest$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 pgac_cv_type_long_long_int_64=yes
18243 echo "$as_me: program exited with status $ac_status" >&5
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18247 ( exit $ac_status )
18248 pgac_cv_type_long_long_int_64=no
18250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
18254 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
18256 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
18257 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
18259 cat >>confdefs.h <<\_ACEOF
18260 #define HAVE_LONG_LONG_INT_64
18269 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18277 #define INT64CONST(x) x##LL
18278 long long int foo = INT64CONST(0x1234567890123456);
18288 rm -f conftest.$ac_objext
18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 (eval $ac_compile) 2>conftest.er1
18292 grep -v '^ *+' conftest.er1 >conftest.err
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } &&
18297 { ac_try='test -z "$ac_c_werror_flag"
18298 || test ! -s conftest.err'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; } &&
18304 { ac_try='test -s conftest.$ac_objext'
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE_LL_CONSTANTS 1
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18324 # If we found "long int" is 64 bits, assume snprintf handles it. If
18325 # we found we need to use "long long int", better check. We cope with
18326 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
18327 # work, fall back to our own snprintf emulation (which we know uses %lld).
18329 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
18330 if test $pgac_need_repl_snprintf = no; then
18331 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
18332 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
18333 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 for pgac_format in '%lld' '%qd' '%I64d'; do
18337 if test "$cross_compiling" = yes; then
18338 pgac_cv_snprintf_long_long_int_format=cross; break
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18347 typedef long long int ac_int64;
18348 #define INT64_FORMAT "$pgac_format"
18350 ac_int64 a = 20000001;
18351 ac_int64 b = 40000005;
18353 int does_int64_snprintf_work()
18358 if (sizeof(ac_int64) != 8)
18359 return 0; /* doesn't look like the right size */
18362 snprintf(buf, 100, INT64_FORMAT, c);
18363 if (strcmp(buf, "800000140000005") != 0)
18364 return 0; /* either multiply or snprintf is busted */
18368 exit(! does_int64_snprintf_work());
18371 rm -f conftest$ac_exeext
18372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18373 (eval $ac_link) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
18384 echo "$as_me: program exited with status $ac_status" >&5
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18394 LONG_LONG_INT_FORMAT=''
18396 case $pgac_cv_snprintf_long_long_int_format in
18397 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
18398 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
18399 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
18400 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
18401 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
18402 *) echo "$as_me:$LINENO: result: none" >&5
18403 echo "${ECHO_T}none" >&6;;
18405 if test "$LONG_LONG_INT_FORMAT" = ""; then
18406 # Force usage of our own snprintf, since system snprintf is broken
18407 pgac_need_repl_snprintf=yes
18408 LONG_LONG_INT_FORMAT='%lld'
18411 # Here if we previously decided we needed to use our own snprintf
18412 LONG_LONG_INT_FORMAT='%lld'
18414 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
18415 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
18416 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
18418 # Here if we are not using 'long long int' at all
18419 INT64_FORMAT='"%ld"'
18420 UINT64_FORMAT='"%lu"'
18424 cat >>confdefs.h <<_ACEOF
18425 #define INT64_FORMAT $INT64_FORMAT
18430 cat >>confdefs.h <<_ACEOF
18431 #define UINT64_FORMAT $UINT64_FORMAT
18435 # Now we have checked all the reasons to replace snprintf
18436 if test $pgac_need_repl_snprintf = yes; then
18438 cat >>confdefs.h <<\_ACEOF
18439 #define USE_REPL_SNPRINTF 1
18443 "snprintf.$ac_objext" | \
18444 *" snprintf.$ac_objext" | \
18445 "snprintf.$ac_objext "* | \
18446 *" snprintf.$ac_objext "* ) ;;
18447 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
18452 # Need a #define for the size of Datum (unsigned long)
18453 echo "$as_me:$LINENO: checking for unsigned long" >&5
18454 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
18455 if test "${ac_cv_type_unsigned_long+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 $ac_includes_default
18468 if ((unsigned long *) 0)
18470 if (sizeof (unsigned long))
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478 (eval $ac_compile) 2>conftest.er1
18480 grep -v '^ *+' conftest.er1 >conftest.err
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag"
18486 || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try='test -s conftest.$ac_objext'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 ac_cv_type_unsigned_long=yes
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 ac_cv_type_unsigned_long=no
18505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18507 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
18508 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
18510 echo "$as_me:$LINENO: checking size of unsigned long" >&5
18511 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
18512 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 if test "$ac_cv_type_unsigned_long" = yes; then
18516 # The cast to unsigned long works around a bug in the HP C Compiler
18517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18519 # This bug is HP SR number 8606223364.
18520 if test "$cross_compiling" = yes; then
18521 # Depending upon the size, compute the lo and hi bounds.
18522 cat >conftest.$ac_ext <<_ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h. */
18528 $ac_includes_default
18532 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541 (eval $ac_compile) 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 $ac_includes_default
18573 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18580 rm -f conftest.$ac_objext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18582 (eval $ac_compile) 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_c_werror_flag"
18590 || test ! -s conftest.err'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest.$ac_objext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_hi=$ac_mid; break
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_lo=`expr $ac_mid + 1`
18608 if test $ac_lo -le $ac_mid; then
18612 ac_mid=`expr 2 '*' $ac_mid + 1`
18614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 cat >conftest.$ac_ext <<_ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 $ac_includes_default
18630 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
18637 rm -f conftest.$ac_objext
18638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18639 (eval $ac_compile) 2>conftest.er1
18641 grep -v '^ *+' conftest.er1 >conftest.err
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } &&
18646 { ac_try='test -z "$ac_c_werror_flag"
18647 || test ! -s conftest.err'
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest.$ac_objext'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18667 $ac_includes_default
18671 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
18678 rm -f conftest.$ac_objext
18679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680 (eval $ac_compile) 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_c_werror_flag"
18688 || test ! -s conftest.err'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest.$ac_objext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_lo=$ac_mid; break
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_hi=`expr '(' $ac_mid ')' - 1`
18706 if test $ac_mid -le $ac_hi; then
18710 ac_mid=`expr 2 '*' $ac_mid`
18712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18723 # Binary search between lo and hi bounds.
18724 while test "x$ac_lo" != "x$ac_hi"; do
18725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 $ac_includes_default
18736 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18743 rm -f conftest.$ac_objext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745 (eval $ac_compile) 2>conftest.er1
18747 grep -v '^ *+' conftest.er1 >conftest.err
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 ac_lo=`expr '(' $ac_mid ')' + 1`
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18776 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18777 See \`config.log' for more details." >&5
18778 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18779 See \`config.log' for more details." >&2;}
18780 { (exit 1); exit 1; }; } ;;
18783 if test "$cross_compiling" = yes; then
18784 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18785 See \`config.log' for more details." >&5
18786 echo "$as_me: error: cannot run test program while cross compiling
18787 See \`config.log' for more details." >&2;}
18788 { (exit 1); exit 1; }; }
18790 cat >conftest.$ac_ext <<_ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 $ac_includes_default
18797 long longval () { return (long) (sizeof (unsigned long)); }
18798 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18800 #include <stdlib.h>
18805 FILE *f = fopen ("conftest.val", "w");
18808 if (((long) (sizeof (unsigned long))) < 0)
18810 long i = longval ();
18811 if (i != ((long) (sizeof (unsigned long))))
18813 fprintf (f, "%ld\n", i);
18817 unsigned long i = ulongval ();
18818 if (i != ((long) (sizeof (unsigned long))))
18820 fprintf (f, "%lu\n", i);
18822 exit (ferror (f) || fclose (f) != 0);
18828 rm -f conftest$ac_exeext
18829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18830 (eval $ac_link) 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18841 echo "$as_me: program exited with status $ac_status" >&5
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ( exit $ac_status )
18846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18847 See \`config.log' for more details." >&5
18848 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18849 See \`config.log' for more details." >&2;}
18850 { (exit 1); exit 1; }; }
18852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18857 ac_cv_sizeof_unsigned_long=0
18860 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18861 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18862 cat >>confdefs.h <<_ACEOF
18863 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18868 # And one for the size of size_t (enables tweaks for > 32bit address space)
18869 echo "$as_me:$LINENO: checking for size_t" >&5
18870 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18871 if test "${ac_cv_type_size_t+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 $ac_includes_default
18886 if (sizeof (size_t))
18892 rm -f conftest.$ac_objext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18894 (eval $ac_compile) 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try='test -z "$ac_c_werror_flag"
18902 || test ! -s conftest.err'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try='test -s conftest.$ac_objext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_cv_type_size_t=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_type_size_t=no
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18924 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18926 echo "$as_me:$LINENO: checking size of size_t" >&5
18927 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18928 if test "${ac_cv_sizeof_size_t+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 if test "$ac_cv_type_size_t" = yes; then
18932 # The cast to unsigned long works around a bug in the HP C Compiler
18933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18935 # This bug is HP SR number 8606223364.
18936 if test "$cross_compiling" = yes; then
18937 # Depending upon the size, compute the lo and hi bounds.
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18944 $ac_includes_default
18948 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18955 rm -f conftest.$ac_objext
18956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18957 (eval $ac_compile) 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag"
18965 || test ! -s conftest.err'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest.$ac_objext'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18979 cat >conftest.$ac_ext <<_ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985 $ac_includes_default
18989 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18996 rm -f conftest.$ac_objext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998 (eval $ac_compile) 2>conftest.er1
19000 grep -v '^ *+' conftest.er1 >conftest.err
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_c_werror_flag"
19006 || test ! -s conftest.err'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 ac_hi=$ac_mid; break
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19023 ac_lo=`expr $ac_mid + 1`
19024 if test $ac_lo -le $ac_mid; then
19028 ac_mid=`expr 2 '*' $ac_mid + 1`
19030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 $ac_includes_default
19046 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19053 rm -f conftest.$ac_objext
19054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19055 (eval $ac_compile) 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
19062 { ac_try='test -z "$ac_c_werror_flag"
19063 || test ! -s conftest.err'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest.$ac_objext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19077 cat >conftest.$ac_ext <<_ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 $ac_includes_default
19087 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19094 rm -f conftest.$ac_objext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest.$ac_objext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_lo=$ac_mid; break
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_hi=`expr '(' $ac_mid ')' - 1`
19122 if test $ac_mid -le $ac_hi; then
19126 ac_mid=`expr 2 '*' $ac_mid`
19128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19139 # Binary search between lo and hi bounds.
19140 while test "x$ac_lo" != "x$ac_hi"; do
19141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 $ac_includes_default
19152 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19159 rm -f conftest.$ac_objext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19161 (eval $ac_compile) 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_lo=`expr '(' $ac_mid ')' + 1`
19188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19191 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19193 See \`config.log' for more details." >&5
19194 echo "$as_me: error: cannot compute sizeof (size_t), 77
19195 See \`config.log' for more details." >&2;}
19196 { (exit 1); exit 1; }; } ;;
19199 if test "$cross_compiling" = yes; then
19200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19201 See \`config.log' for more details." >&5
19202 echo "$as_me: error: cannot run test program while cross compiling
19203 See \`config.log' for more details." >&2;}
19204 { (exit 1); exit 1; }; }
19206 cat >conftest.$ac_ext <<_ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 $ac_includes_default
19213 long longval () { return (long) (sizeof (size_t)); }
19214 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19216 #include <stdlib.h>
19221 FILE *f = fopen ("conftest.val", "w");
19224 if (((long) (sizeof (size_t))) < 0)
19226 long i = longval ();
19227 if (i != ((long) (sizeof (size_t))))
19229 fprintf (f, "%ld\n", i);
19233 unsigned long i = ulongval ();
19234 if (i != ((long) (sizeof (size_t))))
19236 fprintf (f, "%lu\n", i);
19238 exit (ferror (f) || fclose (f) != 0);
19244 rm -f conftest$ac_exeext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19246 (eval $ac_link) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_cv_sizeof_size_t=`cat conftest.val`
19257 echo "$as_me: program exited with status $ac_status" >&5
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ( exit $ac_status )
19262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19263 See \`config.log' for more details." >&5
19264 echo "$as_me: error: cannot compute sizeof (size_t), 77
19265 See \`config.log' for more details." >&2;}
19266 { (exit 1); exit 1; }; }
19268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19273 ac_cv_sizeof_size_t=0
19276 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19277 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19278 cat >>confdefs.h <<_ACEOF
19279 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19284 # Determine memory alignment requirements for the basic C data types.
19286 echo "$as_me:$LINENO: checking for short" >&5
19287 echo $ECHO_N "checking for short... $ECHO_C" >&6
19288 if test "${ac_cv_type_short+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 $ac_includes_default
19303 if (sizeof (short))
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_type_short=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_type_short=no
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19341 echo "${ECHO_T}$ac_cv_type_short" >&6
19343 echo "$as_me:$LINENO: checking alignment of short" >&5
19344 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
19345 if test "${pgac_cv_alignof_short+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 if test "$ac_cv_type_short" = yes; then
19349 if test "$cross_compiling" = yes; then
19350 # Depending upon the size, compute the lo and hi bounds.
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 $ac_includes_default
19358 struct { char filler; short field; } pgac_struct;
19362 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19369 rm -f conftest.$ac_objext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371 (eval $ac_compile) 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 $ac_includes_default
19400 struct { char filler; short field; } pgac_struct;
19404 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19411 rm -f conftest.$ac_objext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413 (eval $ac_compile) 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag"
19421 || test ! -s conftest.err'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_hi=$ac_mid; break
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_lo=`expr $ac_mid + 1`
19439 if test $ac_lo -le $ac_mid; then
19443 ac_mid=`expr 2 '*' $ac_mid + 1`
19445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 struct { char filler; short field; } pgac_struct;
19462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19469 rm -f conftest.$ac_objext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471 (eval $ac_compile) 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag"
19479 || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 $ac_includes_default
19500 struct { char filler; short field; } pgac_struct;
19504 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19511 rm -f conftest.$ac_objext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513 (eval $ac_compile) 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
19520 { ac_try='test -z "$ac_c_werror_flag"
19521 || test ! -s conftest.err'
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; } &&
19527 { ac_try='test -s conftest.$ac_objext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_lo=$ac_mid; break
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 ac_hi=`expr '(' $ac_mid ')' - 1`
19539 if test $ac_mid -le $ac_hi; then
19543 ac_mid=`expr 2 '*' $ac_mid`
19545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 # Binary search between lo and hi bounds.
19557 while test "x$ac_lo" != "x$ac_hi"; do
19558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19566 struct { char filler; short field; } pgac_struct;
19570 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19577 rm -f conftest.$ac_objext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579 (eval $ac_compile) 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag"
19587 || test ! -s conftest.err'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_lo=`expr '(' $ac_mid ')' + 1`
19606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19609 ?*) pgac_cv_alignof_short=$ac_lo;;
19610 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19611 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19612 { (exit 1); exit 1; }; } ;;
19615 if test "$cross_compiling" = yes; then
19616 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19617 See \`config.log' for more details." >&5
19618 echo "$as_me: error: cannot run test program while cross compiling
19619 See \`config.log' for more details." >&2;}
19620 { (exit 1); exit 1; }; }
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 $ac_includes_default
19629 struct { char filler; short field; } pgac_struct;
19630 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19631 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19633 #include <stdlib.h>
19638 FILE *f = fopen ("conftest.val", "w");
19641 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19643 long i = longval ();
19644 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19646 fprintf (f, "%ld\n", i);
19650 unsigned long i = ulongval ();
19651 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19653 fprintf (f, "%lu\n", i);
19655 exit (ferror (f) || fclose (f) != 0);
19661 rm -f conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 pgac_cv_alignof_short=`cat conftest.val`
19674 echo "$as_me: program exited with status $ac_status" >&5
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ( exit $ac_status )
19679 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19680 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19681 { (exit 1); exit 1; }; }
19683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19688 pgac_cv_alignof_short=0
19691 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
19692 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
19693 cat >>confdefs.h <<_ACEOF
19694 #define ALIGNOF_SHORT $pgac_cv_alignof_short
19698 echo "$as_me:$LINENO: checking for int" >&5
19699 echo $ECHO_N "checking for int... $ECHO_C" >&6
19700 if test "${ac_cv_type_int+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 $ac_includes_default
19721 rm -f conftest.$ac_objext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19723 (eval $ac_compile) 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
19730 { ac_try='test -z "$ac_c_werror_flag"
19731 || test ! -s conftest.err'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest.$ac_objext'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19752 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19753 echo "${ECHO_T}$ac_cv_type_int" >&6
19755 echo "$as_me:$LINENO: checking alignment of int" >&5
19756 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19757 if test "${pgac_cv_alignof_int+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 if test "$ac_cv_type_int" = yes; then
19761 if test "$cross_compiling" = yes; then
19762 # Depending upon the size, compute the lo and hi bounds.
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 $ac_includes_default
19770 struct { char filler; int field; } pgac_struct;
19774 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19781 rm -f conftest.$ac_objext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783 (eval $ac_compile) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest.$ac_objext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 $ac_includes_default
19812 struct { char filler; int field; } pgac_struct;
19816 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19823 rm -f conftest.$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag"
19833 || test ! -s conftest.err'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest.$ac_objext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 ac_hi=$ac_mid; break
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_lo=`expr $ac_mid + 1`
19851 if test $ac_lo -le $ac_mid; then
19855 ac_mid=`expr 2 '*' $ac_mid + 1`
19857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19869 $ac_includes_default
19870 struct { char filler; int field; } pgac_struct;
19874 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19881 rm -f conftest.$ac_objext
19882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19883 (eval $ac_compile) 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -z "$ac_c_werror_flag"
19891 || test ! -s conftest.err'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest.$ac_objext'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 $ac_includes_default
19912 struct { char filler; int field; } pgac_struct;
19916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -z "$ac_c_werror_flag"
19933 || test ! -s conftest.err'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; } &&
19939 { ac_try='test -s conftest.$ac_objext'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; }; then
19945 ac_lo=$ac_mid; break
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_hi=`expr '(' $ac_mid ')' - 1`
19951 if test $ac_mid -le $ac_hi; then
19955 ac_mid=`expr 2 '*' $ac_mid`
19957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19968 # Binary search between lo and hi bounds.
19969 while test "x$ac_lo" != "x$ac_hi"; do
19970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 $ac_includes_default
19978 struct { char filler; int field; } pgac_struct;
19982 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991 (eval $ac_compile) 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } &&
19998 { ac_try='test -z "$ac_c_werror_flag"
19999 || test ! -s conftest.err'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; } &&
20005 { ac_try='test -s conftest.$ac_objext'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_lo=`expr '(' $ac_mid ')' + 1`
20018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20021 ?*) pgac_cv_alignof_int=$ac_lo;;
20022 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
20023 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
20024 { (exit 1); exit 1; }; } ;;
20027 if test "$cross_compiling" = yes; then
20028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20029 See \`config.log' for more details." >&5
20030 echo "$as_me: error: cannot run test program while cross compiling
20031 See \`config.log' for more details." >&2;}
20032 { (exit 1); exit 1; }; }
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 $ac_includes_default
20041 struct { char filler; int field; } pgac_struct;
20042 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20043 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20045 #include <stdlib.h>
20050 FILE *f = fopen ("conftest.val", "w");
20053 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20055 long i = longval ();
20056 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20058 fprintf (f, "%ld\n", i);
20062 unsigned long i = ulongval ();
20063 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20065 fprintf (f, "%lu\n", i);
20067 exit (ferror (f) || fclose (f) != 0);
20073 rm -f conftest$ac_exeext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20075 (eval $ac_link) 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 pgac_cv_alignof_int=`cat conftest.val`
20086 echo "$as_me: program exited with status $ac_status" >&5
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ( exit $ac_status )
20091 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
20092 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
20093 { (exit 1); exit 1; }; }
20095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20100 pgac_cv_alignof_int=0
20103 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
20104 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
20105 cat >>confdefs.h <<_ACEOF
20106 #define ALIGNOF_INT $pgac_cv_alignof_int
20110 echo "$as_me:$LINENO: checking for long" >&5
20111 echo $ECHO_N "checking for long... $ECHO_C" >&6
20112 if test "${ac_cv_type_long+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 $ac_includes_default
20133 rm -f conftest.$ac_objext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135 (eval $ac_compile) 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag"
20143 || test ! -s conftest.err'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_type_long=yes
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20165 echo "${ECHO_T}$ac_cv_type_long" >&6
20167 echo "$as_me:$LINENO: checking alignment of long" >&5
20168 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
20169 if test "${pgac_cv_alignof_long+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 if test "$ac_cv_type_long" = yes; then
20173 if test "$cross_compiling" = yes; then
20174 # Depending upon the size, compute the lo and hi bounds.
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 $ac_includes_default
20182 struct { char filler; long field; } pgac_struct;
20186 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20193 rm -f conftest.$ac_objext
20194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20195 (eval $ac_compile) 2>conftest.er1
20197 grep -v '^ *+' conftest.er1 >conftest.err
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
20202 { ac_try='test -z "$ac_c_werror_flag"
20203 || test ! -s conftest.err'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try='test -s conftest.$ac_objext'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20217 cat >conftest.$ac_ext <<_ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 $ac_includes_default
20224 struct { char filler; long field; } pgac_struct;
20228 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>conftest.er1
20239 grep -v '^ *+' conftest.er1 >conftest.err
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -z "$ac_c_werror_flag"
20245 || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest.$ac_objext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_hi=$ac_mid; break
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 ac_lo=`expr $ac_mid + 1`
20263 if test $ac_lo -le $ac_mid; then
20267 ac_mid=`expr 2 '*' $ac_mid + 1`
20269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281 $ac_includes_default
20282 struct { char filler; long field; } pgac_struct;
20286 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20293 rm -f conftest.$ac_objext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20295 (eval $ac_compile) 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest.$ac_objext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 $ac_includes_default
20324 struct { char filler; long field; } pgac_struct;
20328 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20335 rm -f conftest.$ac_objext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337 (eval $ac_compile) 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest.$ac_objext'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_lo=$ac_mid; break
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ac_hi=`expr '(' $ac_mid ')' - 1`
20363 if test $ac_mid -le $ac_hi; then
20367 ac_mid=`expr 2 '*' $ac_mid`
20369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20380 # Binary search between lo and hi bounds.
20381 while test "x$ac_lo" != "x$ac_hi"; do
20382 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 $ac_includes_default
20390 struct { char filler; long field; } pgac_struct;
20394 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag"
20411 || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest.$ac_objext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_lo=`expr '(' $ac_mid ')' + 1`
20430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433 ?*) pgac_cv_alignof_long=$ac_lo;;
20434 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
20435 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
20436 { (exit 1); exit 1; }; } ;;
20439 if test "$cross_compiling" = yes; then
20440 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20441 See \`config.log' for more details." >&5
20442 echo "$as_me: error: cannot run test program while cross compiling
20443 See \`config.log' for more details." >&2;}
20444 { (exit 1); exit 1; }; }
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 $ac_includes_default
20453 struct { char filler; long field; } pgac_struct;
20454 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20455 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20457 #include <stdlib.h>
20462 FILE *f = fopen ("conftest.val", "w");
20465 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20467 long i = longval ();
20468 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20470 fprintf (f, "%ld\n", i);
20474 unsigned long i = ulongval ();
20475 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20477 fprintf (f, "%lu\n", i);
20479 exit (ferror (f) || fclose (f) != 0);
20485 rm -f conftest$ac_exeext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20487 (eval $ac_link) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 pgac_cv_alignof_long=`cat conftest.val`
20498 echo "$as_me: program exited with status $ac_status" >&5
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ( exit $ac_status )
20503 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
20504 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
20505 { (exit 1); exit 1; }; }
20507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20512 pgac_cv_alignof_long=0
20515 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
20516 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
20517 cat >>confdefs.h <<_ACEOF
20518 #define ALIGNOF_LONG $pgac_cv_alignof_long
20522 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
20523 echo "$as_me:$LINENO: checking for long long int" >&5
20524 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
20525 if test "${ac_cv_type_long_long_int+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 $ac_includes_default
20538 if ((long long int *) 0)
20540 if (sizeof (long long int))
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_cv_type_long_long_int=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_type_long_long_int=no
20575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20577 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20578 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
20580 echo "$as_me:$LINENO: checking alignment of long long int" >&5
20581 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
20582 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 if test "$ac_cv_type_long_long_int" = yes; then
20586 if test "$cross_compiling" = yes; then
20587 # Depending upon the size, compute the lo and hi bounds.
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 $ac_includes_default
20595 struct { char filler; long long int field; } pgac_struct;
20599 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20606 rm -f conftest.$ac_objext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608 (eval $ac_compile) 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_c_werror_flag"
20616 || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 $ac_includes_default
20637 struct { char filler; long long int field; } pgac_struct;
20641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20648 rm -f conftest.$ac_objext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20650 (eval $ac_compile) 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_c_werror_flag"
20658 || test ! -s conftest.err'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_hi=$ac_mid; break
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_lo=`expr $ac_mid + 1`
20676 if test $ac_lo -le $ac_mid; then
20680 ac_mid=`expr 2 '*' $ac_mid + 1`
20682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 $ac_includes_default
20695 struct { char filler; long long int field; } pgac_struct;
20699 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20706 rm -f conftest.$ac_objext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20708 (eval $ac_compile) 2>conftest.er1
20710 grep -v '^ *+' conftest.er1 >conftest.err
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag"
20716 || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 $ac_includes_default
20737 struct { char filler; long long int field; } pgac_struct;
20741 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20748 rm -f conftest.$ac_objext
20749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20750 (eval $ac_compile) 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
20757 { ac_try='test -z "$ac_c_werror_flag"
20758 || test ! -s conftest.err'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest.$ac_objext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 ac_lo=$ac_mid; break
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_hi=`expr '(' $ac_mid ')' - 1`
20776 if test $ac_mid -le $ac_hi; then
20780 ac_mid=`expr 2 '*' $ac_mid`
20782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20793 # Binary search between lo and hi bounds.
20794 while test "x$ac_lo" != "x$ac_hi"; do
20795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20796 cat >conftest.$ac_ext <<_ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 $ac_includes_default
20803 struct { char filler; long long int field; } pgac_struct;
20807 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816 (eval $ac_compile) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_lo=`expr '(' $ac_mid ')' + 1`
20843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20846 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20847 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20848 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20849 { (exit 1); exit 1; }; } ;;
20852 if test "$cross_compiling" = yes; then
20853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20854 See \`config.log' for more details." >&5
20855 echo "$as_me: error: cannot run test program while cross compiling
20856 See \`config.log' for more details." >&2;}
20857 { (exit 1); exit 1; }; }
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 $ac_includes_default
20866 struct { char filler; long long int field; } pgac_struct;
20867 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20868 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20870 #include <stdlib.h>
20875 FILE *f = fopen ("conftest.val", "w");
20878 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20880 long i = longval ();
20881 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20883 fprintf (f, "%ld\n", i);
20887 unsigned long i = ulongval ();
20888 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20890 fprintf (f, "%lu\n", i);
20892 exit (ferror (f) || fclose (f) != 0);
20898 rm -f conftest$ac_exeext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900 (eval $ac_link) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 pgac_cv_alignof_long_long_int=`cat conftest.val`
20911 echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ( exit $ac_status )
20916 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20917 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20918 { (exit 1); exit 1; }; }
20920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20925 pgac_cv_alignof_long_long_int=0
20928 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20929 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20930 cat >>confdefs.h <<_ACEOF
20931 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20936 echo "$as_me:$LINENO: checking for double" >&5
20937 echo $ECHO_N "checking for double... $ECHO_C" >&6
20938 if test "${ac_cv_type_double+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 $ac_includes_default
20953 if (sizeof (double))
20959 rm -f conftest.$ac_objext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20961 (eval $ac_compile) 2>conftest.er1
20963 grep -v '^ *+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -z "$ac_c_werror_flag"
20969 || test ! -s conftest.err'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 ac_cv_type_double=yes
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ac_cv_type_double=no
20988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20990 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20991 echo "${ECHO_T}$ac_cv_type_double" >&6
20993 echo "$as_me:$LINENO: checking alignment of double" >&5
20994 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20995 if test "${pgac_cv_alignof_double+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 if test "$ac_cv_type_double" = yes; then
20999 if test "$cross_compiling" = yes; then
21000 # Depending upon the size, compute the lo and hi bounds.
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 $ac_includes_default
21008 struct { char filler; double field; } pgac_struct;
21012 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21019 rm -f conftest.$ac_objext
21020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21021 (eval $ac_compile) 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } &&
21028 { ac_try='test -z "$ac_c_werror_flag"
21029 || test ! -s conftest.err'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest.$ac_objext'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 $ac_includes_default
21050 struct { char filler; double field; } pgac_struct;
21054 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_hi=$ac_mid; break
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_lo=`expr $ac_mid + 1`
21089 if test $ac_lo -le $ac_mid; then
21093 ac_mid=`expr 2 '*' $ac_mid + 1`
21095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 $ac_includes_default
21108 struct { char filler; double field; } pgac_struct;
21112 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21119 rm -f conftest.$ac_objext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21121 (eval $ac_compile) 2>conftest.er1
21123 grep -v '^ *+' conftest.er1 >conftest.err
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
21128 { ac_try='test -z "$ac_c_werror_flag"
21129 || test ! -s conftest.err'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try='test -s conftest.$ac_objext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 $ac_includes_default
21150 struct { char filler; double field; } pgac_struct;
21154 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21161 rm -f conftest.$ac_objext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>conftest.er1
21165 grep -v '^ *+' conftest.er1 >conftest.err
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
21170 { ac_try='test -z "$ac_c_werror_flag"
21171 || test ! -s conftest.err'
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); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_lo=$ac_mid; break
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 ac_hi=`expr '(' $ac_mid ')' - 1`
21189 if test $ac_mid -le $ac_hi; then
21193 ac_mid=`expr 2 '*' $ac_mid`
21195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 # Binary search between lo and hi bounds.
21207 while test "x$ac_lo" != "x$ac_hi"; do
21208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 $ac_includes_default
21216 struct { char filler; double field; } pgac_struct;
21220 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21227 rm -f conftest.$ac_objext
21228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21229 (eval $ac_compile) 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } &&
21236 { ac_try='test -z "$ac_c_werror_flag"
21237 || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_lo=`expr '(' $ac_mid ')' + 1`
21256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259 ?*) pgac_cv_alignof_double=$ac_lo;;
21260 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21261 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21262 { (exit 1); exit 1; }; } ;;
21265 if test "$cross_compiling" = yes; then
21266 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21267 See \`config.log' for more details." >&5
21268 echo "$as_me: error: cannot run test program while cross compiling
21269 See \`config.log' for more details." >&2;}
21270 { (exit 1); exit 1; }; }
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 $ac_includes_default
21279 struct { char filler; double field; } pgac_struct;
21280 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21281 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21283 #include <stdlib.h>
21288 FILE *f = fopen ("conftest.val", "w");
21291 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21293 long i = longval ();
21294 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21296 fprintf (f, "%ld\n", i);
21300 unsigned long i = ulongval ();
21301 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21303 fprintf (f, "%lu\n", i);
21305 exit (ferror (f) || fclose (f) != 0);
21311 rm -f conftest$ac_exeext
21312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21313 (eval $ac_link) 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 pgac_cv_alignof_double=`cat conftest.val`
21324 echo "$as_me: program exited with status $ac_status" >&5
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ( exit $ac_status )
21329 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21330 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21331 { (exit 1); exit 1; }; }
21333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21338 pgac_cv_alignof_double=0
21341 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
21342 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
21343 cat >>confdefs.h <<_ACEOF
21344 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
21349 # Compute maximum alignment of any basic type.
21350 # We assume long's alignment is at least as strong as char, short, or int;
21351 # but we must check long long (if it exists) and double.
21353 MAX_ALIGNOF=$pgac_cv_alignof_long
21354 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
21355 MAX_ALIGNOF=$pgac_cv_alignof_double
21357 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
21358 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
21361 cat >>confdefs.h <<_ACEOF
21362 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
21367 # Some platforms predefine the types int8, int16, etc. Only check
21368 # a (hopefully) representative subset.
21369 echo "$as_me:$LINENO: checking for int8" >&5
21370 echo $ECHO_N "checking for int8... $ECHO_C" >&6
21371 if test "${ac_cv_type_int8+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21381 #ifdef HAVE_SUPPORTDEFS_H
21382 #include <SupportDefs.h>
21396 rm -f conftest.$ac_objext
21397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21398 (eval $ac_compile) 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -z "$ac_c_werror_flag"
21406 || test ! -s conftest.err'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; } &&
21412 { ac_try='test -s conftest.$ac_objext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_cv_type_int8=yes
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21427 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
21428 echo "${ECHO_T}$ac_cv_type_int8" >&6
21429 if test $ac_cv_type_int8 = yes; then
21431 cat >>confdefs.h <<_ACEOF
21432 #define HAVE_INT8 1
21437 echo "$as_me:$LINENO: checking for uint8" >&5
21438 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
21439 if test "${ac_cv_type_uint8+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21449 #ifdef HAVE_SUPPORTDEFS_H
21450 #include <SupportDefs.h>
21458 if (sizeof (uint8))
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_type_uint8=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_cv_type_uint8=no
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21495 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
21496 echo "${ECHO_T}$ac_cv_type_uint8" >&6
21497 if test $ac_cv_type_uint8 = yes; then
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_UINT8 1
21505 echo "$as_me:$LINENO: checking for int64" >&5
21506 echo $ECHO_N "checking for int64... $ECHO_C" >&6
21507 if test "${ac_cv_type_int64+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 #ifdef HAVE_SUPPORTDEFS_H
21518 #include <SupportDefs.h>
21526 if (sizeof (int64))
21532 rm -f conftest.$ac_objext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21534 (eval $ac_compile) 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest.$ac_objext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_type_int64=yes
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_cv_type_int64=no
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21563 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
21564 echo "${ECHO_T}$ac_cv_type_int64" >&6
21565 if test $ac_cv_type_int64 = yes; then
21567 cat >>confdefs.h <<_ACEOF
21568 #define HAVE_INT64 1
21573 echo "$as_me:$LINENO: checking for uint64" >&5
21574 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
21575 if test "${ac_cv_type_uint64+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21585 #ifdef HAVE_SUPPORTDEFS_H
21586 #include <SupportDefs.h>
21594 if (sizeof (uint64))
21600 rm -f conftest.$ac_objext
21601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21602 (eval $ac_compile) 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try='test -z "$ac_c_werror_flag"
21610 || test ! -s conftest.err'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest.$ac_objext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_cv_type_uint64=yes
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_cv_type_uint64=no
21629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
21632 echo "${ECHO_T}$ac_cv_type_uint64" >&6
21633 if test $ac_cv_type_uint64 = yes; then
21635 cat >>confdefs.h <<_ACEOF
21636 #define HAVE_UINT64 1
21643 # We also check for sig_atomic_t, which *should* be defined per ANSI
21644 # C, but is missing on some old platforms.
21645 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21646 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
21647 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 cat >conftest.$ac_ext <<_ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 #include <signal.h>
21661 if ((sig_atomic_t *) 0)
21663 if (sizeof (sig_atomic_t))
21669 rm -f conftest.$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671 (eval $ac_compile) 2>conftest.er1
21673 grep -v '^ *+' conftest.er1 >conftest.err
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
21678 { ac_try='test -z "$ac_c_werror_flag"
21679 || test ! -s conftest.err'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_cv_type_sig_atomic_t=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_cv_type_sig_atomic_t=no
21698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21700 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21701 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
21702 if test $ac_cv_type_sig_atomic_t = yes; then
21704 cat >>confdefs.h <<_ACEOF
21705 #define HAVE_SIG_ATOMIC_T 1
21713 if test x"$template" != x"win32"
21715 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
21716 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
21717 if test "${pgac_cv_func_posix_signals+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 #include <signal.h>
21731 struct sigaction act, oact;
21732 sigemptyset(&act.sa_mask);
21733 act.sa_flags = SA_RESTART;
21734 sigaction(0, &act, &oact);
21739 rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21741 (eval $ac_link) 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } &&
21748 { ac_try='test -z "$ac_c_werror_flag"
21749 || test ! -s conftest.err'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; } &&
21755 { ac_try='test -s conftest$ac_exeext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 pgac_cv_func_posix_signals=yes
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 pgac_cv_func_posix_signals=no
21768 rm -f conftest.err conftest.$ac_objext \
21769 conftest$ac_exeext conftest.$ac_ext
21771 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21772 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21773 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21775 cat >>confdefs.h <<\_ACEOF
21776 #define HAVE_POSIX_SIGNALS
21780 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21782 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21783 { { echo "$as_me:$LINENO: error:
21784 Thread-safety requires POSIX signals, which are not supported by this
21785 operating system." >&5
21786 echo "$as_me: error:
21787 Thread-safety requires POSIX signals, which are not supported by this
21788 operating system." >&2;}
21789 { (exit 1); exit 1; }; }
21793 if test $ac_cv_func_fseeko = yes; then
21794 # Check whether --enable-largefile or --disable-largefile was given.
21795 if test "${enable_largefile+set}" = set; then
21796 enableval="$enable_largefile"
21799 if test "$enable_largefile" != no; then
21801 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21802 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21803 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 ac_cv_sys_largefile_CC=no
21807 if test "$GCC" != yes; then
21810 # IRIX 6.2 and later do not support large files by default,
21811 # so use the C compiler's -n32 option if that helps.
21812 cat >conftest.$ac_ext <<_ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 #include <sys/types.h>
21819 /* Check that off_t can represent 2**63 - 1 correctly.
21820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21821 since some C++ compilers masquerading as C compilers
21822 incorrectly reject 9223372036854775807. */
21823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21825 && LARGE_OFF_T % 2147483647 == 1)
21835 rm -f conftest.$ac_objext
21836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21837 (eval $ac_compile) 2>conftest.er1
21839 grep -v '^ *+' conftest.er1 >conftest.err
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
21844 { ac_try='test -z "$ac_c_werror_flag"
21845 || test ! -s conftest.err'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest.$ac_objext'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21863 rm -f conftest.err conftest.$ac_objext
21865 rm -f conftest.$ac_objext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21867 (eval $ac_compile) 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } &&
21874 { ac_try='test -z "$ac_c_werror_flag"
21875 || test ! -s conftest.err'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; } &&
21881 { ac_try='test -s conftest.$ac_objext'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
21887 ac_cv_sys_largefile_CC=' -n32'; break
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21893 rm -f conftest.err conftest.$ac_objext
21897 rm -f conftest.$ac_ext
21900 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21901 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21902 if test "$ac_cv_sys_largefile_CC" != no; then
21903 CC=$CC$ac_cv_sys_largefile_CC
21906 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21907 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21908 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 ac_cv_sys_file_offset_bits=no
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 #include <sys/types.h>
21920 /* Check that off_t can represent 2**63 - 1 correctly.
21921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21922 since some C++ compilers masquerading as C compilers
21923 incorrectly reject 9223372036854775807. */
21924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21926 && LARGE_OFF_T % 2147483647 == 1)
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938 (eval $ac_compile) 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
21945 { ac_try='test -z "$ac_c_werror_flag"
21946 || test ! -s conftest.err'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 #define _FILE_OFFSET_BITS 64
21972 #include <sys/types.h>
21973 /* Check that off_t can represent 2**63 - 1 correctly.
21974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21975 since some C++ compilers masquerading as C compilers
21976 incorrectly reject 9223372036854775807. */
21977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21979 && LARGE_OFF_T % 2147483647 == 1)
21989 rm -f conftest.$ac_objext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21991 (eval $ac_compile) 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
21998 { ac_try='test -z "$ac_c_werror_flag"
21999 || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest.$ac_objext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 ac_cv_sys_file_offset_bits=64; break
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22022 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22023 if test "$ac_cv_sys_file_offset_bits" != no; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22031 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22032 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22033 if test "${ac_cv_sys_large_files+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 ac_cv_sys_large_files=no
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 #include <sys/types.h>
22045 /* Check that off_t can represent 2**63 - 1 correctly.
22046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22047 since some C++ compilers masquerading as C compilers
22048 incorrectly reject 9223372036854775807. */
22049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22051 && LARGE_OFF_T % 2147483647 == 1)
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try='test -z "$ac_c_werror_flag"
22071 || test ! -s conftest.err'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #define _LARGE_FILES 1
22097 #include <sys/types.h>
22098 /* Check that off_t can represent 2**63 - 1 correctly.
22099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22100 since some C++ compilers masquerading as C compilers
22101 incorrectly reject 9223372036854775807. */
22102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22104 && LARGE_OFF_T % 2147483647 == 1)
22114 rm -f conftest.$ac_objext
22115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22116 (eval $ac_compile) 2>conftest.er1
22118 grep -v '^ *+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } &&
22123 { ac_try='test -z "$ac_c_werror_flag"
22124 || test ! -s conftest.err'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; } &&
22130 { ac_try='test -s conftest.$ac_objext'
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; }; then
22136 ac_cv_sys_large_files=1; break
22138 echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22146 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22147 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22148 if test "$ac_cv_sys_large_files" != no; then
22150 cat >>confdefs.h <<_ACEOF
22151 #define _LARGE_FILES $ac_cv_sys_large_files
22160 # SunOS doesn't handle negative byte comparisons properly with +/- return
22161 echo "$as_me:$LINENO: checking for working memcmp" >&5
22162 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22163 if test "${ac_cv_func_memcmp_working+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 if test "$cross_compiling" = yes; then
22167 ac_cv_func_memcmp_working=no
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22180 /* Some versions of memcmp are not 8-bit clean. */
22181 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22182 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22185 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22186 or more and with at least one buffer not starting on a 4-byte boundary.
22187 William Lewis provided this test program. */
22192 for (i = 0; i < 4; i++)
22196 strcpy (a, "--------01111111");
22197 strcpy (b, "--------10000000");
22198 if (memcmp (a, b, 16) >= 0)
22208 rm -f conftest$ac_exeext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22210 (eval $ac_link) 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; }; then
22219 ac_cv_func_memcmp_working=yes
22221 echo "$as_me: program exited with status $ac_status" >&5
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22225 ( exit $ac_status )
22226 ac_cv_func_memcmp_working=no
22228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22231 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22232 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22233 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22234 "memcmp.$ac_objext" | \
22235 *" memcmp.$ac_objext" | \
22236 "memcmp.$ac_objext "* | \
22237 *" memcmp.$ac_objext "* ) ;;
22238 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22244 # Select semaphore implementation type.
22245 if test "$PORTNAME" != "win32"; then
22246 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
22248 cat >>confdefs.h <<\_ACEOF
22249 #define USE_NAMED_POSIX_SEMAPHORES 1
22252 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22254 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
22256 cat >>confdefs.h <<\_ACEOF
22257 #define USE_UNNAMED_POSIX_SEMAPHORES 1
22260 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22263 cat >>confdefs.h <<\_ACEOF
22264 #define USE_SYSV_SEMAPHORES 1
22267 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
22272 cat >>confdefs.h <<\_ACEOF
22273 #define USE_WIN32_SEMAPHORES 1
22276 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
22280 # Select shared-memory implementation type.
22281 if test "$PORTNAME" != "win32"; then
22283 cat >>confdefs.h <<\_ACEOF
22284 #define USE_SYSV_SHARED_MEMORY 1
22287 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
22290 cat >>confdefs.h <<\_ACEOF
22291 #define USE_WIN32_SHARED_MEMORY 1
22294 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
22297 # If not set in template file, set bytes to use libc memset()
22298 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
22299 MEMSET_LOOP_LIMIT=1024
22302 cat >>confdefs.h <<_ACEOF
22303 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
22308 if test "$enable_nls" = yes ; then
22310 echo "$as_me:$LINENO: checking for library containing gettext" >&5
22311 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
22312 if test "${ac_cv_search_gettext+set}" = set; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 ac_func_search_save_LIBS=$LIBS
22316 ac_cv_search_gettext=no
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22324 /* Override any gcc2 internal prototype to avoid an error. */
22328 /* We use char because int might match the return type of a gcc2
22329 builtin and then its argument prototype would still apply. */
22339 rm -f conftest.$ac_objext conftest$ac_exeext
22340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22341 (eval $ac_link) 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
22348 { ac_try='test -z "$ac_c_werror_flag"
22349 || test ! -s conftest.err'
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; } &&
22355 { ac_try='test -s conftest$ac_exeext'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ac_cv_search_gettext="none required"
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22367 rm -f conftest.err conftest.$ac_objext \
22368 conftest$ac_exeext conftest.$ac_ext
22369 if test "$ac_cv_search_gettext" = no; then
22370 for ac_lib in intl; do
22371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22372 cat >conftest.$ac_ext <<_ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22379 /* Override any gcc2 internal prototype to avoid an error. */
22383 /* We use char because int might match the return type of a gcc2
22384 builtin and then its argument prototype would still apply. */
22394 rm -f conftest.$ac_objext conftest$ac_exeext
22395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22396 (eval $ac_link) 2>conftest.er1
22398 grep -v '^ *+' conftest.er1 >conftest.err
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } &&
22403 { ac_try='test -z "$ac_c_werror_flag"
22404 || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_search_gettext="-l$ac_lib"
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22423 rm -f conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_func_search_save_LIBS
22429 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
22430 echo "${ECHO_T}$ac_cv_search_gettext" >&6
22431 if test "$ac_cv_search_gettext" != no; then
22432 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
22435 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
22436 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
22437 { (exit 1); exit 1; }; }
22440 if test "${ac_cv_header_libintl_h+set}" = set; then
22441 echo "$as_me:$LINENO: checking for libintl.h" >&5
22442 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22443 if test "${ac_cv_header_libintl_h+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22447 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22449 # Is the header compilable?
22450 echo "$as_me:$LINENO: checking libintl.h usability" >&5
22451 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
22452 cat >conftest.$ac_ext <<_ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 $ac_includes_default
22459 #include <libintl.h>
22461 rm -f conftest.$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463 (eval $ac_compile) 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag"
22471 || test ! -s conftest.err'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } &&
22477 { ac_try='test -s conftest.$ac_objext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_header_compiler=yes
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ac_header_compiler=no
22490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22492 echo "${ECHO_T}$ac_header_compiler" >&6
22494 # Is the header present?
22495 echo "$as_me:$LINENO: checking libintl.h presence" >&5
22496 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 #include <libintl.h>
22505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } >/dev/null; then
22513 if test -s conftest.err; then
22514 ac_cpp_err=$ac_c_preproc_warn_flag
22515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22522 if test -z "$ac_cpp_err"; then
22523 ac_header_preproc=yes
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22528 ac_header_preproc=no
22530 rm -f conftest.err conftest.$ac_ext
22531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22532 echo "${ECHO_T}$ac_header_preproc" >&6
22534 # So? What about this header?
22535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22537 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22538 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22539 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22540 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22541 ac_header_preproc=yes
22544 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22545 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22546 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22547 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22548 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22549 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22550 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
22551 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22552 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22553 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22554 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22555 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22558 ## ---------------------------------------- ##
22559 ## Report this to pgsql-bugs@postgresql.org ##
22560 ## ---------------------------------------- ##
22563 sed "s/^/$as_me: WARNING: /" >&2
22566 echo "$as_me:$LINENO: checking for libintl.h" >&5
22567 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22568 if test "${ac_cv_header_libintl_h+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 ac_cv_header_libintl_h=$ac_header_preproc
22573 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22574 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22577 if test $ac_cv_header_libintl_h = yes; then
22580 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
22581 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
22582 { (exit 1); exit 1; }; }
22586 for ac_prog in msgfmt
22588 # Extract the first word of "$ac_prog", so it can be a program name with args.
22589 set dummy $ac_prog; ac_word=$2
22590 echo "$as_me:$LINENO: checking for $ac_word" >&5
22591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22592 if test "${ac_cv_prog_MSGFMT+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 if test -n "$MSGFMT"; then
22596 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
22598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22599 for as_dir in $PATH
22602 test -z "$as_dir" && as_dir=.
22603 for ac_exec_ext in '' $ac_executable_extensions; do
22604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22605 ac_cv_prog_MSGFMT="$ac_prog"
22606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22614 MSGFMT=$ac_cv_prog_MSGFMT
22615 if test -n "$MSGFMT"; then
22616 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22617 echo "${ECHO_T}$MSGFMT" >&6
22619 echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6
22623 test -n "$MSGFMT" && break
22626 if test -z "$MSGFMT"; then
22627 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
22628 echo "$as_me: error: msgfmt is required for NLS" >&2;}
22629 { (exit 1); exit 1; }; }
22631 for ac_prog in msgmerge
22633 # Extract the first word of "$ac_prog", so it can be a program name with args.
22634 set dummy $ac_prog; ac_word=$2
22635 echo "$as_me:$LINENO: checking for $ac_word" >&5
22636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22637 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
22638 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 if test -n "$MSGMERGE"; then
22641 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
22643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22644 for as_dir in $PATH
22647 test -z "$as_dir" && as_dir=.
22648 for ac_exec_ext in '' $ac_executable_extensions; do
22649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22650 ac_cv_prog_MSGMERGE="$ac_prog"
22651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22659 MSGMERGE=$ac_cv_prog_MSGMERGE
22660 if test -n "$MSGMERGE"; then
22661 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22662 echo "${ECHO_T}$MSGMERGE" >&6
22664 echo "$as_me:$LINENO: result: no" >&5
22665 echo "${ECHO_T}no" >&6
22668 test -n "$MSGMERGE" && break
22671 for ac_prog in xgettext
22673 # Extract the first word of "$ac_prog", so it can be a program name with args.
22674 set dummy $ac_prog; ac_word=$2
22675 echo "$as_me:$LINENO: checking for $ac_word" >&5
22676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22677 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 if test -n "$XGETTEXT"; then
22681 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
22683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22684 for as_dir in $PATH
22687 test -z "$as_dir" && as_dir=.
22688 for ac_exec_ext in '' $ac_executable_extensions; do
22689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22690 ac_cv_prog_XGETTEXT="$ac_prog"
22691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22699 XGETTEXT=$ac_cv_prog_XGETTEXT
22700 if test -n "$XGETTEXT"; then
22701 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22702 echo "${ECHO_T}$XGETTEXT" >&6
22704 echo "$as_me:$LINENO: result: no" >&5
22705 echo "${ECHO_T}no" >&6
22708 test -n "$XGETTEXT" && break
22712 # Note: share/locale is always the default, independent of $datadir
22713 localedir='${prefix}/share/locale'
22718 # Check for Tcl configuration script tclConfig.sh
22719 if test "$with_tcl" = yes; then
22720 for ac_prog in tclsh tcl
22722 # Extract the first word of "$ac_prog", so it can be a program name with args.
22723 set dummy $ac_prog; ac_word=$2
22724 echo "$as_me:$LINENO: checking for $ac_word" >&5
22725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22726 if test "${ac_cv_path_TCLSH+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
22734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22735 for as_dir in $PATH
22738 test -z "$as_dir" && as_dir=.
22739 for ac_exec_ext in '' $ac_executable_extensions; do
22740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22741 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22751 TCLSH=$ac_cv_path_TCLSH
22753 if test -n "$TCLSH"; then
22754 echo "$as_me:$LINENO: result: $TCLSH" >&5
22755 echo "${ECHO_T}$TCLSH" >&6
22757 echo "$as_me:$LINENO: result: no" >&5
22758 echo "${ECHO_T}no" >&6
22761 test -n "$TCLSH" && break
22764 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22765 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22766 # Let user override test
22767 if test -z "$TCL_CONFIG_SH"; then
22768 pgac_test_dirs="$with_tclconfig"
22770 set X $pgac_test_dirs; shift
22771 if test $# -eq 0; then
22772 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22773 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22774 { (exit 1); exit 1; }; }
22775 set X `echo 'puts $auto_path' | $TCLSH`; shift
22779 if test -r "$pgac_dir/tclConfig.sh"; then
22780 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22786 if test -z "$TCL_CONFIG_SH"; then
22787 echo "$as_me:$LINENO: result: no" >&5
22788 echo "${ECHO_T}no" >&6
22789 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22790 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22791 { (exit 1); exit 1; }; }
22793 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22794 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22800 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22801 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22802 eval TCL_LIBS=\"$TCL_LIBS\"
22803 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22804 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22806 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22807 ac_save_CPPFLAGS=$CPPFLAGS
22808 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22809 if test "${ac_cv_header_tcl_h+set}" = set; then
22810 echo "$as_me:$LINENO: checking for tcl.h" >&5
22811 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22812 if test "${ac_cv_header_tcl_h+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22815 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22816 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22818 # Is the header compilable?
22819 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22820 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22821 cat >conftest.$ac_ext <<_ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22827 $ac_includes_default
22830 rm -f conftest.$ac_objext
22831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22832 (eval $ac_compile) 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
22839 { ac_try='test -z "$ac_c_werror_flag"
22840 || test ! -s conftest.err'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; } &&
22846 { ac_try='test -s conftest.$ac_objext'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
22852 ac_header_compiler=yes
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 ac_header_compiler=no
22859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22861 echo "${ECHO_T}$ac_header_compiler" >&6
22863 # Is the header present?
22864 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22865 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22866 cat >conftest.$ac_ext <<_ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22877 grep -v '^ *+' conftest.er1 >conftest.err
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } >/dev/null; then
22882 if test -s conftest.err; then
22883 ac_cpp_err=$ac_c_preproc_warn_flag
22884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22891 if test -z "$ac_cpp_err"; then
22892 ac_header_preproc=yes
22894 echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_header_preproc=no
22899 rm -f conftest.err conftest.$ac_ext
22900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22901 echo "${ECHO_T}$ac_header_preproc" >&6
22903 # So? What about this header?
22904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22906 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22907 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22908 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22909 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22910 ac_header_preproc=yes
22913 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22914 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22915 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22916 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22917 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22918 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22919 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22920 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22921 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22922 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22924 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22927 ## ---------------------------------------- ##
22928 ## Report this to pgsql-bugs@postgresql.org ##
22929 ## ---------------------------------------- ##
22932 sed "s/^/$as_me: WARNING: /" >&2
22935 echo "$as_me:$LINENO: checking for tcl.h" >&5
22936 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22937 if test "${ac_cv_header_tcl_h+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 ac_cv_header_tcl_h=$ac_header_preproc
22942 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22943 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22946 if test $ac_cv_header_tcl_h = yes; then
22949 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22950 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22951 { (exit 1); exit 1; }; }
22955 CPPFLAGS=$ac_save_CPPFLAGS
22959 # Check for DocBook and tools
22961 for ac_prog in onsgmls nsgmls
22963 # Extract the first word of "$ac_prog", so it can be a program name with args.
22964 set dummy $ac_prog; ac_word=$2
22965 echo "$as_me:$LINENO: checking for $ac_word" >&5
22966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22967 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 if test -n "$NSGMLS"; then
22971 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22974 for as_dir in $PATH
22977 test -z "$as_dir" && as_dir=.
22978 for ac_exec_ext in '' $ac_executable_extensions; do
22979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22980 ac_cv_prog_NSGMLS="$ac_prog"
22981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22989 NSGMLS=$ac_cv_prog_NSGMLS
22990 if test -n "$NSGMLS"; then
22991 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22992 echo "${ECHO_T}$NSGMLS" >&6
22994 echo "$as_me:$LINENO: result: no" >&5
22995 echo "${ECHO_T}no" >&6
22998 test -n "$NSGMLS" && break
23001 for ac_prog in openjade jade
23003 # Extract the first word of "$ac_prog", so it can be a program name with args.
23004 set dummy $ac_prog; ac_word=$2
23005 echo "$as_me:$LINENO: checking for $ac_word" >&5
23006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23007 if test "${ac_cv_prog_JADE+set}" = set; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 if test -n "$JADE"; then
23011 ac_cv_prog_JADE="$JADE" # Let the user override the test.
23013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23014 for as_dir in $PATH
23017 test -z "$as_dir" && as_dir=.
23018 for ac_exec_ext in '' $ac_executable_extensions; do
23019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23020 ac_cv_prog_JADE="$ac_prog"
23021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23029 JADE=$ac_cv_prog_JADE
23030 if test -n "$JADE"; then
23031 echo "$as_me:$LINENO: result: $JADE" >&5
23032 echo "${ECHO_T}$JADE" >&6
23034 echo "$as_me:$LINENO: result: no" >&5
23035 echo "${ECHO_T}no" >&6
23038 test -n "$JADE" && break
23042 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
23043 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
23044 if test "${pgac_cv_check_docbook+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 cat >conftest.sgml <<EOF
23048 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
23050 <title>test</title>
23052 <title>random</title>
23054 <title>testsect</title>
23061 pgac_cv_check_docbook=no
23063 if test -n "$NSGMLS"; then
23064 $NSGMLS -s conftest.sgml 1>&5 2>&1
23065 if test $? -eq 0; then
23066 pgac_cv_check_docbook=yes
23069 rm -f conftest.sgml
23071 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
23072 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
23074 have_docbook=$pgac_cv_check_docbook
23077 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
23078 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
23079 if test "${pgac_cv_path_stylesheets+set}" = set; then
23080 echo $ECHO_N "(cached) $ECHO_C" >&6
23082 if test -n "$DOCBOOKSTYLE"; then
23083 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
23085 for pgac_prefix in /usr /usr/local /opt; do
23086 for pgac_infix in share lib; do
23087 for pgac_postfix in \
23088 sgml/stylesheets/nwalsh-modular \
23089 sgml/stylesheets/docbook \
23090 sgml/docbook-dsssl \
23091 sgml/docbook/dsssl/modular \
23092 sgml/docbook/stylesheet/dsssl/modular \
23093 sgml/docbook/dsssl-stylesheets
23095 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
23096 if test -r "$pgac_candidate/html/docbook.dsl" \
23097 && test -r "$pgac_candidate/print/docbook.dsl"
23099 pgac_cv_path_stylesheets=$pgac_candidate
23108 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
23110 if test -n "$DOCBOOKSTYLE"; then
23111 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
23112 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
23114 echo "$as_me:$LINENO: result: no" >&5
23115 echo "${ECHO_T}no" >&6
23117 if test -n "$DOCBOOKSTYLE"; then
23118 for ac_prog in collateindex.pl
23120 # Extract the first word of "$ac_prog", so it can be a program name with args.
23121 set dummy $ac_prog; ac_word=$2
23122 echo "$as_me:$LINENO: checking for $ac_word" >&5
23123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23124 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 case $COLLATEINDEX in
23129 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
23132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23133 for as_dir in $DOCBOOKSTYLE/bin $PATH
23136 test -z "$as_dir" && as_dir=.
23137 for ac_exec_ext in '' $ac_executable_extensions; do
23138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23139 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
23140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23149 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
23151 if test -n "$COLLATEINDEX"; then
23152 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
23153 echo "${ECHO_T}$COLLATEINDEX" >&6
23155 echo "$as_me:$LINENO: result: no" >&5
23156 echo "${ECHO_T}no" >&6
23159 test -n "$COLLATEINDEX" && break
23163 for ac_prog in collateindex.pl
23165 # Extract the first word of "$ac_prog", so it can be a program name with args.
23166 set dummy $ac_prog; ac_word=$2
23167 echo "$as_me:$LINENO: checking for $ac_word" >&5
23168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23169 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
23170 echo $ECHO_N "(cached) $ECHO_C" >&6
23172 case $COLLATEINDEX in
23174 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
23177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23178 for as_dir in $PATH
23181 test -z "$as_dir" && as_dir=.
23182 for ac_exec_ext in '' $ac_executable_extensions; do
23183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23184 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
23185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23194 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
23196 if test -n "$COLLATEINDEX"; then
23197 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
23198 echo "${ECHO_T}$COLLATEINDEX" >&6
23200 echo "$as_me:$LINENO: result: no" >&5
23201 echo "${ECHO_T}no" >&6
23204 test -n "$COLLATEINDEX" && break
23208 for ac_prog in sgmlspl
23210 # Extract the first word of "$ac_prog", so it can be a program name with args.
23211 set dummy $ac_prog; ac_word=$2
23212 echo "$as_me:$LINENO: checking for $ac_word" >&5
23213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23214 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
23215 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 if test -n "$SGMLSPL"; then
23218 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
23220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23221 for as_dir in $PATH
23224 test -z "$as_dir" && as_dir=.
23225 for ac_exec_ext in '' $ac_executable_extensions; do
23226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23227 ac_cv_prog_SGMLSPL="$ac_prog"
23228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23236 SGMLSPL=$ac_cv_prog_SGMLSPL
23237 if test -n "$SGMLSPL"; then
23238 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
23239 echo "${ECHO_T}$SGMLSPL" >&6
23241 echo "$as_me:$LINENO: result: no" >&5
23242 echo "${ECHO_T}no" >&6
23245 test -n "$SGMLSPL" && break
23251 # We have to run the thread test near the end so we have all our symbols
23252 # defined. Cross compiling throws a warning.
23254 if test "$enable_thread_safety_force" = yes; then
23255 if test x"$template" != x"win32"
23257 { echo "$as_me:$LINENO: WARNING:
23258 *** Skipping thread test program. --enable-thread-safety-force was used.
23259 *** Run the program in src/test/thread on the your machine and add proper
23260 *** locking function calls to your applications to guarantee thread safety.
23262 echo "$as_me: WARNING:
23263 *** Skipping thread test program. --enable-thread-safety-force was used.
23264 *** Run the program in src/test/thread on the your machine and add proper
23265 *** locking function calls to your applications to guarantee thread safety.
23268 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23269 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23271 elif test "$enable_thread_safety" = yes; then
23272 if test x"$template" != x"win32"
23274 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
23275 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
23279 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
23280 LIBS="$LIBS $PTHREAD_LIBS"
23281 if test "$cross_compiling" = yes; then
23282 echo "$as_me:$LINENO: result: maybe" >&5
23283 echo "${ECHO_T}maybe" >&6
23284 { echo "$as_me:$LINENO: WARNING:
23285 *** Skipping thread test program because of cross-compile build.
23286 *** Run the program in src/test/thread on the target machine.
23288 echo "$as_me: WARNING:
23289 *** Skipping thread test program because of cross-compile build.
23290 *** Run the program in src/test/thread on the target machine.
23293 cat >conftest.$ac_ext <<_ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h. */
23299 #include "$srcdir/src/test/thread/thread_test.c"
23301 rm -f conftest$ac_exeext
23302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23303 (eval $ac_link) 2>&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 echo "$as_me:$LINENO: result: yes" >&5
23313 echo "${ECHO_T}yes" >&6
23315 echo "$as_me: program exited with status $ac_status" >&5
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ( exit $ac_status )
23320 echo "$as_me:$LINENO: result: no" >&5
23321 echo "${ECHO_T}no" >&6
23322 { { echo "$as_me:$LINENO: error: thread test program failed
23323 This platform is not thread-safe. Check the file 'config.log'for the
23326 You can use the configure option --enable-thread-safety-force to force
23327 threads to be enabled. But you must then run the program in
23328 src/test/thread and add locking function calls to your applications to
23329 guarantee thread safety." >&5
23330 echo "$as_me: error: thread test program failed
23331 This platform is not thread-safe. Check the file 'config.log'for the
23334 You can use the configure option --enable-thread-safety-force to force
23335 threads to be enabled. But you must then run the program in
23336 src/test/thread and add locking function calls to your applications to
23337 guarantee thread safety." >&2;}
23338 { (exit 1); exit 1; }; }
23340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23345 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23346 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23350 # prepare build tree if outside source tree
23351 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
23352 # Note 2: /bin/pwd might be better than shell's built-in at getting
23353 # a symlink-free name.
23354 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
23358 if test "$no_create" != yes; then
23359 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
23360 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
23361 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
23362 || { { echo "$as_me:$LINENO: error: failed" >&5
23363 echo "$as_me: error: failed" >&2;}
23364 { (exit 1); exit 1; }; }
23365 echo "$as_me:$LINENO: result: done" >&5
23366 echo "${ECHO_T}done" >&6
23372 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
23375 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}"
23378 if test "$PORTNAME" = "win32"; then
23379 ac_config_commands="$ac_config_commands check_win32_symlinks"
23383 ac_config_headers="$ac_config_headers src/include/pg_config.h"
23386 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
23389 cat >confcache <<\_ACEOF
23390 # This file is a shell script that caches the results of configure
23391 # tests run on this system so they can be shared between configure
23392 # scripts and configure runs, see configure's option --config-cache.
23393 # It is not useful on other systems. If it contains results you don't
23394 # want to keep, you may remove or edit it.
23396 # config.status only pays attention to the cache file if you give it
23397 # the --recheck option to rerun configure.
23399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23401 # following values.
23405 # The following way of writing the cache mishandles newlines in values,
23406 # but we know of no workaround that is simple, portable, and efficient.
23407 # So, don't put newlines in cache variables' values.
23408 # Ultrix sh set writes to stderr and can't be redirected directly,
23409 # and sets the high bit in the cache file unless we assign to the vars.
23412 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23414 # `set' does not quote correctly, so add quotes (double-quote
23415 # substitution turns \\\\ into \\, and sed turns \\ into \).
23418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23421 # `set' quotes correctly as required by POSIX, so do not add quotes.
23423 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23432 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23434 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23435 if test -w $cache_file; then
23436 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23437 cat confcache >$cache_file
23439 echo "not updating unwritable cache $cache_file"
23444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23445 # Let make expand exec_prefix.
23446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23448 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23449 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23450 # trailing colons and then remove the whole line if VPATH becomes empty
23451 # (actually we leave an empty line to preserve line numbers).
23452 if test "x$srcdir" = x.; then
23453 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23454 s/:*\$(srcdir):*/:/;
23455 s/:*\${srcdir}:*/:/;
23457 s/^\([^=]*=[ ]*\):*/\1/;
23463 DEFS=-DHAVE_CONFIG_H
23467 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23468 # 1. Remove the extension, and $U if already installed.
23469 ac_i=`echo "$ac_i" |
23470 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23472 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23473 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23475 LIBOBJS=$ac_libobjs
23477 LTLIBOBJS=$ac_ltlibobjs
23481 : ${CONFIG_STATUS=./config.status}
23482 ac_clean_files_save=$ac_clean_files
23483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23484 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23485 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23486 cat >$CONFIG_STATUS <<_ACEOF
23488 # Generated by $as_me.
23489 # Run this file to recreate the current configuration.
23490 # Compiler output produced by configure, useful for debugging
23491 # configure, is in config.log if it exists.
23494 ac_cs_recheck=false
23496 SHELL=\${CONFIG_SHELL-$SHELL}
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23500 ## --------------------- ##
23501 ## M4sh Initialization. ##
23502 ## --------------------- ##
23504 # Be Bourne compatible
23505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23508 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23509 # is contrary to our usage. Disable this feature.
23510 alias -g '${1+"$@"}'='"$@"'
23511 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23514 DUALCASE=1; export DUALCASE # for MKS sh
23516 # Support unset when possible.
23517 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23524 # Work around bugs in pre-3.0 UWIN ksh.
23525 $as_unset ENV MAIL MAILPATH
23532 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23533 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23534 LC_TELEPHONE LC_TIME
23536 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23537 eval $as_var=C; export $as_var
23543 # Required to use basename.
23544 if expr a : '\(a\)' >/dev/null 2>&1; then
23550 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23551 as_basename=basename
23557 # Name of the executable.
23558 as_me=`$as_basename "$0" ||
23559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23560 X"$0" : 'X\(//\)$' \| \
23561 X"$0" : 'X\(/\)$' \| \
23562 . : '\(.\)' 2>/dev/null ||
23564 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23565 /^X\/\(\/\/\)$/{ s//\1/; q; }
23566 /^X\/\(\/\).*/{ s//\1/; q; }
23570 # PATH needs CR, and LINENO needs CR and PATH.
23571 # Avoid depending upon Character Ranges.
23572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23575 as_cr_digits='0123456789'
23576 as_cr_alnum=$as_cr_Letters$as_cr_digits
23578 # The user is always right.
23579 if test "${PATH_SEPARATOR+set}" != set; then
23580 echo "#! /bin/sh" >conf$$.sh
23581 echo "exit 0" >>conf$$.sh
23583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23592 as_lineno_1=$LINENO
23593 as_lineno_2=$LINENO
23594 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23595 test "x$as_lineno_1" != "x$as_lineno_2" &&
23596 test "x$as_lineno_3" = "x$as_lineno_2" || {
23597 # Find who we are. Look in the path if we contain no path at all
23600 *[\\/]* ) as_myself=$0 ;;
23601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23602 for as_dir in $PATH
23605 test -z "$as_dir" && as_dir=.
23606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23611 # We did not find ourselves, most probably we were run as `sh COMMAND'
23612 # in which case we are not to be found in the path.
23613 if test "x$as_myself" = x; then
23616 if test ! -f "$as_myself"; then
23617 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23618 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23619 { (exit 1); exit 1; }; }
23621 case $CONFIG_SHELL in
23623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23624 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23627 test -z "$as_dir" && as_dir=.
23628 for as_base in sh bash ksh sh5; do
23631 if ("$as_dir/$as_base" -c '
23632 as_lineno_1=$LINENO
23633 as_lineno_2=$LINENO
23634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23635 test "x$as_lineno_1" != "x$as_lineno_2" &&
23636 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23637 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23638 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23639 CONFIG_SHELL=$as_dir/$as_base
23640 export CONFIG_SHELL
23641 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23650 # uniformly replaced by the line number. The first 'sed' inserts a
23651 # line-number line before each line; the second 'sed' does the real
23652 # work. The second script uses 'N' to pair each line-number line
23653 # with the numbered line, and appends trailing '-' during
23654 # substitution so that $LINENO is not a special case at line end.
23655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23656 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23657 sed '=' <$as_myself |
23662 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23665 s,^['$as_cr_digits']*\n,,
23666 ' >$as_me.lineno &&
23667 chmod +x $as_me.lineno ||
23668 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23669 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23670 { (exit 1); exit 1; }; }
23672 # Don't try to exec as it changes $[0], causing all sort of problems
23673 # (the dirname of $[0] is not the place where we might find the
23674 # original and so on. Autoconf is especially sensible to this).
23676 # Exit status is that of the last command.
23681 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23682 *c*,-n*) ECHO_N= ECHO_C='
23684 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23685 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23688 if expr a : '\(a\)' >/dev/null 2>&1; then
23694 rm -f conf$$ conf$$.exe conf$$.file
23696 if ln -s conf$$.file conf$$ 2>/dev/null; then
23697 # We could just check for DJGPP; but this test a) works b) is more generic
23698 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23699 if test -f conf$$.exe; then
23700 # Don't use ln at all; we don't have any links
23705 elif ln conf$$.file conf$$ 2>/dev/null; then
23710 rm -f conf$$ conf$$.exe conf$$.file
23712 if mkdir -p . 2>/dev/null; then
23715 test -d ./-p && rmdir ./-p
23719 as_executable_p="test -f"
23721 # Sed expression to map a string onto a valid CPP name.
23722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23724 # Sed expression to map a string onto a valid variable name.
23725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23729 # We need space, tab and new line, in precisely that order.
23739 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23740 # report actual input values of CONFIG_FILES etc. instead of their
23741 # values after options handling. Logging --version etc. is OK.
23745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23746 ## Running $as_me. ##
23751 This file was extended by PostgreSQL $as_me 8.3devel, which was
23752 generated by GNU Autoconf 2.59. Invocation command line was
23754 CONFIG_FILES = $CONFIG_FILES
23755 CONFIG_HEADERS = $CONFIG_HEADERS
23756 CONFIG_LINKS = $CONFIG_LINKS
23757 CONFIG_COMMANDS = $CONFIG_COMMANDS
23761 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23765 # Files that config.status was made for.
23766 if test -n "$ac_config_files"; then
23767 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23770 if test -n "$ac_config_headers"; then
23771 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23774 if test -n "$ac_config_links"; then
23775 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23778 if test -n "$ac_config_commands"; then
23779 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23782 cat >>$CONFIG_STATUS <<\_ACEOF
23785 \`$as_me' instantiates files from templates according to the
23786 current configuration.
23788 Usage: $0 [OPTIONS] [FILE]...
23790 -h, --help print this help, then exit
23791 -V, --version print version number, then exit
23792 -q, --quiet do not print progress messages
23793 -d, --debug don't remove temporary files
23794 --recheck update $as_me by reconfiguring in the same conditions
23795 --file=FILE[:TEMPLATE]
23796 instantiate the configuration file FILE
23797 --header=FILE[:TEMPLATE]
23798 instantiate the configuration header FILE
23800 Configuration files:
23803 Configuration headers:
23806 Configuration links:
23809 Configuration commands:
23812 Report bugs to <bug-autoconf@gnu.org>."
23815 cat >>$CONFIG_STATUS <<_ACEOF
23817 PostgreSQL config.status 8.3devel
23818 configured by $0, generated by GNU Autoconf 2.59,
23819 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23821 Copyright (C) 2003 Free Software Foundation, Inc.
23822 This config.status script is free software; the Free Software Foundation
23823 gives unlimited permission to copy, distribute and modify it."
23827 cat >>$CONFIG_STATUS <<\_ACEOF
23828 # If no file are specified by the user, then we need to provide default
23829 # value. By we need to know if files were specified by the user.
23835 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23836 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23844 *) # This is not an option, so the user has probably given explicit
23847 ac_need_defaults=false;;
23851 # Handling of the options.
23853 cat >>$CONFIG_STATUS <<\_ACEOF
23854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23856 --version | --vers* | -V )
23857 echo "$ac_cs_version"; exit 0 ;;
23859 # Conflict between --help and --header
23860 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23861 Try \`$0 --help' for more information." >&5
23862 echo "$as_me: error: ambiguous option: $1
23863 Try \`$0 --help' for more information." >&2;}
23864 { (exit 1); exit 1; }; };;
23865 --help | --hel | -h )
23866 echo "$ac_cs_usage"; exit 0 ;;
23867 --debug | --d* | -d )
23869 --file | --fil | --fi | --f )
23871 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23872 ac_need_defaults=false;;
23873 --header | --heade | --head | --hea )
23875 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23876 ac_need_defaults=false;;
23877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23881 # This is an error.
23882 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23883 Try \`$0 --help' for more information." >&5
23884 echo "$as_me: error: unrecognized option: $1
23885 Try \`$0 --help' for more information." >&2;}
23886 { (exit 1); exit 1; }; } ;;
23888 *) ac_config_targets="$ac_config_targets $1" ;;
23894 ac_configure_extra_args=
23896 if $ac_cs_silent; then
23898 ac_configure_extra_args="$ac_configure_extra_args --silent"
23902 cat >>$CONFIG_STATUS <<_ACEOF
23903 if \$ac_cs_recheck; then
23904 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23905 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23914 cat >>$CONFIG_STATUS <<\_ACEOF
23915 for ac_config_target in $ac_config_targets
23917 case "$ac_config_target" in
23918 # Handling of arguments.
23919 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23920 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23921 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23922 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23923 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23924 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23925 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23926 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23927 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23928 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23929 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23930 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
23931 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23933 { (exit 1); exit 1; }; };;
23937 # If the user did not use the arguments to specify the items to instantiate,
23938 # then the envvar interface is used. Set only those that are not.
23939 # We use the long form for the default assignment because of an extremely
23940 # bizarre bug on SunOS 4.1.3.
23941 if $ac_need_defaults; then
23942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23944 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23948 # Have a temporary directory for convenience. Make it in the build tree
23949 # simply because there is no reason to put it here, and in addition,
23950 # creating and moving files from /tmp can sometimes cause problems.
23951 # Create a temporary directory, and hook for its removal unless debugging.
23954 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23955 trap '{ (exit 1); exit 1; }' 1 2 13 15
23958 # Create a (secure) tmp directory for tmp files.
23961 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23962 test -n "$tmp" && test -d "$tmp"
23965 tmp=./confstat$$-$RANDOM
23966 (umask 077 && mkdir $tmp)
23969 echo "$me: cannot create a temporary directory in ." >&2
23970 { (exit 1); exit 1; }
23975 cat >>$CONFIG_STATUS <<_ACEOF
23978 # CONFIG_FILES section.
23981 # No need to generate the scripts if there are no CONFIG_FILES.
23982 # This happens for instance when ./config.status config.h
23983 if test -n "\$CONFIG_FILES"; then
23984 # Protect against being on the right side of a sed subst in config.status.
23985 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23986 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23987 s,@SHELL@,$SHELL,;t t
23988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23994 s,@exec_prefix@,$exec_prefix,;t t
23995 s,@prefix@,$prefix,;t t
23996 s,@program_transform_name@,$program_transform_name,;t t
23997 s,@bindir@,$bindir,;t t
23998 s,@sbindir@,$sbindir,;t t
23999 s,@libexecdir@,$libexecdir,;t t
24000 s,@datadir@,$datadir,;t t
24001 s,@sysconfdir@,$sysconfdir,;t t
24002 s,@sharedstatedir@,$sharedstatedir,;t t
24003 s,@localstatedir@,$localstatedir,;t t
24004 s,@libdir@,$libdir,;t t
24005 s,@includedir@,$includedir,;t t
24006 s,@oldincludedir@,$oldincludedir,;t t
24007 s,@infodir@,$infodir,;t t
24008 s,@mandir@,$mandir,;t t
24009 s,@build_alias@,$build_alias,;t t
24010 s,@host_alias@,$host_alias,;t t
24011 s,@target_alias@,$target_alias,;t t
24012 s,@DEFS@,$DEFS,;t t
24013 s,@ECHO_C@,$ECHO_C,;t t
24014 s,@ECHO_N@,$ECHO_N,;t t
24015 s,@ECHO_T@,$ECHO_T,;t t
24016 s,@LIBS@,$LIBS,;t t
24017 s,@configure_args@,$configure_args,;t t
24018 s,@build@,$build,;t t
24019 s,@build_cpu@,$build_cpu,;t t
24020 s,@build_vendor@,$build_vendor,;t t
24021 s,@build_os@,$build_os,;t t
24022 s,@host@,$host,;t t
24023 s,@host_cpu@,$host_cpu,;t t
24024 s,@host_vendor@,$host_vendor,;t t
24025 s,@host_os@,$host_os,;t t
24026 s,@PORTNAME@,$PORTNAME,;t t
24027 s,@docdir@,$docdir,;t t
24028 s,@enable_nls@,$enable_nls,;t t
24029 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
24030 s,@default_port@,$default_port,;t t
24031 s,@enable_shared@,$enable_shared,;t t
24032 s,@enable_rpath@,$enable_rpath,;t t
24033 s,@enable_debug@,$enable_debug,;t t
24034 s,@enable_profiling@,$enable_profiling,;t t
24035 s,@DTRACE@,$DTRACE,;t t
24036 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
24037 s,@enable_dtrace@,$enable_dtrace,;t t
24039 s,@CFLAGS@,$CFLAGS,;t t
24040 s,@LDFLAGS@,$LDFLAGS,;t t
24041 s,@CPPFLAGS@,$CPPFLAGS,;t t
24042 s,@ac_ct_CC@,$ac_ct_CC,;t t
24043 s,@EXEEXT@,$EXEEXT,;t t
24044 s,@OBJEXT@,$OBJEXT,;t t
24048 s,@autodepend@,$autodepend,;t t
24049 s,@INCLUDES@,$INCLUDES,;t t
24050 s,@enable_thread_safety@,$enable_thread_safety,;t t
24051 s,@with_tcl@,$with_tcl,;t t
24052 s,@with_perl@,$with_perl,;t t
24053 s,@with_python@,$with_python,;t t
24054 s,@with_krb5@,$with_krb5,;t t
24055 s,@krb_srvtab@,$krb_srvtab,;t t
24056 s,@with_pam@,$with_pam,;t t
24057 s,@with_ldap@,$with_ldap,;t t
24058 s,@with_bonjour@,$with_bonjour,;t t
24059 s,@with_openssl@,$with_openssl,;t t
24060 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
24061 s,@with_zlib@,$with_zlib,;t t
24062 s,@EGREP@,$EGREP,;t t
24063 s,@ELF_SYS@,$ELF_SYS,;t t
24064 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
24066 s,@FLEX@,$FLEX,;t t
24067 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
24068 s,@LN_S@,$LN_S,;t t
24070 s,@with_gnu_ld@,$with_gnu_ld,;t t
24071 s,@ld_R_works@,$ld_R_works,;t t
24072 s,@RANLIB@,$RANLIB,;t t
24073 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24075 s,@STRIP@,$STRIP,;t t
24076 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24077 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
24078 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
24079 s,@YACC@,$YACC,;t t
24080 s,@YFLAGS@,$YFLAGS,;t t
24081 s,@PERL@,$PERL,;t t
24082 s,@perl_archlibexp@,$perl_archlibexp,;t t
24083 s,@perl_privlibexp@,$perl_privlibexp,;t t
24084 s,@perl_useshrplib@,$perl_useshrplib,;t t
24085 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
24086 s,@PYTHON@,$PYTHON,;t t
24087 s,@python_version@,$python_version,;t t
24088 s,@python_configdir@,$python_configdir,;t t
24089 s,@python_includespec@,$python_includespec,;t t
24090 s,@python_libdir@,$python_libdir,;t t
24091 s,@python_libspec@,$python_libspec,;t t
24092 s,@python_additional_libs@,$python_additional_libs,;t t
24093 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
24094 s,@LIBOBJS@,$LIBOBJS,;t t
24095 s,@acx_pthread_config@,$acx_pthread_config,;t t
24096 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
24097 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
24098 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
24099 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
24100 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
24101 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
24102 s,@MSGFMT@,$MSGFMT,;t t
24103 s,@MSGMERGE@,$MSGMERGE,;t t
24104 s,@XGETTEXT@,$XGETTEXT,;t t
24105 s,@localedir@,$localedir,;t t
24106 s,@TCLSH@,$TCLSH,;t t
24107 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
24108 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
24109 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
24110 s,@TCL_LIBS@,$TCL_LIBS,;t t
24111 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24112 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
24113 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24114 s,@NSGMLS@,$NSGMLS,;t t
24115 s,@JADE@,$JADE,;t t
24116 s,@have_docbook@,$have_docbook,;t t
24117 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
24118 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
24119 s,@SGMLSPL@,$SGMLSPL,;t t
24120 s,@vpath_build@,$vpath_build,;t t
24121 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24126 cat >>$CONFIG_STATUS <<\_ACEOF
24127 # Split the substitutions into bite-sized pieces for seds with
24128 # small command number limits, like on Digital OSF/1 and HP-UX.
24129 ac_max_sed_lines=48
24130 ac_sed_frag=1 # Number of current file.
24131 ac_beg=1 # First line for current file.
24132 ac_end=$ac_max_sed_lines # Line after last line for current file.
24135 while $ac_more_lines; do
24136 if test $ac_beg -gt 1; then
24137 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24139 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24141 if test ! -s $tmp/subs.frag; then
24142 ac_more_lines=false
24144 # The purpose of the label and of the branching condition is to
24145 # speed up the sed processing (if there are no `@' at all, there
24146 # is no need to browse any of the substitutions).
24147 # These are the two extra sed commands mentioned above.
24149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24150 if test -z "$ac_sed_cmds"; then
24151 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24153 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24155 ac_sed_frag=`expr $ac_sed_frag + 1`
24157 ac_end=`expr $ac_end + $ac_max_sed_lines`
24160 if test -z "$ac_sed_cmds"; then
24163 fi # test -n "$CONFIG_FILES"
24166 cat >>$CONFIG_STATUS <<\_ACEOF
24167 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24170 - | *:- | *:-:* ) # input from stdin
24172 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24174 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24176 * ) ac_file_in=$ac_file.in ;;
24179 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$ac_file" : 'X\(//\)[^/]' \| \
24183 X"$ac_file" : 'X\(//\)$' \| \
24184 X"$ac_file" : 'X\(/\)' \| \
24185 . : '\(.\)' 2>/dev/null ||
24187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24189 /^X\(\/\/\)$/{ s//\1/; q; }
24190 /^X\(\/\).*/{ s//\1/; q; }
24192 { if $as_mkdir_p; then
24197 while test ! -d "$as_dir"; do
24198 as_dirs="$as_dir $as_dirs"
24199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24201 X"$as_dir" : 'X\(//\)[^/]' \| \
24202 X"$as_dir" : 'X\(//\)$' \| \
24203 X"$as_dir" : 'X\(/\)' \| \
24204 . : '\(.\)' 2>/dev/null ||
24206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24208 /^X\(\/\/\)$/{ s//\1/; q; }
24209 /^X\(\/\).*/{ s//\1/; q; }
24212 test ! -n "$as_dirs" || mkdir $as_dirs
24213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24215 { (exit 1); exit 1; }; }; }
24219 if test "$ac_dir" != .; then
24220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24221 # A "../" for each directory in $ac_dir_suffix.
24222 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24224 ac_dir_suffix= ac_top_builddir=
24228 .) # No --srcdir option. We are building in place.
24230 if test -z "$ac_top_builddir"; then
24233 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24235 [\\/]* | ?:[\\/]* ) # Absolute path.
24236 ac_srcdir=$srcdir$ac_dir_suffix;
24237 ac_top_srcdir=$srcdir ;;
24238 *) # Relative path.
24239 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24240 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24243 # Do not use `cd foo && pwd` to compute absolute paths, because
24244 # the directories may not exist.
24246 .) ac_abs_builddir="$ac_dir";;
24249 .) ac_abs_builddir=`pwd`;;
24250 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24251 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24254 case $ac_abs_builddir in
24255 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24257 case ${ac_top_builddir}. in
24258 .) ac_abs_top_builddir=$ac_abs_builddir;;
24259 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24260 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24263 case $ac_abs_builddir in
24264 .) ac_abs_srcdir=$ac_srcdir;;
24267 .) ac_abs_srcdir=$ac_abs_builddir;;
24268 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24269 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24272 case $ac_abs_builddir in
24273 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24275 case $ac_top_srcdir in
24276 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24277 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24278 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24284 if test x"$ac_file" != x-; then
24285 { echo "$as_me:$LINENO: creating $ac_file" >&5
24286 echo "$as_me: creating $ac_file" >&6;}
24289 # Let's still pretend it is `configure' which instantiates (i.e., don't
24290 # use $as_me), people would be surprised to read:
24291 # /* config.h. Generated by config.status. */
24292 if test x"$ac_file" = x-; then
24295 configure_input="$ac_file. "
24297 configure_input=$configure_input"Generated from `echo $ac_file_in |
24298 sed 's,.*/,,'` by configure."
24300 # First look for the input files in the build tree, otherwise in the
24302 ac_file_inputs=`IFS=:
24303 for f in $ac_file_in; do
24305 -) echo $tmp/stdin ;;
24307 # Absolute (can't be DOS-style, as IFS=:)
24308 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24309 echo "$as_me: error: cannot find input file: $f" >&2;}
24310 { (exit 1); exit 1; }; }
24313 if test -f "$f"; then
24316 elif test -f "$srcdir/$f"; then
24321 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24322 echo "$as_me: error: cannot find input file: $f" >&2;}
24323 { (exit 1); exit 1; }; }
24326 done` || { (exit 1); exit 1; }
24328 cat >>$CONFIG_STATUS <<_ACEOF
24332 cat >>$CONFIG_STATUS <<\_ACEOF
24334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24335 s,@configure_input@,$configure_input,;t t
24336 s,@srcdir@,$ac_srcdir,;t t
24337 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24338 s,@top_srcdir@,$ac_top_srcdir,;t t
24339 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24340 s,@builddir@,$ac_builddir,;t t
24341 s,@abs_builddir@,$ac_abs_builddir,;t t
24342 s,@top_builddir@,$ac_top_builddir,;t t
24343 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24344 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24346 if test x"$ac_file" != x-; then
24347 mv $tmp/out $ac_file
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24358 # CONFIG_HEADER section.
24361 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24362 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24364 # ac_d sets the value in "#define NAME VALUE" lines.
24365 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24366 ac_dB='[ ].*$,\1#\2'
24369 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24370 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24371 ac_uB='$,\1#\2define\3'
24375 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24378 - | *:- | *:-:* ) # input from stdin
24380 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24382 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24384 * ) ac_file_in=$ac_file.in ;;
24387 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24388 echo "$as_me: creating $ac_file" >&6;}
24390 # First look for the input files in the build tree, otherwise in the
24392 ac_file_inputs=`IFS=:
24393 for f in $ac_file_in; do
24395 -) echo $tmp/stdin ;;
24397 # Absolute (can't be DOS-style, as IFS=:)
24398 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24399 echo "$as_me: error: cannot find input file: $f" >&2;}
24400 { (exit 1); exit 1; }; }
24401 # Do quote $f, to prevent DOS paths from being IFS'd.
24404 if test -f "$f"; then
24407 elif test -f "$srcdir/$f"; then
24412 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24413 echo "$as_me: error: cannot find input file: $f" >&2;}
24414 { (exit 1); exit 1; }; }
24417 done` || { (exit 1); exit 1; }
24418 # Remove the trailing spaces.
24419 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24423 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24424 # `conftest.undefs', that substitutes the proper values into
24425 # config.h.in to produce config.h. The first handles `#define'
24426 # templates, and the second `#undef' templates.
24427 # And first: Protect against being on the right side of a sed subst in
24428 # config.status. Protect against being in an unquoted here document
24429 # in config.status.
24430 rm -f conftest.defines conftest.undefs
24431 # Using a here document instead of a string reduces the quoting nightmare.
24432 # Putting comments in sed scripts is not portable.
24434 # `end' is used to avoid that the second main sed command (meant for
24435 # 0-ary CPP macros) applies to n-ary macro definitions.
24436 # See the Autoconf documentation for `clear'.
24437 cat >confdef2sed.sed <<\_ACEOF
24442 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24444 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24447 # If some macros were called several times there might be several times
24448 # the same #defines, which is useless. Nevertheless, we may not want to
24449 # sort them, since we want the *last* AC-DEFINE to be honored.
24450 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24451 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24452 rm -f confdef2sed.sed
24454 # This sed command replaces #undef with comments. This is necessary, for
24455 # example, in the case of _POSIX_SOURCE, which is predefined and required
24456 # on some systems where configure will not decide to define it.
24457 cat >>conftest.undefs <<\_ACEOF
24458 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24461 # Break up conftest.defines because some shells have a limit on the size
24462 # of here documents, and old seds have small limits too (100 cmds).
24463 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24464 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24465 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24466 echo ' :' >>$CONFIG_STATUS
24467 rm -f conftest.tail
24468 while grep . conftest.defines >/dev/null
24470 # Write a limited-size here document to $tmp/defines.sed.
24471 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24472 # Speed up: don't consider the non `#define' lines.
24473 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24474 # Work around the forget-to-reset-the-flag bug.
24475 echo 't clr' >>$CONFIG_STATUS
24476 echo ': clr' >>$CONFIG_STATUS
24477 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24479 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24481 mv $tmp/out $tmp/in
24483 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24484 rm -f conftest.defines
24485 mv conftest.tail conftest.defines
24487 rm -f conftest.defines
24488 echo ' fi # grep' >>$CONFIG_STATUS
24489 echo >>$CONFIG_STATUS
24491 # Break up conftest.undefs because some shells have a limit on the size
24492 # of here documents, and old seds have small limits too (100 cmds).
24493 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24494 rm -f conftest.tail
24495 while grep . conftest.undefs >/dev/null
24497 # Write a limited-size here document to $tmp/undefs.sed.
24498 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24499 # Speed up: don't consider the non `#undef'
24500 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24501 # Work around the forget-to-reset-the-flag bug.
24502 echo 't clr' >>$CONFIG_STATUS
24503 echo ': clr' >>$CONFIG_STATUS
24504 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24506 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24508 mv $tmp/out $tmp/in
24510 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24511 rm -f conftest.undefs
24512 mv conftest.tail conftest.undefs
24514 rm -f conftest.undefs
24516 cat >>$CONFIG_STATUS <<\_ACEOF
24517 # Let's still pretend it is `configure' which instantiates (i.e., don't
24518 # use $as_me), people would be surprised to read:
24519 # /* config.h. Generated by config.status. */
24520 if test x"$ac_file" = x-; then
24521 echo "/* Generated by configure. */" >$tmp/config.h
24523 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24525 cat $tmp/in >>$tmp/config.h
24527 if test x"$ac_file" != x-; then
24528 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24529 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24530 echo "$as_me: $ac_file is unchanged" >&6;}
24532 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24533 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24534 X"$ac_file" : 'X\(//\)[^/]' \| \
24535 X"$ac_file" : 'X\(//\)$' \| \
24536 X"$ac_file" : 'X\(/\)' \| \
24537 . : '\(.\)' 2>/dev/null ||
24539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24541 /^X\(\/\/\)$/{ s//\1/; q; }
24542 /^X\(\/\).*/{ s//\1/; q; }
24544 { if $as_mkdir_p; then
24549 while test ! -d "$as_dir"; do
24550 as_dirs="$as_dir $as_dirs"
24551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553 X"$as_dir" : 'X\(//\)[^/]' \| \
24554 X"$as_dir" : 'X\(//\)$' \| \
24555 X"$as_dir" : 'X\(/\)' \| \
24556 . : '\(.\)' 2>/dev/null ||
24558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24560 /^X\(\/\/\)$/{ s//\1/; q; }
24561 /^X\(\/\).*/{ s//\1/; q; }
24564 test ! -n "$as_dirs" || mkdir $as_dirs
24565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24566 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24567 { (exit 1); exit 1; }; }; }
24570 mv $tmp/config.h $ac_file
24574 rm -f $tmp/config.h
24576 # Run the commands associated with the file.
24578 src/include/pg_config.h )
24579 # Update timestamp for pg_config.h (see Makefile.global)
24580 echo >src/include/stamp-h
24585 cat >>$CONFIG_STATUS <<\_ACEOF
24588 # CONFIG_LINKS section.
24591 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24592 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24593 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24595 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24596 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24598 if test ! -r $srcdir/$ac_source; then
24599 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24600 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24601 { (exit 1); exit 1; }; }
24605 # Make relative symlinks.
24606 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24608 X"$ac_dest" : 'X\(//\)[^/]' \| \
24609 X"$ac_dest" : 'X\(//\)$' \| \
24610 X"$ac_dest" : 'X\(/\)' \| \
24611 . : '\(.\)' 2>/dev/null ||
24613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24615 /^X\(\/\/\)$/{ s//\1/; q; }
24616 /^X\(\/\).*/{ s//\1/; q; }
24618 { if $as_mkdir_p; then
24619 mkdir -p "$ac_dest_dir"
24621 as_dir="$ac_dest_dir"
24623 while test ! -d "$as_dir"; do
24624 as_dirs="$as_dir $as_dirs"
24625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24627 X"$as_dir" : 'X\(//\)[^/]' \| \
24628 X"$as_dir" : 'X\(//\)$' \| \
24629 X"$as_dir" : 'X\(/\)' \| \
24630 . : '\(.\)' 2>/dev/null ||
24632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24634 /^X\(\/\/\)$/{ s//\1/; q; }
24635 /^X\(\/\).*/{ s//\1/; q; }
24638 test ! -n "$as_dirs" || mkdir $as_dirs
24639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24640 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24641 { (exit 1); exit 1; }; }; }
24645 if test "$ac_dest_dir" != .; then
24646 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24647 # A "../" for each directory in $ac_dir_suffix.
24648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24650 ac_dir_suffix= ac_top_builddir=
24654 .) # No --srcdir option. We are building in place.
24656 if test -z "$ac_top_builddir"; then
24659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24661 [\\/]* | ?:[\\/]* ) # Absolute path.
24662 ac_srcdir=$srcdir$ac_dir_suffix;
24663 ac_top_srcdir=$srcdir ;;
24664 *) # Relative path.
24665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24669 # Do not use `cd foo && pwd` to compute absolute paths, because
24670 # the directories may not exist.
24672 .) ac_abs_builddir="$ac_dest_dir";;
24674 case "$ac_dest_dir" in
24675 .) ac_abs_builddir=`pwd`;;
24676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24677 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24680 case $ac_abs_builddir in
24681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24683 case ${ac_top_builddir}. in
24684 .) ac_abs_top_builddir=$ac_abs_builddir;;
24685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24689 case $ac_abs_builddir in
24690 .) ac_abs_srcdir=$ac_srcdir;;
24693 .) ac_abs_srcdir=$ac_abs_builddir;;
24694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24698 case $ac_abs_builddir in
24699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24701 case $ac_top_srcdir in
24702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24710 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24711 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24714 # Try a symlink, then a hard link, then a copy.
24715 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24716 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24717 cp -p $srcdir/$ac_source $ac_dest ||
24718 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24719 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24720 { (exit 1); exit 1; }; }
24723 cat >>$CONFIG_STATUS <<\_ACEOF
24726 # CONFIG_COMMANDS section.
24728 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24729 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24730 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24731 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24732 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24733 X"$ac_dest" : 'X\(//\)[^/]' \| \
24734 X"$ac_dest" : 'X\(//\)$' \| \
24735 X"$ac_dest" : 'X\(/\)' \| \
24736 . : '\(.\)' 2>/dev/null ||
24738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24740 /^X\(\/\/\)$/{ s//\1/; q; }
24741 /^X\(\/\).*/{ s//\1/; q; }
24743 { if $as_mkdir_p; then
24748 while test ! -d "$as_dir"; do
24749 as_dirs="$as_dir $as_dirs"
24750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24752 X"$as_dir" : 'X\(//\)[^/]' \| \
24753 X"$as_dir" : 'X\(//\)$' \| \
24754 X"$as_dir" : 'X\(/\)' \| \
24755 . : '\(.\)' 2>/dev/null ||
24757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24759 /^X\(\/\/\)$/{ s//\1/; q; }
24760 /^X\(\/\).*/{ s//\1/; q; }
24763 test ! -n "$as_dirs" || mkdir $as_dirs
24764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24766 { (exit 1); exit 1; }; }; }
24770 if test "$ac_dir" != .; then
24771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24772 # A "../" for each directory in $ac_dir_suffix.
24773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24775 ac_dir_suffix= ac_top_builddir=
24779 .) # No --srcdir option. We are building in place.
24781 if test -z "$ac_top_builddir"; then
24784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24786 [\\/]* | ?:[\\/]* ) # Absolute path.
24787 ac_srcdir=$srcdir$ac_dir_suffix;
24788 ac_top_srcdir=$srcdir ;;
24789 *) # Relative path.
24790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24794 # Do not use `cd foo && pwd` to compute absolute paths, because
24795 # the directories may not exist.
24797 .) ac_abs_builddir="$ac_dir";;
24800 .) ac_abs_builddir=`pwd`;;
24801 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24802 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24805 case $ac_abs_builddir in
24806 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24808 case ${ac_top_builddir}. in
24809 .) ac_abs_top_builddir=$ac_abs_builddir;;
24810 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24811 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24814 case $ac_abs_builddir in
24815 .) ac_abs_srcdir=$ac_srcdir;;
24818 .) ac_abs_srcdir=$ac_abs_builddir;;
24819 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24820 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24823 case $ac_abs_builddir in
24824 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24826 case $ac_top_srcdir in
24827 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24828 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24829 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24834 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24835 echo "$as_me: executing $ac_dest commands" >&6;}
24837 check_win32_symlinks )
24838 # Links sometimes fail undetected on Mingw -
24839 # so here we detect it and warn the user
24840 for FILE in $CONFIG_LINKS
24842 # test -e works for symlinks in the MinGW console
24843 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
24844 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24853 { (exit 0); exit 0; }
24855 chmod +x $CONFIG_STATUS
24856 ac_clean_files=$ac_clean_files_save
24859 # configure is writing to config.log, and then calls config.status.
24860 # config.status does its own redirection, appending to config.log.
24861 # Unfortunately, on DOS this fails, as config.log is still kept open
24862 # by configure, so config.status won't be able to write to it; its
24863 # output is simply discarded. So we exec the FD to /dev/null,
24864 # effectively closing config.log, so it can be properly (re)opened and
24865 # appended to by config.status. When coming back to configure, we
24866 # need to make the FD available again.
24867 if test "$no_create" != yes; then
24869 ac_config_status_args=
24870 test "$silent" = yes &&
24871 ac_config_status_args="$ac_config_status_args --quiet"
24873 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24875 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24876 # would make configure fail if this is the last instruction.
24877 $ac_cs_success || { (exit 1); exit 1; }
24881 # Warn about unknown options
24882 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
24883 for pgac_arg in $pgac_args with_gnu_ld; do
24884 if test "$pgac_var" = "$pgac_arg"; then
24888 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
24889 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
24890 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}