Fix ALTER TABLE ADD COLUMN ... PRIMARY KEY so that the new column is correctly
[PostgreSQL.git] / configure
blobd4d20f0eca8dee2fcea9d3af0c3499564403e103
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29 esac
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
54 rm -f conf$$.sh
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60 else
61 as_unset=false
65 # IFS
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
72 IFS=" "" $as_nl"
74 # Find who we are. Look in the path if we contain no directory separator.
75 case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91 as_myself=$0
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
106 # NLS nuisances.
107 for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 done
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123 else
124 as_expr=false
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129 else
130 as_basename=false
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
144 /^X\/\(\/\/\)$/{
145 s//\1/
148 /^X\/\(\/\).*/{
149 s//\1/
152 s/.*/./; q'`
154 # CDPATH.
155 $as_unset CDPATH
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161 else
162 as_have_required=no
165 if test $as_have_required = yes && (eval ":
166 (as_func_return () {
167 (exit \$1)
169 as_func_success () {
170 as_func_return 0
172 as_func_failure () {
173 as_func_return 1
175 as_func_ret_success () {
176 return 0
178 as_func_ret_failure () {
179 return 1
182 exitcode=0
183 if as_func_success; then
185 else
186 exitcode=1
187 echo as_func_success failed.
190 if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
197 else
198 exitcode=1
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 else
210 exitcode=1
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
223 else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236 done
237 IFS=$as_save_IFS
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251 else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254 esac
260 _ASEOF
261 }; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272 else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275 esac
281 (as_func_return () {
282 (exit $1)
284 as_func_success () {
285 as_func_return 0
287 as_func_failure () {
288 as_func_return 1
290 as_func_ret_success () {
291 return 0
293 as_func_ret_failure () {
294 return 1
297 exitcode=0
298 if as_func_success; then
300 else
301 exitcode=1
302 echo as_func_success failed.
305 if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
312 else
313 exitcode=1
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 else
325 exitcode=1
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 _ASEOF
338 }; then
339 break
344 done
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
371 (exit \$1)
373 as_func_success () {
374 as_func_return 0
376 as_func_failure () {
377 as_func_return 1
379 as_func_ret_success () {
380 return 0
382 as_func_ret_failure () {
383 return 1
386 exitcode=0
387 if as_func_success; then
389 else
390 exitcode=1
391 echo as_func_success failed.
394 if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
401 else
402 exitcode=1
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 else
414 exitcode=1
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
484 ECHO_N='-n';;
485 esac
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490 else
491 as_expr=false
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497 else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512 else
513 as_ln_s='cp -p'
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520 else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
525 if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527 else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
558 # Name of the host.
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 # Initializations.
566 ac_default_prefix=/usr/local
567 ac_clean_files=
568 ac_config_libobj_dir=.
569 LIBOBJS=
570 cross_compiling=no
571 subdirs=
572 MFLAGS=
573 MAKEFLAGS=
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 configure_args
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 PORTNAME
668 enable_nls
669 WANTED_LANGUAGES
670 default_port
671 enable_shared
672 enable_rpath
673 enable_debug
674 enable_profiling
675 DTRACE
676 DTRACEFLAGS
677 enable_dtrace
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
688 autodepend
689 INCLUDES
690 enable_thread_safety
691 with_tcl
692 with_perl
693 with_python
694 with_gssapi
695 with_krb5
696 krb_srvtab
697 with_pam
698 with_ldap
699 with_bonjour
700 with_openssl
701 with_ossp_uuid
702 XML2_CONFIG
703 with_libxml
704 with_libxslt
705 with_system_tzdata
706 with_zlib
707 GREP
708 EGREP
709 ELF_SYS
710 LDFLAGS_SL
712 with_gnu_ld
713 ld_R_works
714 RANLIB
715 STRIP
716 STRIP_STATIC_LIB
717 STRIP_SHARED_LIB
719 LN_S
721 YACC
722 YFLAGS
723 FLEX
724 FLEXFLAGS
725 PERL
726 perl_archlibexp
727 perl_privlibexp
728 perl_useshrplib
729 perl_embed_ldflags
730 PYTHON
731 python_version
732 python_configdir
733 python_includespec
734 python_libdir
735 python_libspec
736 python_additional_libs
737 OSSP_UUID_LIBS
738 HAVE_IPV6
739 LIBOBJS
740 acx_pthread_config
741 PTHREAD_CC
742 PTHREAD_LIBS
743 PTHREAD_CFLAGS
744 LDAP_LIBS_FE
745 LDAP_LIBS_BE
746 HAVE_POSIX_SIGNALS
747 MSGFMT
748 MSGMERGE
749 XGETTEXT
750 TCLSH
751 TCL_CONFIG_SH
752 TCL_INCLUDE_SPEC
753 TCL_LIB_FILE
754 TCL_LIBS
755 TCL_LIB_SPEC
756 TCL_SHARED_BUILD
757 TCL_SHLIB_LD_LIBS
758 NSGMLS
759 JADE
760 have_docbook
761 DOCBOOKSTYLE
762 COLLATEINDEX
763 SGMLSPL
764 vpath_build
765 LTLIBOBJS'
766 ac_subst_files=''
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
776 LDFLAGS_SL
777 DOCBOOKSTYLE'
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1096 -with-* | --with-*)
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1176 done
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1230 /^X\(\/\/\)$/{
1231 s//\1/
1234 /^X\(\/\).*/{
1235 s//\1/
1238 s/.*/./; q'`
1239 srcdir=$ac_confdir
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 srcdir=..
1243 else
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333 _ACEOF
1335 cat <<\_ACEOF
1337 System types:
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1340 _ACEOF
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1346 esac
1347 cat <<\_ACEOF
1349 Optional Features:
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-integer-datetimes disable 64-bit integer date/time support
1353 --enable-nls[=LANGUAGES] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols (-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --disable-segmented-files disable data file segmentation (requires largefile support)
1361 --enable-depend turn on automatic dependency tracking
1362 --enable-cassert enable assertion checks (for debugging)
1363 --enable-thread-safety make client libraries thread-safe
1364 --enable-thread-safety-force force thread-safety despite thread test failure
1365 --disable-float4-byval disable float4 passed by value
1366 --disable-float8-byval disable float8 passed by value
1367 --disable-largefile omit support for large files
1369 Optional Packages:
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-includes=DIRS look for additional header files in DIRS
1374 --with-libraries=DIRS look for additional libraries in DIRS
1375 --with-libs=DIRS alternative spelling of --with-libraries
1376 --with-pgport=PORTNUM change default port number [5432]
1377 --with-tcl build Tcl modules (PL/Tcl)
1378 --with-tclconfig=DIR tclConfig.sh is in DIR
1379 --with-perl build Perl modules (PL/Perl)
1380 --with-python build Python modules (PL/Python)
1381 --with-gssapi build with GSSAPI support
1382 --with-krb5 build with Kerberos 5 support
1383 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
1384 --with-pam build with PAM support
1385 --with-ldap build with LDAP support
1386 --with-bonjour build with Bonjour support
1387 --with-openssl build with OpenSSL support
1388 --without-readline do not use GNU Readline nor BSD Libedit for editing
1389 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1390 --with-ossp-uuid use OSSP UUID library when building contrib/uuid-ossp
1391 --with-libxml build with XML support
1392 --with-libxslt use XSLT support when building contrib/xml2
1393 --with-system-tzdata=DIR use system time zone data in DIR
1394 --without-zlib do not use Zlib
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CPP C preprocessor
1406 LDFLAGS_SL
1407 DOCBOOKSTYLE
1408 location of DocBook stylesheets
1410 Use these variables to override the choices made by `configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1413 Report bugs to <pgsql-bugs@postgresql.org>.
1414 _ACEOF
1415 ac_status=$?
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" || continue
1422 ac_builddir=.
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1440 case $srcdir in
1441 .) # We are building in place.
1442 ac_srcdir=.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1449 *) # Relative name.
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1464 else
1465 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 fi || ac_status=$?
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1468 done
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473 cat <<\_ACEOF
1474 PostgreSQL configure 8.4devel
1475 generated by GNU Autoconf 2.61
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1482 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1483 _ACEOF
1484 exit
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by PostgreSQL $as_me 8.4devel, which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1493 $ $0 $@
1495 _ACEOF
1496 exec 5>>config.log
1498 cat <<_ASUNAME
1499 ## --------- ##
1500 ## Platform. ##
1501 ## --------- ##
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 _ASUNAME
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528 done
1529 IFS=$as_save_IFS
1531 } >&5
1533 cat >&5 <<_ACEOF
1536 ## ----------- ##
1537 ## Core tests. ##
1538 ## ----------- ##
1540 _ACEOF
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_configure_args=
1549 ac_configure_args0=
1550 ac_configure_args1=
1551 ac_must_keep_next=false
1552 for ac_pass in 1 2
1554 for ac_arg
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
1561 *\'*)
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1585 esac
1586 done
1587 done
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1599 echo
1601 cat <<\_ASBOX
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1605 _ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
1623 (set) 2>&1 |
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1626 sed -n \
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 esac |
1634 sort
1636 echo
1638 cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
1651 done | sort
1652 echo
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
1668 done | sort
1669 echo
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678 echo
1679 cat confdefs.h
1680 echo
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 exit $exit_status
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1735 shift
1736 for ac_site_file
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1742 . "$ac_site_file"
1744 done
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1755 esac
1757 else
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1763 # Check that the precious variables saved in the cache have kept the same
1764 # value.
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786 echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788 echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1803 done
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847 ac_aux_dir=
1848 for ac_dir in config "$srcdir"/config; do
1849 if test -f "$ac_dir/install-sh"; then
1850 ac_aux_dir=$ac_dir
1851 ac_install_sh="$ac_aux_dir/install-sh -c"
1852 break
1853 elif test -f "$ac_dir/install.sh"; then
1854 ac_aux_dir=$ac_dir
1855 ac_install_sh="$ac_aux_dir/install.sh -c"
1856 break
1857 elif test -f "$ac_dir/shtool"; then
1858 ac_aux_dir=$ac_dir
1859 ac_install_sh="$ac_aux_dir/shtool install -c"
1860 break
1862 done
1863 if test -z "$ac_aux_dir"; then
1864 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1865 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1866 { (exit 1); exit 1; }; }
1869 # These three variables are undocumented and unsupported,
1870 # and are intended to be withdrawn in a future Autoconf release.
1871 # They can cause serious problems if a builder's source tree is in a directory
1872 # whose full name contains unusual characters.
1873 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1874 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1875 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1879 configure_args=$ac_configure_args
1883 cat >>confdefs.h <<_ACEOF
1884 #define PG_VERSION "$PACKAGE_VERSION"
1885 _ACEOF
1888 # Make sure we can run config.sub.
1889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1890 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1891 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1892 { (exit 1); exit 1; }; }
1894 { echo "$as_me:$LINENO: checking build system type" >&5
1895 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1896 if test "${ac_cv_build+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 ac_build_alias=$build_alias
1900 test "x$ac_build_alias" = x &&
1901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1902 test "x$ac_build_alias" = x &&
1903 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1904 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1905 { (exit 1); exit 1; }; }
1906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1909 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1913 echo "${ECHO_T}$ac_cv_build" >&6; }
1914 case $ac_cv_build in
1915 *-*-*) ;;
1916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1917 echo "$as_me: error: invalid value of canonical build" >&2;}
1918 { (exit 1); exit 1; }; };;
1919 esac
1920 build=$ac_cv_build
1921 ac_save_IFS=$IFS; IFS='-'
1922 set x $ac_cv_build
1923 shift
1924 build_cpu=$1
1925 build_vendor=$2
1926 shift; shift
1927 # Remember, the first character of IFS is used to create $*,
1928 # except with old shells:
1929 build_os=$*
1930 IFS=$ac_save_IFS
1931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1934 { echo "$as_me:$LINENO: checking host system type" >&5
1935 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1936 if test "${ac_cv_host+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test "x$host_alias" = x; then
1940 ac_cv_host=$ac_cv_build
1941 else
1942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1950 echo "${ECHO_T}$ac_cv_host" >&6; }
1951 case $ac_cv_host in
1952 *-*-*) ;;
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1954 echo "$as_me: error: invalid value of canonical host" >&2;}
1955 { (exit 1); exit 1; }; };;
1956 esac
1957 host=$ac_cv_host
1958 ac_save_IFS=$IFS; IFS='-'
1959 set x $ac_cv_host
1960 shift
1961 host_cpu=$1
1962 host_vendor=$2
1963 shift; shift
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1966 host_os=$*
1967 IFS=$ac_save_IFS
1968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1972 template=
1973 { echo "$as_me:$LINENO: checking which template to use" >&5
1974 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1977 pgac_args="$pgac_args with_template"
1980 # Check whether --with-template was given.
1981 if test "${with_template+set}" = set; then
1982 withval=$with_template;
1983 case $withval in
1984 yes)
1985 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1986 echo "$as_me: error: argument required for --with-template option" >&2;}
1987 { (exit 1); exit 1; }; }
1990 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1991 echo "$as_me: error: argument required for --with-template option" >&2;}
1992 { (exit 1); exit 1; }; }
1996 case $withval in
1997 list) echo; ls "$srcdir/src/template"; exit;;
1998 *) if test -f "$srcdir/src/template/$with_template" ; then
1999 template=$withval
2000 else
2001 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2002 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi;;
2005 esac
2008 esac
2010 else
2012 # --with-template not given
2014 case $host_os in
2015 aix*) template=aix ;;
2016 bsdi*) template=bsdi ;;
2017 cygwin*) template=cygwin ;;
2018 darwin*) template=darwin ;;
2019 dgux*) template=dgux ;;
2020 freebsd*) template=freebsd ;;
2021 hpux*) template=hpux ;;
2022 irix*) template=irix ;;
2023 linux*|gnu*|k*bsd*-gnu)
2024 template=linux ;;
2025 mingw*) template=win32 ;;
2026 netbsd*) template=netbsd ;;
2027 nextstep*) template=nextstep ;;
2028 openbsd*) template=openbsd ;;
2029 osf*) template=osf ;;
2030 sco*) template=sco ;;
2031 solaris*) template=solaris ;;
2032 sunos*) template=sunos4 ;;
2033 sysv4.2*)
2034 case $host_vendor in
2035 univel) template=univel ;;
2036 esac ;;
2037 sysv4*) template=svr4 ;;
2038 sysv5*) template=unixware ;;
2039 ultrix*) template=ultrix4 ;;
2040 esac
2042 if test x"$template" = x"" ; then
2043 { { echo "$as_me:$LINENO: error:
2044 *******************************************************************
2045 PostgreSQL has apparently not been ported to your platform yet.
2046 To try a manual configuration, look into the src/template directory
2047 for a similar platform and use the '--with-template=' option.
2049 Please also contact <pgsql-ports@postgresql.org> to see about
2050 rectifying this. Include the above 'checking host system type...'
2051 line.
2052 *******************************************************************
2053 " >&5
2054 echo "$as_me: error:
2055 *******************************************************************
2056 PostgreSQL has apparently not been ported to your platform yet.
2057 To try a manual configuration, look into the src/template directory
2058 for a similar platform and use the '--with-template=' option.
2060 Please also contact <pgsql-ports@postgresql.org> to see about
2061 rectifying this. Include the above 'checking host system type...'
2062 line.
2063 *******************************************************************
2064 " >&2;}
2065 { (exit 1); exit 1; }; }
2073 { echo "$as_me:$LINENO: result: $template" >&5
2074 echo "${ECHO_T}$template" >&6; }
2076 PORTNAME=$template
2079 # Initialize default assumption that we do not need separate assembly code
2080 # for TAS (test-and-set). This can be overridden by the template file
2081 # when it's executed.
2082 need_tas=no
2083 tas_file=dummy.s
2088 ## Command line options
2092 # Add non-standard directories to the include path
2095 pgac_args="$pgac_args with_includes"
2098 # Check whether --with-includes was given.
2099 if test "${with_includes+set}" = set; then
2100 withval=$with_includes;
2101 case $withval in
2102 yes)
2103 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2104 echo "$as_me: error: argument required for --with-includes option" >&2;}
2105 { (exit 1); exit 1; }; }
2108 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2109 echo "$as_me: error: argument required for --with-includes option" >&2;}
2110 { (exit 1); exit 1; }; }
2115 esac
2123 # Add non-standard directories to the library search path
2126 pgac_args="$pgac_args with_libraries"
2129 # Check whether --with-libraries was given.
2130 if test "${with_libraries+set}" = set; then
2131 withval=$with_libraries;
2132 case $withval in
2133 yes)
2134 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2135 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2136 { (exit 1); exit 1; }; }
2139 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2140 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2141 { (exit 1); exit 1; }; }
2144 LIBRARY_DIRS=$withval
2146 esac
2153 pgac_args="$pgac_args with_libs"
2156 # Check whether --with-libs was given.
2157 if test "${with_libs+set}" = set; then
2158 withval=$with_libs;
2159 case $withval in
2160 yes)
2161 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2162 echo "$as_me: error: argument required for --with-libs option" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2167 echo "$as_me: error: argument required for --with-libs option" >&2;}
2168 { (exit 1); exit 1; }; }
2171 LIBRARY_DIRS=$withval
2173 esac
2181 # 64-bit integer date/time storage: enabled by default.
2183 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2184 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2186 pgac_args="$pgac_args enable_integer_datetimes"
2188 # Check whether --enable-integer-datetimes was given.
2189 if test "${enable_integer_datetimes+set}" = set; then
2190 enableval=$enable_integer_datetimes;
2191 case $enableval in
2192 yes)
2194 cat >>confdefs.h <<\_ACEOF
2195 #define USE_INTEGER_DATETIMES 1
2196 _ACEOF
2203 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2204 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2205 { (exit 1); exit 1; }; }
2207 esac
2209 else
2210 enable_integer_datetimes=yes
2212 cat >>confdefs.h <<\_ACEOF
2213 #define USE_INTEGER_DATETIMES 1
2214 _ACEOF
2219 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2220 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2224 # NLS
2226 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2227 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2229 pgac_args="$pgac_args enable_nls"
2231 # Check whether --enable-nls was given.
2232 if test "${enable_nls+set}" = set; then
2233 enableval=$enable_nls;
2234 case $enableval in
2235 yes)
2242 enable_nls=yes
2243 WANTED_LANGUAGES=$enableval
2245 esac
2247 else
2248 enable_nls=no
2253 if test "$enable_nls" = yes; then
2255 cat >>confdefs.h <<\_ACEOF
2256 #define ENABLE_NLS 1
2257 _ACEOF
2261 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2262 echo "${ECHO_T}$enable_nls" >&6; }
2267 # Default port number (--with-pgport), default 5432
2269 { echo "$as_me:$LINENO: checking for default port number" >&5
2270 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2272 pgac_args="$pgac_args with_pgport"
2275 # Check whether --with-pgport was given.
2276 if test "${with_pgport+set}" = set; then
2277 withval=$with_pgport;
2278 case $withval in
2279 yes)
2280 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2281 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2282 { (exit 1); exit 1; }; }
2285 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2286 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2287 { (exit 1); exit 1; }; }
2290 default_port=$withval
2292 esac
2294 else
2295 default_port=5432
2299 { echo "$as_me:$LINENO: result: $default_port" >&5
2300 echo "${ECHO_T}$default_port" >&6; }
2301 # Need both of these because some places want an integer and some a string
2303 cat >>confdefs.h <<_ACEOF
2304 #define DEF_PGPORT ${default_port}
2305 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define DEF_PGPORT_STR "${default_port}"
2310 _ACEOF
2315 # Option to disable shared libraries
2318 pgac_args="$pgac_args enable_shared"
2320 # Check whether --enable-shared was given.
2321 if test "${enable_shared+set}" = set; then
2322 enableval=$enable_shared;
2323 case $enableval in
2324 yes)
2331 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2332 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2333 { (exit 1); exit 1; }; }
2335 esac
2337 else
2338 enable_shared=yes
2346 # '-rpath'-like feature can be disabled
2349 pgac_args="$pgac_args enable_rpath"
2351 # Check whether --enable-rpath was given.
2352 if test "${enable_rpath+set}" = set; then
2353 enableval=$enable_rpath;
2354 case $enableval in
2355 yes)
2362 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2363 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2364 { (exit 1); exit 1; }; }
2366 esac
2368 else
2369 enable_rpath=yes
2377 # Spinlocks
2380 pgac_args="$pgac_args enable_spinlocks"
2382 # Check whether --enable-spinlocks was given.
2383 if test "${enable_spinlocks+set}" = set; then
2384 enableval=$enable_spinlocks;
2385 case $enableval in
2386 yes)
2393 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2394 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2395 { (exit 1); exit 1; }; }
2397 esac
2399 else
2400 enable_spinlocks=yes
2407 # --enable-debug adds -g to compiler flags
2410 pgac_args="$pgac_args enable_debug"
2412 # Check whether --enable-debug was given.
2413 if test "${enable_debug+set}" = set; then
2414 enableval=$enable_debug;
2415 case $enableval in
2416 yes)
2423 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2424 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2425 { (exit 1); exit 1; }; }
2427 esac
2429 else
2430 enable_debug=no
2438 # --enable-profiling enables gcc profiling
2441 pgac_args="$pgac_args enable_profiling"
2443 # Check whether --enable-profiling was given.
2444 if test "${enable_profiling+set}" = set; then
2445 enableval=$enable_profiling;
2446 case $enableval in
2447 yes)
2454 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2455 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2456 { (exit 1); exit 1; }; }
2458 esac
2460 else
2461 enable_profiling=no
2469 # DTrace
2472 pgac_args="$pgac_args enable_dtrace"
2474 # Check whether --enable-dtrace was given.
2475 if test "${enable_dtrace+set}" = set; then
2476 enableval=$enable_dtrace;
2477 case $enableval in
2478 yes)
2480 cat >>confdefs.h <<\_ACEOF
2481 #define ENABLE_DTRACE 1
2482 _ACEOF
2484 for ac_prog in dtrace
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_DTRACE+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493 if test -n "$DTRACE"; then
2494 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_DTRACE="$ac_prog"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2507 done
2508 done
2509 IFS=$as_save_IFS
2513 DTRACE=$ac_cv_prog_DTRACE
2514 if test -n "$DTRACE"; then
2515 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2516 echo "${ECHO_T}$DTRACE" >&6; }
2517 else
2518 { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2523 test -n "$DTRACE" && break
2524 done
2526 if test -z "$DTRACE"; then
2527 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2528 echo "$as_me: error: dtrace not found" >&2;}
2529 { (exit 1); exit 1; }; }
2537 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2538 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2539 { (exit 1); exit 1; }; }
2541 esac
2543 else
2544 enable_dtrace=no
2552 # Data file segmentation
2555 pgac_args="$pgac_args enable_segmented_files"
2557 # Check whether --enable-segmented-files was given.
2558 if test "${enable_segmented_files+set}" = set; then
2559 enableval=$enable_segmented_files;
2560 case $enableval in
2561 yes)
2568 { { echo "$as_me:$LINENO: error: no argument expected for --enable-segmented-files option" >&5
2569 echo "$as_me: error: no argument expected for --enable-segmented-files option" >&2;}
2570 { (exit 1); exit 1; }; }
2572 esac
2574 else
2575 enable_segmented_files=yes
2582 # C compiler
2585 # For historical reasons you can also use --with-CC to specify the C compiler
2586 # to use, although the standard way to do this is to set the CC environment
2587 # variable.
2589 pgac_args="$pgac_args with_CC"
2592 # Check whether --with-CC was given.
2593 if test "${with_CC+set}" = set; then
2594 withval=$with_CC;
2595 case $withval in
2596 yes)
2597 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2598 echo "$as_me: error: argument required for --with-CC option" >&2;}
2599 { (exit 1); exit 1; }; }
2602 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2603 echo "$as_me: error: argument required for --with-CC option" >&2;}
2604 { (exit 1); exit 1; }; }
2607 CC=$with_CC
2609 esac
2615 case $template in
2616 aix) pgac_cc_list="gcc xlc";;
2617 irix) pgac_cc_list="cc";; # no gcc
2618 *) pgac_cc_list="gcc cc";;
2619 esac
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog in $pgac_cc_list
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2650 done
2651 done
2652 IFS=$as_save_IFS
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2660 else
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2666 test -n "$CC" && break
2667 done
2669 if test -z "$CC"; then
2670 ac_ct_CC=$CC
2671 for ac_prog in $pgac_cc_list
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2696 IFS=$as_save_IFS
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6; }
2704 else
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2710 test -n "$ac_ct_CC" && break
2711 done
2713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2725 esac
2726 CC=$ac_ct_CC
2731 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2737 # Provide some information about the compiler.
2738 echo "$as_me:$LINENO: checking for C compiler version" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (ac_try="$ac_compiler --version >&5"
2741 case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler --version >&5") 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750 { (ac_try="$ac_compiler -v >&5"
2751 case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler -v >&5") 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 { (ac_try="$ac_compiler -V >&5"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -V >&5") 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2779 main ()
2783 return 0;
2785 _ACEOF
2786 ac_clean_files_save=$ac_clean_files
2787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2788 # Try to create an executable without -o first, disregard a.out.
2789 # It will help us diagnose broken compilers, and finding out an intuition
2790 # of exeext.
2791 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2795 # List of possible output files, starting from the most likely.
2796 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2797 # only as a last resort. b.out is created by i960 compilers.
2798 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2800 # The IRIX 6 linker writes into existing files which may not be
2801 # executable, retaining their permissions. Remove them first so a
2802 # subsequent execution test works.
2803 ac_rmfiles=
2804 for ac_file in $ac_files
2806 case $ac_file in
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809 esac
2810 done
2811 rm -f $ac_rmfiles
2813 if { (ac_try="$ac_link_default"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link_default") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2825 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2826 # so that the user can short-circuit this test for compilers unknown to
2827 # Autoconf.
2828 for ac_file in $ac_files ''
2830 test -f "$ac_file" || continue
2831 case $ac_file in
2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2834 [ab].out )
2835 # We found the default executable, but exeext='' is most
2836 # certainly right.
2837 break;;
2838 *.* )
2839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2840 then :; else
2841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 # We set ac_cv_exeext here because the later test for it is not
2844 # safe: cross compilers may not add the suffix if given an `-o'
2845 # argument, so we may need to know it at that point already.
2846 # Even if this section looks crufty: it has the advantage of
2847 # actually working.
2848 break;;
2850 break;;
2851 esac
2852 done
2853 test "$ac_cv_exeext" = no && ac_cv_exeext=
2855 else
2856 ac_file=''
2859 { echo "$as_me:$LINENO: result: $ac_file" >&5
2860 echo "${ECHO_T}$ac_file" >&6; }
2861 if test -z "$ac_file"; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: C compiler cannot create executables
2868 See \`config.log' for more details." >&2;}
2869 { (exit 77); exit 77; }; }
2872 ac_exeext=$ac_cv_exeext
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879 # If not cross compiling, check that we can run a simple program.
2880 if test "$cross_compiling" != yes; then
2881 if { ac_try='./$ac_file'
2882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 cross_compiling=no
2892 else
2893 if test "$cross_compiling" = maybe; then
2894 cross_compiling=yes
2895 else
2896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details." >&2;}
2902 { (exit 1); exit 1; }; }
2906 { echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 # Check that the compiler produces executables we can run. If not, either
2912 # the compiler is broken, or we cross compile.
2913 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2915 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916 echo "${ECHO_T}$cross_compiling" >&6; }
2918 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2920 if { (ac_try="$ac_link"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_link") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932 # work properly (i.e., refer to `conftest.exe'), while it won't with
2933 # `rm'.
2934 for ac_file in conftest.exe conftest conftest.*; do
2935 test -f "$ac_file" || continue
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939 break;;
2940 * ) break;;
2941 esac
2942 done
2943 else
2944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2951 rm -f conftest$ac_cv_exeext
2952 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2957 ac_exeext=$EXEEXT
2958 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2960 if test "${ac_cv_objext+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2971 main ()
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.o conftest.obj
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994 break;;
2995 esac
2996 done
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011 echo "${ECHO_T}$ac_cv_objext" >&6; }
3012 OBJEXT=$ac_cv_objext
3013 ac_objext=$OBJEXT
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3027 main ()
3029 #ifndef __GNUC__
3030 choke me
3031 #endif
3034 return 0;
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.$ac_objext; then
3054 ac_compiler_gnu=yes
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 ac_compiler_gnu=no
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3068 GCC=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CFLAGS=${CFLAGS+set}
3070 ac_save_CFLAGS=$CFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3072 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cc_g+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 ac_save_c_werror_flag=$ac_c_werror_flag
3077 ac_c_werror_flag=yes
3078 ac_cv_prog_cc_g=no
3079 CFLAGS="-g"
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3088 main ()
3092 return 0;
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3112 ac_cv_prog_cc_g=yes
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 CFLAGS=""
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3126 main ()
3130 return 0;
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } && {
3147 test -z "$ac_c_werror_flag" ||
3148 test ! -s conftest.err
3149 } && test -s conftest.$ac_objext; then
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3156 CFLAGS="-g"
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3165 main ()
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3189 ac_cv_prog_cc_g=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3212 CFLAGS="-g -O2"
3213 else
3214 CFLAGS="-g"
3216 else
3217 if test "$GCC" = yes; then
3218 CFLAGS="-O2"
3219 else
3220 CFLAGS=
3223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 ac_cv_prog_cc_c89=no
3229 ac_save_CC=$CC
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #include <stdarg.h>
3237 #include <stdio.h>
3238 #include <sys/types.h>
3239 #include <sys/stat.h>
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3244 char **p;
3245 int i;
3247 return p[i];
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3251 char *s;
3252 va_list v;
3253 va_start (v,p);
3254 s = g (p, va_arg (v,int));
3255 va_end (v);
3256 return s;
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
3262 as 'x'. The following induces an error, until -std is added to get
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
3265 that's true only with -std. */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3270 #define FOO(x) 'x'
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 int argc;
3278 char **argv;
3280 main ()
3282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 return 0;
3286 _ACEOF
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && {
3305 test -z "$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.$ac_objext; then
3308 ac_cv_prog_cc_c89=$ac_arg
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3316 rm -f core conftest.err conftest.$ac_objext
3317 test "x$ac_cv_prog_cc_c89" != "xno" && break
3318 done
3319 rm -f conftest.$ac_ext
3320 CC=$ac_save_CC
3323 # AC_CACHE_VAL
3324 case "x$ac_cv_prog_cc_c89" in
3326 { echo "$as_me:$LINENO: result: none needed" >&5
3327 echo "${ECHO_T}none needed" >&6; } ;;
3328 xno)
3329 { echo "$as_me:$LINENO: result: unsupported" >&5
3330 echo "${ECHO_T}unsupported" >&6; } ;;
3332 CC="$CC $ac_cv_prog_cc_c89"
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3335 esac
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3346 # but has idiosyncrasies of its own. We assume icc will define
3347 # __INTEL_COMPILER regardless of CFLAGS.
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3357 main ()
3359 #ifndef __INTEL_COMPILER
3360 choke me
3361 #endif
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && {
3380 test -z "$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 } && test -s conftest.$ac_objext; then
3383 ICC=yes
3384 else
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 ICC=no
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 unset CFLAGS
3396 # Read the template
3398 . "$srcdir/src/template/$template" || exit
3400 # CFLAGS are selected so:
3401 # If the user specifies something in the environment, that is used.
3402 # else: If the template file set something, that is used.
3403 # else: If the compiler is GCC, then we use -O2.
3404 # else: If the compiler is something else, then we use -0.
3406 if test "$ac_env_CFLAGS_set" = set; then
3407 CFLAGS=$ac_env_CFLAGS_value
3408 elif test "${CFLAGS+set}" = set; then
3409 : # (keep what template set)
3410 elif test "$GCC" = yes; then
3411 CFLAGS="-O2"
3412 else
3413 # if the user selected debug mode, don't use -O
3414 if test "$enable_debug" != yes; then
3415 CFLAGS="-O"
3419 # Some versions of GCC support some additional useful warning flags.
3420 # Check whether they are supported, and add them to CFLAGS if so.
3421 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3423 if test "$GCC" = yes -a "$ICC" = no; then
3424 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3425 # These work in some but not all gcc versions
3426 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3427 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3428 pgac_save_CFLAGS=$CFLAGS
3429 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3438 main ()
3442 return 0;
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 { echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6; }
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 CFLAGS="$pgac_save_CFLAGS"
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3476 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3477 pgac_save_CFLAGS=$CFLAGS
3478 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3487 main ()
3491 return 0;
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } && {
3508 test -z "$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 } && test -s conftest.$ac_objext; then
3511 { echo "$as_me:$LINENO: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6; }
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 CFLAGS="$pgac_save_CFLAGS"
3518 { echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6; }
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 # Disable strict-aliasing rules; needed for gcc 3.3+
3525 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3526 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3527 pgac_save_CFLAGS=$CFLAGS
3528 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3561 { echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6; }
3563 else
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 CFLAGS="$pgac_save_CFLAGS"
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3575 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3576 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3577 pgac_save_CFLAGS=$CFLAGS
3578 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3587 main ()
3591 return 0;
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 { echo "$as_me:$LINENO: result: yes" >&5
3612 echo "${ECHO_T}yes" >&6; }
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 CFLAGS="$pgac_save_CFLAGS"
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 elif test "$ICC" = yes; then
3625 # Intel's compiler has a bug/misoptimization in checking for
3626 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3627 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3628 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3629 pgac_save_CFLAGS=$CFLAGS
3630 CFLAGS="$pgac_save_CFLAGS -mp1"
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3639 main ()
3643 return 0;
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3663 { echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6; }
3665 else
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 CFLAGS="$pgac_save_CFLAGS"
3670 { echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6; }
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 # Make sure strict aliasing is off (though this is said to be the default)
3677 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3678 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3679 pgac_save_CFLAGS=$CFLAGS
3680 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3689 main ()
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 { echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6; }
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 CFLAGS="$pgac_save_CFLAGS"
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 elif test x"${CC}" = x"xlc"; then
3727 # AIX xlc has to have strict aliasing turned off too
3728 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3729 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3730 pgac_save_CFLAGS=$CFLAGS
3731 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 main ()
3744 return 0;
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.$ac_objext; then
3764 { echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6; }
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 CFLAGS="$pgac_save_CFLAGS"
3771 { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 # supply -g if --enable-debug
3780 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3781 CFLAGS="$CFLAGS -g"
3784 # enable profiling if --enable-profiling
3785 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3786 if test "$GCC" = yes; then
3788 cat >>confdefs.h <<\_ACEOF
3789 #define PROFILE_PID_DIR 1
3790 _ACEOF
3792 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3793 else
3794 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3795 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3796 { (exit 1); exit 1; }; }
3800 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3801 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3803 # We already have this in Makefile.win32, but configure needs it too
3804 if test "$PORTNAME" = "win32"; then
3805 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3808 # Check if the compiler still works with the template settings
3809 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3810 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3819 main ()
3821 return 0;
3823 return 0;
3825 _ACEOF
3826 rm -f conftest.$ac_objext conftest$ac_exeext
3827 if { (ac_try="$ac_link"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_link") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest$ac_exeext &&
3843 $as_test_x conftest$ac_exeext; then
3844 { echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6; }
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3852 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3853 echo "$as_me: error: cannot proceed" >&2;}
3854 { (exit 1); exit 1; }; }
3857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3858 conftest$ac_exeext conftest.$ac_ext
3860 # Defend against gcc -ffast-math
3861 if test "$GCC" = yes; then
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3870 main ()
3872 #ifdef __FAST_MATH__
3873 choke me
3874 #endif
3876 return 0;
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3902 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3903 { (exit 1); exit 1; }; }
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3916 # On Suns, sometimes $CPP names a directory.
3917 if test -n "$CPP" && test -d "$CPP"; then
3918 CPP=
3920 if test -z "$CPP"; then
3921 if test "${ac_cv_prog_CPP+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 # Double quotes because CPP needs to be expanded
3925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3927 ac_preproc_ok=false
3928 for ac_c_preproc_warn_flag in '' yes
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 # <limits.h> exists even on freestanding compilers.
3934 # On the NeXT, cc -E runs the code through the compiler's parser,
3935 # not just through cpp. "Syntax error" is here to catch this case.
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #ifdef __STDC__
3943 # include <limits.h>
3944 #else
3945 # include <assert.h>
3946 #endif
3947 Syntax error
3948 _ACEOF
3949 if { (ac_try="$ac_cpp conftest.$ac_ext"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null && {
3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 }; then
3966 else
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 # Broken: fails on valid input.
3971 continue
3974 rm -f conftest.err conftest.$ac_ext
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <ac_nonexistent.h>
3985 _ACEOF
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null && {
3999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 }; then
4002 # Broken: success on invalid input.
4003 continue
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 # Passes both tests.
4009 ac_preproc_ok=:
4010 break
4013 rm -f conftest.err conftest.$ac_ext
4015 done
4016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4017 rm -f conftest.err conftest.$ac_ext
4018 if $ac_preproc_ok; then
4019 break
4022 done
4023 ac_cv_prog_CPP=$CPP
4026 CPP=$ac_cv_prog_CPP
4027 else
4028 ac_cv_prog_CPP=$CPP
4030 { echo "$as_me:$LINENO: result: $CPP" >&5
4031 echo "${ECHO_T}$CPP" >&6; }
4032 ac_preproc_ok=false
4033 for ac_c_preproc_warn_flag in '' yes
4035 # Use a header file that comes with gcc, so configuring glibc
4036 # with a fresh cross-compiler works.
4037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038 # <limits.h> exists even on freestanding compilers.
4039 # On the NeXT, cc -E runs the code through the compiler's parser,
4040 # not just through cpp. "Syntax error" is here to catch this case.
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052 Syntax error
4053 _ACEOF
4054 if { (ac_try="$ac_cpp conftest.$ac_ext"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 }; then
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 # Broken: fails on valid input.
4076 continue
4079 rm -f conftest.err conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 }; then
4107 # Broken: success on invalid input.
4108 continue
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 # Passes both tests.
4114 ac_preproc_ok=:
4115 break
4118 rm -f conftest.err conftest.$ac_ext
4120 done
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then
4125 else
4126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4127 See \`config.log' for more details." >&5
4128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4129 See \`config.log' for more details." >&2;}
4130 { (exit 1); exit 1; }; }
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 # Create compiler version string
4142 if test x"$GCC" = x"yes" ; then
4143 cc_string="GCC `${CC} --version | sed q`"
4144 else
4145 cc_string=$CC
4148 cat >>confdefs.h <<_ACEOF
4149 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4150 _ACEOF
4155 # Set up TAS assembly code if needed; the template file has now had its
4156 # chance to request this.
4158 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4161 if test "$need_tas" = yes ; then
4162 TAS=tas.o
4163 else
4164 TAS=""
4170 # Automatic dependency tracking
4173 pgac_args="$pgac_args enable_depend"
4175 # Check whether --enable-depend was given.
4176 if test "${enable_depend+set}" = set; then
4177 enableval=$enable_depend;
4178 case $enableval in
4179 yes)
4180 autodepend=yes
4186 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4187 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4188 { (exit 1); exit 1; }; }
4190 esac
4192 else
4193 enable_depend=no
4202 # Enable assert checks
4205 pgac_args="$pgac_args enable_cassert"
4207 # Check whether --enable-cassert was given.
4208 if test "${enable_cassert+set}" = set; then
4209 enableval=$enable_cassert;
4210 case $enableval in
4211 yes)
4213 cat >>confdefs.h <<\_ACEOF
4214 #define USE_ASSERT_CHECKING 1
4215 _ACEOF
4222 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4223 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4224 { (exit 1); exit 1; }; }
4226 esac
4228 else
4229 enable_cassert=no
4237 # Include directories
4239 ac_save_IFS=$IFS
4240 IFS="${IFS}${PATH_SEPARATOR}"
4241 # SRCH_INC comes from the template file
4242 for dir in $with_includes $SRCH_INC; do
4243 if test -d "$dir"; then
4244 INCLUDES="$INCLUDES -I$dir"
4245 else
4246 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4247 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4249 done
4250 IFS=$ac_save_IFS
4255 # Library directories
4257 ac_save_IFS=$IFS
4258 IFS="${IFS}${PATH_SEPARATOR}"
4259 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4260 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4261 if test -d "$dir"; then
4262 LIBDIRS="$LIBDIRS -L$dir"
4263 else
4264 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4265 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4267 done
4268 IFS=$ac_save_IFS
4271 # Enable thread-safe client libraries
4273 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4274 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4275 if test "$PORTNAME" != "win32"; then
4277 pgac_args="$pgac_args enable_thread_safety"
4279 # Check whether --enable-thread-safety was given.
4280 if test "${enable_thread_safety+set}" = set; then
4281 enableval=$enable_thread_safety;
4282 case $enableval in
4283 yes)
4290 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4291 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4292 { (exit 1); exit 1; }; }
4294 esac
4296 else
4297 enable_thread_safety=no
4302 else
4303 # Win32 should always use threads
4305 pgac_args="$pgac_args enable_thread_safety"
4307 # Check whether --enable-thread-safety was given.
4308 if test "${enable_thread_safety+set}" = set; then
4309 enableval=$enable_thread_safety;
4310 case $enableval in
4311 yes)
4318 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4319 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4320 { (exit 1); exit 1; }; }
4322 esac
4324 else
4325 enable_thread_safety=yes
4333 pgac_args="$pgac_args enable_thread_safety_force"
4335 # Check whether --enable-thread-safety-force was given.
4336 if test "${enable_thread_safety_force+set}" = set; then
4337 enableval=$enable_thread_safety_force;
4338 case $enableval in
4339 yes)
4346 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4347 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4348 { (exit 1); exit 1; }; }
4350 esac
4352 else
4353 enable_thread_safety_force=no
4358 if test "$enable_thread_safety" = yes -o \
4359 "$enable_thread_safety_force" = yes; then
4360 enable_thread_safety="yes" # for 'force'
4362 cat >>confdefs.h <<\_ACEOF
4363 #define ENABLE_THREAD_SAFETY 1
4364 _ACEOF
4367 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4368 echo "${ECHO_T}$enable_thread_safety" >&6; }
4372 # Optionally build Tcl modules (PL/Tcl)
4374 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4375 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4377 pgac_args="$pgac_args with_tcl"
4380 # Check whether --with-tcl was given.
4381 if test "${with_tcl+set}" = set; then
4382 withval=$with_tcl;
4383 case $withval in
4384 yes)
4391 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4392 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4393 { (exit 1); exit 1; }; }
4395 esac
4397 else
4398 with_tcl=no
4403 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4404 echo "${ECHO_T}$with_tcl" >&6; }
4407 # We see if the path to the Tcl/Tk configuration scripts is specified.
4408 # This will override the use of tclsh to find the paths to search.
4411 pgac_args="$pgac_args with_tclconfig"
4414 # Check whether --with-tclconfig was given.
4415 if test "${with_tclconfig+set}" = set; then
4416 withval=$with_tclconfig;
4417 case $withval in
4418 yes)
4419 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4420 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4421 { (exit 1); exit 1; }; }
4424 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4425 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4426 { (exit 1); exit 1; }; }
4431 esac
4438 # Optionally build Perl modules (PL/Perl)
4440 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4441 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4443 pgac_args="$pgac_args with_perl"
4446 # Check whether --with-perl was given.
4447 if test "${with_perl+set}" = set; then
4448 withval=$with_perl;
4449 case $withval in
4450 yes)
4457 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4458 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4459 { (exit 1); exit 1; }; }
4461 esac
4463 else
4464 with_perl=no
4469 { echo "$as_me:$LINENO: result: $with_perl" >&5
4470 echo "${ECHO_T}$with_perl" >&6; }
4474 # Optionally build Python modules (PL/Python)
4476 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4477 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4479 pgac_args="$pgac_args with_python"
4482 # Check whether --with-python was given.
4483 if test "${with_python+set}" = set; then
4484 withval=$with_python;
4485 case $withval in
4486 yes)
4493 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4494 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4495 { (exit 1); exit 1; }; }
4497 esac
4499 else
4500 with_python=no
4505 { echo "$as_me:$LINENO: result: $with_python" >&5
4506 echo "${ECHO_T}$with_python" >&6; }
4510 # GSSAPI
4512 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4513 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4515 pgac_args="$pgac_args with_gssapi"
4518 # Check whether --with-gssapi was given.
4519 if test "${with_gssapi+set}" = set; then
4520 withval=$with_gssapi;
4521 case $withval in
4522 yes)
4525 cat >>confdefs.h <<\_ACEOF
4526 #define ENABLE_GSS 1
4527 _ACEOF
4529 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4536 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4537 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4538 { (exit 1); exit 1; }; }
4540 esac
4542 else
4543 with_gssapi=no
4548 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4549 echo "${ECHO_T}$with_gssapi" >&6; }
4553 # Kerberos 5
4555 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4556 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4558 pgac_args="$pgac_args with_krb5"
4561 # Check whether --with-krb5 was given.
4562 if test "${with_krb5+set}" = set; then
4563 withval=$with_krb5;
4564 case $withval in
4565 yes)
4568 cat >>confdefs.h <<\_ACEOF
4569 #define KRB5 1
4570 _ACEOF
4572 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4579 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4580 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4581 { (exit 1); exit 1; }; }
4583 esac
4585 else
4586 with_krb5=no
4591 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4592 echo "${ECHO_T}$with_krb5" >&6; }
4600 # Kerberos configuration parameters
4603 pgac_args="$pgac_args with_krb_srvnam"
4606 # Check whether --with-krb-srvnam was given.
4607 if test "${with_krb_srvnam+set}" = set; then
4608 withval=$with_krb_srvnam;
4609 case $withval in
4610 yes)
4611 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4612 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4613 { (exit 1); exit 1; }; }
4616 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4617 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4618 { (exit 1); exit 1; }; }
4623 esac
4625 else
4626 with_krb_srvnam="postgres"
4631 cat >>confdefs.h <<_ACEOF
4632 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4633 _ACEOF
4638 # PAM
4640 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4641 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4643 pgac_args="$pgac_args with_pam"
4646 # Check whether --with-pam was given.
4647 if test "${with_pam+set}" = set; then
4648 withval=$with_pam;
4649 case $withval in
4650 yes)
4652 cat >>confdefs.h <<\_ACEOF
4653 #define USE_PAM 1
4654 _ACEOF
4661 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4662 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4663 { (exit 1); exit 1; }; }
4665 esac
4667 else
4668 with_pam=no
4673 { echo "$as_me:$LINENO: result: $with_pam" >&5
4674 echo "${ECHO_T}$with_pam" >&6; }
4679 # LDAP
4681 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4682 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4684 pgac_args="$pgac_args with_ldap"
4687 # Check whether --with-ldap was given.
4688 if test "${with_ldap+set}" = set; then
4689 withval=$with_ldap;
4690 case $withval in
4691 yes)
4693 cat >>confdefs.h <<\_ACEOF
4694 #define USE_LDAP 1
4695 _ACEOF
4702 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4703 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4704 { (exit 1); exit 1; }; }
4706 esac
4708 else
4709 with_ldap=no
4714 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4715 echo "${ECHO_T}$with_ldap" >&6; }
4720 # Bonjour
4722 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4723 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4725 pgac_args="$pgac_args with_bonjour"
4728 # Check whether --with-bonjour was given.
4729 if test "${with_bonjour+set}" = set; then
4730 withval=$with_bonjour;
4731 case $withval in
4732 yes)
4734 cat >>confdefs.h <<\_ACEOF
4735 #define USE_BONJOUR 1
4736 _ACEOF
4743 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4744 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4745 { (exit 1); exit 1; }; }
4747 esac
4749 else
4750 with_bonjour=no
4755 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4756 echo "${ECHO_T}$with_bonjour" >&6; }
4761 # OpenSSL
4763 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4764 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4766 pgac_args="$pgac_args with_openssl"
4769 # Check whether --with-openssl was given.
4770 if test "${with_openssl+set}" = set; then
4771 withval=$with_openssl;
4772 case $withval in
4773 yes)
4775 cat >>confdefs.h <<\_ACEOF
4776 #define USE_SSL 1
4777 _ACEOF
4784 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4785 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4786 { (exit 1); exit 1; }; }
4788 esac
4790 else
4791 with_openssl=no
4796 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4797 echo "${ECHO_T}$with_openssl" >&6; }
4802 # Readline
4805 pgac_args="$pgac_args with_readline"
4808 # Check whether --with-readline was given.
4809 if test "${with_readline+set}" = set; then
4810 withval=$with_readline;
4811 case $withval in
4812 yes)
4819 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4820 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4821 { (exit 1); exit 1; }; }
4823 esac
4825 else
4826 with_readline=yes
4831 # readline on MinGW has problems with backslashes in psql and other bugs.
4832 # This is particularly a problem with non-US code pages.
4833 # Therefore disable its use until we understand the cause. 2004-07-20
4834 if test "$PORTNAME" = "win32"; then
4835 if test "$with_readline" = yes; then
4836 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4837 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4838 with_readline=no
4844 # Prefer libedit
4847 pgac_args="$pgac_args with_libedit_preferred"
4850 # Check whether --with-libedit-preferred was given.
4851 if test "${with_libedit_preferred+set}" = set; then
4852 withval=$with_libedit_preferred;
4853 case $withval in
4854 yes)
4861 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4862 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4863 { (exit 1); exit 1; }; }
4865 esac
4867 else
4868 with_libedit_preferred=no
4876 # OSSP UUID library
4879 pgac_args="$pgac_args with_ossp_uuid"
4882 # Check whether --with-ossp-uuid was given.
4883 if test "${with_ossp_uuid+set}" = set; then
4884 withval=$with_ossp_uuid;
4885 case $withval in
4886 yes)
4893 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4894 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4895 { (exit 1); exit 1; }; }
4897 esac
4899 else
4900 with_ossp_uuid=no
4909 # XML
4912 pgac_args="$pgac_args with_libxml"
4915 # Check whether --with-libxml was given.
4916 if test "${with_libxml+set}" = set; then
4917 withval=$with_libxml;
4918 case $withval in
4919 yes)
4921 cat >>confdefs.h <<\_ACEOF
4922 #define USE_LIBXML 1
4923 _ACEOF
4930 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4931 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4932 { (exit 1); exit 1; }; }
4934 esac
4936 else
4937 with_libxml=no
4943 if test "$with_libxml" = yes ; then
4944 for ac_prog in xml2-config
4946 # Extract the first word of "$ac_prog", so it can be a program name with args.
4947 set dummy $ac_prog; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 if test -n "$XML2_CONFIG"; then
4954 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_XML2_CONFIG="$ac_prog"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4969 IFS=$as_save_IFS
4973 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4974 if test -n "$XML2_CONFIG"; then
4975 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4976 echo "${ECHO_T}$XML2_CONFIG" >&6; }
4977 else
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 test -n "$XML2_CONFIG" && break
4984 done
4986 if test -n "$XML2_CONFIG"; then
4987 for pgac_option in `$XML2_CONFIG --cflags`; do
4988 case $pgac_option in
4989 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4990 esac
4991 done
4992 for pgac_option in `$XML2_CONFIG --libs`; do
4993 case $pgac_option in
4994 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4995 esac
4996 done
5003 # XSLT
5006 pgac_args="$pgac_args with_libxslt"
5009 # Check whether --with-libxslt was given.
5010 if test "${with_libxslt+set}" = set; then
5011 withval=$with_libxslt;
5012 case $withval in
5013 yes)
5015 cat >>confdefs.h <<\_ACEOF
5016 #define USE_LIBXSLT 1
5017 _ACEOF
5024 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5025 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5026 { (exit 1); exit 1; }; }
5028 esac
5030 else
5031 with_libxslt=no
5041 # tzdata
5044 pgac_args="$pgac_args with_system_tzdata"
5047 # Check whether --with-system-tzdata was given.
5048 if test "${with_system_tzdata+set}" = set; then
5049 withval=$with_system_tzdata;
5050 case $withval in
5051 yes)
5052 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5053 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5054 { (exit 1); exit 1; }; }
5057 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5058 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5059 { (exit 1); exit 1; }; }
5064 esac
5072 # Zlib
5075 pgac_args="$pgac_args with_zlib"
5078 # Check whether --with-zlib was given.
5079 if test "${with_zlib+set}" = set; then
5080 withval=$with_zlib;
5081 case $withval in
5082 yes)
5089 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5090 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5091 { (exit 1); exit 1; }; }
5093 esac
5095 else
5096 with_zlib=yes
5104 # Elf
5107 # Assume system is ELF if it predefines __ELF__ as 1,
5108 # otherwise believe host_os based default.
5109 case $host_os in
5110 freebsd1*|freebsd2*) elf=no;;
5111 freebsd3*|freebsd4*) elf=yes;;
5112 esac
5115 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5116 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5117 if test "${ac_cv_path_GREP+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 # Extract the first word of "grep ggrep" to use in msg output
5121 if test -z "$GREP"; then
5122 set dummy grep ggrep; ac_prog_name=$2
5123 if test "${ac_cv_path_GREP+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 ac_path_GREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in grep ggrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5140 *GNU*)
5141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5143 ac_count=0
5144 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5145 while :
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 ac_count=`expr $ac_count + 1`
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP="$ac_path_GREP"
5157 ac_path_GREP_max=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5161 done
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5166 $ac_path_GREP_found && break 3
5167 done
5168 done
5170 done
5171 IFS=$as_save_IFS
5176 GREP="$ac_cv_path_GREP"
5177 if test -z "$GREP"; then
5178 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5179 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5180 { (exit 1); exit 1; }; }
5183 else
5184 ac_cv_path_GREP=$GREP
5189 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5190 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5191 GREP="$ac_cv_path_GREP"
5194 { echo "$as_me:$LINENO: checking for egrep" >&5
5195 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5196 if test "${ac_cv_path_EGREP+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5200 then ac_cv_path_EGREP="$GREP -E"
5201 else
5202 # Extract the first word of "egrep" to use in msg output
5203 if test -z "$EGREP"; then
5204 set dummy egrep; ac_prog_name=$2
5205 if test "${ac_cv_path_EGREP+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 ac_path_EGREP_found=false
5209 # Loop through the user's path and test for each of PROGNAME-LIST
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_prog in egrep; do
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5218 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5219 # Check for GNU ac_path_EGREP and select it if it is found.
5220 # Check for GNU $ac_path_EGREP
5221 case `"$ac_path_EGREP" --version 2>&1` in
5222 *GNU*)
5223 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5225 ac_count=0
5226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5227 while :
5229 cat "conftest.in" "conftest.in" >"conftest.tmp"
5230 mv "conftest.tmp" "conftest.in"
5231 cp "conftest.in" "conftest.nl"
5232 echo 'EGREP' >> "conftest.nl"
5233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5235 ac_count=`expr $ac_count + 1`
5236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5237 # Best one so far, save it but keep looking for a better one
5238 ac_cv_path_EGREP="$ac_path_EGREP"
5239 ac_path_EGREP_max=$ac_count
5241 # 10*(2^10) chars as input seems more than enough
5242 test $ac_count -gt 10 && break
5243 done
5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5245 esac
5248 $ac_path_EGREP_found && break 3
5249 done
5250 done
5252 done
5253 IFS=$as_save_IFS
5258 EGREP="$ac_cv_path_EGREP"
5259 if test -z "$EGREP"; then
5260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5262 { (exit 1); exit 1; }; }
5265 else
5266 ac_cv_path_EGREP=$EGREP
5272 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5273 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #if __ELF__
5285 #endif
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "yes" >/dev/null 2>&1; then
5290 ELF_SYS=true
5291 else
5292 if test "X$elf" = "Xyes" ; then
5293 ELF_SYS=true
5294 else
5295 ELF_SYS=
5298 rm -f conftest*
5303 # Assignments
5306 CPPFLAGS="$CPPFLAGS $INCLUDES"
5307 LDFLAGS="$LDFLAGS $LIBDIRS"
5309 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
5310 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5311 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
5312 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5317 # Check whether --with-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then
5319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5320 else
5321 with_gnu_ld=no
5324 ac_prog=ld
5325 if test "$GCC" = yes; then
5326 # Check if gcc -print-prog-name=ld gives a path.
5327 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5328 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5329 case $host in
5330 *-*-mingw*)
5331 # gcc leaves a trailing carriage return which upsets mingw
5332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335 esac
5336 case "$ac_prog" in
5337 # Accept absolute paths.
5338 [\\/]* | [A-Za-z]:[\\/]*)
5339 re_direlt='/[^/][^/]*/\.\./'
5340 # Canonicalize the path of ld
5341 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5342 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5343 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5344 done
5345 test -z "$LD" && LD="$ac_prog"
5348 # If it fails, then pretend we aren't using GCC.
5349 ac_prog=ld
5352 # If it is relative, then search for the first ld in PATH.
5353 with_gnu_ld=unknown
5355 esac
5356 elif test "$with_gnu_ld" = yes; then
5357 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5359 else
5360 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5363 if test "${ac_cv_path_LD+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 if test -z "$LD"; then
5367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5368 for ac_dir in $PATH; do
5369 test -z "$ac_dir" && ac_dir=.
5370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5371 ac_cv_path_LD="$ac_dir/$ac_prog"
5372 # Check to see if the program is GNU ld. I'd rather use --version,
5373 # but apparently some GNU ld's only accept -v.
5374 # Break only if it was the GNU/non-GNU ld that we prefer.
5375 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5376 test "$with_gnu_ld" != no && break
5377 else
5378 test "$with_gnu_ld" != yes && break
5381 done
5382 IFS="$ac_save_ifs"
5383 else
5384 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5388 LD="$ac_cv_path_LD"
5389 if test -n "$LD"; then
5390 { echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6; }
5392 else
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5396 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5397 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5398 { (exit 1); exit 1; }; }
5399 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5400 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5401 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5405 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5406 ac_cv_prog_gnu_ld=yes
5407 else
5408 ac_cv_prog_gnu_ld=no
5411 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5412 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld=$ac_cv_prog_gnu_ld
5418 case $host_os in sysv5*)
5419 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5420 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5421 if test "${pgac_cv_prog_ld_R+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5425 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5434 main ()
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (ac_try="$ac_link"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest$ac_exeext &&
5458 $as_test_x conftest$ac_exeext; then
5459 pgac_cv_prog_ld_R=yes
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 pgac_cv_prog_ld_R=no
5467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5468 conftest$ac_exeext conftest.$ac_ext
5469 LDFLAGS=$pgac_save_LDFLAGS
5472 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5473 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5474 ld_R_works=$pgac_cv_prog_ld_R
5476 esac
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5482 if test "${ac_cv_prog_RANLIB+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 if test -n "$RANLIB"; then
5486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5501 IFS=$as_save_IFS
5505 RANLIB=$ac_cv_prog_RANLIB
5506 if test -n "$RANLIB"; then
5507 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5508 echo "${ECHO_T}$RANLIB" >&6; }
5509 else
5510 { echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6; }
5516 if test -z "$ac_cv_prog_RANLIB"; then
5517 ac_ct_RANLIB=$RANLIB
5518 # Extract the first word of "ranlib", so it can be a program name with args.
5519 set dummy ranlib; ac_word=$2
5520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 if test -n "$ac_ct_RANLIB"; then
5526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_ac_ct_RANLIB="ranlib"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5546 if test -n "$ac_ct_RANLIB"; then
5547 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5548 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5549 else
5550 { echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6; }
5554 if test "x$ac_ct_RANLIB" = x; then
5555 RANLIB=":"
5556 else
5557 case $cross_compiling:$ac_tool_warned in
5558 yes:)
5559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5560 whose name does not start with the host triplet. If you think this
5561 configuration is useful to you, please write to autoconf@gnu.org." >&5
5562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5563 whose name does not start with the host triplet. If you think this
5564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567 RANLIB=$ac_ct_RANLIB
5569 else
5570 RANLIB="$ac_cv_prog_RANLIB"
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}strip; ac_word=$2
5577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_STRIP+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 if test -n "$STRIP"; then
5583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 STRIP=$ac_cv_prog_STRIP
5603 if test -n "$STRIP"; then
5604 { echo "$as_me:$LINENO: result: $STRIP" >&5
5605 echo "${ECHO_T}$STRIP" >&6; }
5606 else
5607 { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5613 if test -z "$ac_cv_prog_STRIP"; then
5614 ac_ct_STRIP=$STRIP
5615 # Extract the first word of "strip", so it can be a program name with args.
5616 set dummy strip; ac_word=$2
5617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 if test -n "$ac_ct_STRIP"; then
5623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_STRIP="strip"
5633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5636 done
5637 done
5638 IFS=$as_save_IFS
5642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5643 if test -n "$ac_ct_STRIP"; then
5644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5646 else
5647 { echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6; }
5651 if test "x$ac_ct_STRIP" = x; then
5652 STRIP=":"
5653 else
5654 case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5657 whose name does not start with the host triplet. If you think this
5658 configuration is useful to you, please write to autoconf@gnu.org." >&5
5659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664 STRIP=$ac_ct_STRIP
5666 else
5667 STRIP="$ac_cv_prog_STRIP"
5671 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5672 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5673 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5674 STRIP_STATIC_LIB="$STRIP -x"
5675 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5676 { echo "$as_me:$LINENO: result: yes" >&5
5677 echo "${ECHO_T}yes" >&6; }
5678 else
5679 STRIP_STATIC_LIB=:
5680 STRIP_SHARED_LIB=:
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5688 # Extract the first word of "tar", so it can be a program name with args.
5689 set dummy tar; ac_word=$2
5690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5692 if test "${ac_cv_path_TAR+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 case $TAR in
5696 [\\/]* | ?:[\\/]*)
5697 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5711 done
5712 done
5713 IFS=$as_save_IFS
5716 esac
5718 TAR=$ac_cv_path_TAR
5719 if test -n "$TAR"; then
5720 { echo "$as_me:$LINENO: result: $TAR" >&5
5721 echo "${ECHO_T}$TAR" >&6; }
5722 else
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5728 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5729 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5730 LN_S=$as_ln_s
5731 if test "$LN_S" = "ln -s"; then
5732 { echo "$as_me:$LINENO: result: yes" >&5
5733 echo "${ECHO_T}yes" >&6; }
5734 else
5735 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5736 echo "${ECHO_T}no, using $LN_S" >&6; }
5739 for ac_prog in gawk mawk nawk awk
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745 if test "${ac_cv_prog_AWK+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 if test -n "$AWK"; then
5749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_AWK="$ac_prog"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5762 done
5763 done
5764 IFS=$as_save_IFS
5768 AWK=$ac_cv_prog_AWK
5769 if test -n "$AWK"; then
5770 { echo "$as_me:$LINENO: result: $AWK" >&5
5771 echo "${ECHO_T}$AWK" >&6; }
5772 else
5773 { echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6; }
5778 test -n "$AWK" && break
5779 done
5782 # Let the user override the search
5783 if test -z "$YACC"; then
5784 for ac_prog in 'bison -y'
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_prog_YACC+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 if test -n "$YACC"; then
5794 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_YACC="$ac_prog"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5809 IFS=$as_save_IFS
5813 YACC=$ac_cv_prog_YACC
5814 if test -n "$YACC"; then
5815 { echo "$as_me:$LINENO: result: $YACC" >&5
5816 echo "${ECHO_T}$YACC" >&6; }
5817 else
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5823 test -n "$YACC" && break
5824 done
5828 if test "$YACC"; then
5829 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
5830 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5831 echo "$as_me: using $pgac_yacc_version" >&6;}
5832 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5833 then
5834 { echo "$as_me:$LINENO: WARNING:
5835 *** The installed version of Bison is too old to use with PostgreSQL.
5836 *** Bison version 1.875 or later is required." >&5
5837 echo "$as_me: WARNING:
5838 *** The installed version of Bison is too old to use with PostgreSQL.
5839 *** Bison version 1.875 or later is required." >&2;}
5840 YACC=""
5844 if test -z "$YACC"; then
5845 { echo "$as_me:$LINENO: WARNING:
5846 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5847 *** change any of the parser definition files. You can obtain Bison from
5848 *** a GNU mirror site. (If you are using the official distribution of
5849 *** PostgreSQL then you do not need to worry about this, because the Bison
5850 *** output is pre-generated.) To use a different yacc program (possible,
5851 *** but not recommended), set the environment variable YACC before running
5852 *** 'configure'." >&5
5853 echo "$as_me: WARNING:
5854 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5855 *** change any of the parser definition files. You can obtain Bison from
5856 *** a GNU mirror site. (If you are using the official distribution of
5857 *** PostgreSQL then you do not need to worry about this, because the Bison
5858 *** output is pre-generated.) To use a different yacc program (possible,
5859 *** but not recommended), set the environment variable YACC before running
5860 *** 'configure'." >&2;}
5862 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5865 { echo "$as_me:$LINENO: checking for flex" >&5
5866 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
5867 if test "${pgac_cv_path_flex+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 # Let the user override the test
5871 if test -n "$FLEX"; then
5872 pgac_cv_path_flex=$FLEX
5873 else
5874 pgac_save_IFS=$IFS
5875 IFS=$PATH_SEPARATOR
5876 for pgac_dir in $PATH; do
5877 IFS=$pgac_save_IFS
5878 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5879 pgac_dir=`pwd`
5881 for pgac_prog in flex lex; do
5882 pgac_candidate="$pgac_dir/$pgac_prog"
5883 if test -f "$pgac_candidate" \
5884 && $pgac_candidate --version </dev/null >/dev/null 2>&1
5885 then
5886 echo '%%' > conftest.l
5887 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5888 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5889 pgac_broken_flex=$pgac_candidate
5890 continue
5893 pgac_cv_path_flex=$pgac_candidate
5894 break 2
5897 done
5898 done
5899 rm -f conftest.l lex.yy.c
5900 : ${pgac_cv_path_flex=no}
5904 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5905 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
5906 if test x"$pgac_cv_path_flex" = x"no"; then
5907 if test -n "$pgac_broken_flex"; then
5908 { echo "$as_me:$LINENO: WARNING:
5909 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5910 *** should get version 2.5.4 or later." >&5
5911 echo "$as_me: WARNING:
5912 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5913 *** should get version 2.5.4 or later." >&2;}
5916 { echo "$as_me:$LINENO: WARNING:
5917 *** Without Flex you will not be able to build PostgreSQL from CVS or
5918 *** change any of the scanner definition files. You can obtain Flex from
5919 *** a GNU mirror site. (If you are using the official distribution of
5920 *** PostgreSQL then you do not need to worry about this because the Flex
5921 *** output is pre-generated.)" >&5
5922 echo "$as_me: WARNING:
5923 *** Without Flex you will not be able to build PostgreSQL from CVS or
5924 *** change any of the scanner definition files. You can obtain Flex from
5925 *** a GNU mirror site. (If you are using the official distribution of
5926 *** PostgreSQL then you do not need to worry about this because the Flex
5927 *** output is pre-generated.)" >&2;}
5929 FLEX=
5930 else
5931 FLEX=$pgac_cv_path_flex
5932 pgac_flex_version=`$FLEX -V 2>/dev/null`
5933 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5934 echo "$as_me: using $pgac_flex_version" >&6;}
5941 # Extract the first word of "perl", so it can be a program name with args.
5942 set dummy perl; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_PERL+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 case $PERL in
5949 [\\/]* | ?:[\\/]*)
5950 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5969 esac
5971 PERL=$ac_cv_path_PERL
5972 if test -n "$PERL"; then
5973 { echo "$as_me:$LINENO: result: $PERL" >&5
5974 echo "${ECHO_T}$PERL" >&6; }
5975 else
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5981 if test "$with_perl" = yes; then
5983 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5984 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
5985 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5986 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5987 echo "${ECHO_T}$perl_archlibexp" >&6; }
5988 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5989 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
5990 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5991 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5992 echo "${ECHO_T}$perl_privlibexp" >&6; }
5993 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5994 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
5995 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5996 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5997 echo "${ECHO_T}$perl_useshrplib" >&6; }
5999 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6000 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6001 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6002 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6003 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6004 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6005 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6008 if test "$with_python" = yes; then
6009 # Extract the first word of "python", so it can be a program name with args.
6010 set dummy python; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_PYTHON+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 case $PYTHON in
6017 [\\/]* | ?:[\\/]*)
6018 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6037 esac
6039 PYTHON=$ac_cv_path_PYTHON
6040 if test -n "$PYTHON"; then
6041 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6042 echo "${ECHO_T}$PYTHON" >&6; }
6043 else
6044 { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6049 if test x"$PYTHON" = x""; then
6050 { { echo "$as_me:$LINENO: error: Python not found" >&5
6051 echo "$as_me: error: Python not found" >&2;}
6052 { (exit 1); exit 1; }; }
6056 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6057 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6058 if "${PYTHON}" 2>&- -c 'import distutils'
6059 then
6060 { echo "$as_me:$LINENO: result: yes" >&5
6061 echo "${ECHO_T}yes" >&6; }
6062 else
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6066 echo "$as_me: error: distutils module not found" >&2;}
6067 { (exit 1); exit 1; }; }
6069 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6070 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6071 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6072 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')"`
6073 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6075 # This should be enough of a message.
6076 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6077 echo "${ECHO_T}$python_configdir" >&6; }
6080 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6081 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6083 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6084 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6085 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6086 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6088 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6089 then
6090 # New way: use the official shared library
6091 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6092 python_libspec="-L${python_libdir} -l${ldlibrary}"
6093 else
6094 # Old way: use libpython from python_configdir
6095 python_libdir="${python_configdir}"
6096 python_libspec="-L${python_libdir} -lpython${python_version}"
6099 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6101 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6102 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6105 # threaded python is not supported on bsd's
6106 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6107 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6108 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6109 if test "$pythreads" = "1"; then
6110 { echo "$as_me:$LINENO: result: yes" >&5
6111 echo "${ECHO_T}yes" >&6; }
6112 case $host_os in
6113 openbsd*|freebsd*)
6114 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6115 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6116 { (exit 1); exit 1; }; }
6118 esac
6119 else
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6127 # Supply a numeric version string for use by 3rd party add-ons
6128 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6129 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6130 tr '.' ' ' |
6131 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6133 cat >>confdefs.h <<_ACEOF
6134 #define PG_VERSION_NUM $PG_VERSION_NUM
6135 _ACEOF
6139 ## Libraries
6141 ## Most libraries are included only if they demonstrably provide a function
6142 ## we need, but libm is an exception: always include it, because there are
6143 ## too many compilers that play cute optimization games that will break
6144 ## probes for standard functions such as pow().
6148 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6149 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6150 if test "${ac_cv_lib_m_main+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-lm $LIBS"
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6164 main ()
6166 return main ();
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext conftest$ac_exeext
6172 if { (ac_try="$ac_link"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_link") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest$ac_exeext &&
6188 $as_test_x conftest$ac_exeext; then
6189 ac_cv_lib_m_main=yes
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_cv_lib_m_main=no
6197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6198 conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6201 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6202 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6203 if test $ac_cv_lib_m_main = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define HAVE_LIBM 1
6206 _ACEOF
6208 LIBS="-lm $LIBS"
6212 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6213 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6214 if test "${ac_cv_search_setproctitle+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 ac_func_search_save_LIBS=$LIBS
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 char setproctitle ();
6233 main ()
6235 return setproctitle ();
6237 return 0;
6239 _ACEOF
6240 for ac_lib in '' util; do
6241 if test -z "$ac_lib"; then
6242 ac_res="none required"
6243 else
6244 ac_res=-l$ac_lib
6245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 ac_cv_search_setproctitle=$ac_res
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext
6275 if test "${ac_cv_search_setproctitle+set}" = set; then
6276 break
6278 done
6279 if test "${ac_cv_search_setproctitle+set}" = set; then
6281 else
6282 ac_cv_search_setproctitle=no
6284 rm conftest.$ac_ext
6285 LIBS=$ac_func_search_save_LIBS
6287 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6288 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6289 ac_res=$ac_cv_search_setproctitle
6290 if test "$ac_res" != no; then
6291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6295 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6296 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6297 if test "${ac_cv_search_dlopen+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 ac_func_search_save_LIBS=$LIBS
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6308 /* Override any GCC internal prototype to avoid an error.
6309 Use char because int might match the return type of a GCC
6310 builtin and then its argument prototype would still apply. */
6311 #ifdef __cplusplus
6312 extern "C"
6313 #endif
6314 char dlopen ();
6316 main ()
6318 return dlopen ();
6320 return 0;
6322 _ACEOF
6323 for ac_lib in '' dl; do
6324 if test -z "$ac_lib"; then
6325 ac_res="none required"
6326 else
6327 ac_res=-l$ac_lib
6328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6330 rm -f conftest.$ac_objext conftest$ac_exeext
6331 if { (ac_try="$ac_link"
6332 case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_link") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest$ac_exeext &&
6347 $as_test_x conftest$ac_exeext; then
6348 ac_cv_search_dlopen=$ac_res
6349 else
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6357 conftest$ac_exeext
6358 if test "${ac_cv_search_dlopen+set}" = set; then
6359 break
6361 done
6362 if test "${ac_cv_search_dlopen+set}" = set; then
6364 else
6365 ac_cv_search_dlopen=no
6367 rm conftest.$ac_ext
6368 LIBS=$ac_func_search_save_LIBS
6370 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6371 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6372 ac_res=$ac_cv_search_dlopen
6373 if test "$ac_res" != no; then
6374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6378 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6379 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6380 if test "${ac_cv_search_socket+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 ac_func_search_save_LIBS=$LIBS
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 /* Override any GCC internal prototype to avoid an error.
6392 Use char because int might match the return type of a GCC
6393 builtin and then its argument prototype would still apply. */
6394 #ifdef __cplusplus
6395 extern "C"
6396 #endif
6397 char socket ();
6399 main ()
6401 return socket ();
6403 return 0;
6405 _ACEOF
6406 for ac_lib in '' socket wsock32; do
6407 if test -z "$ac_lib"; then
6408 ac_res="none required"
6409 else
6410 ac_res=-l$ac_lib
6411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (ac_try="$ac_link"
6415 case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_link") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest$ac_exeext &&
6430 $as_test_x conftest$ac_exeext; then
6431 ac_cv_search_socket=$ac_res
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6440 conftest$ac_exeext
6441 if test "${ac_cv_search_socket+set}" = set; then
6442 break
6444 done
6445 if test "${ac_cv_search_socket+set}" = set; then
6447 else
6448 ac_cv_search_socket=no
6450 rm conftest.$ac_ext
6451 LIBS=$ac_func_search_save_LIBS
6453 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6454 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6455 ac_res=$ac_cv_search_socket
6456 if test "$ac_res" != no; then
6457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6461 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6462 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6463 if test "${ac_cv_search_shl_load+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 ac_func_search_save_LIBS=$LIBS
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any GCC internal prototype to avoid an error.
6475 Use char because int might match the return type of a GCC
6476 builtin and then its argument prototype would still apply. */
6477 #ifdef __cplusplus
6478 extern "C"
6479 #endif
6480 char shl_load ();
6482 main ()
6484 return shl_load ();
6486 return 0;
6488 _ACEOF
6489 for ac_lib in '' dld; do
6490 if test -z "$ac_lib"; then
6491 ac_res="none required"
6492 else
6493 ac_res=-l$ac_lib
6494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (ac_try="$ac_link"
6498 case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_link") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest$ac_exeext &&
6513 $as_test_x conftest$ac_exeext; then
6514 ac_cv_search_shl_load=$ac_res
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 conftest$ac_exeext
6524 if test "${ac_cv_search_shl_load+set}" = set; then
6525 break
6527 done
6528 if test "${ac_cv_search_shl_load+set}" = set; then
6530 else
6531 ac_cv_search_shl_load=no
6533 rm conftest.$ac_ext
6534 LIBS=$ac_func_search_save_LIBS
6536 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6537 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6538 ac_res=$ac_cv_search_shl_load
6539 if test "$ac_res" != no; then
6540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6544 # We only use libld in port/dynloader/aix.c
6545 case $host_os in
6546 aix*)
6547 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6548 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6549 if test "${ac_cv_search_ldopen+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 ac_func_search_save_LIBS=$LIBS
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6560 /* Override any GCC internal prototype to avoid an error.
6561 Use char because int might match the return type of a GCC
6562 builtin and then its argument prototype would still apply. */
6563 #ifdef __cplusplus
6564 extern "C"
6565 #endif
6566 char ldopen ();
6568 main ()
6570 return ldopen ();
6572 return 0;
6574 _ACEOF
6575 for ac_lib in '' ld; do
6576 if test -z "$ac_lib"; then
6577 ac_res="none required"
6578 else
6579 ac_res=-l$ac_lib
6580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (ac_try="$ac_link"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_link") 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest$ac_exeext &&
6599 $as_test_x conftest$ac_exeext; then
6600 ac_cv_search_ldopen=$ac_res
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6609 conftest$ac_exeext
6610 if test "${ac_cv_search_ldopen+set}" = set; then
6611 break
6613 done
6614 if test "${ac_cv_search_ldopen+set}" = set; then
6616 else
6617 ac_cv_search_ldopen=no
6619 rm conftest.$ac_ext
6620 LIBS=$ac_func_search_save_LIBS
6622 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6623 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6624 ac_res=$ac_cv_search_ldopen
6625 if test "$ac_res" != no; then
6626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6631 esac
6632 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6633 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6634 if test "${ac_cv_search_getopt_long+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 ac_func_search_save_LIBS=$LIBS
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6645 /* Override any GCC internal prototype to avoid an error.
6646 Use char because int might match the return type of a GCC
6647 builtin and then its argument prototype would still apply. */
6648 #ifdef __cplusplus
6649 extern "C"
6650 #endif
6651 char getopt_long ();
6653 main ()
6655 return getopt_long ();
6657 return 0;
6659 _ACEOF
6660 for ac_lib in '' getopt gnugetopt; do
6661 if test -z "$ac_lib"; then
6662 ac_res="none required"
6663 else
6664 ac_res=-l$ac_lib
6665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6669 case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672 esac
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_link") 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest$ac_exeext &&
6684 $as_test_x conftest$ac_exeext; then
6685 ac_cv_search_getopt_long=$ac_res
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6694 conftest$ac_exeext
6695 if test "${ac_cv_search_getopt_long+set}" = set; then
6696 break
6698 done
6699 if test "${ac_cv_search_getopt_long+set}" = set; then
6701 else
6702 ac_cv_search_getopt_long=no
6704 rm conftest.$ac_ext
6705 LIBS=$ac_func_search_save_LIBS
6707 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6708 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6709 ac_res=$ac_cv_search_getopt_long
6710 if test "$ac_res" != no; then
6711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6715 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6716 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6717 if test "${ac_cv_search_crypt+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 ac_func_search_save_LIBS=$LIBS
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6728 /* Override any GCC internal prototype to avoid an error.
6729 Use char because int might match the return type of a GCC
6730 builtin and then its argument prototype would still apply. */
6731 #ifdef __cplusplus
6732 extern "C"
6733 #endif
6734 char crypt ();
6736 main ()
6738 return crypt ();
6740 return 0;
6742 _ACEOF
6743 for ac_lib in '' crypt; do
6744 if test -z "$ac_lib"; then
6745 ac_res="none required"
6746 else
6747 ac_res=-l$ac_lib
6748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (ac_try="$ac_link"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_link") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext &&
6767 $as_test_x conftest$ac_exeext; then
6768 ac_cv_search_crypt=$ac_res
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6777 conftest$ac_exeext
6778 if test "${ac_cv_search_crypt+set}" = set; then
6779 break
6781 done
6782 if test "${ac_cv_search_crypt+set}" = set; then
6784 else
6785 ac_cv_search_crypt=no
6787 rm conftest.$ac_ext
6788 LIBS=$ac_func_search_save_LIBS
6790 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6791 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6792 ac_res=$ac_cv_search_crypt
6793 if test "$ac_res" != no; then
6794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6798 # Solaris:
6799 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6800 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6801 if test "${ac_cv_search_fdatasync+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 ac_func_search_save_LIBS=$LIBS
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6812 /* Override any GCC internal prototype to avoid an error.
6813 Use char because int might match the return type of a GCC
6814 builtin and then its argument prototype would still apply. */
6815 #ifdef __cplusplus
6816 extern "C"
6817 #endif
6818 char fdatasync ();
6820 main ()
6822 return fdatasync ();
6824 return 0;
6826 _ACEOF
6827 for ac_lib in '' rt posix4; do
6828 if test -z "$ac_lib"; then
6829 ac_res="none required"
6830 else
6831 ac_res=-l$ac_lib
6832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (ac_try="$ac_link"
6836 case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839 esac
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_link") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest$ac_exeext &&
6851 $as_test_x conftest$ac_exeext; then
6852 ac_cv_search_fdatasync=$ac_res
6853 else
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6861 conftest$ac_exeext
6862 if test "${ac_cv_search_fdatasync+set}" = set; then
6863 break
6865 done
6866 if test "${ac_cv_search_fdatasync+set}" = set; then
6868 else
6869 ac_cv_search_fdatasync=no
6871 rm conftest.$ac_ext
6872 LIBS=$ac_func_search_save_LIBS
6874 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6875 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
6876 ac_res=$ac_cv_search_fdatasync
6877 if test "$ac_res" != no; then
6878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6882 # Cygwin:
6883 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
6884 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
6885 if test "${ac_cv_search_shmget+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 ac_func_search_save_LIBS=$LIBS
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6896 /* Override any GCC internal prototype to avoid an error.
6897 Use char because int might match the return type of a GCC
6898 builtin and then its argument prototype would still apply. */
6899 #ifdef __cplusplus
6900 extern "C"
6901 #endif
6902 char shmget ();
6904 main ()
6906 return shmget ();
6908 return 0;
6910 _ACEOF
6911 for ac_lib in '' cygipc; do
6912 if test -z "$ac_lib"; then
6913 ac_res="none required"
6914 else
6915 ac_res=-l$ac_lib
6916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (ac_try="$ac_link"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest$ac_exeext &&
6935 $as_test_x conftest$ac_exeext; then
6936 ac_cv_search_shmget=$ac_res
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6945 conftest$ac_exeext
6946 if test "${ac_cv_search_shmget+set}" = set; then
6947 break
6949 done
6950 if test "${ac_cv_search_shmget+set}" = set; then
6952 else
6953 ac_cv_search_shmget=no
6955 rm conftest.$ac_ext
6956 LIBS=$ac_func_search_save_LIBS
6958 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6959 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
6960 ac_res=$ac_cv_search_shmget
6961 if test "$ac_res" != no; then
6962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6967 if test "$with_readline" = yes; then
6970 if test "${pgac_cv_check_readline+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 pgac_cv_check_readline=no
6974 pgac_save_LIBS=$LIBS
6975 if test x"$with_libedit_preferred" != x"yes"
6976 then READLINE_ORDER="-lreadline -ledit"
6977 else READLINE_ORDER="-ledit -lreadline"
6979 for pgac_rllib in $READLINE_ORDER ; do
6980 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6981 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
6982 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6983 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6991 /* Override any GCC internal prototype to avoid an error.
6992 Use char because int might match the return type of a GCC
6993 builtin and then its argument prototype would still apply. */
6994 #ifdef __cplusplus
6995 extern "C"
6996 #endif
6997 char readline ();
6999 main ()
7001 return readline ();
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest$ac_exeext &&
7023 $as_test_x conftest$ac_exeext; then
7025 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7026 # recognize dependent libraries; assume curses is needed if we didn't
7027 # find any dependency.
7028 case $host_os in
7029 netbsd* | openbsd* | irix*)
7030 if test x"$pgac_lib" = x"" ; then
7031 pgac_lib=" -lcurses"
7032 fi ;;
7033 esac
7035 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7036 break
7038 else
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7046 conftest$ac_exeext conftest.$ac_ext
7047 done
7048 if test "$pgac_cv_check_readline" != no ; then
7049 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7050 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7051 break
7052 else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7056 done
7057 LIBS=$pgac_save_LIBS
7061 if test "$pgac_cv_check_readline" != no ; then
7062 LIBS="$pgac_cv_check_readline $LIBS"
7064 cat >>confdefs.h <<\_ACEOF
7065 #define HAVE_LIBREADLINE 1
7066 _ACEOF
7071 if test x"$pgac_cv_check_readline" = x"no"; then
7072 { { echo "$as_me:$LINENO: error: readline library not found
7073 If you have readline already installed, see config.log for details on the
7074 failure. It is possible the compiler isn't looking in the proper directory.
7075 Use --without-readline to disable readline support." >&5
7076 echo "$as_me: error: readline library not found
7077 If you have readline already installed, see config.log for details on the
7078 failure. It is possible the compiler isn't looking in the proper directory.
7079 Use --without-readline to disable readline support." >&2;}
7080 { (exit 1); exit 1; }; }
7084 if test "$with_zlib" = yes; then
7086 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7087 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7088 if test "${ac_cv_lib_z_inflate+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 ac_check_lib_save_LIBS=$LIBS
7092 LIBS="-lz $LIBS"
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7100 /* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 char inflate ();
7108 main ()
7110 return inflate ();
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (ac_try="$ac_link"
7117 case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120 esac
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_link") 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest$ac_exeext &&
7132 $as_test_x conftest$ac_exeext; then
7133 ac_cv_lib_z_inflate=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_lib_z_inflate=no
7141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7142 conftest$ac_exeext conftest.$ac_ext
7143 LIBS=$ac_check_lib_save_LIBS
7145 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7146 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7147 if test $ac_cv_lib_z_inflate = yes; then
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_LIBZ 1
7150 _ACEOF
7152 LIBS="-lz $LIBS"
7154 else
7155 { { echo "$as_me:$LINENO: error: zlib library not found
7156 If you have zlib already installed, see config.log for details on the
7157 failure. It is possible the compiler isn't looking in the proper directory.
7158 Use --without-zlib to disable zlib support." >&5
7159 echo "$as_me: error: zlib library not found
7160 If you have zlib already installed, see config.log for details on the
7161 failure. It is possible the compiler isn't looking in the proper directory.
7162 Use --without-zlib to disable zlib support." >&2;}
7163 { (exit 1); exit 1; }; }
7168 if test "$enable_spinlocks" = yes; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_SPINLOCKS 1
7172 _ACEOF
7174 else
7175 { echo "$as_me:$LINENO: WARNING:
7176 *** Not using spinlocks will cause poor performance." >&5
7177 echo "$as_me: WARNING:
7178 *** Not using spinlocks will cause poor performance." >&2;}
7181 if test "$with_gssapi" = yes ; then
7182 if test "$PORTNAME" != "win32"; then
7183 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7184 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7185 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 ac_func_search_save_LIBS=$LIBS
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7199 #ifdef __cplusplus
7200 extern "C"
7201 #endif
7202 char gss_init_sec_context ();
7204 main ()
7206 return gss_init_sec_context ();
7208 return 0;
7210 _ACEOF
7211 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7212 if test -z "$ac_lib"; then
7213 ac_res="none required"
7214 else
7215 ac_res=-l$ac_lib
7216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (ac_try="$ac_link"
7220 case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7223 esac
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_link") 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest$ac_exeext &&
7235 $as_test_x conftest$ac_exeext; then
7236 ac_cv_search_gss_init_sec_context=$ac_res
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7245 conftest$ac_exeext
7246 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7247 break
7249 done
7250 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7252 else
7253 ac_cv_search_gss_init_sec_context=no
7255 rm conftest.$ac_ext
7256 LIBS=$ac_func_search_save_LIBS
7258 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7259 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7260 ac_res=$ac_cv_search_gss_init_sec_context
7261 if test "$ac_res" != no; then
7262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7264 else
7265 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7266 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7267 { (exit 1); exit 1; }; }
7270 else
7271 LIBS="$LIBS -lgssapi32"
7275 if test "$with_krb5" = yes ; then
7276 if test "$PORTNAME" != "win32"; then
7277 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7278 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7279 if test "${ac_cv_search_com_err+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 ac_func_search_save_LIBS=$LIBS
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7290 /* Override any GCC internal prototype to avoid an error.
7291 Use char because int might match the return type of a GCC
7292 builtin and then its argument prototype would still apply. */
7293 #ifdef __cplusplus
7294 extern "C"
7295 #endif
7296 char com_err ();
7298 main ()
7300 return com_err ();
7302 return 0;
7304 _ACEOF
7305 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7306 if test -z "$ac_lib"; then
7307 ac_res="none required"
7308 else
7309 ac_res=-l$ac_lib
7310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7312 rm -f conftest.$ac_objext conftest$ac_exeext
7313 if { (ac_try="$ac_link"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_link") 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest$ac_exeext &&
7329 $as_test_x conftest$ac_exeext; then
7330 ac_cv_search_com_err=$ac_res
7331 else
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7339 conftest$ac_exeext
7340 if test "${ac_cv_search_com_err+set}" = set; then
7341 break
7343 done
7344 if test "${ac_cv_search_com_err+set}" = set; then
7346 else
7347 ac_cv_search_com_err=no
7349 rm conftest.$ac_ext
7350 LIBS=$ac_func_search_save_LIBS
7352 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7353 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7354 ac_res=$ac_cv_search_com_err
7355 if test "$ac_res" != no; then
7356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7358 else
7359 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7360 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7361 { (exit 1); exit 1; }; }
7364 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7365 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7366 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 ac_func_search_save_LIBS=$LIBS
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7377 /* Override any GCC internal prototype to avoid an error.
7378 Use char because int might match the return type of a GCC
7379 builtin and then its argument prototype would still apply. */
7380 #ifdef __cplusplus
7381 extern "C"
7382 #endif
7383 char krb5_sendauth ();
7385 main ()
7387 return krb5_sendauth ();
7389 return 0;
7391 _ACEOF
7392 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7393 if test -z "$ac_lib"; then
7394 ac_res="none required"
7395 else
7396 ac_res=-l$ac_lib
7397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest$ac_exeext &&
7416 $as_test_x conftest$ac_exeext; then
7417 ac_cv_search_krb5_sendauth=$ac_res
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7426 conftest$ac_exeext
7427 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7428 break
7430 done
7431 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7433 else
7434 ac_cv_search_krb5_sendauth=no
7436 rm conftest.$ac_ext
7437 LIBS=$ac_func_search_save_LIBS
7439 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7440 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7441 ac_res=$ac_cv_search_krb5_sendauth
7442 if test "$ac_res" != no; then
7443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7445 else
7446 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7447 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7448 { (exit 1); exit 1; }; }
7451 else
7452 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7453 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7454 if test "${ac_cv_search_com_err+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 ac_func_search_save_LIBS=$LIBS
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7465 /* Override any GCC internal prototype to avoid an error.
7466 Use char because int might match the return type of a GCC
7467 builtin and then its argument prototype would still apply. */
7468 #ifdef __cplusplus
7469 extern "C"
7470 #endif
7471 char com_err ();
7473 main ()
7475 return com_err ();
7477 return 0;
7479 _ACEOF
7480 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7481 if test -z "$ac_lib"; then
7482 ac_res="none required"
7483 else
7484 ac_res=-l$ac_lib
7485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest$ac_exeext &&
7504 $as_test_x conftest$ac_exeext; then
7505 ac_cv_search_com_err=$ac_res
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514 conftest$ac_exeext
7515 if test "${ac_cv_search_com_err+set}" = set; then
7516 break
7518 done
7519 if test "${ac_cv_search_com_err+set}" = set; then
7521 else
7522 ac_cv_search_com_err=no
7524 rm conftest.$ac_ext
7525 LIBS=$ac_func_search_save_LIBS
7527 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7528 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7529 ac_res=$ac_cv_search_com_err
7530 if test "$ac_res" != no; then
7531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7533 else
7534 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7535 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7536 { (exit 1); exit 1; }; }
7542 if test "$with_openssl" = yes ; then
7543 if test "$PORTNAME" != "win32"; then
7545 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7546 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7547 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550 ac_check_lib_save_LIBS=$LIBS
7551 LIBS="-lcrypto $LIBS"
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any GCC internal prototype to avoid an error.
7560 Use char because int might match the return type of a GCC
7561 builtin and then its argument prototype would still apply. */
7562 #ifdef __cplusplus
7563 extern "C"
7564 #endif
7565 char CRYPTO_new_ex_data ();
7567 main ()
7569 return CRYPTO_new_ex_data ();
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (ac_try="$ac_link"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_link") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest$ac_exeext &&
7591 $as_test_x conftest$ac_exeext; then
7592 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7601 conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7604 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7605 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7606 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7607 cat >>confdefs.h <<_ACEOF
7608 #define HAVE_LIBCRYPTO 1
7609 _ACEOF
7611 LIBS="-lcrypto $LIBS"
7613 else
7614 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7615 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7616 { (exit 1); exit 1; }; }
7620 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7621 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7622 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-lssl $LIBS"
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7634 /* Override any GCC internal prototype to avoid an error.
7635 Use char because int might match the return type of a GCC
7636 builtin and then its argument prototype would still apply. */
7637 #ifdef __cplusplus
7638 extern "C"
7639 #endif
7640 char SSL_library_init ();
7642 main ()
7644 return SSL_library_init ();
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest$ac_exeext &&
7666 $as_test_x conftest$ac_exeext; then
7667 ac_cv_lib_ssl_SSL_library_init=yes
7668 else
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7672 ac_cv_lib_ssl_SSL_library_init=no
7675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7676 conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7679 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7680 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7681 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683 #define HAVE_LIBSSL 1
7684 _ACEOF
7686 LIBS="-lssl $LIBS"
7688 else
7689 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7690 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7691 { (exit 1); exit 1; }; }
7694 else
7696 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7697 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7698 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701 ac_check_lib_save_LIBS=$LIBS
7702 LIBS="-leay32 $LIBS"
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 char CRYPTO_new_ex_data ();
7718 main ()
7720 return CRYPTO_new_ex_data ();
7722 return 0;
7724 _ACEOF
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (ac_try="$ac_link"
7727 case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_link") 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest$ac_exeext &&
7742 $as_test_x conftest$ac_exeext; then
7743 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7752 conftest$ac_exeext conftest.$ac_ext
7753 LIBS=$ac_check_lib_save_LIBS
7755 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7756 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7757 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7758 cat >>confdefs.h <<_ACEOF
7759 #define HAVE_LIBEAY32 1
7760 _ACEOF
7762 LIBS="-leay32 $LIBS"
7764 else
7765 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7766 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7767 { (exit 1); exit 1; }; }
7771 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7772 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7773 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 ac_check_lib_save_LIBS=$LIBS
7777 LIBS="-lssleay32 $LIBS"
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7788 #ifdef __cplusplus
7789 extern "C"
7790 #endif
7791 char SSL_library_init ();
7793 main ()
7795 return SSL_library_init ();
7797 return 0;
7799 _ACEOF
7800 rm -f conftest.$ac_objext conftest$ac_exeext
7801 if { (ac_try="$ac_link"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_link") 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest$ac_exeext &&
7817 $as_test_x conftest$ac_exeext; then
7818 ac_cv_lib_ssleay32_SSL_library_init=yes
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_cv_lib_ssleay32_SSL_library_init=no
7826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7827 conftest$ac_exeext conftest.$ac_ext
7828 LIBS=$ac_check_lib_save_LIBS
7830 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7831 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
7832 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7833 cat >>confdefs.h <<_ACEOF
7834 #define HAVE_LIBSSLEAY32 1
7835 _ACEOF
7837 LIBS="-lssleay32 $LIBS"
7839 else
7840 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7841 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7842 { (exit 1); exit 1; }; }
7848 if test "$with_pam" = yes ; then
7850 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7851 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
7852 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-lpam $LIBS"
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7864 /* Override any GCC internal prototype to avoid an error.
7865 Use char because int might match the return type of a GCC
7866 builtin and then its argument prototype would still apply. */
7867 #ifdef __cplusplus
7868 extern "C"
7869 #endif
7870 char pam_start ();
7872 main ()
7874 return pam_start ();
7876 return 0;
7878 _ACEOF
7879 rm -f conftest.$ac_objext conftest$ac_exeext
7880 if { (ac_try="$ac_link"
7881 case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884 esac
7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_link") 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && {
7893 test -z "$ac_c_werror_flag" ||
7894 test ! -s conftest.err
7895 } && test -s conftest$ac_exeext &&
7896 $as_test_x conftest$ac_exeext; then
7897 ac_cv_lib_pam_pam_start=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_lib_pam_pam_start=no
7905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7906 conftest$ac_exeext conftest.$ac_ext
7907 LIBS=$ac_check_lib_save_LIBS
7909 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7910 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
7911 if test $ac_cv_lib_pam_pam_start = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_LIBPAM 1
7914 _ACEOF
7916 LIBS="-lpam $LIBS"
7918 else
7919 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7920 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7921 { (exit 1); exit 1; }; }
7926 if test "$with_libxml" = yes ; then
7928 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7929 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
7930 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 ac_check_lib_save_LIBS=$LIBS
7934 LIBS="-lxml2 $LIBS"
7935 cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h. */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7942 /* Override any GCC internal prototype to avoid an error.
7943 Use char because int might match the return type of a GCC
7944 builtin and then its argument prototype would still apply. */
7945 #ifdef __cplusplus
7946 extern "C"
7947 #endif
7948 char xmlSaveToBuffer ();
7950 main ()
7952 return xmlSaveToBuffer ();
7954 return 0;
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7959 case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest$ac_exeext &&
7974 $as_test_x conftest$ac_exeext; then
7975 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_cv_lib_xml2_xmlSaveToBuffer=no
7983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_lib_save_LIBS
7987 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7988 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
7989 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_LIBXML2 1
7992 _ACEOF
7994 LIBS="-lxml2 $LIBS"
7996 else
7997 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7998 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7999 { (exit 1); exit 1; }; }
8004 if test "$with_libxslt" = yes ; then
8006 { echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
8007 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6; }
8008 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 ac_check_lib_save_LIBS=$LIBS
8012 LIBS="-lxslt $LIBS"
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8020 /* Override any GCC internal prototype to avoid an error.
8021 Use char because int might match the return type of a GCC
8022 builtin and then its argument prototype would still apply. */
8023 #ifdef __cplusplus
8024 extern "C"
8025 #endif
8026 char xsltLibxmlVersion ();
8028 main ()
8030 return xsltLibxmlVersion ();
8032 return 0;
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext &&
8052 $as_test_x conftest$ac_exeext; then
8053 ac_cv_lib_xslt_xsltLibxmlVersion=yes
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_cv_lib_xslt_xsltLibxmlVersion=no
8061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062 conftest$ac_exeext conftest.$ac_ext
8063 LIBS=$ac_check_lib_save_LIBS
8065 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
8066 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6; }
8067 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
8068 cat >>confdefs.h <<_ACEOF
8069 #define HAVE_LIBXSLT 1
8070 _ACEOF
8072 LIBS="-lxslt $LIBS"
8074 else
8075 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8076 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8077 { (exit 1); exit 1; }; }
8082 # for contrib/uuid-ossp
8083 if test "$with_ossp_uuid" = yes ; then
8084 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8085 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8086 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 ac_check_lib_save_LIBS=$LIBS
8090 LIBS="-lossp-uuid $LIBS"
8091 cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h. */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8098 /* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
8101 #ifdef __cplusplus
8102 extern "C"
8103 #endif
8104 char uuid_export ();
8106 main ()
8108 return uuid_export ();
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (ac_try="$ac_link"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_link") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest$ac_exeext &&
8130 $as_test_x conftest$ac_exeext; then
8131 ac_cv_lib_ossp_uuid_uuid_export=yes
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_lib_ossp_uuid_uuid_export=no
8139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_lib_save_LIBS
8143 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8144 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8145 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8146 OSSP_UUID_LIBS="-lossp-uuid"
8147 else
8148 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8149 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8150 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 ac_check_lib_save_LIBS=$LIBS
8154 LIBS="-luuid $LIBS"
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8162 /* Override any GCC internal prototype to avoid an error.
8163 Use char because int might match the return type of a GCC
8164 builtin and then its argument prototype would still apply. */
8165 #ifdef __cplusplus
8166 extern "C"
8167 #endif
8168 char uuid_export ();
8170 main ()
8172 return uuid_export ();
8174 return 0;
8176 _ACEOF
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (ac_try="$ac_link"
8179 case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_link") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest$ac_exeext &&
8194 $as_test_x conftest$ac_exeext; then
8195 ac_cv_lib_uuid_uuid_export=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_cv_lib_uuid_uuid_export=no
8203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8204 conftest$ac_exeext conftest.$ac_ext
8205 LIBS=$ac_check_lib_save_LIBS
8207 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8208 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8209 if test $ac_cv_lib_uuid_uuid_export = yes; then
8210 OSSP_UUID_LIBS="-luuid"
8211 else
8212 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8213 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8214 { (exit 1); exit 1; }; }
8224 ## Header files
8227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8229 if test "${ac_cv_header_stdc+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #include <stdlib.h>
8239 #include <stdarg.h>
8240 #include <string.h>
8241 #include <float.h>
8244 main ()
8248 return 0;
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.$ac_objext; then
8268 ac_cv_header_stdc=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_header_stdc=no
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 if test $ac_cv_header_stdc = yes; then
8279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <string.h>
8288 _ACEOF
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 $EGREP "memchr" >/dev/null 2>&1; then
8292 else
8293 ac_cv_header_stdc=no
8295 rm -f conftest*
8299 if test $ac_cv_header_stdc = yes; then
8300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <stdlib.h>
8309 _ACEOF
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "free" >/dev/null 2>&1; then
8313 else
8314 ac_cv_header_stdc=no
8316 rm -f conftest*
8320 if test $ac_cv_header_stdc = yes; then
8321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8322 if test "$cross_compiling" = yes; then
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 #include <ctype.h>
8332 #include <stdlib.h>
8333 #if ((' ' & 0x0FF) == 0x020)
8334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8336 #else
8337 # define ISLOWER(c) \
8338 (('a' <= (c) && (c) <= 'i') \
8339 || ('j' <= (c) && (c) <= 'r') \
8340 || ('s' <= (c) && (c) <= 'z'))
8341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8342 #endif
8344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8346 main ()
8348 int i;
8349 for (i = 0; i < 256; i++)
8350 if (XOR (islower (i), ISLOWER (i))
8351 || toupper (i) != TOUPPER (i))
8352 return 2;
8353 return 0;
8355 _ACEOF
8356 rm -f conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8377 else
8378 echo "$as_me: program exited with status $ac_status" >&5
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ( exit $ac_status )
8383 ac_cv_header_stdc=no
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8391 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8392 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8393 if test $ac_cv_header_stdc = yes; then
8395 cat >>confdefs.h <<\_ACEOF
8396 #define STDC_HEADERS 1
8397 _ACEOF
8401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8412 inttypes.h stdint.h unistd.h
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8428 #include <$ac_header>
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 eval "$as_ac_Header=yes"
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 eval "$as_ac_Header=no"
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 ac_res=`eval echo '${'$as_ac_Header'}'`
8458 { echo "$as_me:$LINENO: result: $ac_res" >&5
8459 echo "${ECHO_T}$ac_res" >&6; }
8460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8461 cat >>confdefs.h <<_ACEOF
8462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8463 _ACEOF
8467 done
8496 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_res=`eval echo '${'$as_ac_Header'}'`
8506 { echo "$as_me:$LINENO: result: $ac_res" >&5
8507 echo "${ECHO_T}$ac_res" >&6; }
8508 else
8509 # Is the header compilable?
8510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8519 #include <$ac_header>
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_header_compiler=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_compiler=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8548 echo "${ECHO_T}$ac_header_compiler" >&6; }
8550 # Is the header present?
8551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <$ac_header>
8560 _ACEOF
8561 if { (ac_try="$ac_cpp conftest.$ac_ext"
8562 case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } >/dev/null && {
8574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8575 test ! -s conftest.err
8576 }; then
8577 ac_header_preproc=yes
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_header_preproc=no
8585 rm -f conftest.err conftest.$ac_ext
8586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8587 echo "${ECHO_T}$ac_header_preproc" >&6; }
8589 # So? What about this header?
8590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8591 yes:no: )
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8596 ac_header_preproc=yes
8598 no:yes:* )
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8611 ( cat <<\_ASBOX
8612 ## ---------------------------------------- ##
8613 ## Report this to pgsql-bugs@postgresql.org ##
8614 ## ---------------------------------------- ##
8615 _ASBOX
8616 ) | sed "s/^/$as_me: WARNING: /" >&2
8618 esac
8619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 eval "$as_ac_Header=\$ac_header_preproc"
8626 ac_res=`eval echo '${'$as_ac_Header'}'`
8627 { echo "$as_me:$LINENO: result: $ac_res" >&5
8628 echo "${ECHO_T}$ac_res" >&6; }
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 _ACEOF
8638 done
8641 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8642 # netinet/in.h is included first.
8644 for ac_header in netinet/in.h
8646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_res=`eval echo '${'$as_ac_Header'}'`
8654 { echo "$as_me:$LINENO: result: $ac_res" >&5
8655 echo "${ECHO_T}$ac_res" >&6; }
8656 else
8657 # Is the header compilable?
8658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 #include <$ac_header>
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8671 case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_header_compiler=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_header_compiler=no
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696 echo "${ECHO_T}$ac_header_compiler" >&6; }
8698 # Is the header present?
8699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <$ac_header>
8708 _ACEOF
8709 if { (ac_try="$ac_cpp conftest.$ac_ext"
8710 case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713 esac
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } >/dev/null && {
8722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 }; then
8725 ac_header_preproc=yes
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_header_preproc=no
8733 rm -f conftest.err conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6; }
8737 # So? What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 yes:no: )
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
8746 no:yes:* )
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759 ( cat <<\_ASBOX
8760 ## ---------------------------------------- ##
8761 ## Report this to pgsql-bugs@postgresql.org ##
8762 ## ---------------------------------------- ##
8763 _ASBOX
8764 ) | sed "s/^/$as_me: WARNING: /" >&2
8766 esac
8767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772 eval "$as_ac_Header=\$ac_header_preproc"
8774 ac_res=`eval echo '${'$as_ac_Header'}'`
8775 { echo "$as_me:$LINENO: result: $ac_res" >&5
8776 echo "${ECHO_T}$ac_res" >&6; }
8779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8780 cat >>confdefs.h <<_ACEOF
8781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782 _ACEOF
8786 done
8789 for ac_header in netinet/tcp.h
8791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #ifdef HAVE_NETINET_IN_H
8805 #include <netinet/in.h>
8806 #endif
8809 #include <$ac_header>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8813 case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 eval "$as_ac_Header=yes"
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 eval "$as_ac_Header=no"
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 ac_res=`eval echo '${'$as_ac_Header'}'`
8839 { echo "$as_me:$LINENO: result: $ac_res" >&5
8840 echo "${ECHO_T}$ac_res" >&6; }
8841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8842 cat >>confdefs.h <<_ACEOF
8843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8844 _ACEOF
8848 done
8851 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8853 for ac_header in readline/readline.h
8855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_res=`eval echo '${'$as_ac_Header'}'`
8863 { echo "$as_me:$LINENO: result: $ac_res" >&5
8864 echo "${ECHO_T}$ac_res" >&6; }
8865 else
8866 # Is the header compilable?
8867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 $ac_includes_default
8876 #include <$ac_header>
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8880 case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_header_compiler=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 ac_header_compiler=no
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8905 echo "${ECHO_T}$ac_header_compiler" >&6; }
8907 # Is the header present?
8908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 #include <$ac_header>
8917 _ACEOF
8918 if { (ac_try="$ac_cpp conftest.$ac_ext"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null && {
8931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 }; then
8934 ac_header_preproc=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_header_preproc=no
8942 rm -f conftest.err conftest.$ac_ext
8943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8944 echo "${ECHO_T}$ac_header_preproc" >&6; }
8946 # So? What about this header?
8947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8948 yes:no: )
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8953 ac_header_preproc=yes
8955 no:yes:* )
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8968 ( cat <<\_ASBOX
8969 ## ---------------------------------------- ##
8970 ## Report this to pgsql-bugs@postgresql.org ##
8971 ## ---------------------------------------- ##
8972 _ASBOX
8973 ) | sed "s/^/$as_me: WARNING: /" >&2
8975 esac
8976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 eval "$as_ac_Header=\$ac_header_preproc"
8983 ac_res=`eval echo '${'$as_ac_Header'}'`
8984 { echo "$as_me:$LINENO: result: $ac_res" >&5
8985 echo "${ECHO_T}$ac_res" >&6; }
8988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8989 cat >>confdefs.h <<_ACEOF
8990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8991 _ACEOF
8993 else
8995 for ac_header in readline.h
8997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 ac_res=`eval echo '${'$as_ac_Header'}'`
9005 { echo "$as_me:$LINENO: result: $ac_res" >&5
9006 echo "${ECHO_T}$ac_res" >&6; }
9007 else
9008 # Is the header compilable?
9009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9018 #include <$ac_header>
9019 _ACEOF
9020 rm -f conftest.$ac_objext
9021 if { (ac_try="$ac_compile"
9022 case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025 esac
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.$ac_objext; then
9037 ac_header_compiler=yes
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_header_compiler=no
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9047 echo "${ECHO_T}$ac_header_compiler" >&6; }
9049 # Is the header present?
9050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h. */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 #include <$ac_header>
9059 _ACEOF
9060 if { (ac_try="$ac_cpp conftest.$ac_ext"
9061 case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } >/dev/null && {
9073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9074 test ! -s conftest.err
9075 }; then
9076 ac_header_preproc=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_header_preproc=no
9084 rm -f conftest.err conftest.$ac_ext
9085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6; }
9088 # So? What about this header?
9089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090 yes:no: )
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095 ac_header_preproc=yes
9097 no:yes:* )
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110 ( cat <<\_ASBOX
9111 ## ---------------------------------------- ##
9112 ## Report this to pgsql-bugs@postgresql.org ##
9113 ## ---------------------------------------- ##
9114 _ASBOX
9115 ) | sed "s/^/$as_me: WARNING: /" >&2
9117 esac
9118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123 eval "$as_ac_Header=\$ac_header_preproc"
9125 ac_res=`eval echo '${'$as_ac_Header'}'`
9126 { echo "$as_me:$LINENO: result: $ac_res" >&5
9127 echo "${ECHO_T}$ac_res" >&6; }
9130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9131 cat >>confdefs.h <<_ACEOF
9132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9133 _ACEOF
9135 else
9136 { { echo "$as_me:$LINENO: error: readline header not found
9137 If you have readline already installed, see config.log for details on the
9138 failure. It is possible the compiler isn't looking in the proper directory.
9139 Use --without-readline to disable readline support." >&5
9140 echo "$as_me: error: readline header not found
9141 If you have readline already installed, see config.log for details on the
9142 failure. It is possible the compiler isn't looking in the proper directory.
9143 Use --without-readline to disable readline support." >&2;}
9144 { (exit 1); exit 1; }; }
9147 done
9151 done
9154 for ac_header in readline/history.h
9156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 ac_res=`eval echo '${'$as_ac_Header'}'`
9164 { echo "$as_me:$LINENO: result: $ac_res" >&5
9165 echo "${ECHO_T}$ac_res" >&6; }
9166 else
9167 # Is the header compilable?
9168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9177 #include <$ac_header>
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (ac_try="$ac_compile"
9181 case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && {
9193 test -z "$ac_c_werror_flag" ||
9194 test ! -s conftest.err
9195 } && test -s conftest.$ac_objext; then
9196 ac_header_compiler=yes
9197 else
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_header_compiler=no
9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9206 echo "${ECHO_T}$ac_header_compiler" >&6; }
9208 # Is the header present?
9209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <$ac_header>
9218 _ACEOF
9219 if { (ac_try="$ac_cpp conftest.$ac_ext"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } >/dev/null && {
9232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 }; then
9235 ac_header_preproc=yes
9236 else
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 ac_header_preproc=no
9243 rm -f conftest.err conftest.$ac_ext
9244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9245 echo "${ECHO_T}$ac_header_preproc" >&6; }
9247 # So? What about this header?
9248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9249 yes:no: )
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9254 ac_header_preproc=yes
9256 no:yes:* )
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9269 ( cat <<\_ASBOX
9270 ## ---------------------------------------- ##
9271 ## Report this to pgsql-bugs@postgresql.org ##
9272 ## ---------------------------------------- ##
9273 _ASBOX
9274 ) | sed "s/^/$as_me: WARNING: /" >&2
9276 esac
9277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 eval "$as_ac_Header=\$ac_header_preproc"
9284 ac_res=`eval echo '${'$as_ac_Header'}'`
9285 { echo "$as_me:$LINENO: result: $ac_res" >&5
9286 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9292 _ACEOF
9294 else
9296 for ac_header in history.h
9298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 ac_res=`eval echo '${'$as_ac_Header'}'`
9306 { echo "$as_me:$LINENO: result: $ac_res" >&5
9307 echo "${ECHO_T}$ac_res" >&6; }
9308 else
9309 # Is the header compilable?
9310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 #include <$ac_header>
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9323 case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
9338 ac_header_compiler=yes
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_header_compiler=no
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6; }
9350 # Is the header present?
9351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #include <$ac_header>
9360 _ACEOF
9361 if { (ac_try="$ac_cpp conftest.$ac_ext"
9362 case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null && {
9374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 }; then
9377 ac_header_preproc=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_header_preproc=no
9385 rm -f conftest.err conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6; }
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9391 yes:no: )
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9398 no:yes:* )
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9411 ( cat <<\_ASBOX
9412 ## ---------------------------------------- ##
9413 ## Report this to pgsql-bugs@postgresql.org ##
9414 ## ---------------------------------------- ##
9415 _ASBOX
9416 ) | sed "s/^/$as_me: WARNING: /" >&2
9418 esac
9419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 eval "$as_ac_Header=\$ac_header_preproc"
9426 ac_res=`eval echo '${'$as_ac_Header'}'`
9427 { echo "$as_me:$LINENO: result: $ac_res" >&5
9428 echo "${ECHO_T}$ac_res" >&6; }
9431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9432 cat >>confdefs.h <<_ACEOF
9433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9434 _ACEOF
9436 else
9437 { { echo "$as_me:$LINENO: error: history header not found
9438 If you have readline already installed, see config.log for details on the
9439 failure. It is possible the compiler isn't looking in the proper directory.
9440 Use --without-readline to disable readline support." >&5
9441 echo "$as_me: error: history header not found
9442 If you have readline already installed, see config.log for details on the
9443 failure. It is possible the compiler isn't looking in the proper directory.
9444 Use --without-readline to disable readline support." >&2;}
9445 { (exit 1); exit 1; }; }
9448 done
9452 done
9456 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9457 # Some installations of libedit usurp /usr/include/readline/, which seems
9458 # bad practice, since in combined installations readline will have its headers
9459 # there. We might have to resort to AC_EGREP checks to make sure we found
9460 # the proper header...
9462 for ac_header in editline/readline.h
9464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 ac_res=`eval echo '${'$as_ac_Header'}'`
9472 { echo "$as_me:$LINENO: result: $ac_res" >&5
9473 echo "${ECHO_T}$ac_res" >&6; }
9474 else
9475 # Is the header compilable?
9476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 $ac_includes_default
9485 #include <$ac_header>
9486 _ACEOF
9487 rm -f conftest.$ac_objext
9488 if { (ac_try="$ac_compile"
9489 case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_compile") 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest.$ac_objext; then
9504 ac_header_compiler=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 ac_header_compiler=no
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9514 echo "${ECHO_T}$ac_header_compiler" >&6; }
9516 # Is the header present?
9517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 #include <$ac_header>
9526 _ACEOF
9527 if { (ac_try="$ac_cpp conftest.$ac_ext"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } >/dev/null && {
9540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 }; then
9543 ac_header_preproc=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_header_preproc=no
9551 rm -f conftest.err conftest.$ac_ext
9552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9553 echo "${ECHO_T}$ac_header_preproc" >&6; }
9555 # So? What about this header?
9556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9557 yes:no: )
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9562 ac_header_preproc=yes
9564 no:yes:* )
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9577 ( cat <<\_ASBOX
9578 ## ---------------------------------------- ##
9579 ## Report this to pgsql-bugs@postgresql.org ##
9580 ## ---------------------------------------- ##
9581 _ASBOX
9582 ) | sed "s/^/$as_me: WARNING: /" >&2
9584 esac
9585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590 eval "$as_ac_Header=\$ac_header_preproc"
9592 ac_res=`eval echo '${'$as_ac_Header'}'`
9593 { echo "$as_me:$LINENO: result: $ac_res" >&5
9594 echo "${ECHO_T}$ac_res" >&6; }
9597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9598 cat >>confdefs.h <<_ACEOF
9599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9600 _ACEOF
9602 else
9604 for ac_header in readline.h
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_res=`eval echo '${'$as_ac_Header'}'`
9614 { echo "$as_me:$LINENO: result: $ac_res" >&5
9615 echo "${ECHO_T}$ac_res" >&6; }
9616 else
9617 # Is the header compilable?
9618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h. */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 $ac_includes_default
9627 #include <$ac_header>
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (ac_try="$ac_compile"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_compile") 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest.$ac_objext; then
9646 ac_header_compiler=yes
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_header_compiler=no
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9656 echo "${ECHO_T}$ac_header_compiler" >&6; }
9658 # Is the header present?
9659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h. */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 #include <$ac_header>
9668 _ACEOF
9669 if { (ac_try="$ac_cpp conftest.$ac_ext"
9670 case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } >/dev/null && {
9682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 }; then
9685 ac_header_preproc=yes
9686 else
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 ac_header_preproc=no
9693 rm -f conftest.err conftest.$ac_ext
9694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "${ECHO_T}$ac_header_preproc" >&6; }
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699 yes:no: )
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9706 no:yes:* )
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9719 ( cat <<\_ASBOX
9720 ## ---------------------------------------- ##
9721 ## Report this to pgsql-bugs@postgresql.org ##
9722 ## ---------------------------------------- ##
9723 _ASBOX
9724 ) | sed "s/^/$as_me: WARNING: /" >&2
9726 esac
9727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 eval "$as_ac_Header=\$ac_header_preproc"
9734 ac_res=`eval echo '${'$as_ac_Header'}'`
9735 { echo "$as_me:$LINENO: result: $ac_res" >&5
9736 echo "${ECHO_T}$ac_res" >&6; }
9739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9740 cat >>confdefs.h <<_ACEOF
9741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9742 _ACEOF
9744 else
9746 for ac_header in readline/readline.h
9748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 ac_res=`eval echo '${'$as_ac_Header'}'`
9756 { echo "$as_me:$LINENO: result: $ac_res" >&5
9757 echo "${ECHO_T}$ac_res" >&6; }
9758 else
9759 # Is the header compilable?
9760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 $ac_includes_default
9769 #include <$ac_header>
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (ac_try="$ac_compile"
9773 case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_compile") 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest.$ac_objext; then
9788 ac_header_compiler=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_header_compiler=no
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9798 echo "${ECHO_T}$ac_header_compiler" >&6; }
9800 # Is the header present?
9801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 #include <$ac_header>
9810 _ACEOF
9811 if { (ac_try="$ac_cpp conftest.$ac_ext"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev/null && {
9824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 }; then
9827 ac_header_preproc=yes
9828 else
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 ac_header_preproc=no
9835 rm -f conftest.err conftest.$ac_ext
9836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9837 echo "${ECHO_T}$ac_header_preproc" >&6; }
9839 # So? What about this header?
9840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9841 yes:no: )
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9846 ac_header_preproc=yes
9848 no:yes:* )
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9861 ( cat <<\_ASBOX
9862 ## ---------------------------------------- ##
9863 ## Report this to pgsql-bugs@postgresql.org ##
9864 ## ---------------------------------------- ##
9865 _ASBOX
9866 ) | sed "s/^/$as_me: WARNING: /" >&2
9868 esac
9869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 eval "$as_ac_Header=\$ac_header_preproc"
9876 ac_res=`eval echo '${'$as_ac_Header'}'`
9877 { echo "$as_me:$LINENO: result: $ac_res" >&5
9878 echo "${ECHO_T}$ac_res" >&6; }
9881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9884 _ACEOF
9886 else
9887 { { echo "$as_me:$LINENO: error: readline header not found
9888 If you have libedit already installed, see config.log for details on the
9889 failure. It is possible the compiler isn't looking in the proper directory.
9890 Use --without-readline to disable libedit support." >&5
9891 echo "$as_me: error: readline header not found
9892 If you have libedit already installed, see config.log for details on the
9893 failure. It is possible the compiler isn't looking in the proper directory.
9894 Use --without-readline to disable libedit support." >&2;}
9895 { (exit 1); exit 1; }; }
9898 done
9902 done
9906 done
9908 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9909 # not be there at all. Hence, don't complain if not found. We must check
9910 # though, since in yet other versions it is an independent header.
9912 for ac_header in editline/history.h
9914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 ac_res=`eval echo '${'$as_ac_Header'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923 echo "${ECHO_T}$ac_res" >&6; }
9924 else
9925 # Is the header compilable?
9926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h. */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 #include <$ac_header>
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9939 case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_compile") 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest.$ac_objext; then
9954 ac_header_compiler=yes
9955 else
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_header_compiler=no
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9964 echo "${ECHO_T}$ac_header_compiler" >&6; }
9966 # Is the header present?
9967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 #include <$ac_header>
9976 _ACEOF
9977 if { (ac_try="$ac_cpp conftest.$ac_ext"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } >/dev/null && {
9990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 }; then
9993 ac_header_preproc=yes
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_header_preproc=no
10001 rm -f conftest.err conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10003 echo "${ECHO_T}$ac_header_preproc" >&6; }
10005 # So? What about this header?
10006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10007 yes:no: )
10008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10012 ac_header_preproc=yes
10014 no:yes:* )
10015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10027 ( cat <<\_ASBOX
10028 ## ---------------------------------------- ##
10029 ## Report this to pgsql-bugs@postgresql.org ##
10030 ## ---------------------------------------- ##
10031 _ASBOX
10032 ) | sed "s/^/$as_me: WARNING: /" >&2
10034 esac
10035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 eval "$as_ac_Header=\$ac_header_preproc"
10042 ac_res=`eval echo '${'$as_ac_Header'}'`
10043 { echo "$as_me:$LINENO: result: $ac_res" >&5
10044 echo "${ECHO_T}$ac_res" >&6; }
10047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10048 cat >>confdefs.h <<_ACEOF
10049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10050 _ACEOF
10052 else
10054 for ac_header in history.h
10056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_res=`eval echo '${'$as_ac_Header'}'`
10064 { echo "$as_me:$LINENO: result: $ac_res" >&5
10065 echo "${ECHO_T}$ac_res" >&6; }
10066 else
10067 # Is the header compilable?
10068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h. */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 $ac_includes_default
10077 #include <$ac_header>
10078 _ACEOF
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 ac_header_compiler=yes
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_header_compiler=no
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10106 echo "${ECHO_T}$ac_header_compiler" >&6; }
10108 # Is the header present?
10109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <$ac_header>
10118 _ACEOF
10119 if { (ac_try="$ac_cpp conftest.$ac_ext"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } >/dev/null && {
10132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 }; then
10135 ac_header_preproc=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_header_preproc=no
10143 rm -f conftest.err conftest.$ac_ext
10144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10145 echo "${ECHO_T}$ac_header_preproc" >&6; }
10147 # So? What about this header?
10148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10149 yes:no: )
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10154 ac_header_preproc=yes
10156 no:yes:* )
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10169 ( cat <<\_ASBOX
10170 ## ---------------------------------------- ##
10171 ## Report this to pgsql-bugs@postgresql.org ##
10172 ## ---------------------------------------- ##
10173 _ASBOX
10174 ) | sed "s/^/$as_me: WARNING: /" >&2
10176 esac
10177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 eval "$as_ac_Header=\$ac_header_preproc"
10184 ac_res=`eval echo '${'$as_ac_Header'}'`
10185 { echo "$as_me:$LINENO: result: $ac_res" >&5
10186 echo "${ECHO_T}$ac_res" >&6; }
10189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10192 _ACEOF
10194 else
10196 for ac_header in readline/history.h
10198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_res=`eval echo '${'$as_ac_Header'}'`
10206 { echo "$as_me:$LINENO: result: $ac_res" >&5
10207 echo "${ECHO_T}$ac_res" >&6; }
10208 else
10209 # Is the header compilable?
10210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h. */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 $ac_includes_default
10219 #include <$ac_header>
10220 _ACEOF
10221 rm -f conftest.$ac_objext
10222 if { (ac_try="$ac_compile"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.$ac_objext; then
10238 ac_header_compiler=yes
10239 else
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_header_compiler=no
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10248 echo "${ECHO_T}$ac_header_compiler" >&6; }
10250 # Is the header present?
10251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 #include <$ac_header>
10260 _ACEOF
10261 if { (ac_try="$ac_cpp conftest.$ac_ext"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } >/dev/null && {
10274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 }; then
10277 ac_header_preproc=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_header_preproc=no
10285 rm -f conftest.err conftest.$ac_ext
10286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10287 echo "${ECHO_T}$ac_header_preproc" >&6; }
10289 # So? What about this header?
10290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10291 yes:no: )
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10296 ac_header_preproc=yes
10298 no:yes:* )
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10311 ( cat <<\_ASBOX
10312 ## ---------------------------------------- ##
10313 ## Report this to pgsql-bugs@postgresql.org ##
10314 ## ---------------------------------------- ##
10315 _ASBOX
10316 ) | sed "s/^/$as_me: WARNING: /" >&2
10318 esac
10319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324 eval "$as_ac_Header=\$ac_header_preproc"
10326 ac_res=`eval echo '${'$as_ac_Header'}'`
10327 { echo "$as_me:$LINENO: result: $ac_res" >&5
10328 echo "${ECHO_T}$ac_res" >&6; }
10331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10332 cat >>confdefs.h <<_ACEOF
10333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10334 _ACEOF
10338 done
10342 done
10346 done
10350 if test "$with_zlib" = yes; then
10351 if test "${ac_cv_header_zlib_h+set}" = set; then
10352 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10353 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10354 if test "${ac_cv_header_zlib_h+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10358 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10359 else
10360 # Is the header compilable?
10361 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10362 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h. */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 $ac_includes_default
10370 #include <zlib.h>
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10389 ac_header_compiler=yes
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_header_compiler=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10399 echo "${ECHO_T}$ac_header_compiler" >&6; }
10401 # Is the header present?
10402 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10403 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <zlib.h>
10411 _ACEOF
10412 if { (ac_try="$ac_cpp conftest.$ac_ext"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev/null && {
10425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 }; then
10428 ac_header_preproc=yes
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_header_preproc=no
10436 rm -f conftest.err conftest.$ac_ext
10437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10438 echo "${ECHO_T}$ac_header_preproc" >&6; }
10440 # So? What about this header?
10441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10442 yes:no: )
10443 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10444 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10446 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10447 ac_header_preproc=yes
10449 no:yes:* )
10450 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10451 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10453 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10455 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10457 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10459 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10461 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10462 ( cat <<\_ASBOX
10463 ## ---------------------------------------- ##
10464 ## Report this to pgsql-bugs@postgresql.org ##
10465 ## ---------------------------------------- ##
10466 _ASBOX
10467 ) | sed "s/^/$as_me: WARNING: /" >&2
10469 esac
10470 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10471 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10472 if test "${ac_cv_header_zlib_h+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 ac_cv_header_zlib_h=$ac_header_preproc
10477 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10478 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10481 if test $ac_cv_header_zlib_h = yes; then
10483 else
10484 { { echo "$as_me:$LINENO: error: zlib header not found
10485 If you have zlib already installed, see config.log for details on the
10486 failure. It is possible the compiler isn't looking in the proper directory.
10487 Use --without-zlib to disable zlib support." >&5
10488 echo "$as_me: error: zlib header not found
10489 If you have zlib already installed, see config.log for details on the
10490 failure. It is possible the compiler isn't looking in the proper directory.
10491 Use --without-zlib to disable zlib support." >&2;}
10492 { (exit 1); exit 1; }; }
10498 if test "$with_gssapi" = yes ; then
10500 for ac_header in gssapi/gssapi.h
10502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 ac_res=`eval echo '${'$as_ac_Header'}'`
10510 { echo "$as_me:$LINENO: result: $ac_res" >&5
10511 echo "${ECHO_T}$ac_res" >&6; }
10512 else
10513 # Is the header compilable?
10514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 $ac_includes_default
10523 #include <$ac_header>
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest.$ac_objext; then
10542 ac_header_compiler=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_header_compiler=no
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552 echo "${ECHO_T}$ac_header_compiler" >&6; }
10554 # Is the header present?
10555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h. */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <$ac_header>
10564 _ACEOF
10565 if { (ac_try="$ac_cpp conftest.$ac_ext"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null && {
10578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 }; then
10581 ac_header_preproc=yes
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_header_preproc=no
10589 rm -f conftest.err conftest.$ac_ext
10590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10591 echo "${ECHO_T}$ac_header_preproc" >&6; }
10593 # So? What about this header?
10594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10595 yes:no: )
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10600 ac_header_preproc=yes
10602 no:yes:* )
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10615 ( cat <<\_ASBOX
10616 ## ---------------------------------------- ##
10617 ## Report this to pgsql-bugs@postgresql.org ##
10618 ## ---------------------------------------- ##
10619 _ASBOX
10620 ) | sed "s/^/$as_me: WARNING: /" >&2
10622 esac
10623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 eval "$as_ac_Header=\$ac_header_preproc"
10630 ac_res=`eval echo '${'$as_ac_Header'}'`
10631 { echo "$as_me:$LINENO: result: $ac_res" >&5
10632 echo "${ECHO_T}$ac_res" >&6; }
10635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10636 cat >>confdefs.h <<_ACEOF
10637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10638 _ACEOF
10640 else
10642 for ac_header in gssapi.h
10644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 ac_res=`eval echo '${'$as_ac_Header'}'`
10652 { echo "$as_me:$LINENO: result: $ac_res" >&5
10653 echo "${ECHO_T}$ac_res" >&6; }
10654 else
10655 # Is the header compilable?
10656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 #include <$ac_header>
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_compile") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest.$ac_objext; then
10684 ac_header_compiler=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ac_header_compiler=no
10692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10694 echo "${ECHO_T}$ac_header_compiler" >&6; }
10696 # Is the header present?
10697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 #include <$ac_header>
10706 _ACEOF
10707 if { (ac_try="$ac_cpp conftest.$ac_ext"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } >/dev/null && {
10720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 }; then
10723 ac_header_preproc=yes
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_header_preproc=no
10731 rm -f conftest.err conftest.$ac_ext
10732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10733 echo "${ECHO_T}$ac_header_preproc" >&6; }
10735 # So? What about this header?
10736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10737 yes:no: )
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10742 ac_header_preproc=yes
10744 no:yes:* )
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10757 ( cat <<\_ASBOX
10758 ## ---------------------------------------- ##
10759 ## Report this to pgsql-bugs@postgresql.org ##
10760 ## ---------------------------------------- ##
10761 _ASBOX
10762 ) | sed "s/^/$as_me: WARNING: /" >&2
10764 esac
10765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 eval "$as_ac_Header=\$ac_header_preproc"
10772 ac_res=`eval echo '${'$as_ac_Header'}'`
10773 { echo "$as_me:$LINENO: result: $ac_res" >&5
10774 echo "${ECHO_T}$ac_res" >&6; }
10777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10780 _ACEOF
10782 else
10783 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10784 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10785 { (exit 1); exit 1; }; }
10788 done
10792 done
10796 if test "$with_krb5" = yes ; then
10797 if test "${ac_cv_header_krb5_h+set}" = set; then
10798 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10799 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10800 if test "${ac_cv_header_krb5_h+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10804 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10805 else
10806 # Is the header compilable?
10807 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10808 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10816 #include <krb5.h>
10817 _ACEOF
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_compile") 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.$ac_objext; then
10835 ac_header_compiler=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_header_compiler=no
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 echo "${ECHO_T}$ac_header_compiler" >&6; }
10847 # Is the header present?
10848 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
10849 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <krb5.h>
10857 _ACEOF
10858 if { (ac_try="$ac_cpp conftest.$ac_ext"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } >/dev/null && {
10871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10873 }; then
10874 ac_header_preproc=yes
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_header_preproc=no
10882 rm -f conftest.err conftest.$ac_ext
10883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884 echo "${ECHO_T}$ac_header_preproc" >&6; }
10886 # So? What about this header?
10887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10888 yes:no: )
10889 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10890 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10892 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10893 ac_header_preproc=yes
10895 no:yes:* )
10896 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10897 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10899 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10901 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10903 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10907 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10908 ( cat <<\_ASBOX
10909 ## ---------------------------------------- ##
10910 ## Report this to pgsql-bugs@postgresql.org ##
10911 ## ---------------------------------------- ##
10912 _ASBOX
10913 ) | sed "s/^/$as_me: WARNING: /" >&2
10915 esac
10916 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10917 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10918 if test "${ac_cv_header_krb5_h+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 ac_cv_header_krb5_h=$ac_header_preproc
10923 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10924 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10927 if test $ac_cv_header_krb5_h = yes; then
10929 else
10930 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10931 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10932 { (exit 1); exit 1; }; }
10938 if test "$with_openssl" = yes ; then
10939 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10940 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10941 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
10942 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10946 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
10947 else
10948 # Is the header compilable?
10949 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10950 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 $ac_includes_default
10958 #include <openssl/ssl.h>
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (ac_try="$ac_compile"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest.$ac_objext; then
10977 ac_header_compiler=yes
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_compiler=no
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6; }
10989 # Is the header present?
10990 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10991 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <openssl/ssl.h>
10999 _ACEOF
11000 if { (ac_try="$ac_cpp conftest.$ac_ext"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } >/dev/null && {
11013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11014 test ! -s conftest.err
11015 }; then
11016 ac_header_preproc=yes
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_header_preproc=no
11024 rm -f conftest.err conftest.$ac_ext
11025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6; }
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030 yes:no: )
11031 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11034 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11035 ac_header_preproc=yes
11037 no:yes:* )
11038 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11039 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11041 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11043 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11045 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11047 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11049 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11050 ( cat <<\_ASBOX
11051 ## ---------------------------------------- ##
11052 ## Report this to pgsql-bugs@postgresql.org ##
11053 ## ---------------------------------------- ##
11054 _ASBOX
11055 ) | sed "s/^/$as_me: WARNING: /" >&2
11057 esac
11058 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11059 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11060 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11065 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11066 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11069 if test $ac_cv_header_openssl_ssl_h = yes; then
11071 else
11072 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11073 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11074 { (exit 1); exit 1; }; }
11078 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11079 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11080 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11081 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11085 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11086 else
11087 # Is the header compilable?
11088 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11089 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 $ac_includes_default
11097 #include <openssl/err.h>
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 ac_header_compiler=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_header_compiler=no
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11130 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <openssl/err.h>
11138 _ACEOF
11139 if { (ac_try="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null && {
11152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11154 }; then
11155 ac_header_preproc=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_header_preproc=no
11163 rm -f conftest.err conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11165 echo "${ECHO_T}$ac_header_preproc" >&6; }
11167 # So? What about this header?
11168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11169 yes:no: )
11170 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11171 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11173 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11174 ac_header_preproc=yes
11176 no:yes:* )
11177 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11178 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11180 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11182 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11184 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11186 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11188 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11189 ( cat <<\_ASBOX
11190 ## ---------------------------------------- ##
11191 ## Report this to pgsql-bugs@postgresql.org ##
11192 ## ---------------------------------------- ##
11193 _ASBOX
11194 ) | sed "s/^/$as_me: WARNING: /" >&2
11196 esac
11197 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11198 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11199 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202 ac_cv_header_openssl_err_h=$ac_header_preproc
11204 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11205 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11208 if test $ac_cv_header_openssl_err_h = yes; then
11210 else
11211 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11212 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11213 { (exit 1); exit 1; }; }
11218 for ac_func in ERR_set_mark
11220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11241 #ifdef __STDC__
11242 # include <limits.h>
11243 #else
11244 # include <assert.h>
11245 #endif
11247 #undef $ac_func
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char $ac_func ();
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 choke me
11261 #endif
11264 main ()
11266 return $ac_func ();
11268 return 0;
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest$ac_exeext &&
11288 $as_test_x conftest$ac_exeext; then
11289 eval "$as_ac_var=yes"
11290 else
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 eval "$as_ac_var=no"
11297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298 conftest$ac_exeext conftest.$ac_ext
11300 ac_res=`eval echo '${'$as_ac_var'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303 if test `eval echo '${'$as_ac_var'}'` = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 _ACEOF
11309 done
11313 if test "$with_pam" = yes ; then
11315 for ac_header in security/pam_appl.h
11317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11327 else
11328 # Is the header compilable?
11329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header>
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (ac_try="$ac_compile"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_compile") 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest.$ac_objext; then
11357 ac_header_compiler=yes
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_compiler=no
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11379 _ACEOF
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null && {
11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 }; then
11396 ac_header_preproc=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_header_preproc=no
11404 rm -f conftest.err conftest.$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 echo "${ECHO_T}$ac_header_preproc" >&6; }
11408 # So? What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410 yes:no: )
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415 ac_header_preproc=yes
11417 no:yes:* )
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430 ( cat <<\_ASBOX
11431 ## ---------------------------------------- ##
11432 ## Report this to pgsql-bugs@postgresql.org ##
11433 ## ---------------------------------------- ##
11434 _ASBOX
11435 ) | sed "s/^/$as_me: WARNING: /" >&2
11437 esac
11438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443 eval "$as_ac_Header=\$ac_header_preproc"
11445 ac_res=`eval echo '${'$as_ac_Header'}'`
11446 { echo "$as_me:$LINENO: result: $ac_res" >&5
11447 echo "${ECHO_T}$ac_res" >&6; }
11450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11451 cat >>confdefs.h <<_ACEOF
11452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11453 _ACEOF
11455 else
11457 for ac_header in pam/pam_appl.h
11459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 ac_res=`eval echo '${'$as_ac_Header'}'`
11467 { echo "$as_me:$LINENO: result: $ac_res" >&5
11468 echo "${ECHO_T}$ac_res" >&6; }
11469 else
11470 # Is the header compilable?
11471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h. */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 $ac_includes_default
11480 #include <$ac_header>
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (ac_try="$ac_compile"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_compile") 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest.$ac_objext; then
11499 ac_header_compiler=yes
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_header_compiler=no
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11509 echo "${ECHO_T}$ac_header_compiler" >&6; }
11511 # Is the header present?
11512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 #include <$ac_header>
11521 _ACEOF
11522 if { (ac_try="$ac_cpp conftest.$ac_ext"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } >/dev/null && {
11535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 }; then
11538 ac_header_preproc=yes
11539 else
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_preproc=no
11546 rm -f conftest.err conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552 yes:no: )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11559 no:yes:* )
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11572 ( cat <<\_ASBOX
11573 ## ---------------------------------------- ##
11574 ## Report this to pgsql-bugs@postgresql.org ##
11575 ## ---------------------------------------- ##
11576 _ASBOX
11577 ) | sed "s/^/$as_me: WARNING: /" >&2
11579 esac
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585 eval "$as_ac_Header=\$ac_header_preproc"
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593 cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11595 _ACEOF
11597 else
11598 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11599 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11600 { (exit 1); exit 1; }; }
11603 done
11607 done
11611 if test "$with_libxml" = yes ; then
11612 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11613 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11614 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11615 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11619 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11620 else
11621 # Is the header compilable?
11622 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11623 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #include <libxml/parser.h>
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (ac_try="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650 ac_header_compiler=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_compiler=no
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11660 echo "${ECHO_T}$ac_header_compiler" >&6; }
11662 # Is the header present?
11663 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11664 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <libxml/parser.h>
11672 _ACEOF
11673 if { (ac_try="$ac_cpp conftest.$ac_ext"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } >/dev/null && {
11686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 }; then
11689 ac_header_preproc=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_header_preproc=no
11697 rm -f conftest.err conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6; }
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 yes:no: )
11704 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc=yes
11710 no:yes:* )
11711 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11723 ( cat <<\_ASBOX
11724 ## ---------------------------------------- ##
11725 ## Report this to pgsql-bugs@postgresql.org ##
11726 ## ---------------------------------------- ##
11727 _ASBOX
11728 ) | sed "s/^/$as_me: WARNING: /" >&2
11730 esac
11731 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11732 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11733 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 ac_cv_header_libxml_parser_h=$ac_header_preproc
11738 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11739 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11742 if test $ac_cv_header_libxml_parser_h = yes; then
11744 else
11745 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11746 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11747 { (exit 1); exit 1; }; }
11753 if test "$with_libxslt" = yes ; then
11754 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11755 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11756 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11757 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11761 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11762 else
11763 # Is the header compilable?
11764 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11765 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 #include <libxslt/xslt.h>
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest.$ac_objext; then
11792 ac_header_compiler=yes
11793 else
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_header_compiler=no
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6; }
11804 # Is the header present?
11805 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11806 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h. */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 #include <libxslt/xslt.h>
11814 _ACEOF
11815 if { (ac_try="$ac_cpp conftest.$ac_ext"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } >/dev/null && {
11828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 }; then
11831 ac_header_preproc=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_header_preproc=no
11839 rm -f conftest.err conftest.$ac_ext
11840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 echo "${ECHO_T}$ac_header_preproc" >&6; }
11843 # So? What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 yes:no: )
11846 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11847 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11849 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc=yes
11852 no:yes:* )
11853 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11854 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11856 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11858 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11860 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11862 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11864 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11865 ( cat <<\_ASBOX
11866 ## ---------------------------------------- ##
11867 ## Report this to pgsql-bugs@postgresql.org ##
11868 ## ---------------------------------------- ##
11869 _ASBOX
11870 ) | sed "s/^/$as_me: WARNING: /" >&2
11872 esac
11873 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11874 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11875 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11880 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11881 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11884 if test $ac_cv_header_libxslt_xslt_h = yes; then
11886 else
11887 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11888 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11889 { (exit 1); exit 1; }; }
11895 if test "$with_ldap" = yes ; then
11896 if test "$PORTNAME" != "win32"; then
11898 for ac_header in ldap.h
11900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 ac_res=`eval echo '${'$as_ac_Header'}'`
11908 { echo "$as_me:$LINENO: result: $ac_res" >&5
11909 echo "${ECHO_T}$ac_res" >&6; }
11910 else
11911 # Is the header compilable?
11912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <$ac_header>
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest.$ac_objext; then
11940 ac_header_compiler=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_header_compiler=no
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11950 echo "${ECHO_T}$ac_header_compiler" >&6; }
11952 # Is the header present?
11953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <$ac_header>
11962 _ACEOF
11963 if { (ac_try="$ac_cpp conftest.$ac_ext"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } >/dev/null && {
11976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 }; then
11979 ac_header_preproc=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_header_preproc=no
11987 rm -f conftest.err conftest.$ac_ext
11988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6; }
11991 # So? What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11993 yes:no: )
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11998 ac_header_preproc=yes
12000 no:yes:* )
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12013 ( cat <<\_ASBOX
12014 ## ---------------------------------------- ##
12015 ## Report this to pgsql-bugs@postgresql.org ##
12016 ## ---------------------------------------- ##
12017 _ASBOX
12018 ) | sed "s/^/$as_me: WARNING: /" >&2
12020 esac
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026 eval "$as_ac_Header=\$ac_header_preproc"
12028 ac_res=`eval echo '${'$as_ac_Header'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12036 _ACEOF
12038 else
12039 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12040 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12041 { (exit 1); exit 1; }; }
12044 done
12046 else
12048 for ac_header in winldap.h
12050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 $ac_includes_default
12063 #include <windows.h>
12066 #include <$ac_header>
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.$ac_objext; then
12085 eval "$as_ac_Header=yes"
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 eval "$as_ac_Header=no"
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 ac_res=`eval echo '${'$as_ac_Header'}'`
12096 { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12099 cat >>confdefs.h <<_ACEOF
12100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12101 _ACEOF
12103 else
12104 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12105 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12106 { (exit 1); exit 1; }; }
12109 done
12114 if test "$with_bonjour" = yes ; then
12115 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12116 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12117 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12118 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12122 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12123 else
12124 # Is the header compilable?
12125 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12126 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (ac_try="$ac_compile"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.$ac_objext; then
12153 ac_header_compiler=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ac_header_compiler=no
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12163 echo "${ECHO_T}$ac_header_compiler" >&6; }
12165 # Is the header present?
12166 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12167 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12175 _ACEOF
12176 if { (ac_try="$ac_cpp conftest.$ac_ext"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } >/dev/null && {
12189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 }; then
12192 ac_header_preproc=yes
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 yes:no: )
12207 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12213 no:yes:* )
12214 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12226 ( cat <<\_ASBOX
12227 ## ---------------------------------------- ##
12228 ## Report this to pgsql-bugs@postgresql.org ##
12229 ## ---------------------------------------- ##
12230 _ASBOX
12231 ) | sed "s/^/$as_me: WARNING: /" >&2
12233 esac
12234 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12235 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12236 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12241 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12242 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12245 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12247 else
12248 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12249 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12250 { (exit 1); exit 1; }; }
12256 # for contrib/uuid-ossp
12257 if test "$with_ossp_uuid" = yes ; then
12259 for ac_header in ossp/uuid.h
12261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 ac_res=`eval echo '${'$as_ac_Header'}'`
12269 { echo "$as_me:$LINENO: result: $ac_res" >&5
12270 echo "${ECHO_T}$ac_res" >&6; }
12271 else
12272 # Is the header compilable?
12273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 $ac_includes_default
12282 #include <$ac_header>
12283 _ACEOF
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_compile") 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest.$ac_objext; then
12301 ac_header_compiler=yes
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 ac_header_compiler=no
12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12311 echo "${ECHO_T}$ac_header_compiler" >&6; }
12313 # Is the header present?
12314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <$ac_header>
12323 _ACEOF
12324 if { (ac_try="$ac_cpp conftest.$ac_ext"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } >/dev/null && {
12337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 }; then
12340 ac_header_preproc=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_preproc=no
12348 rm -f conftest.err conftest.$ac_ext
12349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12350 echo "${ECHO_T}$ac_header_preproc" >&6; }
12352 # So? What about this header?
12353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12354 yes:no: )
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12359 ac_header_preproc=yes
12361 no:yes:* )
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12374 ( cat <<\_ASBOX
12375 ## ---------------------------------------- ##
12376 ## Report this to pgsql-bugs@postgresql.org ##
12377 ## ---------------------------------------- ##
12378 _ASBOX
12379 ) | sed "s/^/$as_me: WARNING: /" >&2
12381 esac
12382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387 eval "$as_ac_Header=\$ac_header_preproc"
12389 ac_res=`eval echo '${'$as_ac_Header'}'`
12390 { echo "$as_me:$LINENO: result: $ac_res" >&5
12391 echo "${ECHO_T}$ac_res" >&6; }
12394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 _ACEOF
12399 else
12402 for ac_header in uuid.h
12404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_res=`eval echo '${'$as_ac_Header'}'`
12412 { echo "$as_me:$LINENO: result: $ac_res" >&5
12413 echo "${ECHO_T}$ac_res" >&6; }
12414 else
12415 # Is the header compilable?
12416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 $ac_includes_default
12425 #include <$ac_header>
12426 _ACEOF
12427 rm -f conftest.$ac_objext
12428 if { (ac_try="$ac_compile"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_compile") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && {
12441 test -z "$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 } && test -s conftest.$ac_objext; then
12444 ac_header_compiler=yes
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_header_compiler=no
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12454 echo "${ECHO_T}$ac_header_compiler" >&6; }
12456 # Is the header present?
12457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 #include <$ac_header>
12466 _ACEOF
12467 if { (ac_try="$ac_cpp conftest.$ac_ext"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } >/dev/null && {
12480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12482 }; then
12483 ac_header_preproc=yes
12484 else
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_preproc=no
12491 rm -f conftest.err conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6; }
12495 # So? What about this header?
12496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12497 yes:no: )
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502 ac_header_preproc=yes
12504 no:yes:* )
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12517 ( cat <<\_ASBOX
12518 ## ---------------------------------------- ##
12519 ## Report this to pgsql-bugs@postgresql.org ##
12520 ## ---------------------------------------- ##
12521 _ASBOX
12522 ) | sed "s/^/$as_me: WARNING: /" >&2
12524 esac
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 eval "$as_ac_Header=\$ac_header_preproc"
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12542 else
12543 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12544 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12545 { (exit 1); exit 1; }; }
12548 done
12552 done
12558 ## Types, structures, compiler characteristics
12561 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12562 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12563 if test "${ac_cv_c_bigendian+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566 # See if sys/param.h defines the BYTE_ORDER macro.
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h. */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <sys/types.h>
12574 #include <sys/param.h>
12577 main ()
12579 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12580 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12581 bogus endian macros
12582 #endif
12585 return 0;
12587 _ACEOF
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
12605 # It does; now see whether it defined to BIG_ENDIAN or not.
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <sys/param.h>
12616 main ()
12618 #if BYTE_ORDER != BIG_ENDIAN
12619 not big endian
12620 #endif
12623 return 0;
12625 _ACEOF
12626 rm -f conftest.$ac_objext
12627 if { (ac_try="$ac_compile"
12628 case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_compile") 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest.$ac_objext; then
12643 ac_cv_c_bigendian=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_c_bigendian=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 # It does not; compile a test program.
12657 if test "$cross_compiling" = yes; then
12658 # try to guess the endianness by grepping values into an object file
12659 ac_cv_c_bigendian=unknown
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12667 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12668 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12669 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12670 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12671 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12673 main ()
12675 _ascii (); _ebcdic ();
12677 return 0;
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12698 ac_cv_c_bigendian=yes
12700 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12701 if test "$ac_cv_c_bigendian" = unknown; then
12702 ac_cv_c_bigendian=no
12703 else
12704 # finding both strings is unlikely to happen, but who knows?
12705 ac_cv_c_bigendian=unknown
12708 else
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 else
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12725 main ()
12728 /* Are we little or big endian? From Harbison&Steele. */
12729 union
12731 long int l;
12732 char c[sizeof (long int)];
12733 } u;
12734 u.l = 1;
12735 return u.c[sizeof (long int) - 1] == 1;
12738 return 0;
12740 _ACEOF
12741 rm -f conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_c_bigendian=no
12762 else
12763 echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ( exit $ac_status )
12768 ac_cv_c_bigendian=yes
12770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12779 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12780 case $ac_cv_c_bigendian in
12781 yes)
12783 cat >>confdefs.h <<\_ACEOF
12784 #define WORDS_BIGENDIAN 1
12785 _ACEOF
12790 { { echo "$as_me:$LINENO: error: unknown endianness
12791 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12792 echo "$as_me: error: unknown endianness
12793 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12794 { (exit 1); exit 1; }; } ;;
12795 esac
12797 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12798 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12799 if test "${ac_cv_c_const+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12810 main ()
12812 /* FIXME: Include the comments suggested by Paul. */
12813 #ifndef __cplusplus
12814 /* Ultrix mips cc rejects this. */
12815 typedef int charset[2];
12816 const charset cs;
12817 /* SunOS 4.1.1 cc rejects this. */
12818 char const *const *pcpcc;
12819 char **ppc;
12820 /* NEC SVR4.0.2 mips cc rejects this. */
12821 struct point {int x, y;};
12822 static struct point const zero = {0,0};
12823 /* AIX XL C 1.02.0.0 rejects this.
12824 It does not let you subtract one const X* pointer from another in
12825 an arm of an if-expression whose if-part is not a constant
12826 expression */
12827 const char *g = "string";
12828 pcpcc = &g + (g ? g-g : 0);
12829 /* HPUX 7.0 cc rejects these. */
12830 ++pcpcc;
12831 ppc = (char**) pcpcc;
12832 pcpcc = (char const *const *) ppc;
12833 { /* SCO 3.2v4 cc rejects this. */
12834 char *t;
12835 char const *s = 0 ? (char *) 0 : (char const *) 0;
12837 *t++ = 0;
12838 if (s) return 0;
12840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12841 int x[] = {25, 17};
12842 const int *foo = &x[0];
12843 ++foo;
12845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12846 typedef const int *iptr;
12847 iptr p = 0;
12848 ++p;
12850 { /* AIX XL C 1.02.0.0 rejects this saying
12851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12852 struct s { int j; const int *ap[3]; };
12853 struct s *b; b->j = 5;
12855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12856 const int foo = 10;
12857 if (!foo) return 0;
12859 return !cs[0] && !zero.x;
12860 #endif
12863 return 0;
12865 _ACEOF
12866 rm -f conftest.$ac_objext
12867 if { (ac_try="$ac_compile"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest.$ac_objext; then
12883 ac_cv_c_const=yes
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_cv_c_const=no
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12894 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12895 if test $ac_cv_c_const = no; then
12897 cat >>confdefs.h <<\_ACEOF
12898 #define const
12899 _ACEOF
12903 { echo "$as_me:$LINENO: checking for inline" >&5
12904 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12905 if test "${ac_cv_c_inline+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 ac_cv_c_inline=no
12909 for ac_kw in inline __inline__ __inline; do
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 #ifndef __cplusplus
12917 typedef int foo_t;
12918 static $ac_kw foo_t static_foo () {return 0; }
12919 $ac_kw foo_t foo () {return 0; }
12920 #endif
12922 _ACEOF
12923 rm -f conftest.$ac_objext
12924 if { (ac_try="$ac_compile"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_compile") 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest.$ac_objext; then
12940 ac_cv_c_inline=$ac_kw
12941 else
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 test "$ac_cv_c_inline" != no && break
12950 done
12953 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12954 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12957 case $ac_cv_c_inline in
12958 inline | yes) ;;
12960 case $ac_cv_c_inline in
12961 no) ac_val=;;
12962 *) ac_val=$ac_cv_c_inline;;
12963 esac
12964 cat >>confdefs.h <<_ACEOF
12965 #ifndef __cplusplus
12966 #define inline $ac_val
12967 #endif
12968 _ACEOF
12970 esac
12972 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12973 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
12974 if test "${ac_cv_c_stringize+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h. */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #define x(y) #y
12985 char *s = x(teststring);
12986 _ACEOF
12987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12988 $EGREP "#teststring" >/dev/null 2>&1; then
12989 ac_cv_c_stringize=no
12990 else
12991 ac_cv_c_stringize=yes
12993 rm -f conftest*
12996 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12997 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
12998 if test $ac_cv_c_stringize = yes; then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HAVE_STRINGIZE 1
13002 _ACEOF
13006 { echo "$as_me:$LINENO: checking for signed types" >&5
13007 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13008 if test "${pgac_cv_c_signed+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13019 main ()
13021 signed char c; signed short s; signed int i;
13023 return 0;
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (ac_try="$ac_compile"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_compile") 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } && {
13040 test -z "$ac_c_werror_flag" ||
13041 test ! -s conftest.err
13042 } && test -s conftest.$ac_objext; then
13043 pgac_cv_c_signed=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 pgac_cv_c_signed=no
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13054 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13055 if test x"$pgac_cv_c_signed" = xno ; then
13057 cat >>confdefs.h <<\_ACEOF
13058 #define signed
13059 _ACEOF
13062 { echo "$as_me:$LINENO: checking for working volatile" >&5
13063 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13064 if test "${ac_cv_c_volatile+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13075 main ()
13078 volatile int x;
13079 int * volatile y = (int *) 0;
13080 return !x && !y;
13082 return 0;
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13102 ac_cv_c_volatile=yes
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_cv_c_volatile=no
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13113 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13114 if test $ac_cv_c_volatile = no; then
13116 cat >>confdefs.h <<\_ACEOF
13117 #define volatile
13118 _ACEOF
13122 { echo "$as_me:$LINENO: checking for __func__" >&5
13123 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13124 if test "${pgac_cv_funcname_func_support+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h. */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 #include <stdio.h>
13135 main ()
13137 printf("%s\n", __func__);
13139 return 0;
13141 _ACEOF
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_compile") 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } && {
13156 test -z "$ac_c_werror_flag" ||
13157 test ! -s conftest.err
13158 } && test -s conftest.$ac_objext; then
13159 pgac_cv_funcname_func_support=yes
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 pgac_cv_funcname_func_support=no
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13170 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13171 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13173 cat >>confdefs.h <<\_ACEOF
13174 #define HAVE_FUNCNAME__FUNC 1
13175 _ACEOF
13177 else
13178 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13179 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13180 if test "${pgac_cv_funcname_function_support+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <stdio.h>
13191 main ()
13193 printf("%s\n", __FUNCTION__);
13195 return 0;
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (ac_try="$ac_compile"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203 esac
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.$ac_objext; then
13215 pgac_cv_funcname_function_support=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 pgac_cv_funcname_function_support=no
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13226 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13227 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13229 cat >>confdefs.h <<\_ACEOF
13230 #define HAVE_FUNCNAME__FUNCTION 1
13231 _ACEOF
13235 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13236 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13237 if test "${ac_cv_struct_tm+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <sys/types.h>
13247 #include <time.h>
13250 main ()
13252 struct tm tm;
13253 int *p = &tm.tm_sec;
13254 return !p;
13256 return 0;
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
13276 ac_cv_struct_tm=time.h
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_cv_struct_tm=sys/time.h
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13287 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13288 if test $ac_cv_struct_tm = sys/time.h; then
13290 cat >>confdefs.h <<\_ACEOF
13291 #define TM_IN_SYS_TIME 1
13292 _ACEOF
13296 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13297 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13298 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include <sys/types.h>
13308 #include <$ac_cv_struct_tm>
13312 main ()
13314 static struct tm ac_aggr;
13315 if (ac_aggr.tm_zone)
13316 return 0;
13318 return 0;
13320 _ACEOF
13321 rm -f conftest.$ac_objext
13322 if { (ac_try="$ac_compile"
13323 case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_compile") 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } && {
13335 test -z "$ac_c_werror_flag" ||
13336 test ! -s conftest.err
13337 } && test -s conftest.$ac_objext; then
13338 ac_cv_member_struct_tm_tm_zone=yes
13339 else
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 #include <$ac_cv_struct_tm>
13354 main ()
13356 static struct tm ac_aggr;
13357 if (sizeof ac_aggr.tm_zone)
13358 return 0;
13360 return 0;
13362 _ACEOF
13363 rm -f conftest.$ac_objext
13364 if { (ac_try="$ac_compile"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_compile") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && {
13377 test -z "$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 } && test -s conftest.$ac_objext; then
13380 ac_cv_member_struct_tm_tm_zone=yes
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_cv_member_struct_tm_tm_zone=no
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13394 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13395 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_STRUCT_TM_TM_ZONE 1
13399 _ACEOF
13404 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13406 cat >>confdefs.h <<\_ACEOF
13407 #define HAVE_TM_ZONE 1
13408 _ACEOF
13411 { echo "$as_me:$LINENO: checking for tzname" >&5
13412 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13413 if test "${ac_cv_var_tzname+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 #include <time.h>
13423 #ifndef tzname /* For SGI. */
13424 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13425 #endif
13428 main ()
13430 atoi(*tzname);
13432 return 0;
13434 _ACEOF
13435 rm -f conftest.$ac_objext conftest$ac_exeext
13436 if { (ac_try="$ac_link"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_link") 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest$ac_exeext &&
13452 $as_test_x conftest$ac_exeext; then
13453 ac_cv_var_tzname=yes
13454 else
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_cv_var_tzname=no
13461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13462 conftest$ac_exeext conftest.$ac_ext
13464 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13465 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13466 if test $ac_cv_var_tzname = yes; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_TZNAME 1
13470 _ACEOF
13474 { echo "$as_me:$LINENO: checking for union semun" >&5
13475 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13476 if test "${ac_cv_type_union_semun+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h. */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <sys/types.h>
13486 #include <sys/ipc.h>
13487 #include <sys/sem.h>
13489 typedef union semun ac__type_new_;
13491 main ()
13493 if ((ac__type_new_ *) 0)
13494 return 0;
13495 if (sizeof (ac__type_new_))
13496 return 0;
13498 return 0;
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && {
13515 test -z "$ac_c_werror_flag" ||
13516 test ! -s conftest.err
13517 } && test -s conftest.$ac_objext; then
13518 ac_cv_type_union_semun=yes
13519 else
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ac_cv_type_union_semun=no
13526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13529 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13530 if test $ac_cv_type_union_semun = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_UNION_SEMUN 1
13534 _ACEOF
13539 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13540 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13541 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 #include <sys/types.h>
13551 #ifdef HAVE_SYS_UN_H
13552 #include <sys/un.h>
13553 #endif
13556 typedef struct sockaddr_un ac__type_new_;
13558 main ()
13560 if ((ac__type_new_ *) 0)
13561 return 0;
13562 if (sizeof (ac__type_new_))
13563 return 0;
13565 return 0;
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.$ac_objext; then
13585 ac_cv_type_struct_sockaddr_un=yes
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_cv_type_struct_sockaddr_un=no
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13596 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13597 if test $ac_cv_type_struct_sockaddr_un = yes; then
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_STRUCT_SOCKADDR_UN 1
13601 _ACEOF
13604 cat >>confdefs.h <<\_ACEOF
13605 #define HAVE_UNIX_SOCKETS 1
13606 _ACEOF
13610 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13611 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13612 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <sys/types.h>
13622 #ifdef HAVE_SYS_SOCKET_H
13623 #include <sys/socket.h>
13624 #endif
13627 typedef struct sockaddr_storage ac__type_new_;
13629 main ()
13631 if ((ac__type_new_ *) 0)
13632 return 0;
13633 if (sizeof (ac__type_new_))
13634 return 0;
13636 return 0;
13638 _ACEOF
13639 rm -f conftest.$ac_objext
13640 if { (ac_try="$ac_compile"
13641 case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_compile") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest.$ac_objext; then
13656 ac_cv_type_struct_sockaddr_storage=yes
13657 else
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_cv_type_struct_sockaddr_storage=no
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13667 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13668 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13672 _ACEOF
13677 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13678 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13679 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 #include <sys/types.h>
13689 #ifdef HAVE_SYS_SOCKET_H
13690 #include <sys/socket.h>
13691 #endif
13695 main ()
13697 static struct sockaddr_storage ac_aggr;
13698 if (ac_aggr.ss_family)
13699 return 0;
13701 return 0;
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (ac_try="$ac_compile"
13706 case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_compile") 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && {
13718 test -z "$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13720 } && test -s conftest.$ac_objext; then
13721 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <sys/types.h>
13733 #ifdef HAVE_SYS_SOCKET_H
13734 #include <sys/socket.h>
13735 #endif
13739 main ()
13741 static struct sockaddr_storage ac_aggr;
13742 if (sizeof ac_aggr.ss_family)
13743 return 0;
13745 return 0;
13747 _ACEOF
13748 rm -f conftest.$ac_objext
13749 if { (ac_try="$ac_compile"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_compile") 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } && {
13762 test -z "$ac_c_werror_flag" ||
13763 test ! -s conftest.err
13764 } && test -s conftest.$ac_objext; then
13765 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13766 else
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_cv_member_struct_sockaddr_storage_ss_family=no
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13779 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13780 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13784 _ACEOF
13788 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13789 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13790 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <sys/types.h>
13800 #ifdef HAVE_SYS_SOCKET_H
13801 #include <sys/socket.h>
13802 #endif
13806 main ()
13808 static struct sockaddr_storage ac_aggr;
13809 if (ac_aggr.__ss_family)
13810 return 0;
13812 return 0;
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (ac_try="$ac_compile"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_compile") 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && {
13829 test -z "$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 } && test -s conftest.$ac_objext; then
13832 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 cat >conftest.$ac_ext <<_ACEOF
13838 /* confdefs.h. */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843 #include <sys/types.h>
13844 #ifdef HAVE_SYS_SOCKET_H
13845 #include <sys/socket.h>
13846 #endif
13850 main ()
13852 static struct sockaddr_storage ac_aggr;
13853 if (sizeof ac_aggr.__ss_family)
13854 return 0;
13856 return 0;
13858 _ACEOF
13859 rm -f conftest.$ac_objext
13860 if { (ac_try="$ac_compile"
13861 case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_compile") 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && {
13873 test -z "$ac_c_werror_flag" ||
13874 test ! -s conftest.err
13875 } && test -s conftest.$ac_objext; then
13876 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13877 else
13878 echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13881 ac_cv_member_struct_sockaddr_storage___ss_family=no
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13890 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
13891 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13895 _ACEOF
13899 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13900 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
13901 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h. */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include <sys/types.h>
13911 #ifdef HAVE_SYS_SOCKET_H
13912 #include <sys/socket.h>
13913 #endif
13917 main ()
13919 static struct sockaddr_storage ac_aggr;
13920 if (ac_aggr.ss_len)
13921 return 0;
13923 return 0;
13925 _ACEOF
13926 rm -f conftest.$ac_objext
13927 if { (ac_try="$ac_compile"
13928 case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_compile") 2>conftest.er1
13934 ac_status=$?
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } && {
13940 test -z "$ac_c_werror_flag" ||
13941 test ! -s conftest.err
13942 } && test -s conftest.$ac_objext; then
13943 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13944 else
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 #include <sys/types.h>
13955 #ifdef HAVE_SYS_SOCKET_H
13956 #include <sys/socket.h>
13957 #endif
13961 main ()
13963 static struct sockaddr_storage ac_aggr;
13964 if (sizeof ac_aggr.ss_len)
13965 return 0;
13967 return 0;
13969 _ACEOF
13970 rm -f conftest.$ac_objext
13971 if { (ac_try="$ac_compile"
13972 case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13975 esac
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977 (eval "$ac_compile") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest.$ac_objext; then
13987 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_cv_member_struct_sockaddr_storage_ss_len=no
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14001 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14002 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14004 cat >>confdefs.h <<_ACEOF
14005 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14006 _ACEOF
14010 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14011 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14012 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <sys/types.h>
14022 #ifdef HAVE_SYS_SOCKET_H
14023 #include <sys/socket.h>
14024 #endif
14028 main ()
14030 static struct sockaddr_storage ac_aggr;
14031 if (ac_aggr.__ss_len)
14032 return 0;
14034 return 0;
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14055 else
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <sys/types.h>
14066 #ifdef HAVE_SYS_SOCKET_H
14067 #include <sys/socket.h>
14068 #endif
14072 main ()
14074 static struct sockaddr_storage ac_aggr;
14075 if (sizeof ac_aggr.__ss_len)
14076 return 0;
14078 return 0;
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (ac_try="$ac_compile"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_compile") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest.$ac_objext; then
14098 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14099 else
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ac_cv_member_struct_sockaddr_storage___ss_len=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14112 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14113 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14117 _ACEOF
14121 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14122 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14123 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <sys/types.h>
14133 #ifdef HAVE_SYS_SOCKET_H
14134 #include <sys/socket.h>
14135 #endif
14139 main ()
14141 static struct sockaddr ac_aggr;
14142 if (ac_aggr.sa_len)
14143 return 0;
14145 return 0;
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (ac_try="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest.$ac_objext; then
14165 ac_cv_member_struct_sockaddr_sa_len=yes
14166 else
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 #include <sys/types.h>
14177 #ifdef HAVE_SYS_SOCKET_H
14178 #include <sys/socket.h>
14179 #endif
14183 main ()
14185 static struct sockaddr ac_aggr;
14186 if (sizeof ac_aggr.sa_len)
14187 return 0;
14189 return 0;
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.$ac_objext; then
14209 ac_cv_member_struct_sockaddr_sa_len=yes
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_member_struct_sockaddr_sa_len=no
14217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14223 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14224 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14228 _ACEOF
14233 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14234 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14235 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/socket.h>
14246 #include <netdb.h>
14249 typedef struct addrinfo ac__type_new_;
14251 main ()
14253 if ((ac__type_new_ *) 0)
14254 return 0;
14255 if (sizeof (ac__type_new_))
14256 return 0;
14258 return 0;
14260 _ACEOF
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266 esac
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_compile") 2>conftest.er1
14269 ac_status=$?
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest.$ac_objext; then
14278 ac_cv_type_struct_addrinfo=yes
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 ac_cv_type_struct_addrinfo=no
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14289 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14290 if test $ac_cv_type_struct_addrinfo = yes; then
14292 cat >>confdefs.h <<_ACEOF
14293 #define HAVE_STRUCT_ADDRINFO 1
14294 _ACEOF
14300 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14301 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14302 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <sys/param.h>
14312 #include <sys/types.h>
14313 #include <sys/socket.h>
14314 #include <sys/ucred.h>
14316 typedef struct cmsgcred ac__type_new_;
14318 main ()
14320 if ((ac__type_new_ *) 0)
14321 return 0;
14322 if (sizeof (ac__type_new_))
14323 return 0;
14325 return 0;
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest.$ac_objext; then
14345 ac_cv_type_struct_cmsgcred=yes
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_type_struct_cmsgcred=no
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14356 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14357 if test $ac_cv_type_struct_cmsgcred = yes; then
14359 cat >>confdefs.h <<_ACEOF
14360 #define HAVE_STRUCT_CMSGCRED 1
14361 _ACEOF
14365 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14366 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14367 if test "${ac_cv_type_struct_fcred+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h. */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <sys/param.h>
14377 #include <sys/types.h>
14378 #include <sys/socket.h>
14379 #include <sys/ucred.h>
14381 typedef struct fcred ac__type_new_;
14383 main ()
14385 if ((ac__type_new_ *) 0)
14386 return 0;
14387 if (sizeof (ac__type_new_))
14388 return 0;
14390 return 0;
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (ac_try="$ac_compile"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
14410 ac_cv_type_struct_fcred=yes
14411 else
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_cv_type_struct_fcred=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14421 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14422 if test $ac_cv_type_struct_fcred = yes; then
14424 cat >>confdefs.h <<_ACEOF
14425 #define HAVE_STRUCT_FCRED 1
14426 _ACEOF
14430 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14431 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14432 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <sys/param.h>
14442 #include <sys/types.h>
14443 #include <sys/socket.h>
14444 #include <sys/ucred.h>
14446 typedef struct sockcred ac__type_new_;
14448 main ()
14450 if ((ac__type_new_ *) 0)
14451 return 0;
14452 if (sizeof (ac__type_new_))
14453 return 0;
14455 return 0;
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (ac_try="$ac_compile"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14463 esac
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_compile") 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest.$ac_objext; then
14475 ac_cv_type_struct_sockcred=yes
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_cv_type_struct_sockcred=no
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14486 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14487 if test $ac_cv_type_struct_sockcred = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_STRUCT_SOCKCRED 1
14491 _ACEOF
14497 { echo "$as_me:$LINENO: checking for struct option" >&5
14498 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14499 if test "${ac_cv_type_struct_option+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 #ifdef HAVE_GETOPT_H
14509 #include <getopt.h>
14510 #endif
14512 typedef struct option ac__type_new_;
14514 main ()
14516 if ((ac__type_new_ *) 0)
14517 return 0;
14518 if (sizeof (ac__type_new_))
14519 return 0;
14521 return 0;
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (ac_try="$ac_compile"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_compile") 2>conftest.er1
14532 ac_status=$?
14533 grep -v '^ *+' conftest.er1 >conftest.err
14534 rm -f conftest.er1
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest.$ac_objext; then
14541 ac_cv_type_struct_option=yes
14542 else
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_cv_type_struct_option=no
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14552 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14553 if test $ac_cv_type_struct_option = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define HAVE_STRUCT_OPTION 1
14557 _ACEOF
14563 if test "$with_zlib" = yes; then
14564 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14565 # did not). While we could work around the lack of z_streamp, it
14566 # seems unwise to encourage people to use such old zlib versions...
14567 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14568 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14569 if test "${ac_cv_type_z_streamp+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 #include <zlib.h>
14580 typedef z_streamp ac__type_new_;
14582 main ()
14584 if ((ac__type_new_ *) 0)
14585 return 0;
14586 if (sizeof (ac__type_new_))
14587 return 0;
14589 return 0;
14591 _ACEOF
14592 rm -f conftest.$ac_objext
14593 if { (ac_try="$ac_compile"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_compile") 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && {
14606 test -z "$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 } && test -s conftest.$ac_objext; then
14609 ac_cv_type_z_streamp=yes
14610 else
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ac_cv_type_z_streamp=no
14617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14620 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14621 if test $ac_cv_type_z_streamp = yes; then
14623 else
14624 { { echo "$as_me:$LINENO: error: zlib version is too old
14625 Use --without-zlib to disable zlib support." >&5
14626 echo "$as_me: error: zlib version is too old
14627 Use --without-zlib to disable zlib support." >&2;}
14628 { (exit 1); exit 1; }; }
14633 if test "$with_krb5" = yes; then
14634 # Check for differences between MIT and Heimdal (KTH) releases
14635 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14636 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14637 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <krb5.h>
14649 main ()
14651 static krb5_ticket ac_aggr;
14652 if (ac_aggr.enc_part2)
14653 return 0;
14655 return 0;
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (ac_try="$ac_compile"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_compile") 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest.$ac_objext; then
14675 ac_cv_member_krb5_ticket_enc_part2=yes
14676 else
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 #include <krb5.h>
14689 main ()
14691 static krb5_ticket ac_aggr;
14692 if (sizeof ac_aggr.enc_part2)
14693 return 0;
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_cv_member_krb5_ticket_enc_part2=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_member_krb5_ticket_enc_part2=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14729 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14730 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_KRB5_TICKET_ENC_PART2 1
14734 _ACEOF
14737 else
14738 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14739 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14740 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <krb5.h>
14752 main ()
14754 static krb5_ticket ac_aggr;
14755 if (ac_aggr.client)
14756 return 0;
14758 return 0;
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_compile") 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.$ac_objext; then
14778 ac_cv_member_krb5_ticket_client=yes
14779 else
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <krb5.h>
14792 main ()
14794 static krb5_ticket ac_aggr;
14795 if (sizeof ac_aggr.client)
14796 return 0;
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (ac_try="$ac_compile"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest.$ac_objext; then
14818 ac_cv_member_krb5_ticket_client=yes
14819 else
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 ac_cv_member_krb5_ticket_client=no
14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14832 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
14833 if test $ac_cv_member_krb5_ticket_client = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define HAVE_KRB5_TICKET_CLIENT 1
14837 _ACEOF
14840 else
14841 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14842 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14843 { (exit 1); exit 1; }; }
14848 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14849 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
14850 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <krb5.h>
14862 main ()
14864 static krb5_error ac_aggr;
14865 if (ac_aggr.text.data)
14866 return 0;
14868 return 0;
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14888 ac_cv_member_krb5_error_text_data=yes
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <krb5.h>
14902 main ()
14904 static krb5_error ac_aggr;
14905 if (sizeof ac_aggr.text.data)
14906 return 0;
14908 return 0;
14910 _ACEOF
14911 rm -f conftest.$ac_objext
14912 if { (ac_try="$ac_compile"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_compile") 2>conftest.er1
14919 ac_status=$?
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } && {
14925 test -z "$ac_c_werror_flag" ||
14926 test ! -s conftest.err
14927 } && test -s conftest.$ac_objext; then
14928 ac_cv_member_krb5_error_text_data=yes
14929 else
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_member_krb5_error_text_data=no
14936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14942 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
14943 if test $ac_cv_member_krb5_error_text_data = yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14947 _ACEOF
14950 else
14951 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14952 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
14953 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956 cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h. */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14962 #include <krb5.h>
14965 main ()
14967 static krb5_error ac_aggr;
14968 if (ac_aggr.e_data)
14969 return 0;
14971 return 0;
14973 _ACEOF
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_compile") 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } && {
14988 test -z "$ac_c_werror_flag" ||
14989 test ! -s conftest.err
14990 } && test -s conftest.$ac_objext; then
14991 ac_cv_member_krb5_error_e_data=yes
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <krb5.h>
15005 main ()
15007 static krb5_error ac_aggr;
15008 if (sizeof ac_aggr.e_data)
15009 return 0;
15011 return 0;
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (ac_try="$ac_compile"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15031 ac_cv_member_krb5_error_e_data=yes
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_cv_member_krb5_error_e_data=no
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15045 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15046 if test $ac_cv_member_krb5_error_e_data = yes; then
15048 cat >>confdefs.h <<_ACEOF
15049 #define HAVE_KRB5_ERROR_E_DATA 1
15050 _ACEOF
15053 else
15054 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15055 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15056 { (exit 1); exit 1; }; }
15062 # Win32 requires headers to be loaded for __stdcall, so can't use
15063 # AC_CHECK_FUNCS here.
15064 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15065 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h. */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 #include <krb5.h>
15074 main ()
15076 krb5_free_unparsed_name(NULL,NULL);
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_link") 2>conftest.er1
15089 ac_status=$?
15090 grep -v '^ *+' conftest.er1 >conftest.err
15091 rm -f conftest.er1
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest$ac_exeext &&
15098 $as_test_x conftest$ac_exeext; then
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15102 _ACEOF
15104 { echo "$as_me:$LINENO: result: yes" >&5
15105 echo "${ECHO_T}yes" >&6; }
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 { echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6; }
15114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15115 conftest$ac_exeext conftest.$ac_ext
15120 ## Functions, global variables
15123 { echo "$as_me:$LINENO: checking for int timezone" >&5
15124 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15125 if test "${pgac_cv_var_int_timezone+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <time.h>
15135 int res;
15137 main ()
15139 #ifndef __CYGWIN__
15140 res = timezone / 60;
15141 #else
15142 res = _timezone / 60;
15143 #endif
15145 return 0;
15147 _ACEOF
15148 rm -f conftest.$ac_objext conftest$ac_exeext
15149 if { (ac_try="$ac_link"
15150 case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } && {
15162 test -z "$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15164 } && test -s conftest$ac_exeext &&
15165 $as_test_x conftest$ac_exeext; then
15166 pgac_cv_var_int_timezone=yes
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 pgac_cv_var_int_timezone=no
15174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 conftest$ac_exeext conftest.$ac_ext
15177 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15178 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15179 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_INT_TIMEZONE
15183 _ACEOF
15186 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15187 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15188 if test "${ac_cv_func_accept_return+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191 if test "${ac_cv_func_accept_arg1+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 if test "${ac_cv_func_accept_arg2+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 if test "${ac_cv_func_accept_arg3+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15201 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15202 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15203 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h. */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #ifdef HAVE_SYS_TYPES_H
15211 #include <sys/types.h>
15212 #endif
15213 #ifdef HAVE_SYS_SOCKET_H
15214 #include <sys/socket.h>
15215 #endif
15216 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15218 main ()
15222 return 0;
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_compile") 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } && {
15239 test -z "$ac_c_werror_flag" ||
15240 test ! -s conftest.err
15241 } && test -s conftest.$ac_objext; then
15242 ac_not_found=no; break 4
15243 else
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 ac_not_found=yes
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 done
15252 done
15253 done
15254 done
15255 if test "$ac_not_found" = yes; then
15256 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15257 echo "$as_me: error: could not determine argument types" >&2;}
15258 { (exit 1); exit 1; }; }
15260 if test "$ac_cv_func_accept_arg3" = "void"; then
15261 ac_cv_func_accept_arg3=int
15271 { 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
15272 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15274 cat >>confdefs.h <<_ACEOF
15275 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15276 _ACEOF
15279 cat >>confdefs.h <<_ACEOF
15280 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15281 _ACEOF
15284 cat >>confdefs.h <<_ACEOF
15285 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15286 _ACEOF
15289 cat >>confdefs.h <<_ACEOF
15290 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15291 _ACEOF
15294 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15295 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15296 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h. */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 #include <sys/time.h>
15307 main ()
15309 struct timeval *tp;
15310 struct timezone *tzp;
15311 gettimeofday(tp,tzp);
15313 return 0;
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (ac_try="$ac_compile"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_compile") 2>conftest.er1
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest.$ac_objext; then
15333 pgac_cv_func_gettimeofday_1arg=no
15334 else
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 pgac_cv_func_gettimeofday_1arg=yes
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15344 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15345 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15347 cat >>confdefs.h <<\_ACEOF
15348 #define GETTIMEOFDAY_1ARG
15349 _ACEOF
15375 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15391 #define $ac_func innocuous_$ac_func
15393 /* System header to define __stub macros and hopefully few prototypes,
15394 which can conflict with char $ac_func (); below.
15395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15396 <limits.h> exists even on freestanding compilers. */
15398 #ifdef __STDC__
15399 # include <limits.h>
15400 #else
15401 # include <assert.h>
15402 #endif
15404 #undef $ac_func
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409 #ifdef __cplusplus
15410 extern "C"
15411 #endif
15412 char $ac_func ();
15413 /* The GNU C library defines this for functions which it implements
15414 to always fail with ENOSYS. Some functions are actually named
15415 something starting with __ and the normal name is an alias. */
15416 #if defined __stub_$ac_func || defined __stub___$ac_func
15417 choke me
15418 #endif
15421 main ()
15423 return $ac_func ();
15425 return 0;
15427 _ACEOF
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (ac_try="$ac_link"
15430 case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_link") 2>conftest.er1
15436 ac_status=$?
15437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } && {
15442 test -z "$ac_c_werror_flag" ||
15443 test ! -s conftest.err
15444 } && test -s conftest$ac_exeext &&
15445 $as_test_x conftest$ac_exeext; then
15446 eval "$as_ac_var=yes"
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 eval "$as_ac_var=no"
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455 conftest$ac_exeext conftest.$ac_ext
15457 ac_res=`eval echo '${'$as_ac_var'}'`
15458 { echo "$as_me:$LINENO: result: $ac_res" >&5
15459 echo "${ECHO_T}$ac_res" >&6; }
15460 if test `eval echo '${'$as_ac_var'}'` = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15463 _ACEOF
15466 done
15469 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15470 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15471 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #include <unistd.h>
15483 main ()
15485 #ifndef fdatasync
15486 (void) fdatasync;
15487 #endif
15490 return 0;
15492 _ACEOF
15493 rm -f conftest.$ac_objext
15494 if { (ac_try="$ac_compile"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_compile") 2>conftest.er1
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest.$ac_objext; then
15510 ac_cv_have_decl_fdatasync=yes
15511 else
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_cv_have_decl_fdatasync=no
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15521 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15522 if test $ac_cv_have_decl_fdatasync = yes; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define HAVE_DECL_FDATASYNC 1
15526 _ACEOF
15529 else
15530 cat >>confdefs.h <<_ACEOF
15531 #define HAVE_DECL_FDATASYNC 0
15532 _ACEOF
15538 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15539 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15540 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15542 else
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h. */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15549 #include <fcntl.h>
15552 main ()
15554 #ifndef posix_fadvise
15555 (void) posix_fadvise;
15556 #endif
15559 return 0;
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (ac_try="$ac_compile"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_compile") 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } && {
15576 test -z "$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15578 } && test -s conftest.$ac_objext; then
15579 ac_cv_have_decl_posix_fadvise=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_cv_have_decl_posix_fadvise=no
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15590 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15591 if test $ac_cv_have_decl_posix_fadvise = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define HAVE_DECL_POSIX_FADVISE 1
15595 _ACEOF
15598 else
15599 cat >>confdefs.h <<_ACEOF
15600 #define HAVE_DECL_POSIX_FADVISE 0
15601 _ACEOF
15607 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15608 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15609 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612 cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h. */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 $ac_includes_default
15620 main ()
15622 #ifndef strlcat
15623 (void) strlcat;
15624 #endif
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (ac_try="$ac_compile"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_compile") 2>conftest.er1
15638 ac_status=$?
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && {
15644 test -z "$ac_c_werror_flag" ||
15645 test ! -s conftest.err
15646 } && test -s conftest.$ac_objext; then
15647 ac_cv_have_decl_strlcat=yes
15648 else
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_cv_have_decl_strlcat=no
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15658 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15659 if test $ac_cv_have_decl_strlcat = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_DECL_STRLCAT 1
15663 _ACEOF
15666 else
15667 cat >>confdefs.h <<_ACEOF
15668 #define HAVE_DECL_STRLCAT 0
15669 _ACEOF
15673 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15674 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15675 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15686 main ()
15688 #ifndef strlcpy
15689 (void) strlcpy;
15690 #endif
15693 return 0;
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (ac_try="$ac_compile"
15698 case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest.$ac_objext; then
15713 ac_cv_have_decl_strlcpy=yes
15714 else
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 ac_cv_have_decl_strlcpy=no
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15724 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15725 if test $ac_cv_have_decl_strlcpy = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_DECL_STRLCPY 1
15729 _ACEOF
15732 else
15733 cat >>confdefs.h <<_ACEOF
15734 #define HAVE_DECL_STRLCPY 0
15735 _ACEOF
15741 # This is probably only present on Darwin, but may as well check always
15742 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15743 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15744 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 #include <fcntl.h>
15756 main ()
15758 #ifndef F_FULLFSYNC
15759 (void) F_FULLFSYNC;
15760 #endif
15763 return 0;
15765 _ACEOF
15766 rm -f conftest.$ac_objext
15767 if { (ac_try="$ac_compile"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest.$ac_objext; then
15783 ac_cv_have_decl_F_FULLFSYNC=yes
15784 else
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_cv_have_decl_F_FULLFSYNC=no
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15794 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15795 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_DECL_F_FULLFSYNC 1
15799 _ACEOF
15802 else
15803 cat >>confdefs.h <<_ACEOF
15804 #define HAVE_DECL_F_FULLFSYNC 0
15805 _ACEOF
15812 HAVE_IPV6=no
15813 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15814 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15815 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 #include <netinet/in.h>
15827 typedef struct sockaddr_in6 ac__type_new_;
15829 main ()
15831 if ((ac__type_new_ *) 0)
15832 return 0;
15833 if (sizeof (ac__type_new_))
15834 return 0;
15836 return 0;
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844 esac
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest.$ac_objext; then
15856 ac_cv_type_struct_sockaddr_in6=yes
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ac_cv_type_struct_sockaddr_in6=no
15864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15867 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
15868 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15870 cat >>confdefs.h <<\_ACEOF
15871 #define HAVE_IPV6 1
15872 _ACEOF
15874 HAVE_IPV6=yes
15879 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15880 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
15881 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h. */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 #include <machine/vmparam.h>
15891 #include <sys/exec.h>
15894 main ()
15896 PS_STRINGS->ps_nargvstr = 1;
15897 PS_STRINGS->ps_argvstr = "foo";
15899 return 0;
15901 _ACEOF
15902 rm -f conftest.$ac_objext conftest$ac_exeext
15903 if { (ac_try="$ac_link"
15904 case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15907 esac
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_link") 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } && {
15916 test -z "$ac_c_werror_flag" ||
15917 test ! -s conftest.err
15918 } && test -s conftest$ac_exeext &&
15919 $as_test_x conftest$ac_exeext; then
15920 pgac_cv_var_PS_STRINGS=yes
15921 else
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 pgac_cv_var_PS_STRINGS=no
15928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15929 conftest$ac_exeext conftest.$ac_ext
15931 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15932 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
15933 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15935 cat >>confdefs.h <<\_ACEOF
15936 #define HAVE_PS_STRINGS
15937 _ACEOF
15942 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15943 # is missing. Yes, there are machines that have only one. We may
15944 # also decide to use snprintf.c if snprintf() is present but does not
15945 # have all the features we need --- see below.
15947 if test "$PORTNAME" = "win32"; then
15948 # Win32 gets snprintf.c built unconditionally.
15950 # To properly translate all NLS languages strings, we must support the
15951 # *printf() %$ format, which allows *printf() arguments to be selected
15952 # by position in the translated string.
15954 # libintl versions < 0.13 use the native *printf() functions, and Win32
15955 # *printf() doesn't understand %$, so we must use our /port versions,
15956 # which do understand %$. libintl versions >= 0.13 include their own
15957 # *printf versions on Win32. The libintl 0.13 release note text is:
15959 # C format strings with positions, as they arise when a translator
15960 # needs to reorder a sentence, are now supported on all platforms.
15961 # On those few platforms (NetBSD and Woe32) for which the native
15962 # printf()/fprintf()/... functions don't support such format
15963 # strings, replacements are provided through <libintl.h>.
15965 # We could use libintl >= 0.13's *printf() if we were sure that we had
15966 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15967 # to guarantee that, it is best to just use our own, so we are sure to
15968 # get %$ support. In include/port.h we disable the *printf() macros
15969 # that might have been defined by libintl.
15971 # We do this unconditionally whether NLS is used or not so we are sure
15972 # that all Win32 libraries and binaries behave the same.
15973 pgac_need_repl_snprintf=yes
15974 else
15975 pgac_need_repl_snprintf=no
15977 for ac_func in snprintf
15979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h. */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15993 #define $ac_func innocuous_$ac_func
15995 /* System header to define __stub macros and hopefully few prototypes,
15996 which can conflict with char $ac_func (); below.
15997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998 <limits.h> exists even on freestanding compilers. */
16000 #ifdef __STDC__
16001 # include <limits.h>
16002 #else
16003 # include <assert.h>
16004 #endif
16006 #undef $ac_func
16008 /* Override any GCC internal prototype to avoid an error.
16009 Use char because int might match the return type of a GCC
16010 builtin and then its argument prototype would still apply. */
16011 #ifdef __cplusplus
16012 extern "C"
16013 #endif
16014 char $ac_func ();
16015 /* The GNU C library defines this for functions which it implements
16016 to always fail with ENOSYS. Some functions are actually named
16017 something starting with __ and the normal name is an alias. */
16018 #if defined __stub_$ac_func || defined __stub___$ac_func
16019 choke me
16020 #endif
16023 main ()
16025 return $ac_func ();
16027 return 0;
16029 _ACEOF
16030 rm -f conftest.$ac_objext conftest$ac_exeext
16031 if { (ac_try="$ac_link"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_link") 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest$ac_exeext &&
16047 $as_test_x conftest$ac_exeext; then
16048 eval "$as_ac_var=yes"
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 eval "$as_ac_var=no"
16056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16057 conftest$ac_exeext conftest.$ac_ext
16059 ac_res=`eval echo '${'$as_ac_var'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16062 if test `eval echo '${'$as_ac_var'}'` = yes; then
16063 cat >>confdefs.h <<_ACEOF
16064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16065 _ACEOF
16067 else
16068 pgac_need_repl_snprintf=yes
16070 done
16073 for ac_func in vsnprintf
16075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16089 #define $ac_func innocuous_$ac_func
16091 /* System header to define __stub macros and hopefully few prototypes,
16092 which can conflict with char $ac_func (); below.
16093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16094 <limits.h> exists even on freestanding compilers. */
16096 #ifdef __STDC__
16097 # include <limits.h>
16098 #else
16099 # include <assert.h>
16100 #endif
16102 #undef $ac_func
16104 /* Override any GCC internal prototype to avoid an error.
16105 Use char because int might match the return type of a GCC
16106 builtin and then its argument prototype would still apply. */
16107 #ifdef __cplusplus
16108 extern "C"
16109 #endif
16110 char $ac_func ();
16111 /* The GNU C library defines this for functions which it implements
16112 to always fail with ENOSYS. Some functions are actually named
16113 something starting with __ and the normal name is an alias. */
16114 #if defined __stub_$ac_func || defined __stub___$ac_func
16115 choke me
16116 #endif
16119 main ()
16121 return $ac_func ();
16123 return 0;
16125 _ACEOF
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_link") 2>conftest.er1
16134 ac_status=$?
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext &&
16143 $as_test_x conftest$ac_exeext; then
16144 eval "$as_ac_var=yes"
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 eval "$as_ac_var=no"
16152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16153 conftest$ac_exeext conftest.$ac_ext
16155 ac_res=`eval echo '${'$as_ac_var'}'`
16156 { echo "$as_me:$LINENO: result: $ac_res" >&5
16157 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_var'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16161 _ACEOF
16163 else
16164 pgac_need_repl_snprintf=yes
16166 done
16171 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16172 # include/c.h will provide declarations. Note this is a separate test
16173 # from whether the functions exist in the C library --- there are
16174 # systems that have the functions but don't bother to declare them :-(
16176 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16177 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16178 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 $ac_includes_default
16189 main ()
16191 #ifndef snprintf
16192 (void) snprintf;
16193 #endif
16196 return 0;
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_compile") 2>conftest.er1
16207 ac_status=$?
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } && {
16213 test -z "$ac_c_werror_flag" ||
16214 test ! -s conftest.err
16215 } && test -s conftest.$ac_objext; then
16216 ac_cv_have_decl_snprintf=yes
16217 else
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 ac_cv_have_decl_snprintf=no
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16227 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16228 if test $ac_cv_have_decl_snprintf = yes; then
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_DECL_SNPRINTF 1
16232 _ACEOF
16235 else
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_DECL_SNPRINTF 0
16238 _ACEOF
16242 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16243 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16244 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16255 main ()
16257 #ifndef vsnprintf
16258 (void) vsnprintf;
16259 #endif
16262 return 0;
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_compile") 2>conftest.er1
16273 ac_status=$?
16274 grep -v '^ *+' conftest.er1 >conftest.err
16275 rm -f conftest.er1
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && {
16279 test -z "$ac_c_werror_flag" ||
16280 test ! -s conftest.err
16281 } && test -s conftest.$ac_objext; then
16282 ac_cv_have_decl_vsnprintf=yes
16283 else
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 ac_cv_have_decl_vsnprintf=no
16290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16293 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16294 if test $ac_cv_have_decl_vsnprintf = yes; then
16296 cat >>confdefs.h <<_ACEOF
16297 #define HAVE_DECL_VSNPRINTF 1
16298 _ACEOF
16301 else
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_DECL_VSNPRINTF 0
16304 _ACEOF
16312 { echo "$as_me:$LINENO: checking for isinf" >&5
16313 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16314 if test "${ac_cv_func_isinf+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 #include <math.h>
16325 double glob_double;
16328 main ()
16330 return isinf(glob_double) ? 0 : 1;
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 ac_cv_func_isinf=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_cv_func_isinf=no
16361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16362 conftest$ac_exeext conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16365 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16367 if test $ac_cv_func_isinf = yes ; then
16369 cat >>confdefs.h <<\_ACEOF
16370 #define HAVE_ISINF 1
16371 _ACEOF
16373 else
16374 case " $LIBOBJS " in
16375 *" isinf.$ac_objext "* ) ;;
16376 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16378 esac
16380 # Look for a way to implement a substitute for isinf()
16385 for ac_func in fpclass fp_class fp_class_d class
16387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16401 #define $ac_func innocuous_$ac_func
16403 /* System header to define __stub macros and hopefully few prototypes,
16404 which can conflict with char $ac_func (); below.
16405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16406 <limits.h> exists even on freestanding compilers. */
16408 #ifdef __STDC__
16409 # include <limits.h>
16410 #else
16411 # include <assert.h>
16412 #endif
16414 #undef $ac_func
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16419 #ifdef __cplusplus
16420 extern "C"
16421 #endif
16422 char $ac_func ();
16423 /* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426 #if defined __stub_$ac_func || defined __stub___$ac_func
16427 choke me
16428 #endif
16431 main ()
16433 return $ac_func ();
16435 return 0;
16437 _ACEOF
16438 rm -f conftest.$ac_objext conftest$ac_exeext
16439 if { (ac_try="$ac_link"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_link") 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } && {
16452 test -z "$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 } && test -s conftest$ac_exeext &&
16455 $as_test_x conftest$ac_exeext; then
16456 eval "$as_ac_var=yes"
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 eval "$as_ac_var=no"
16464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16465 conftest$ac_exeext conftest.$ac_ext
16467 ac_res=`eval echo '${'$as_ac_var'}'`
16468 { echo "$as_me:$LINENO: result: $ac_res" >&5
16469 echo "${ECHO_T}$ac_res" >&6; }
16470 if test `eval echo '${'$as_ac_var'}'` = yes; then
16471 cat >>confdefs.h <<_ACEOF
16472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16473 _ACEOF
16474 break
16476 done
16480 # Some versions of libedit contain strlcpy(); so disregard that library while
16481 # checking for these standard libc functions.
16482 pgac_save_LIBS="$LIBS"
16483 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16499 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16515 #define $ac_func innocuous_$ac_func
16517 /* System header to define __stub macros and hopefully few prototypes,
16518 which can conflict with char $ac_func (); below.
16519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16520 <limits.h> exists even on freestanding compilers. */
16522 #ifdef __STDC__
16523 # include <limits.h>
16524 #else
16525 # include <assert.h>
16526 #endif
16528 #undef $ac_func
16530 /* Override any GCC internal prototype to avoid an error.
16531 Use char because int might match the return type of a GCC
16532 builtin and then its argument prototype would still apply. */
16533 #ifdef __cplusplus
16534 extern "C"
16535 #endif
16536 char $ac_func ();
16537 /* The GNU C library defines this for functions which it implements
16538 to always fail with ENOSYS. Some functions are actually named
16539 something starting with __ and the normal name is an alias. */
16540 #if defined __stub_$ac_func || defined __stub___$ac_func
16541 choke me
16542 #endif
16545 main ()
16547 return $ac_func ();
16549 return 0;
16551 _ACEOF
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_link") 2>conftest.er1
16560 ac_status=$?
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && {
16566 test -z "$ac_c_werror_flag" ||
16567 test ! -s conftest.err
16568 } && test -s conftest$ac_exeext &&
16569 $as_test_x conftest$ac_exeext; then
16570 eval "$as_ac_var=yes"
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 eval "$as_ac_var=no"
16578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16579 conftest$ac_exeext conftest.$ac_ext
16581 ac_res=`eval echo '${'$as_ac_var'}'`
16582 { echo "$as_me:$LINENO: result: $ac_res" >&5
16583 echo "${ECHO_T}$ac_res" >&6; }
16584 if test `eval echo '${'$as_ac_var'}'` = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16587 _ACEOF
16589 else
16590 case " $LIBOBJS " in
16591 *" $ac_func.$ac_objext "* ) ;;
16592 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16594 esac
16597 done
16601 LIBS="$pgac_save_LIBS"
16603 # System's version of getaddrinfo(), if any, may be used only if we found
16604 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16605 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16606 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16607 # because we want to use our own getaddrinfo.c on Windows anyway.)
16608 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16610 for ac_func in getaddrinfo
16612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 cat >conftest.$ac_ext <<_ACEOF
16619 /* confdefs.h. */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16626 #define $ac_func innocuous_$ac_func
16628 /* System header to define __stub macros and hopefully few prototypes,
16629 which can conflict with char $ac_func (); below.
16630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16631 <limits.h> exists even on freestanding compilers. */
16633 #ifdef __STDC__
16634 # include <limits.h>
16635 #else
16636 # include <assert.h>
16637 #endif
16639 #undef $ac_func
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char $ac_func ();
16648 /* The GNU C library defines this for functions which it implements
16649 to always fail with ENOSYS. Some functions are actually named
16650 something starting with __ and the normal name is an alias. */
16651 #if defined __stub_$ac_func || defined __stub___$ac_func
16652 choke me
16653 #endif
16656 main ()
16658 return $ac_func ();
16660 return 0;
16662 _ACEOF
16663 rm -f conftest.$ac_objext conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>conftest.er1
16671 ac_status=$?
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest$ac_exeext &&
16680 $as_test_x conftest$ac_exeext; then
16681 eval "$as_ac_var=yes"
16682 else
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 eval "$as_ac_var=no"
16689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16690 conftest$ac_exeext conftest.$ac_ext
16692 ac_res=`eval echo '${'$as_ac_var'}'`
16693 { echo "$as_me:$LINENO: result: $ac_res" >&5
16694 echo "${ECHO_T}$ac_res" >&6; }
16695 if test `eval echo '${'$as_ac_var'}'` = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16698 _ACEOF
16700 else
16701 case " $LIBOBJS " in
16702 *" $ac_func.$ac_objext "* ) ;;
16703 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16705 esac
16708 done
16711 else
16712 case " $LIBOBJS " in
16713 *" getaddrinfo.$ac_objext "* ) ;;
16714 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16716 esac
16720 # Similarly, use system's getopt_long() only if system provides struct option.
16721 # Solaris' getopt() doesn't do what we want for long options, so always use
16722 # our versions on that platform.
16723 if test "$PORTNAME" = "solaris"; then
16724 case " $LIBOBJS " in
16725 *" getopt.$ac_objext "* ) ;;
16726 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16728 esac
16730 case " $LIBOBJS " in
16731 *" getopt_long.$ac_objext "* ) ;;
16732 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16734 esac
16736 elif test x"$ac_cv_type_struct_option" = xyes ; then
16738 for ac_func in getopt_long
16740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h. */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16754 #define $ac_func innocuous_$ac_func
16756 /* System header to define __stub macros and hopefully few prototypes,
16757 which can conflict with char $ac_func (); below.
16758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16759 <limits.h> exists even on freestanding compilers. */
16761 #ifdef __STDC__
16762 # include <limits.h>
16763 #else
16764 # include <assert.h>
16765 #endif
16767 #undef $ac_func
16769 /* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 char $ac_func ();
16776 /* The GNU C library defines this for functions which it implements
16777 to always fail with ENOSYS. Some functions are actually named
16778 something starting with __ and the normal name is an alias. */
16779 #if defined __stub_$ac_func || defined __stub___$ac_func
16780 choke me
16781 #endif
16784 main ()
16786 return $ac_func ();
16788 return 0;
16790 _ACEOF
16791 rm -f conftest.$ac_objext conftest$ac_exeext
16792 if { (ac_try="$ac_link"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_link") 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest$ac_exeext &&
16808 $as_test_x conftest$ac_exeext; then
16809 eval "$as_ac_var=yes"
16810 else
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 eval "$as_ac_var=no"
16817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16818 conftest$ac_exeext conftest.$ac_ext
16820 ac_res=`eval echo '${'$as_ac_var'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16823 if test `eval echo '${'$as_ac_var'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16826 _ACEOF
16828 else
16829 case " $LIBOBJS " in
16830 *" $ac_func.$ac_objext "* ) ;;
16831 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16833 esac
16836 done
16839 else
16840 case " $LIBOBJS " in
16841 *" getopt_long.$ac_objext "* ) ;;
16842 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16844 esac
16848 # Win32 support
16849 if test "$PORTNAME" = "win32"; then
16851 for ac_func in gettimeofday
16853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16867 #define $ac_func innocuous_$ac_func
16869 /* System header to define __stub macros and hopefully few prototypes,
16870 which can conflict with char $ac_func (); below.
16871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872 <limits.h> exists even on freestanding compilers. */
16874 #ifdef __STDC__
16875 # include <limits.h>
16876 #else
16877 # include <assert.h>
16878 #endif
16880 #undef $ac_func
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16885 #ifdef __cplusplus
16886 extern "C"
16887 #endif
16888 char $ac_func ();
16889 /* The GNU C library defines this for functions which it implements
16890 to always fail with ENOSYS. Some functions are actually named
16891 something starting with __ and the normal name is an alias. */
16892 #if defined __stub_$ac_func || defined __stub___$ac_func
16893 choke me
16894 #endif
16897 main ()
16899 return $ac_func ();
16901 return 0;
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_link") 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } && {
16918 test -z "$ac_c_werror_flag" ||
16919 test ! -s conftest.err
16920 } && test -s conftest$ac_exeext &&
16921 $as_test_x conftest$ac_exeext; then
16922 eval "$as_ac_var=yes"
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 eval "$as_ac_var=no"
16930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16931 conftest$ac_exeext conftest.$ac_ext
16933 ac_res=`eval echo '${'$as_ac_var'}'`
16934 { echo "$as_me:$LINENO: result: $ac_res" >&5
16935 echo "${ECHO_T}$ac_res" >&6; }
16936 if test `eval echo '${'$as_ac_var'}'` = yes; then
16937 cat >>confdefs.h <<_ACEOF
16938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16939 _ACEOF
16941 else
16942 case " $LIBOBJS " in
16943 *" $ac_func.$ac_objext "* ) ;;
16944 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16946 esac
16949 done
16952 case " $LIBOBJS " in
16953 *" kill.$ac_objext "* ) ;;
16954 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
16956 esac
16958 case " $LIBOBJS " in
16959 *" open.$ac_objext "* ) ;;
16960 *) LIBOBJS="$LIBOBJS open.$ac_objext"
16962 esac
16964 case " $LIBOBJS " in
16965 *" rand.$ac_objext "* ) ;;
16966 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
16968 esac
16970 case " $LIBOBJS " in
16971 *" win32error.$ac_objext "* ) ;;
16972 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
16974 esac
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_SYMLINK 1
16979 _ACEOF
16983 if test "$with_readline" = yes; then
16984 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16985 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 #include <stdio.h>
16993 #ifdef HAVE_READLINE_READLINE_H
16994 # include <readline/readline.h>
16995 #elif defined(HAVE_READLINE_H)
16996 # include <readline.h>
16997 #endif
17000 main ()
17002 rl_completion_append_character = 'x';
17004 return 0;
17006 _ACEOF
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (ac_try="$ac_link"
17009 case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17012 esac
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_link") 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } && {
17021 test -z "$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 } && test -s conftest$ac_exeext &&
17024 $as_test_x conftest$ac_exeext; then
17025 { echo "$as_me:$LINENO: result: yes" >&5
17026 echo "${ECHO_T}yes" >&6; }
17028 cat >>confdefs.h <<\_ACEOF
17029 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17030 _ACEOF
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 { echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6; }
17040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17041 conftest$ac_exeext conftest.$ac_ext
17044 for ac_func in rl_completion_matches rl_filename_completion_function
17046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052 cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h. */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17060 #define $ac_func innocuous_$ac_func
17062 /* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char $ac_func (); below.
17064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 <limits.h> exists even on freestanding compilers. */
17067 #ifdef __STDC__
17068 # include <limits.h>
17069 #else
17070 # include <assert.h>
17071 #endif
17073 #undef $ac_func
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char $ac_func ();
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined __stub_$ac_func || defined __stub___$ac_func
17086 choke me
17087 #endif
17090 main ()
17092 return $ac_func ();
17094 return 0;
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext &&
17114 $as_test_x conftest$ac_exeext; then
17115 eval "$as_ac_var=yes"
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 eval "$as_ac_var=no"
17123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17124 conftest$ac_exeext conftest.$ac_ext
17126 ac_res=`eval echo '${'$as_ac_var'}'`
17127 { echo "$as_me:$LINENO: result: $ac_res" >&5
17128 echo "${ECHO_T}$ac_res" >&6; }
17129 if test `eval echo '${'$as_ac_var'}'` = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17132 _ACEOF
17135 done
17138 for ac_func in replace_history_entry
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17161 #ifdef __STDC__
17162 # include <limits.h>
17163 #else
17164 # include <assert.h>
17165 #endif
17167 #undef $ac_func
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char $ac_func ();
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17180 choke me
17181 #endif
17184 main ()
17186 return $ac_func ();
17188 return 0;
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest$ac_exeext &&
17208 $as_test_x conftest$ac_exeext; then
17209 eval "$as_ac_var=yes"
17210 else
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 eval "$as_ac_var=no"
17217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17218 conftest$ac_exeext conftest.$ac_ext
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17226 _ACEOF
17229 done
17234 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17235 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17236 cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h. */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 #include <setjmp.h>
17244 main ()
17246 sigjmp_buf x; sigsetjmp(x, 1);
17248 return 0;
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && {
17265 test -z "$ac_c_werror_flag" ||
17266 test ! -s conftest.err
17267 } && test -s conftest$ac_exeext &&
17268 $as_test_x conftest$ac_exeext; then
17270 cat >>confdefs.h <<\_ACEOF
17271 #define HAVE_SIGSETJMP 1
17272 _ACEOF
17274 { echo "$as_me:$LINENO: result: yes" >&5
17275 echo "${ECHO_T}yes" >&6; }
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 { echo "$as_me:$LINENO: result: no" >&5
17281 echo "${ECHO_T}no" >&6; }
17284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17285 conftest$ac_exeext conftest.$ac_ext
17287 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17288 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17289 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292 cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h. */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <signal.h>
17299 /* NetBSD declares sys_siglist in unistd.h. */
17300 #ifdef HAVE_UNISTD_H
17301 # include <unistd.h>
17302 #endif
17306 main ()
17308 #ifndef sys_siglist
17309 (void) sys_siglist;
17310 #endif
17313 return 0;
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (ac_try="$ac_compile"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_compile") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && {
17330 test -z "$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17332 } && test -s conftest.$ac_objext; then
17333 ac_cv_have_decl_sys_siglist=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_cv_have_decl_sys_siglist=no
17341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17344 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17345 if test $ac_cv_have_decl_sys_siglist = yes; then
17347 cat >>confdefs.h <<_ACEOF
17348 #define HAVE_DECL_SYS_SIGLIST 1
17349 _ACEOF
17352 else
17353 cat >>confdefs.h <<_ACEOF
17354 #define HAVE_DECL_SYS_SIGLIST 0
17355 _ACEOF
17363 { echo "$as_me:$LINENO: checking for syslog" >&5
17364 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17365 if test "${ac_cv_func_syslog+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define syslog innocuous_syslog
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char syslog (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17383 #ifdef __STDC__
17384 # include <limits.h>
17385 #else
17386 # include <assert.h>
17387 #endif
17389 #undef syslog
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17394 #ifdef __cplusplus
17395 extern "C"
17396 #endif
17397 char syslog ();
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined __stub_syslog || defined __stub___syslog
17402 choke me
17403 #endif
17406 main ()
17408 return syslog ();
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && {
17427 test -z "$ac_c_werror_flag" ||
17428 test ! -s conftest.err
17429 } && test -s conftest$ac_exeext &&
17430 $as_test_x conftest$ac_exeext; then
17431 ac_cv_func_syslog=yes
17432 else
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_cv_func_syslog=no
17439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17440 conftest$ac_exeext conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17443 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17444 if test $ac_cv_func_syslog = yes; then
17445 if test "${ac_cv_header_syslog_h+set}" = set; then
17446 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17447 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17448 if test "${ac_cv_header_syslog_h+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17452 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17453 else
17454 # Is the header compilable?
17455 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17456 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17464 #include <syslog.h>
17465 _ACEOF
17466 rm -f conftest.$ac_objext
17467 if { (ac_try="$ac_compile"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_compile") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest.$ac_objext; then
17483 ac_header_compiler=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_header_compiler=no
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17493 echo "${ECHO_T}$ac_header_compiler" >&6; }
17495 # Is the header present?
17496 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17497 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <syslog.h>
17505 _ACEOF
17506 if { (ac_try="$ac_cpp conftest.$ac_ext"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } >/dev/null && {
17519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 }; then
17522 ac_header_preproc=yes
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_header_preproc=no
17530 rm -f conftest.err conftest.$ac_ext
17531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17532 echo "${ECHO_T}$ac_header_preproc" >&6; }
17534 # So? What about this header?
17535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17536 yes:no: )
17537 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17538 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17540 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17541 ac_header_preproc=yes
17543 no:yes:* )
17544 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17549 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17551 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17553 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17555 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17556 ( cat <<\_ASBOX
17557 ## ---------------------------------------- ##
17558 ## Report this to pgsql-bugs@postgresql.org ##
17559 ## ---------------------------------------- ##
17560 _ASBOX
17561 ) | sed "s/^/$as_me: WARNING: /" >&2
17563 esac
17564 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17565 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17566 if test "${ac_cv_header_syslog_h+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569 ac_cv_header_syslog_h=$ac_header_preproc
17571 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17572 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17575 if test $ac_cv_header_syslog_h = yes; then
17577 cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_SYSLOG 1
17579 _ACEOF
17587 { echo "$as_me:$LINENO: checking for optreset" >&5
17588 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17589 if test "${pgac_cv_var_int_optreset+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <unistd.h>
17600 main ()
17602 extern int optreset; optreset = 1;
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625 pgac_cv_var_int_optreset=yes
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 pgac_cv_var_int_optreset=no
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17636 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17637 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17638 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17640 cat >>confdefs.h <<\_ACEOF
17641 #define HAVE_INT_OPTRESET 1
17642 _ACEOF
17648 for ac_func in strtoll strtoq
17650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h. */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define $ac_func innocuous_$ac_func
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char $ac_func (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17671 #ifdef __STDC__
17672 # include <limits.h>
17673 #else
17674 # include <assert.h>
17675 #endif
17677 #undef $ac_func
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17682 #ifdef __cplusplus
17683 extern "C"
17684 #endif
17685 char $ac_func ();
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined __stub_$ac_func || defined __stub___$ac_func
17690 choke me
17691 #endif
17694 main ()
17696 return $ac_func ();
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest$ac_exeext &&
17718 $as_test_x conftest$ac_exeext; then
17719 eval "$as_ac_var=yes"
17720 else
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 eval "$as_ac_var=no"
17727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17728 conftest$ac_exeext conftest.$ac_ext
17730 ac_res=`eval echo '${'$as_ac_var'}'`
17731 { echo "$as_me:$LINENO: result: $ac_res" >&5
17732 echo "${ECHO_T}$ac_res" >&6; }
17733 if test `eval echo '${'$as_ac_var'}'` = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17736 _ACEOF
17737 break
17739 done
17743 for ac_func in strtoull strtouq
17745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h. */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17759 #define $ac_func innocuous_$ac_func
17761 /* System header to define __stub macros and hopefully few prototypes,
17762 which can conflict with char $ac_func (); below.
17763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17764 <limits.h> exists even on freestanding compilers. */
17766 #ifdef __STDC__
17767 # include <limits.h>
17768 #else
17769 # include <assert.h>
17770 #endif
17772 #undef $ac_func
17774 /* Override any GCC internal prototype to avoid an error.
17775 Use char because int might match the return type of a GCC
17776 builtin and then its argument prototype would still apply. */
17777 #ifdef __cplusplus
17778 extern "C"
17779 #endif
17780 char $ac_func ();
17781 /* The GNU C library defines this for functions which it implements
17782 to always fail with ENOSYS. Some functions are actually named
17783 something starting with __ and the normal name is an alias. */
17784 #if defined __stub_$ac_func || defined __stub___$ac_func
17785 choke me
17786 #endif
17789 main ()
17791 return $ac_func ();
17793 return 0;
17795 _ACEOF
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (ac_try="$ac_link"
17798 case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17801 esac
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_link") 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && {
17810 test -z "$ac_c_werror_flag" ||
17811 test ! -s conftest.err
17812 } && test -s conftest$ac_exeext &&
17813 $as_test_x conftest$ac_exeext; then
17814 eval "$as_ac_var=yes"
17815 else
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 eval "$as_ac_var=no"
17822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 conftest$ac_exeext conftest.$ac_ext
17825 ac_res=`eval echo '${'$as_ac_var'}'`
17826 { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829 cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17831 _ACEOF
17832 break
17834 done
17837 # Check for one of atexit() or on_exit()
17839 for ac_func in atexit
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17862 #ifdef __STDC__
17863 # include <limits.h>
17864 #else
17865 # include <assert.h>
17866 #endif
17868 #undef $ac_func
17870 /* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17873 #ifdef __cplusplus
17874 extern "C"
17875 #endif
17876 char $ac_func ();
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17881 choke me
17882 #endif
17885 main ()
17887 return $ac_func ();
17889 return 0;
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest$ac_exeext &&
17909 $as_test_x conftest$ac_exeext; then
17910 eval "$as_ac_var=yes"
17911 else
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 eval "$as_ac_var=no"
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919 conftest$ac_exeext conftest.$ac_ext
17921 ac_res=`eval echo '${'$as_ac_var'}'`
17922 { echo "$as_me:$LINENO: result: $ac_res" >&5
17923 echo "${ECHO_T}$ac_res" >&6; }
17924 if test `eval echo '${'$as_ac_var'}'` = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17927 _ACEOF
17929 else
17931 for ac_func in on_exit
17933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17947 #define $ac_func innocuous_$ac_func
17949 /* System header to define __stub macros and hopefully few prototypes,
17950 which can conflict with char $ac_func (); below.
17951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17952 <limits.h> exists even on freestanding compilers. */
17954 #ifdef __STDC__
17955 # include <limits.h>
17956 #else
17957 # include <assert.h>
17958 #endif
17960 #undef $ac_func
17962 /* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
17965 #ifdef __cplusplus
17966 extern "C"
17967 #endif
17968 char $ac_func ();
17969 /* The GNU C library defines this for functions which it implements
17970 to always fail with ENOSYS. Some functions are actually named
17971 something starting with __ and the normal name is an alias. */
17972 #if defined __stub_$ac_func || defined __stub___$ac_func
17973 choke me
17974 #endif
17977 main ()
17979 return $ac_func ();
17981 return 0;
17983 _ACEOF
17984 rm -f conftest.$ac_objext conftest$ac_exeext
17985 if { (ac_try="$ac_link"
17986 case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_link") 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest$ac_exeext &&
18001 $as_test_x conftest$ac_exeext; then
18002 eval "$as_ac_var=yes"
18003 else
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18007 eval "$as_ac_var=no"
18010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18011 conftest$ac_exeext conftest.$ac_ext
18013 ac_res=`eval echo '${'$as_ac_var'}'`
18014 { echo "$as_me:$LINENO: result: $ac_res" >&5
18015 echo "${ECHO_T}$ac_res" >&6; }
18016 if test `eval echo '${'$as_ac_var'}'` = yes; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18019 _ACEOF
18021 else
18022 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18023 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18024 { (exit 1); exit 1; }; }
18026 done
18029 done
18033 for ac_func in fseeko
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define $ac_func innocuous_$ac_func
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18056 #ifdef __STDC__
18057 # include <limits.h>
18058 #else
18059 # include <assert.h>
18060 #endif
18062 #undef $ac_func
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18067 #ifdef __cplusplus
18068 extern "C"
18069 #endif
18070 char $ac_func ();
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined __stub_$ac_func || defined __stub___$ac_func
18075 choke me
18076 #endif
18079 main ()
18081 return $ac_func ();
18083 return 0;
18085 _ACEOF
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest$ac_exeext &&
18103 $as_test_x conftest$ac_exeext; then
18104 eval "$as_ac_var=yes"
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 eval "$as_ac_var=no"
18112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18113 conftest$ac_exeext conftest.$ac_ext
18115 ac_res=`eval echo '${'$as_ac_var'}'`
18116 { echo "$as_me:$LINENO: result: $ac_res" >&5
18117 echo "${ECHO_T}$ac_res" >&6; }
18118 if test `eval echo '${'$as_ac_var'}'` = yes; then
18119 cat >>confdefs.h <<_ACEOF
18120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18121 _ACEOF
18123 else
18124 case " $LIBOBJS " in
18125 *" $ac_func.$ac_objext "* ) ;;
18126 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18128 esac
18131 done
18134 case $host_os in
18135 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18136 bsdi*|netbsd*)
18138 cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_FSEEKO 1
18140 _ACEOF
18142 ac_cv_func_fseeko=yes;;
18144 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18145 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18146 if test "${ac_cv_sys_largefile_source+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 while :; do
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <sys/types.h> /* for off_t */
18157 #include <stdio.h>
18159 main ()
18161 int (*fp) (FILE *, off_t, int) = fseeko;
18162 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18164 return 0;
18166 _ACEOF
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext &&
18184 $as_test_x conftest$ac_exeext; then
18185 ac_cv_sys_largefile_source=no; break
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18194 conftest$ac_exeext conftest.$ac_ext
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 #define _LARGEFILE_SOURCE 1
18202 #include <sys/types.h> /* for off_t */
18203 #include <stdio.h>
18205 main ()
18207 int (*fp) (FILE *, off_t, int) = fseeko;
18208 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18210 return 0;
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext &&
18230 $as_test_x conftest$ac_exeext; then
18231 ac_cv_sys_largefile_source=1; break
18232 else
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18240 conftest$ac_exeext conftest.$ac_ext
18241 ac_cv_sys_largefile_source=unknown
18242 break
18243 done
18245 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18246 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18247 case $ac_cv_sys_largefile_source in #(
18248 no | unknown) ;;
18250 cat >>confdefs.h <<_ACEOF
18251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18252 _ACEOF
18254 esac
18255 rm -f conftest*
18257 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18258 # in glibc 2.1.3, but that breaks too many other things.
18259 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18260 if test $ac_cv_sys_largefile_source != unknown; then
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_FSEEKO 1
18264 _ACEOF
18268 esac
18272 # Pthreads
18274 # For each platform, we need to know about any special compile and link
18275 # libraries, and whether the normal C function names are thread-safe.
18276 # See the comment at the top of src/port/thread.c for more information.
18277 # WIN32 doesn't need the pthread tests; it always uses threads
18278 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18282 ac_ext=c
18283 ac_cpp='$CPP $CPPFLAGS'
18284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18288 acx_pthread_ok=no
18290 # We used to check for pthread.h first, but this fails if pthread.h
18291 # requires special compiler flags (e.g. on True64 or Sequent).
18292 # It gets checked for in the link test anyway.
18294 # First of all, check if the user has set any of the PTHREAD_LIBS,
18295 # etcetera environment variables, and if threads linking works using
18296 # them:
18297 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18298 save_CFLAGS="$CFLAGS"
18299 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18300 save_LIBS="$LIBS"
18301 LIBS="$PTHREAD_LIBS $LIBS"
18302 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18303 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char pthread_join ();
18319 main ()
18321 return pthread_join ();
18323 return 0;
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
18344 acx_pthread_ok=yes
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18354 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18355 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18356 if test x"$acx_pthread_ok" = xno; then
18357 PTHREAD_LIBS=""
18358 PTHREAD_CFLAGS=""
18360 LIBS="$save_LIBS"
18361 CFLAGS="$save_CFLAGS"
18364 # We must check for the threads library under a number of different
18365 # names; the ordering is very important because some systems
18366 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18367 # libraries is broken (non-POSIX).
18369 # Create a list of thread flags to try. Items starting with a "-" are
18370 # C compiler flags, and other items are library names, except for "none"
18371 # which indicates that we try without any flags at all, and "pthread-config"
18372 # which is a program returning the flags for the Pth emulation library.
18374 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18376 # The ordering *is* (sometimes) important. Some notes on the
18377 # individual items follow:
18379 # pthreads: AIX (must check this before -lpthread)
18380 # none: in case threads are in libc; should be tried before -Kthread and
18381 # other compiler flags to prevent continual compiler warnings
18382 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18383 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18384 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18385 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18386 # -pthreads: Solaris/gcc
18387 # -mthreads: Mingw32/gcc, Lynx/gcc
18388 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18389 # doesn't hurt to check since this sometimes defines pthreads too;
18390 # also defines -D_REENTRANT)
18391 # pthread: Linux, etcetera
18392 # --thread-safe: KAI C++
18393 # pthread-config: use pthread-config program (for GNU Pth library)
18395 case "${host_cpu}-${host_os}" in
18396 *solaris*)
18398 # On Solaris (at least, for some versions), libc contains stubbed
18399 # (non-functional) versions of the pthreads routines, so link-based
18400 # tests will erroneously succeed. (We need to link with -pthread or
18401 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18402 # a function called by this macro, so we could check for that, but
18403 # who knows whether they'll stub that too in a future libc.) So,
18404 # we'll just look for -pthreads and -lpthread first:
18406 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18408 esac
18410 if test x"$acx_pthread_ok" = xno; then
18411 for flag in $acx_pthread_flags; do
18413 tryPTHREAD_CFLAGS=""
18414 tryPTHREAD_LIBS=""
18415 case $flag in
18416 none)
18417 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18418 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18422 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18423 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18424 tryPTHREAD_CFLAGS="$flag"
18427 pthread-config)
18428 # skip this if we already have flags defined, for PostgreSQL
18429 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18430 # Extract the first word of "pthread-config", so it can be a program name with args.
18431 set dummy pthread-config; ac_word=$2
18432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18434 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437 if test -n "$acx_pthread_config"; then
18438 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18439 else
18440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18441 for as_dir in $PATH
18443 IFS=$as_save_IFS
18444 test -z "$as_dir" && as_dir=.
18445 for ac_exec_ext in '' $ac_executable_extensions; do
18446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18447 ac_cv_prog_acx_pthread_config="yes"
18448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18449 break 2
18451 done
18452 done
18453 IFS=$as_save_IFS
18455 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18458 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18459 if test -n "$acx_pthread_config"; then
18460 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18461 echo "${ECHO_T}$acx_pthread_config" >&6; }
18462 else
18463 { echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6; }
18468 if test x"$acx_pthread_config" = xno; then continue; fi
18469 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18470 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18474 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18475 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18476 tryPTHREAD_LIBS="-l$flag"
18478 esac
18480 save_LIBS="$LIBS"
18481 save_CFLAGS="$CFLAGS"
18482 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18483 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18485 # Check for various functions. We must include pthread.h,
18486 # since some functions may be macros. (On the Sequent, we
18487 # need a special flag -Kthread to make this header compile.)
18488 # We check for pthread_join because it is in -lpthread on IRIX
18489 # while pthread_create is in libc. We check for pthread_attr_init
18490 # due to DEC craziness with -lpthreads. We check for
18491 # pthread_cleanup_push because it is one of the few pthread
18492 # functions on Solaris that doesn't have a non-functional libc stub.
18493 # We try pthread_create on general principles.
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 #include <pthread.h>
18502 main ()
18504 pthread_t th; pthread_join(th, 0);
18505 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18506 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18508 return 0;
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest$ac_exeext &&
18528 $as_test_x conftest$ac_exeext; then
18529 acx_pthread_ok=yes
18530 else
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 acx_pthread_ok=no
18537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18538 conftest$ac_exeext conftest.$ac_ext
18540 if test "x$acx_pthread_ok" = xyes; then
18541 # Don't use options that are ignored by the compiler.
18542 # We find them by checking stderror.
18543 cat >conftest.$ac_ext <<_ACEOF
18545 main (int argc, char **argv)
18547 (void) argc;
18548 (void) argv;
18549 return 0;
18551 _ACEOF
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18554 # we continue with more flags because Linux needs -lpthread
18555 # for libpq builds on PostgreSQL. The test above only
18556 # tests for building binaries, not shared libraries.
18557 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18558 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18559 else acx_pthread_ok=no
18563 LIBS="$save_LIBS"
18564 CFLAGS="$save_CFLAGS"
18566 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18567 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18568 done
18571 # Various other checks:
18572 if test "x$acx_pthread_ok" = xyes; then
18573 save_LIBS="$LIBS"
18574 LIBS="$PTHREAD_LIBS $LIBS"
18575 save_CFLAGS="$CFLAGS"
18576 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18578 # Detect AIX lossage: threads are created detached by default
18579 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18580 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18581 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <pthread.h>
18590 main ()
18592 int attr=PTHREAD_CREATE_JOINABLE;
18594 return 0;
18596 _ACEOF
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest$ac_exeext &&
18614 $as_test_x conftest$ac_exeext; then
18615 ok=PTHREAD_CREATE_JOINABLE
18616 else
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ok=unknown
18623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18624 conftest$ac_exeext conftest.$ac_ext
18625 if test x"$ok" = xunknown; then
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 #include <pthread.h>
18634 main ()
18636 int attr=PTHREAD_CREATE_UNDETACHED;
18638 return 0;
18640 _ACEOF
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (ac_try="$ac_link"
18643 case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18646 esac
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_link") 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } && {
18655 test -z "$ac_c_werror_flag" ||
18656 test ! -s conftest.err
18657 } && test -s conftest$ac_exeext &&
18658 $as_test_x conftest$ac_exeext; then
18659 ok=PTHREAD_CREATE_UNDETACHED
18660 else
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ok=unknown
18667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18668 conftest$ac_exeext conftest.$ac_ext
18670 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define PTHREAD_CREATE_JOINABLE $ok
18674 _ACEOF
18677 { echo "$as_me:$LINENO: result: ${ok}" >&5
18678 echo "${ECHO_T}${ok}" >&6; }
18679 if test x"$ok" = xunknown; then
18680 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18681 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18684 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18685 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18686 flag=no
18687 # We always add these in PostgreSQL
18688 # case "${host_cpu}-${host_os}" in
18689 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18690 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18691 # esac
18692 { echo "$as_me:$LINENO: result: ${flag}" >&5
18693 echo "${ECHO_T}${flag}" >&6; }
18694 if test "x$flag" != xno; then
18695 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18698 LIBS="$save_LIBS"
18699 CFLAGS="$save_CFLAGS"
18701 # Supporting cc_r would require a special CC in all places that
18702 # use libpq, and that is ugly, so we don't do it. Users can still
18703 # define their compiler as cc_r to do thread builds of everything.
18704 # More AIX lossage: must compile with cc_r
18705 # Extract the first word of "cc_r", so it can be a program name with args.
18706 set dummy cc_r; ac_word=$2
18707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18709 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 if test -n "$PTHREAD_CC"; then
18713 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18714 else
18715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18716 for as_dir in $PATH
18718 IFS=$as_save_IFS
18719 test -z "$as_dir" && as_dir=.
18720 for ac_exec_ext in '' $ac_executable_extensions; do
18721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18722 ac_cv_prog_PTHREAD_CC="cc_r"
18723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18724 break 2
18726 done
18727 done
18728 IFS=$as_save_IFS
18730 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18733 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18734 if test -n "$PTHREAD_CC"; then
18735 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18736 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18737 else
18738 { echo "$as_me:$LINENO: result: no" >&5
18739 echo "${ECHO_T}no" >&6; }
18743 else
18744 PTHREAD_CC="$CC"
18751 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18752 if test x"$acx_pthread_ok" = xyes; then
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_PTHREAD 1
18756 _ACEOF
18759 else
18760 acx_pthread_ok=no
18763 ac_ext=c
18764 ac_cpp='$CPP $CPPFLAGS'
18765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18769 # set thread flags
18771 # Some platforms use these, so just defineed them. They can't hurt if they
18772 # are not supported.
18773 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18776 # At this point, we don't want to muck with the compiler name for threading.
18777 # Let's see who fails, perhaps AIX. 2004-04-23
18778 if test "$PTHREAD_CC" != "$CC"; then
18779 { { echo "$as_me:$LINENO: error:
18780 PostgreSQL does not support platforms that require a special compiler
18781 for thread safety." >&5
18782 echo "$as_me: error:
18783 PostgreSQL does not support platforms that require a special compiler
18784 for thread safety." >&2;}
18785 { (exit 1); exit 1; }; }
18788 if test "$THREAD_SUPPORT" = no; then
18789 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18790 This platform is known to not support thread-safe programs. For details,
18791 compile and run src/bin/pg_thread_test." >&5
18792 echo "$as_me: error: cannot enable threads on this platform
18793 This platform is known to not support thread-safe programs. For details,
18794 compile and run src/bin/pg_thread_test." >&2;}
18795 { (exit 1); exit 1; }; }
18798 # Check for *_r functions
18799 _CFLAGS="$CFLAGS"
18800 _LIBS="$LIBS"
18801 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18802 LIBS="$LIBS $PTHREAD_LIBS"
18804 if test "$PORTNAME" != "win32"; then
18805 if test "${ac_cv_header_pthread_h+set}" = set; then
18806 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18807 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18808 if test "${ac_cv_header_pthread_h+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18812 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18813 else
18814 # Is the header compilable?
18815 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18816 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 $ac_includes_default
18824 #include <pthread.h>
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_compile") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.$ac_objext; then
18843 ac_header_compiler=yes
18844 else
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_header_compiler=no
18851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18853 echo "${ECHO_T}$ac_header_compiler" >&6; }
18855 # Is the header present?
18856 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
18857 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #include <pthread.h>
18865 _ACEOF
18866 if { (ac_try="$ac_cpp conftest.$ac_ext"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } >/dev/null && {
18879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18880 test ! -s conftest.err
18881 }; then
18882 ac_header_preproc=yes
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_header_preproc=no
18890 rm -f conftest.err conftest.$ac_ext
18891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18892 echo "${ECHO_T}$ac_header_preproc" >&6; }
18894 # So? What about this header?
18895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18896 yes:no: )
18897 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18898 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18900 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18901 ac_header_preproc=yes
18903 no:yes:* )
18904 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18905 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18906 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
18907 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
18908 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18909 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
18911 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18913 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18915 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18916 ( cat <<\_ASBOX
18917 ## ---------------------------------------- ##
18918 ## Report this to pgsql-bugs@postgresql.org ##
18919 ## ---------------------------------------- ##
18920 _ASBOX
18921 ) | sed "s/^/$as_me: WARNING: /" >&2
18923 esac
18924 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18925 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18926 if test "${ac_cv_header_pthread_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929 ac_cv_header_pthread_h=$ac_header_preproc
18931 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18932 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18935 if test $ac_cv_header_pthread_h = yes; then
18937 else
18938 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18939 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18940 { (exit 1); exit 1; }; }
18949 for ac_func in strerror_r getpwuid_r gethostbyname_r
18951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define $ac_func innocuous_$ac_func
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char $ac_func (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18972 #ifdef __STDC__
18973 # include <limits.h>
18974 #else
18975 # include <assert.h>
18976 #endif
18978 #undef $ac_func
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char $ac_func ();
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_$ac_func || defined __stub___$ac_func
18991 choke me
18992 #endif
18995 main ()
18997 return $ac_func ();
18999 return 0;
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest$ac_exeext &&
19019 $as_test_x conftest$ac_exeext; then
19020 eval "$as_ac_var=yes"
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 eval "$as_ac_var=no"
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029 conftest$ac_exeext conftest.$ac_ext
19031 ac_res=`eval echo '${'$as_ac_var'}'`
19032 { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 if test `eval echo '${'$as_ac_var'}'` = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19037 _ACEOF
19040 done
19043 # Do test here with the proper thread flags
19044 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19045 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19046 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h. */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 #include <sys/types.h>
19056 #include <pwd.h>
19058 main ()
19060 uid_t uid;
19061 struct passwd *space;
19062 char *buf;
19063 size_t bufsize;
19064 struct passwd **result;
19065 getpwuid_r(uid, space, buf, bufsize, result);
19067 return 0;
19069 _ACEOF
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_compile") 2>conftest.er1
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest.$ac_objext; then
19087 pgac_func_getpwuid_r_5arg=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 pgac_func_getpwuid_r_5arg=no
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19098 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19099 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define GETPWUID_R_5ARG
19103 _ACEOF
19107 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19108 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19109 if test "${pgac_func_strerror_r_int+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 #include <string.h>
19120 main ()
19122 #ifndef _AIX
19123 int strerror_r(int, char *, size_t);
19124 #else
19125 /* Older AIX has 'int' for the third argument so we don't test the args. */
19126 int strerror_r();
19127 #endif
19129 return 0;
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest.$ac_objext; then
19149 pgac_func_strerror_r_int=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 pgac_func_strerror_r_int=no
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19160 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19161 if test x"$pgac_func_strerror_r_int" = xyes ; then
19163 cat >>confdefs.h <<\_ACEOF
19164 #define STRERROR_R_INT
19165 _ACEOF
19170 CFLAGS="$_CFLAGS"
19171 LIBS="$_LIBS"
19173 else
19174 # do not use values from template file
19175 PTHREAD_CFLAGS=
19176 PTHREAD_LIBS=
19183 # We can test for libldap_r only after we know PTHREAD_LIBS
19184 if test "$with_ldap" = yes ; then
19185 _LIBS="$LIBS"
19186 if test "$PORTNAME" != "win32"; then
19188 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19189 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19190 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 ac_check_lib_save_LIBS=$LIBS
19194 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19205 #ifdef __cplusplus
19206 extern "C"
19207 #endif
19208 char ldap_bind ();
19210 main ()
19212 return ldap_bind ();
19214 return 0;
19216 _ACEOF
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (ac_try="$ac_link"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_link") 2>conftest.er1
19225 ac_status=$?
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest$ac_exeext &&
19234 $as_test_x conftest$ac_exeext; then
19235 ac_cv_lib_ldap_ldap_bind=yes
19236 else
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19240 ac_cv_lib_ldap_ldap_bind=no
19243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19248 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19249 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_LIBLDAP 1
19252 _ACEOF
19254 LIBS="-lldap $LIBS"
19256 else
19257 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19258 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19259 { (exit 1); exit 1; }; }
19262 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19263 if test "$enable_thread_safety" = yes; then
19264 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19266 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19267 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19268 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271 ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h. */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19280 /* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19283 #ifdef __cplusplus
19284 extern "C"
19285 #endif
19286 char ldap_simple_bind ();
19288 main ()
19290 return ldap_simple_bind ();
19292 return 0;
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_link") 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && {
19309 test -z "$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19311 } && test -s conftest$ac_exeext &&
19312 $as_test_x conftest$ac_exeext; then
19313 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 ac_cv_lib_ldap_r_ldap_simple_bind=no
19321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19322 conftest$ac_exeext conftest.$ac_ext
19323 LIBS=$ac_check_lib_save_LIBS
19325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19326 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19327 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19328 cat >>confdefs.h <<_ACEOF
19329 #define HAVE_LIBLDAP_R 1
19330 _ACEOF
19332 LIBS="-lldap_r $LIBS"
19334 else
19335 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19336 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19337 { (exit 1); exit 1; }; }
19340 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19341 else
19342 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19344 else
19346 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19347 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19348 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351 ac_check_lib_save_LIBS=$LIBS
19352 LIBS="-lwldap32 $LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363 #ifdef __cplusplus
19364 extern "C"
19365 #endif
19366 char ldap_bind ();
19368 main ()
19370 return ldap_bind ();
19372 return 0;
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (ac_try="$ac_link"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_link") 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } && {
19389 test -z "$ac_c_werror_flag" ||
19390 test ! -s conftest.err
19391 } && test -s conftest$ac_exeext &&
19392 $as_test_x conftest$ac_exeext; then
19393 ac_cv_lib_wldap32_ldap_bind=yes
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_cv_lib_wldap32_ldap_bind=no
19401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19405 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19406 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19407 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19408 cat >>confdefs.h <<_ACEOF
19409 #define HAVE_LIBWLDAP32 1
19410 _ACEOF
19412 LIBS="-lwldap32 $LIBS"
19414 else
19415 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19416 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19417 { (exit 1); exit 1; }; }
19420 LDAP_LIBS_FE="-lwldap32"
19421 LDAP_LIBS_BE="-lwldap32"
19423 LIBS="$_LIBS"
19429 # This test makes sure that run tests work at all. Sometimes a shared
19430 # library is found by the linker, but the runtime linker can't find it.
19431 # This check should come after all modifications of compiler or linker
19432 # variables, and before any other run tests.
19433 { echo "$as_me:$LINENO: checking test program" >&5
19434 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19435 if test "$cross_compiling" = yes; then
19436 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19437 echo "${ECHO_T}cross-compiling" >&6; }
19438 else
19439 cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h. */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 int main() { return 0; }
19446 _ACEOF
19447 rm -f conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 { echo "$as_me:$LINENO: result: ok" >&5
19468 echo "${ECHO_T}ok" >&6; }
19469 else
19470 echo "$as_me: program exited with status $ac_status" >&5
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ( exit $ac_status )
19475 { echo "$as_me:$LINENO: result: failed" >&5
19476 echo "${ECHO_T}failed" >&6; }
19477 { { echo "$as_me:$LINENO: error:
19478 Could not execute a simple test program. This may be a problem
19479 related to locating shared libraries. Check the file 'config.log'
19480 for the exact reason." >&5
19481 echo "$as_me: error:
19482 Could not execute a simple test program. This may be a problem
19483 related to locating shared libraries. Check the file 'config.log'
19484 for the exact reason." >&2;}
19485 { (exit 1); exit 1; }; }
19487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 # --------------------
19493 # Run tests below here
19494 # --------------------
19496 # Force use of our snprintf if system's doesn't do arg control
19497 # See comment above at snprintf test for details.
19498 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19499 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19500 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19501 if test "${pgac_cv_printf_arg_control+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504 if test "$cross_compiling" = yes; then
19505 pgac_cv_printf_arg_control=cross
19506 else
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h. */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19513 #include <stdio.h>
19514 #include <string.h>
19516 int main()
19518 char buf[100];
19520 /* can it swap arguments? */
19521 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19522 if (strcmp(buf, "4 3") != 0)
19523 return 1;
19524 return 0;
19526 _ACEOF
19527 rm -f conftest$ac_exeext
19528 if { (ac_try="$ac_link"
19529 case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_link") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 pgac_cv_printf_arg_control=yes
19548 else
19549 echo "$as_me: program exited with status $ac_status" >&5
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ( exit $ac_status )
19554 pgac_cv_printf_arg_control=no
19556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19562 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19563 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19565 if test $pgac_cv_printf_arg_control != yes ; then
19566 pgac_need_repl_snprintf=yes
19572 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19573 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19574 if test "${pgac_cv_type_long_int_64+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577 if test "$cross_compiling" = yes; then
19578 # If cross-compiling, check the size reported by the compiler and
19579 # trust that the arithmetic works.
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19588 main ()
19590 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19591 test_array [0] = 0
19594 return 0;
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_compile") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest.$ac_objext; then
19614 pgac_cv_type_long_int_64=yes
19615 else
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19619 pgac_cv_type_long_int_64=no
19622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623 else
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 typedef long int ac_int64;
19633 * These are globals to discourage the compiler from folding all the
19634 * arithmetic tests down to compile-time constants.
19636 ac_int64 a = 20000001;
19637 ac_int64 b = 40000005;
19639 int does_int64_work()
19641 ac_int64 c,d;
19643 if (sizeof(ac_int64) != 8)
19644 return 0; /* definitely not the right size */
19646 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19647 c = a * b;
19648 d = (c + b) / b;
19649 if (d != a+1)
19650 return 0;
19651 return 1;
19653 main() {
19654 exit(! does_int64_work());
19656 _ACEOF
19657 rm -f conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19668 { (case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_try") 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 pgac_cv_type_long_int_64=yes
19678 else
19679 echo "$as_me: program exited with status $ac_status" >&5
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19683 ( exit $ac_status )
19684 pgac_cv_type_long_int_64=no
19686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19691 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19692 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19694 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19695 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_LONG_INT_64 1
19699 _ACEOF
19704 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19705 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19706 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19707 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 else
19710 if test "$cross_compiling" = yes; then
19711 # If cross-compiling, check the size reported by the compiler and
19712 # trust that the arithmetic works.
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19721 main ()
19723 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19724 test_array [0] = 0
19727 return 0;
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (ac_try="$ac_compile"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_compile") 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest.$ac_objext; then
19747 pgac_cv_type_long_long_int_64=yes
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 pgac_cv_type_long_long_int_64=no
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756 else
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 typedef long long int ac_int64;
19766 * These are globals to discourage the compiler from folding all the
19767 * arithmetic tests down to compile-time constants.
19769 ac_int64 a = 20000001;
19770 ac_int64 b = 40000005;
19772 int does_int64_work()
19774 ac_int64 c,d;
19776 if (sizeof(ac_int64) != 8)
19777 return 0; /* definitely not the right size */
19779 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19780 c = a * b;
19781 d = (c + b) / b;
19782 if (d != a+1)
19783 return 0;
19784 return 1;
19786 main() {
19787 exit(! does_int64_work());
19789 _ACEOF
19790 rm -f conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19801 { (case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_try") 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 pgac_cv_type_long_long_int_64=yes
19811 else
19812 echo "$as_me: program exited with status $ac_status" >&5
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ( exit $ac_status )
19817 pgac_cv_type_long_long_int_64=no
19819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19824 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19825 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19827 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19828 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_LONG_LONG_INT_64 1
19832 _ACEOF
19840 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19841 cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h. */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19848 #define INT64CONST(x) x##LL
19849 long long int foo = INT64CONST(0x1234567890123456);
19852 main ()
19856 return 0;
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19867 ac_status=$?
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest.$ac_objext; then
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_LL_CONSTANTS 1
19879 _ACEOF
19881 else
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19892 # If we found "long int" is 64 bits, assume snprintf handles it. If
19893 # we found we need to use "long long int", better check. We cope with
19894 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
19895 # work, fall back to our own snprintf emulation (which we know uses %lld).
19897 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19898 if test $pgac_need_repl_snprintf = no; then
19899 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19900 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
19901 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904 for pgac_format in '%lld' '%qd' '%I64d'; do
19905 if test "$cross_compiling" = yes; then
19906 pgac_cv_snprintf_long_long_int_format=cross; break
19907 else
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h. */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <stdio.h>
19915 typedef long long int ac_int64;
19916 #define INT64_FORMAT "$pgac_format"
19918 ac_int64 a = 20000001;
19919 ac_int64 b = 40000005;
19921 int does_int64_snprintf_work()
19923 ac_int64 c;
19924 char buf[100];
19926 if (sizeof(ac_int64) != 8)
19927 return 0; /* doesn't look like the right size */
19929 c = a * b;
19930 snprintf(buf, 100, INT64_FORMAT, c);
19931 if (strcmp(buf, "800000140000005") != 0)
19932 return 0; /* either multiply or snprintf is busted */
19933 return 1;
19935 main() {
19936 exit(! does_int64_snprintf_work());
19938 _ACEOF
19939 rm -f conftest$ac_exeext
19940 if { (ac_try="$ac_link"
19941 case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19944 esac
19945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_link") 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
19960 else
19961 echo "$as_me: program exited with status $ac_status" >&5
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19970 done
19973 LONG_LONG_INT_FORMAT=''
19975 case $pgac_cv_snprintf_long_long_int_format in
19976 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19977 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
19978 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19979 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
19980 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
19981 *) { echo "$as_me:$LINENO: result: none" >&5
19982 echo "${ECHO_T}none" >&6; };;
19983 esac
19984 if test "$LONG_LONG_INT_FORMAT" = ""; then
19985 # Force usage of our own snprintf, since system snprintf is broken
19986 pgac_need_repl_snprintf=yes
19987 LONG_LONG_INT_FORMAT='%lld'
19989 else
19990 # Here if we previously decided we needed to use our own snprintf
19991 LONG_LONG_INT_FORMAT='%lld'
19993 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19994 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
19995 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
19996 else
19997 # Here if we are not using 'long long int' at all
19998 INT64_FORMAT='"%ld"'
19999 UINT64_FORMAT='"%lu"'
20003 cat >>confdefs.h <<_ACEOF
20004 #define INT64_FORMAT $INT64_FORMAT
20005 _ACEOF
20009 cat >>confdefs.h <<_ACEOF
20010 #define UINT64_FORMAT $UINT64_FORMAT
20011 _ACEOF
20014 # Now we have checked all the reasons to replace snprintf
20015 if test $pgac_need_repl_snprintf = yes; then
20017 cat >>confdefs.h <<\_ACEOF
20018 #define USE_REPL_SNPRINTF 1
20019 _ACEOF
20021 case " $LIBOBJS " in
20022 *" snprintf.$ac_objext "* ) ;;
20023 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20025 esac
20029 # Need a #define for the size of Datum (unsigned long)
20030 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20031 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20032 if test "${ac_cv_type_unsigned_long+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035 cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h. */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 $ac_includes_default
20042 typedef unsigned long ac__type_new_;
20044 main ()
20046 if ((ac__type_new_ *) 0)
20047 return 0;
20048 if (sizeof (ac__type_new_))
20049 return 0;
20051 return 0;
20053 _ACEOF
20054 rm -f conftest.$ac_objext
20055 if { (ac_try="$ac_compile"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_compile") 2>conftest.er1
20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest.$ac_objext; then
20071 ac_cv_type_unsigned_long=yes
20072 else
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_cv_type_unsigned_long=no
20079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20082 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20084 # The cast to long int works around a bug in the HP C Compiler
20085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20087 # This bug is HP SR number 8606223364.
20088 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20089 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20090 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 if test "$cross_compiling" = yes; then
20094 # Depending upon the size, compute the lo and hi bounds.
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20102 typedef unsigned long ac__type_sizeof_;
20104 main ()
20106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20107 test_array [0] = 0
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_compile") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest.$ac_objext; then
20130 ac_lo=0 ac_mid=0
20131 while :; do
20132 cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h. */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 $ac_includes_default
20139 typedef unsigned long ac__type_sizeof_;
20141 main ()
20143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20144 test_array [0] = 0
20147 return 0;
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20167 ac_hi=$ac_mid; break
20168 else
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ac_lo=`expr $ac_mid + 1`
20173 if test $ac_lo -le $ac_mid; then
20174 ac_lo= ac_hi=
20175 break
20177 ac_mid=`expr 2 '*' $ac_mid + 1`
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 done
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 $ac_includes_default
20193 typedef unsigned long ac__type_sizeof_;
20195 main ()
20197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20198 test_array [0] = 0
20201 return 0;
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (ac_try="$ac_compile"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_compile") 2>conftest.er1
20212 ac_status=$?
20213 grep -v '^ *+' conftest.er1 >conftest.err
20214 rm -f conftest.er1
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest.$ac_objext; then
20221 ac_hi=-1 ac_mid=-1
20222 while :; do
20223 cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h. */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20229 $ac_includes_default
20230 typedef unsigned long ac__type_sizeof_;
20232 main ()
20234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20235 test_array [0] = 0
20238 return 0;
20240 _ACEOF
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.$ac_objext; then
20258 ac_lo=$ac_mid; break
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_hi=`expr '(' $ac_mid ')' - 1`
20264 if test $ac_mid -le $ac_hi; then
20265 ac_lo= ac_hi=
20266 break
20268 ac_mid=`expr 2 '*' $ac_mid`
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 done
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_lo= ac_hi=
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284 # Binary search between lo and hi bounds.
20285 while test "x$ac_lo" != "x$ac_hi"; do
20286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h. */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 $ac_includes_default
20294 typedef unsigned long ac__type_sizeof_;
20296 main ()
20298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20299 test_array [0] = 0
20302 return 0;
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
20322 ac_hi=$ac_mid
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_lo=`expr '(' $ac_mid ')' + 1`
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 done
20332 case $ac_lo in
20333 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20334 '') if test "$ac_cv_type_unsigned_long" = yes; then
20335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20336 See \`config.log' for more details." >&5
20337 echo "$as_me: error: cannot compute sizeof (unsigned long)
20338 See \`config.log' for more details." >&2;}
20339 { (exit 77); exit 77; }; }
20340 else
20341 ac_cv_sizeof_unsigned_long=0
20342 fi ;;
20343 esac
20344 else
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h. */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 $ac_includes_default
20352 typedef unsigned long ac__type_sizeof_;
20353 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20354 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20355 #include <stdio.h>
20356 #include <stdlib.h>
20358 main ()
20361 FILE *f = fopen ("conftest.val", "w");
20362 if (! f)
20363 return 1;
20364 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20366 long int i = longval ();
20367 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20368 return 1;
20369 fprintf (f, "%ld\n", i);
20371 else
20373 unsigned long int i = ulongval ();
20374 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20375 return 1;
20376 fprintf (f, "%lu\n", i);
20378 return ferror (f) || fclose (f) != 0;
20381 return 0;
20383 _ACEOF
20384 rm -f conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20405 else
20406 echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ( exit $ac_status )
20411 if test "$ac_cv_type_unsigned_long" = yes; then
20412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20413 See \`config.log' for more details." >&5
20414 echo "$as_me: error: cannot compute sizeof (unsigned long)
20415 See \`config.log' for more details." >&2;}
20416 { (exit 77); exit 77; }; }
20417 else
20418 ac_cv_sizeof_unsigned_long=0
20421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20423 rm -f conftest.val
20425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20426 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20430 cat >>confdefs.h <<_ACEOF
20431 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20432 _ACEOF
20436 # And one for the size of size_t (enables tweaks for > 32bit address space)
20437 { echo "$as_me:$LINENO: checking for size_t" >&5
20438 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20439 if test "${ac_cv_type_size_t+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 $ac_includes_default
20449 typedef size_t ac__type_new_;
20451 main ()
20453 if ((ac__type_new_ *) 0)
20454 return 0;
20455 if (sizeof (ac__type_new_))
20456 return 0;
20458 return 0;
20460 _ACEOF
20461 rm -f conftest.$ac_objext
20462 if { (ac_try="$ac_compile"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_cv_type_size_t=yes
20479 else
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_cv_type_size_t=no
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20488 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20489 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20491 # The cast to long int works around a bug in the HP C Compiler
20492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20494 # This bug is HP SR number 8606223364.
20495 { echo "$as_me:$LINENO: checking size of size_t" >&5
20496 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20497 if test "${ac_cv_sizeof_size_t+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 else
20500 if test "$cross_compiling" = yes; then
20501 # Depending upon the size, compute the lo and hi bounds.
20502 cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h. */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20508 $ac_includes_default
20509 typedef size_t ac__type_sizeof_;
20511 main ()
20513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20514 test_array [0] = 0
20517 return 0;
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } && {
20534 test -z "$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 } && test -s conftest.$ac_objext; then
20537 ac_lo=0 ac_mid=0
20538 while :; do
20539 cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h. */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545 $ac_includes_default
20546 typedef size_t ac__type_sizeof_;
20548 main ()
20550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20551 test_array [0] = 0
20554 return 0;
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 ac_hi=$ac_mid; break
20575 else
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ac_lo=`expr $ac_mid + 1`
20580 if test $ac_lo -le $ac_mid; then
20581 ac_lo= ac_hi=
20582 break
20584 ac_mid=`expr 2 '*' $ac_mid + 1`
20587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588 done
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h. */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 $ac_includes_default
20600 typedef size_t ac__type_sizeof_;
20602 main ()
20604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20605 test_array [0] = 0
20608 return 0;
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (ac_try="$ac_compile"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_compile") 2>conftest.er1
20619 ac_status=$?
20620 grep -v '^ *+' conftest.er1 >conftest.err
20621 rm -f conftest.er1
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && {
20625 test -z "$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 } && test -s conftest.$ac_objext; then
20628 ac_hi=-1 ac_mid=-1
20629 while :; do
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h. */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 $ac_includes_default
20637 typedef size_t ac__type_sizeof_;
20639 main ()
20641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20642 test_array [0] = 0
20645 return 0;
20647 _ACEOF
20648 rm -f conftest.$ac_objext
20649 if { (ac_try="$ac_compile"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653 esac
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_compile") 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && {
20662 test -z "$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20664 } && test -s conftest.$ac_objext; then
20665 ac_lo=$ac_mid; break
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_hi=`expr '(' $ac_mid ')' - 1`
20671 if test $ac_mid -le $ac_hi; then
20672 ac_lo= ac_hi=
20673 break
20675 ac_mid=`expr 2 '*' $ac_mid`
20678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679 done
20680 else
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 ac_lo= ac_hi=
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 # Binary search between lo and hi bounds.
20692 while test "x$ac_lo" != "x$ac_hi"; do
20693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20701 typedef size_t ac__type_sizeof_;
20703 main ()
20705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20706 test_array [0] = 0
20709 return 0;
20711 _ACEOF
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20720 ac_status=$?
20721 grep -v '^ *+' conftest.er1 >conftest.err
20722 rm -f conftest.er1
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } && {
20726 test -z "$ac_c_werror_flag" ||
20727 test ! -s conftest.err
20728 } && test -s conftest.$ac_objext; then
20729 ac_hi=$ac_mid
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ac_lo=`expr '(' $ac_mid ')' + 1`
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 done
20739 case $ac_lo in
20740 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20741 '') if test "$ac_cv_type_size_t" = yes; then
20742 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20743 See \`config.log' for more details." >&5
20744 echo "$as_me: error: cannot compute sizeof (size_t)
20745 See \`config.log' for more details." >&2;}
20746 { (exit 77); exit 77; }; }
20747 else
20748 ac_cv_sizeof_size_t=0
20749 fi ;;
20750 esac
20751 else
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 $ac_includes_default
20759 typedef size_t ac__type_sizeof_;
20760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20762 #include <stdio.h>
20763 #include <stdlib.h>
20765 main ()
20768 FILE *f = fopen ("conftest.val", "w");
20769 if (! f)
20770 return 1;
20771 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20773 long int i = longval ();
20774 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20775 return 1;
20776 fprintf (f, "%ld\n", i);
20778 else
20780 unsigned long int i = ulongval ();
20781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20782 return 1;
20783 fprintf (f, "%lu\n", i);
20785 return ferror (f) || fclose (f) != 0;
20788 return 0;
20790 _ACEOF
20791 rm -f conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_sizeof_size_t=`cat conftest.val`
20812 else
20813 echo "$as_me: program exited with status $ac_status" >&5
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 ( exit $ac_status )
20818 if test "$ac_cv_type_size_t" = yes; then
20819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20820 See \`config.log' for more details." >&5
20821 echo "$as_me: error: cannot compute sizeof (size_t)
20822 See \`config.log' for more details." >&2;}
20823 { (exit 77); exit 77; }; }
20824 else
20825 ac_cv_sizeof_size_t=0
20828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20830 rm -f conftest.val
20832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20833 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20837 cat >>confdefs.h <<_ACEOF
20838 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20839 _ACEOF
20843 # Decide whether float4 is passed by value: user-selectable, enabled by default
20844 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
20845 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
20847 pgac_args="$pgac_args enable_float4_byval"
20849 # Check whether --enable-float4-byval was given.
20850 if test "${enable_float4_byval+set}" = set; then
20851 enableval=$enable_float4_byval;
20852 case $enableval in
20853 yes)
20855 cat >>confdefs.h <<\_ACEOF
20856 #define USE_FLOAT4_BYVAL 1
20857 _ACEOF
20859 float4passbyval=true
20862 float4passbyval=false
20865 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
20866 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
20867 { (exit 1); exit 1; }; }
20869 esac
20871 else
20872 enable_float4_byval=yes
20874 cat >>confdefs.h <<\_ACEOF
20875 #define USE_FLOAT4_BYVAL 1
20876 _ACEOF
20878 float4passbyval=true
20882 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
20883 echo "${ECHO_T}$enable_float4_byval" >&6; }
20885 cat >>confdefs.h <<_ACEOF
20886 #define FLOAT4PASSBYVAL $float4passbyval
20887 _ACEOF
20890 # Decide whether float8 is passed by value.
20891 # Note: this setting also controls int8 and related types such as timestamp.
20892 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
20893 # If not, trying to select it is an error.
20894 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
20895 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
20896 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
20898 pgac_args="$pgac_args enable_float8_byval"
20900 # Check whether --enable-float8-byval was given.
20901 if test "${enable_float8_byval+set}" = set; then
20902 enableval=$enable_float8_byval;
20903 case $enableval in
20904 yes)
20911 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
20912 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
20913 { (exit 1); exit 1; }; }
20915 esac
20917 else
20918 enable_float8_byval=yes
20923 else
20925 pgac_args="$pgac_args enable_float8_byval"
20927 # Check whether --enable-float8-byval was given.
20928 if test "${enable_float8_byval+set}" = set; then
20929 enableval=$enable_float8_byval;
20930 case $enableval in
20931 yes)
20938 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
20939 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
20940 { (exit 1); exit 1; }; }
20942 esac
20944 else
20945 enable_float8_byval=no
20950 if test "$enable_float8_byval" = yes ; then
20951 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
20952 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
20953 { (exit 1); exit 1; }; }
20956 if test "$enable_float8_byval" = yes ; then
20958 cat >>confdefs.h <<\_ACEOF
20959 #define USE_FLOAT8_BYVAL 1
20960 _ACEOF
20962 float8passbyval=true
20963 else
20964 float8passbyval=false
20966 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
20967 echo "${ECHO_T}$enable_float8_byval" >&6; }
20969 cat >>confdefs.h <<_ACEOF
20970 #define FLOAT8PASSBYVAL $float8passbyval
20971 _ACEOF
20974 # Determine memory alignment requirements for the basic C data types.
20976 { echo "$as_me:$LINENO: checking for short" >&5
20977 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20978 if test "${ac_cv_type_short+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 $ac_includes_default
20988 typedef short ac__type_new_;
20990 main ()
20992 if ((ac__type_new_ *) 0)
20993 return 0;
20994 if (sizeof (ac__type_new_))
20995 return 0;
20997 return 0;
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_compile") 2>conftest.er1
21008 ac_status=$?
21009 grep -v '^ *+' conftest.er1 >conftest.err
21010 rm -f conftest.er1
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } && {
21014 test -z "$ac_c_werror_flag" ||
21015 test ! -s conftest.err
21016 } && test -s conftest.$ac_objext; then
21017 ac_cv_type_short=yes
21018 else
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_cv_type_short=no
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21028 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21030 # The cast to long int works around a bug in the HP C Compiler,
21031 # see AC_CHECK_SIZEOF for more information.
21032 { echo "$as_me:$LINENO: checking alignment of short" >&5
21033 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21034 if test "${ac_cv_alignof_short+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037 if test "$cross_compiling" = yes; then
21038 # Depending upon the size, compute the lo and hi bounds.
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h. */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 $ac_includes_default
21046 #ifndef offsetof
21047 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21048 #endif
21049 typedef struct { char x; short y; } ac__type_alignof_;
21051 main ()
21053 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21054 test_array [0] = 0
21057 return 0;
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 ac_lo=0 ac_mid=0
21078 while :; do
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 $ac_includes_default
21086 #ifndef offsetof
21087 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21088 #endif
21089 typedef struct { char x; short y; } ac__type_alignof_;
21091 main ()
21093 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21094 test_array [0] = 0
21097 return 0;
21099 _ACEOF
21100 rm -f conftest.$ac_objext
21101 if { (ac_try="$ac_compile"
21102 case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21105 esac
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_compile") 2>conftest.er1
21108 ac_status=$?
21109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } && {
21114 test -z "$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 } && test -s conftest.$ac_objext; then
21117 ac_hi=$ac_mid; break
21118 else
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_lo=`expr $ac_mid + 1`
21123 if test $ac_lo -le $ac_mid; then
21124 ac_lo= ac_hi=
21125 break
21127 ac_mid=`expr 2 '*' $ac_mid + 1`
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 done
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h. */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 $ac_includes_default
21143 #ifndef offsetof
21144 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21145 #endif
21146 typedef struct { char x; short y; } ac__type_alignof_;
21148 main ()
21150 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21151 test_array [0] = 0
21154 return 0;
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest.$ac_objext; then
21174 ac_hi=-1 ac_mid=-1
21175 while :; do
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 #ifndef offsetof
21184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21185 #endif
21186 typedef struct { char x; short y; } ac__type_alignof_;
21188 main ()
21190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21191 test_array [0] = 0
21194 return 0;
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21202 esac
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_compile") 2>conftest.er1
21205 ac_status=$?
21206 grep -v '^ *+' conftest.er1 >conftest.err
21207 rm -f conftest.er1
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest.$ac_objext; then
21214 ac_lo=$ac_mid; break
21215 else
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_hi=`expr '(' $ac_mid ')' - 1`
21220 if test $ac_mid -le $ac_hi; then
21221 ac_lo= ac_hi=
21222 break
21224 ac_mid=`expr 2 '*' $ac_mid`
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 done
21229 else
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_lo= ac_hi=
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 # Binary search between lo and hi bounds.
21241 while test "x$ac_lo" != "x$ac_hi"; do
21242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h. */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 $ac_includes_default
21250 #ifndef offsetof
21251 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21252 #endif
21253 typedef struct { char x; short y; } ac__type_alignof_;
21255 main ()
21257 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21258 test_array [0] = 0
21261 return 0;
21263 _ACEOF
21264 rm -f conftest.$ac_objext
21265 if { (ac_try="$ac_compile"
21266 case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_compile") 2>conftest.er1
21272 ac_status=$?
21273 grep -v '^ *+' conftest.er1 >conftest.err
21274 rm -f conftest.er1
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } && {
21278 test -z "$ac_c_werror_flag" ||
21279 test ! -s conftest.err
21280 } && test -s conftest.$ac_objext; then
21281 ac_hi=$ac_mid
21282 else
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_lo=`expr '(' $ac_mid ')' + 1`
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 done
21291 case $ac_lo in
21292 ?*) ac_cv_alignof_short=$ac_lo;;
21293 '') if test "$ac_cv_type_short" = yes; then
21294 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21295 See \`config.log' for more details." >&5
21296 echo "$as_me: error: cannot compute alignment of short
21297 See \`config.log' for more details." >&2;}
21298 { (exit 77); exit 77; }; }
21299 else
21300 ac_cv_alignof_short=0
21301 fi ;;
21302 esac
21303 else
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h. */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21311 #ifndef offsetof
21312 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21313 #endif
21314 typedef struct { char x; short y; } ac__type_alignof_;
21315 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21316 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21317 #include <stdio.h>
21318 #include <stdlib.h>
21320 main ()
21323 FILE *f = fopen ("conftest.val", "w");
21324 if (! f)
21325 return 1;
21326 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21328 long int i = longval ();
21329 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21330 return 1;
21331 fprintf (f, "%ld\n", i);
21333 else
21335 unsigned long int i = ulongval ();
21336 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21337 return 1;
21338 fprintf (f, "%lu\n", i);
21340 return ferror (f) || fclose (f) != 0;
21343 return 0;
21345 _ACEOF
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_link") 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357 { (case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_try") 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_alignof_short=`cat conftest.val`
21367 else
21368 echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ( exit $ac_status )
21373 if test "$ac_cv_type_short" = yes; then
21374 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21375 See \`config.log' for more details." >&5
21376 echo "$as_me: error: cannot compute alignment of short
21377 See \`config.log' for more details." >&2;}
21378 { (exit 77); exit 77; }; }
21379 else
21380 ac_cv_alignof_short=0
21383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21385 rm -f conftest.val
21387 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21388 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21392 cat >>confdefs.h <<_ACEOF
21393 #define ALIGNOF_SHORT $ac_cv_alignof_short
21394 _ACEOF
21397 { echo "$as_me:$LINENO: checking for int" >&5
21398 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21399 if test "${ac_cv_type_int+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h. */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 $ac_includes_default
21409 typedef int ac__type_new_;
21411 main ()
21413 if ((ac__type_new_ *) 0)
21414 return 0;
21415 if (sizeof (ac__type_new_))
21416 return 0;
21418 return 0;
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21438 ac_cv_type_int=yes
21439 else
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_cv_type_int=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21449 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21451 # The cast to long int works around a bug in the HP C Compiler,
21452 # see AC_CHECK_SIZEOF for more information.
21453 { echo "$as_me:$LINENO: checking alignment of int" >&5
21454 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21455 if test "${ac_cv_alignof_int+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458 if test "$cross_compiling" = yes; then
21459 # Depending upon the size, compute the lo and hi bounds.
21460 cat >conftest.$ac_ext <<_ACEOF
21461 /* confdefs.h. */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 $ac_includes_default
21467 #ifndef offsetof
21468 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21469 #endif
21470 typedef struct { char x; int y; } ac__type_alignof_;
21472 main ()
21474 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21475 test_array [0] = 0
21478 return 0;
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest.$ac_objext; then
21498 ac_lo=0 ac_mid=0
21499 while :; do
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 $ac_includes_default
21507 #ifndef offsetof
21508 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21509 #endif
21510 typedef struct { char x; int y; } ac__type_alignof_;
21512 main ()
21514 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21515 test_array [0] = 0
21518 return 0;
21520 _ACEOF
21521 rm -f conftest.$ac_objext
21522 if { (ac_try="$ac_compile"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_hi=$ac_mid; break
21539 else
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_lo=`expr $ac_mid + 1`
21544 if test $ac_lo -le $ac_mid; then
21545 ac_lo= ac_hi=
21546 break
21548 ac_mid=`expr 2 '*' $ac_mid + 1`
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 done
21553 else
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 $ac_includes_default
21564 #ifndef offsetof
21565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21566 #endif
21567 typedef struct { char x; int y; } ac__type_alignof_;
21569 main ()
21571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21572 test_array [0] = 0
21575 return 0;
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21595 ac_hi=-1 ac_mid=-1
21596 while :; do
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h. */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 $ac_includes_default
21604 #ifndef offsetof
21605 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21606 #endif
21607 typedef struct { char x; int y; } ac__type_alignof_;
21609 main ()
21611 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21612 test_array [0] = 0
21615 return 0;
21617 _ACEOF
21618 rm -f conftest.$ac_objext
21619 if { (ac_try="$ac_compile"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_compile") 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest.$ac_objext; then
21635 ac_lo=$ac_mid; break
21636 else
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ac_hi=`expr '(' $ac_mid ')' - 1`
21641 if test $ac_mid -le $ac_hi; then
21642 ac_lo= ac_hi=
21643 break
21645 ac_mid=`expr 2 '*' $ac_mid`
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 done
21650 else
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ac_lo= ac_hi=
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 # Binary search between lo and hi bounds.
21662 while test "x$ac_lo" != "x$ac_hi"; do
21663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21664 cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h. */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 $ac_includes_default
21671 #ifndef offsetof
21672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21673 #endif
21674 typedef struct { char x; int y; } ac__type_alignof_;
21676 main ()
21678 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21679 test_array [0] = 0
21682 return 0;
21684 _ACEOF
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21693 ac_status=$?
21694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21702 ac_hi=$ac_mid
21703 else
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ac_lo=`expr '(' $ac_mid ')' + 1`
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 done
21712 case $ac_lo in
21713 ?*) ac_cv_alignof_int=$ac_lo;;
21714 '') if test "$ac_cv_type_int" = yes; then
21715 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21716 See \`config.log' for more details." >&5
21717 echo "$as_me: error: cannot compute alignment of int
21718 See \`config.log' for more details." >&2;}
21719 { (exit 77); exit 77; }; }
21720 else
21721 ac_cv_alignof_int=0
21722 fi ;;
21723 esac
21724 else
21725 cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h. */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21732 #ifndef offsetof
21733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21734 #endif
21735 typedef struct { char x; int y; } ac__type_alignof_;
21736 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21737 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21738 #include <stdio.h>
21739 #include <stdlib.h>
21741 main ()
21744 FILE *f = fopen ("conftest.val", "w");
21745 if (! f)
21746 return 1;
21747 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21749 long int i = longval ();
21750 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21751 return 1;
21752 fprintf (f, "%ld\n", i);
21754 else
21756 unsigned long int i = ulongval ();
21757 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21758 return 1;
21759 fprintf (f, "%lu\n", i);
21761 return ferror (f) || fclose (f) != 0;
21764 return 0;
21766 _ACEOF
21767 rm -f conftest$ac_exeext
21768 if { (ac_try="$ac_link"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_link") 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21778 { (case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_try") 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_cv_alignof_int=`cat conftest.val`
21788 else
21789 echo "$as_me: program exited with status $ac_status" >&5
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 ( exit $ac_status )
21794 if test "$ac_cv_type_int" = yes; then
21795 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21796 See \`config.log' for more details." >&5
21797 echo "$as_me: error: cannot compute alignment of int
21798 See \`config.log' for more details." >&2;}
21799 { (exit 77); exit 77; }; }
21800 else
21801 ac_cv_alignof_int=0
21804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 rm -f conftest.val
21808 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21809 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21813 cat >>confdefs.h <<_ACEOF
21814 #define ALIGNOF_INT $ac_cv_alignof_int
21815 _ACEOF
21818 { echo "$as_me:$LINENO: checking for long" >&5
21819 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21820 if test "${ac_cv_type_long+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 $ac_includes_default
21830 typedef long ac__type_new_;
21832 main ()
21834 if ((ac__type_new_ *) 0)
21835 return 0;
21836 if (sizeof (ac__type_new_))
21837 return 0;
21839 return 0;
21841 _ACEOF
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_type_long=yes
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_cv_type_long=no
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21870 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21872 # The cast to long int works around a bug in the HP C Compiler,
21873 # see AC_CHECK_SIZEOF for more information.
21874 { echo "$as_me:$LINENO: checking alignment of long" >&5
21875 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
21876 if test "${ac_cv_alignof_long+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879 if test "$cross_compiling" = yes; then
21880 # Depending upon the size, compute the lo and hi bounds.
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21888 #ifndef offsetof
21889 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21890 #endif
21891 typedef struct { char x; long y; } ac__type_alignof_;
21893 main ()
21895 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21896 test_array [0] = 0
21899 return 0;
21901 _ACEOF
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_compile") 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest.$ac_objext; then
21919 ac_lo=0 ac_mid=0
21920 while :; do
21921 cat >conftest.$ac_ext <<_ACEOF
21922 /* confdefs.h. */
21923 _ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 $ac_includes_default
21928 #ifndef offsetof
21929 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21930 #endif
21931 typedef struct { char x; long y; } ac__type_alignof_;
21933 main ()
21935 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21936 test_array [0] = 0
21939 return 0;
21941 _ACEOF
21942 rm -f conftest.$ac_objext
21943 if { (ac_try="$ac_compile"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_compile") 2>conftest.er1
21950 ac_status=$?
21951 grep -v '^ *+' conftest.er1 >conftest.err
21952 rm -f conftest.er1
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest.$ac_objext; then
21959 ac_hi=$ac_mid; break
21960 else
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964 ac_lo=`expr $ac_mid + 1`
21965 if test $ac_lo -le $ac_mid; then
21966 ac_lo= ac_hi=
21967 break
21969 ac_mid=`expr 2 '*' $ac_mid + 1`
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 done
21974 else
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h. */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 #ifndef offsetof
21986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21987 #endif
21988 typedef struct { char x; long y; } ac__type_alignof_;
21990 main ()
21992 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21993 test_array [0] = 0
21996 return 0;
21998 _ACEOF
21999 rm -f conftest.$ac_objext
22000 if { (ac_try="$ac_compile"
22001 case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22007 ac_status=$?
22008 grep -v '^ *+' conftest.er1 >conftest.err
22009 rm -f conftest.er1
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.$ac_objext; then
22016 ac_hi=-1 ac_mid=-1
22017 while :; do
22018 cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 $ac_includes_default
22025 #ifndef offsetof
22026 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22027 #endif
22028 typedef struct { char x; long y; } ac__type_alignof_;
22030 main ()
22032 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22033 test_array [0] = 0
22036 return 0;
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_lo=$ac_mid; break
22057 else
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_hi=`expr '(' $ac_mid ')' - 1`
22062 if test $ac_mid -le $ac_hi; then
22063 ac_lo= ac_hi=
22064 break
22066 ac_mid=`expr 2 '*' $ac_mid`
22069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070 done
22071 else
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_lo= ac_hi=
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 # Binary search between lo and hi bounds.
22083 while test "x$ac_lo" != "x$ac_hi"; do
22084 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h. */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 $ac_includes_default
22092 #ifndef offsetof
22093 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22094 #endif
22095 typedef struct { char x; long y; } ac__type_alignof_;
22097 main ()
22099 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22100 test_array [0] = 0
22103 return 0;
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22123 ac_hi=$ac_mid
22124 else
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_lo=`expr '(' $ac_mid ')' + 1`
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 done
22133 case $ac_lo in
22134 ?*) ac_cv_alignof_long=$ac_lo;;
22135 '') if test "$ac_cv_type_long" = yes; then
22136 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22137 See \`config.log' for more details." >&5
22138 echo "$as_me: error: cannot compute alignment of long
22139 See \`config.log' for more details." >&2;}
22140 { (exit 77); exit 77; }; }
22141 else
22142 ac_cv_alignof_long=0
22143 fi ;;
22144 esac
22145 else
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22153 #ifndef offsetof
22154 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22155 #endif
22156 typedef struct { char x; long y; } ac__type_alignof_;
22157 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22158 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22159 #include <stdio.h>
22160 #include <stdlib.h>
22162 main ()
22165 FILE *f = fopen ("conftest.val", "w");
22166 if (! f)
22167 return 1;
22168 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22170 long int i = longval ();
22171 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22172 return 1;
22173 fprintf (f, "%ld\n", i);
22175 else
22177 unsigned long int i = ulongval ();
22178 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22179 return 1;
22180 fprintf (f, "%lu\n", i);
22182 return ferror (f) || fclose (f) != 0;
22185 return 0;
22187 _ACEOF
22188 rm -f conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22199 { (case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_try") 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 ac_cv_alignof_long=`cat conftest.val`
22209 else
22210 echo "$as_me: program exited with status $ac_status" >&5
22211 echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22214 ( exit $ac_status )
22215 if test "$ac_cv_type_long" = yes; then
22216 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22217 See \`config.log' for more details." >&5
22218 echo "$as_me: error: cannot compute alignment of long
22219 See \`config.log' for more details." >&2;}
22220 { (exit 77); exit 77; }; }
22221 else
22222 ac_cv_alignof_long=0
22225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22227 rm -f conftest.val
22229 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22230 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22234 cat >>confdefs.h <<_ACEOF
22235 #define ALIGNOF_LONG $ac_cv_alignof_long
22236 _ACEOF
22239 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22240 { echo "$as_me:$LINENO: checking for long long int" >&5
22241 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22242 if test "${ac_cv_type_long_long_int+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245 cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h. */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 $ac_includes_default
22252 typedef long long int ac__type_new_;
22254 main ()
22256 if ((ac__type_new_ *) 0)
22257 return 0;
22258 if (sizeof (ac__type_new_))
22259 return 0;
22261 return 0;
22263 _ACEOF
22264 rm -f conftest.$ac_objext
22265 if { (ac_try="$ac_compile"
22266 case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_compile") 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest.$ac_objext; then
22281 ac_cv_type_long_long_int=yes
22282 else
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_cv_type_long_long_int=no
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22292 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22294 # The cast to long int works around a bug in the HP C Compiler,
22295 # see AC_CHECK_SIZEOF for more information.
22296 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22297 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22298 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 if test "$cross_compiling" = yes; then
22302 # Depending upon the size, compute the lo and hi bounds.
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h. */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22310 #ifndef offsetof
22311 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22312 #endif
22313 typedef struct { char x; long long int y; } ac__type_alignof_;
22315 main ()
22317 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22318 test_array [0] = 0
22321 return 0;
22323 _ACEOF
22324 rm -f conftest.$ac_objext
22325 if { (ac_try="$ac_compile"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22329 esac
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_compile") 2>conftest.er1
22332 ac_status=$?
22333 grep -v '^ *+' conftest.er1 >conftest.err
22334 rm -f conftest.er1
22335 cat conftest.err >&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest.$ac_objext; then
22341 ac_lo=0 ac_mid=0
22342 while :; do
22343 cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h. */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22350 #ifndef offsetof
22351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22352 #endif
22353 typedef struct { char x; long long int y; } ac__type_alignof_;
22355 main ()
22357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22358 test_array [0] = 0
22361 return 0;
22363 _ACEOF
22364 rm -f conftest.$ac_objext
22365 if { (ac_try="$ac_compile"
22366 case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_compile") 2>conftest.er1
22372 ac_status=$?
22373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && {
22378 test -z "$ac_c_werror_flag" ||
22379 test ! -s conftest.err
22380 } && test -s conftest.$ac_objext; then
22381 ac_hi=$ac_mid; break
22382 else
22383 echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22386 ac_lo=`expr $ac_mid + 1`
22387 if test $ac_lo -le $ac_mid; then
22388 ac_lo= ac_hi=
22389 break
22391 ac_mid=`expr 2 '*' $ac_mid + 1`
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 done
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h. */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22407 #ifndef offsetof
22408 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22409 #endif
22410 typedef struct { char x; long long int y; } ac__type_alignof_;
22412 main ()
22414 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22415 test_array [0] = 0
22418 return 0;
22420 _ACEOF
22421 rm -f conftest.$ac_objext
22422 if { (ac_try="$ac_compile"
22423 case "(($ac_try" in
22424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22426 esac
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428 (eval "$ac_compile") 2>conftest.er1
22429 ac_status=$?
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } && {
22435 test -z "$ac_c_werror_flag" ||
22436 test ! -s conftest.err
22437 } && test -s conftest.$ac_objext; then
22438 ac_hi=-1 ac_mid=-1
22439 while :; do
22440 cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h. */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 $ac_includes_default
22447 #ifndef offsetof
22448 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22449 #endif
22450 typedef struct { char x; long long int y; } ac__type_alignof_;
22452 main ()
22454 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22455 test_array [0] = 0
22458 return 0;
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22466 esac
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_compile") 2>conftest.er1
22469 ac_status=$?
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest.$ac_objext; then
22478 ac_lo=$ac_mid; break
22479 else
22480 echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22483 ac_hi=`expr '(' $ac_mid ')' - 1`
22484 if test $ac_mid -le $ac_hi; then
22485 ac_lo= ac_hi=
22486 break
22488 ac_mid=`expr 2 '*' $ac_mid`
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 done
22493 else
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 ac_lo= ac_hi=
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 # Binary search between lo and hi bounds.
22505 while test "x$ac_lo" != "x$ac_hi"; do
22506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22507 cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h. */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 $ac_includes_default
22514 #ifndef offsetof
22515 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22516 #endif
22517 typedef struct { char x; long long int y; } ac__type_alignof_;
22519 main ()
22521 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22522 test_array [0] = 0
22525 return 0;
22527 _ACEOF
22528 rm -f conftest.$ac_objext
22529 if { (ac_try="$ac_compile"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533 esac
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_compile") 2>conftest.er1
22536 ac_status=$?
22537 grep -v '^ *+' conftest.er1 >conftest.err
22538 rm -f conftest.er1
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest.$ac_objext; then
22545 ac_hi=$ac_mid
22546 else
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ac_lo=`expr '(' $ac_mid ')' + 1`
22553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 done
22555 case $ac_lo in
22556 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22557 '') if test "$ac_cv_type_long_long_int" = yes; then
22558 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22559 See \`config.log' for more details." >&5
22560 echo "$as_me: error: cannot compute alignment of long long int
22561 See \`config.log' for more details." >&2;}
22562 { (exit 77); exit 77; }; }
22563 else
22564 ac_cv_alignof_long_long_int=0
22565 fi ;;
22566 esac
22567 else
22568 cat >conftest.$ac_ext <<_ACEOF
22569 /* confdefs.h. */
22570 _ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574 $ac_includes_default
22575 #ifndef offsetof
22576 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22577 #endif
22578 typedef struct { char x; long long int y; } ac__type_alignof_;
22579 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22580 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22581 #include <stdio.h>
22582 #include <stdlib.h>
22584 main ()
22587 FILE *f = fopen ("conftest.val", "w");
22588 if (! f)
22589 return 1;
22590 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22592 long int i = longval ();
22593 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22594 return 1;
22595 fprintf (f, "%ld\n", i);
22597 else
22599 unsigned long int i = ulongval ();
22600 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22601 return 1;
22602 fprintf (f, "%lu\n", i);
22604 return ferror (f) || fclose (f) != 0;
22607 return 0;
22609 _ACEOF
22610 rm -f conftest$ac_exeext
22611 if { (ac_try="$ac_link"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_link") 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22621 { (case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_try") 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_alignof_long_long_int=`cat conftest.val`
22631 else
22632 echo "$as_me: program exited with status $ac_status" >&5
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ( exit $ac_status )
22637 if test "$ac_cv_type_long_long_int" = yes; then
22638 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22639 See \`config.log' for more details." >&5
22640 echo "$as_me: error: cannot compute alignment of long long int
22641 See \`config.log' for more details." >&2;}
22642 { (exit 77); exit 77; }; }
22643 else
22644 ac_cv_alignof_long_long_int=0
22647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649 rm -f conftest.val
22651 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22652 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22656 cat >>confdefs.h <<_ACEOF
22657 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22658 _ACEOF
22662 { echo "$as_me:$LINENO: checking for double" >&5
22663 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22664 if test "${ac_cv_type_double+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667 cat >conftest.$ac_ext <<_ACEOF
22668 /* confdefs.h. */
22669 _ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 $ac_includes_default
22674 typedef double ac__type_new_;
22676 main ()
22678 if ((ac__type_new_ *) 0)
22679 return 0;
22680 if (sizeof (ac__type_new_))
22681 return 0;
22683 return 0;
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_compile") 2>conftest.er1
22694 ac_status=$?
22695 grep -v '^ *+' conftest.er1 >conftest.err
22696 rm -f conftest.er1
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest.$ac_objext; then
22703 ac_cv_type_double=yes
22704 else
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 ac_cv_type_double=no
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22714 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22716 # The cast to long int works around a bug in the HP C Compiler,
22717 # see AC_CHECK_SIZEOF for more information.
22718 { echo "$as_me:$LINENO: checking alignment of double" >&5
22719 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22720 if test "${ac_cv_alignof_double+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 else
22723 if test "$cross_compiling" = yes; then
22724 # Depending upon the size, compute the lo and hi bounds.
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #ifndef offsetof
22733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22734 #endif
22735 typedef struct { char x; double y; } ac__type_alignof_;
22737 main ()
22739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22740 test_array [0] = 0
22743 return 0;
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_compile") 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest.$ac_objext; then
22763 ac_lo=0 ac_mid=0
22764 while :; do
22765 cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h. */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 $ac_includes_default
22772 #ifndef offsetof
22773 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22774 #endif
22775 typedef struct { char x; double y; } ac__type_alignof_;
22777 main ()
22779 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22780 test_array [0] = 0
22783 return 0;
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22791 esac
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_compile") 2>conftest.er1
22794 ac_status=$?
22795 grep -v '^ *+' conftest.er1 >conftest.err
22796 rm -f conftest.er1
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } && {
22800 test -z "$ac_c_werror_flag" ||
22801 test ! -s conftest.err
22802 } && test -s conftest.$ac_objext; then
22803 ac_hi=$ac_mid; break
22804 else
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 ac_lo=`expr $ac_mid + 1`
22809 if test $ac_lo -le $ac_mid; then
22810 ac_lo= ac_hi=
22811 break
22813 ac_mid=`expr 2 '*' $ac_mid + 1`
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 done
22818 else
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 $ac_includes_default
22829 #ifndef offsetof
22830 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22831 #endif
22832 typedef struct { char x; double y; } ac__type_alignof_;
22834 main ()
22836 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22837 test_array [0] = 0
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_compile") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest.$ac_objext; then
22860 ac_hi=-1 ac_mid=-1
22861 while :; do
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h. */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 $ac_includes_default
22869 #ifndef offsetof
22870 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22871 #endif
22872 typedef struct { char x; double y; } ac__type_alignof_;
22874 main ()
22876 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22877 test_array [0] = 0
22880 return 0;
22882 _ACEOF
22883 rm -f conftest.$ac_objext
22884 if { (ac_try="$ac_compile"
22885 case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22888 esac
22889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890 (eval "$ac_compile") 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest.$ac_objext; then
22900 ac_lo=$ac_mid; break
22901 else
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22905 ac_hi=`expr '(' $ac_mid ')' - 1`
22906 if test $ac_mid -le $ac_hi; then
22907 ac_lo= ac_hi=
22908 break
22910 ac_mid=`expr 2 '*' $ac_mid`
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914 done
22915 else
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22919 ac_lo= ac_hi=
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 # Binary search between lo and hi bounds.
22927 while test "x$ac_lo" != "x$ac_hi"; do
22928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h. */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 $ac_includes_default
22936 #ifndef offsetof
22937 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22938 #endif
22939 typedef struct { char x; double y; } ac__type_alignof_;
22941 main ()
22943 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22944 test_array [0] = 0
22947 return 0;
22949 _ACEOF
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22958 ac_status=$?
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_hi=$ac_mid
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_lo=`expr '(' $ac_mid ')' + 1`
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 done
22977 case $ac_lo in
22978 ?*) ac_cv_alignof_double=$ac_lo;;
22979 '') if test "$ac_cv_type_double" = yes; then
22980 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
22981 See \`config.log' for more details." >&5
22982 echo "$as_me: error: cannot compute alignment of double
22983 See \`config.log' for more details." >&2;}
22984 { (exit 77); exit 77; }; }
22985 else
22986 ac_cv_alignof_double=0
22987 fi ;;
22988 esac
22989 else
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h. */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 $ac_includes_default
22997 #ifndef offsetof
22998 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22999 #endif
23000 typedef struct { char x; double y; } ac__type_alignof_;
23001 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23002 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23003 #include <stdio.h>
23004 #include <stdlib.h>
23006 main ()
23009 FILE *f = fopen ("conftest.val", "w");
23010 if (! f)
23011 return 1;
23012 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23014 long int i = longval ();
23015 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23016 return 1;
23017 fprintf (f, "%ld\n", i);
23019 else
23021 unsigned long int i = ulongval ();
23022 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23023 return 1;
23024 fprintf (f, "%lu\n", i);
23026 return ferror (f) || fclose (f) != 0;
23029 return 0;
23031 _ACEOF
23032 rm -f conftest$ac_exeext
23033 if { (ac_try="$ac_link"
23034 case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_link") 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23043 { (case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_try") 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_alignof_double=`cat conftest.val`
23053 else
23054 echo "$as_me: program exited with status $ac_status" >&5
23055 echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23058 ( exit $ac_status )
23059 if test "$ac_cv_type_double" = yes; then
23060 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23061 See \`config.log' for more details." >&5
23062 echo "$as_me: error: cannot compute alignment of double
23063 See \`config.log' for more details." >&2;}
23064 { (exit 77); exit 77; }; }
23065 else
23066 ac_cv_alignof_double=0
23069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23071 rm -f conftest.val
23073 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23074 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23078 cat >>confdefs.h <<_ACEOF
23079 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23080 _ACEOF
23084 # Compute maximum alignment of any basic type.
23085 # We assume long's alignment is at least as strong as char, short, or int;
23086 # but we must check long long (if it exists) and double.
23088 MAX_ALIGNOF=$ac_cv_alignof_long
23089 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23090 MAX_ALIGNOF=$ac_cv_alignof_double
23092 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23093 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23096 cat >>confdefs.h <<_ACEOF
23097 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23098 _ACEOF
23102 # Some platforms predefine the types int8, int16, etc. Only check
23103 # a (hopefully) representative subset.
23104 { echo "$as_me:$LINENO: checking for int8" >&5
23105 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23106 if test "${ac_cv_type_int8+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 else
23109 cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h. */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23115 #include <stdio.h>
23116 #ifdef HAVE_SUPPORTDEFS_H
23117 #include <SupportDefs.h>
23118 #endif
23120 typedef int8 ac__type_new_;
23122 main ()
23124 if ((ac__type_new_ *) 0)
23125 return 0;
23126 if (sizeof (ac__type_new_))
23127 return 0;
23129 return 0;
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23140 ac_status=$?
23141 grep -v '^ *+' conftest.er1 >conftest.err
23142 rm -f conftest.er1
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
23149 ac_cv_type_int8=yes
23150 else
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ac_cv_type_int8=no
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23160 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23161 if test $ac_cv_type_int8 = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define HAVE_INT8 1
23165 _ACEOF
23169 { echo "$as_me:$LINENO: checking for uint8" >&5
23170 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23171 if test "${ac_cv_type_uint8+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174 cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h. */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <stdio.h>
23181 #ifdef HAVE_SUPPORTDEFS_H
23182 #include <SupportDefs.h>
23183 #endif
23185 typedef uint8 ac__type_new_;
23187 main ()
23189 if ((ac__type_new_ *) 0)
23190 return 0;
23191 if (sizeof (ac__type_new_))
23192 return 0;
23194 return 0;
23196 _ACEOF
23197 rm -f conftest.$ac_objext
23198 if { (ac_try="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_compile") 2>conftest.er1
23205 ac_status=$?
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest.$ac_objext; then
23214 ac_cv_type_uint8=yes
23215 else
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 ac_cv_type_uint8=no
23222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23225 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23226 if test $ac_cv_type_uint8 = yes; then
23228 cat >>confdefs.h <<_ACEOF
23229 #define HAVE_UINT8 1
23230 _ACEOF
23234 { echo "$as_me:$LINENO: checking for int64" >&5
23235 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23236 if test "${ac_cv_type_int64+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239 cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h. */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 #include <stdio.h>
23246 #ifdef HAVE_SUPPORTDEFS_H
23247 #include <SupportDefs.h>
23248 #endif
23250 typedef int64 ac__type_new_;
23252 main ()
23254 if ((ac__type_new_ *) 0)
23255 return 0;
23256 if (sizeof (ac__type_new_))
23257 return 0;
23259 return 0;
23261 _ACEOF
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_compile") 2>conftest.er1
23270 ac_status=$?
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest.$ac_objext; then
23279 ac_cv_type_int64=yes
23280 else
23281 echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23284 ac_cv_type_int64=no
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23289 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23290 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23291 if test $ac_cv_type_int64 = yes; then
23293 cat >>confdefs.h <<_ACEOF
23294 #define HAVE_INT64 1
23295 _ACEOF
23299 { echo "$as_me:$LINENO: checking for uint64" >&5
23300 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23301 if test "${ac_cv_type_uint64+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h. */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 #include <stdio.h>
23311 #ifdef HAVE_SUPPORTDEFS_H
23312 #include <SupportDefs.h>
23313 #endif
23315 typedef uint64 ac__type_new_;
23317 main ()
23319 if ((ac__type_new_ *) 0)
23320 return 0;
23321 if (sizeof (ac__type_new_))
23322 return 0;
23324 return 0;
23326 _ACEOF
23327 rm -f conftest.$ac_objext
23328 if { (ac_try="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332 esac
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_type_uint64=yes
23345 else
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_type_uint64=no
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23355 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23356 if test $ac_cv_type_uint64 = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define HAVE_UINT64 1
23360 _ACEOF
23366 # We also check for sig_atomic_t, which *should* be defined per ANSI
23367 # C, but is missing on some old platforms.
23368 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23369 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23370 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 else
23373 cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h. */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <signal.h>
23381 typedef sig_atomic_t ac__type_new_;
23383 main ()
23385 if ((ac__type_new_ *) 0)
23386 return 0;
23387 if (sizeof (ac__type_new_))
23388 return 0;
23390 return 0;
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 ac_cv_type_sig_atomic_t=yes
23411 else
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ac_cv_type_sig_atomic_t=no
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23421 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23422 if test $ac_cv_type_sig_atomic_t = yes; then
23424 cat >>confdefs.h <<_ACEOF
23425 #define HAVE_SIG_ATOMIC_T 1
23426 _ACEOF
23433 # If the user did not disable integer datetimes, check that
23434 # there is a working 64-bit integral type to use.
23435 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23436 test x"$HAVE_LONG_INT_64" = x"no" &&
23437 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23438 test x"$HAVE_INT64" = x"no" ; then
23439 { { echo "$as_me:$LINENO: error:
23440 Integer-based datetime support requires a 64-bit integer type,
23441 but no such type could be found. The --disable-integer-datetimes
23442 configure option can be used to disable integer-based storage
23443 of datetime values." >&5
23444 echo "$as_me: error:
23445 Integer-based datetime support requires a 64-bit integer type,
23446 but no such type could be found. The --disable-integer-datetimes
23447 configure option can be used to disable integer-based storage
23448 of datetime values." >&2;}
23449 { (exit 1); exit 1; }; }
23453 if test "$PORTNAME" != "win32"
23454 then
23455 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23456 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23457 if test "${pgac_cv_func_posix_signals+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 else
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 #include <signal.h>
23469 main ()
23471 struct sigaction act, oact;
23472 sigemptyset(&act.sa_mask);
23473 act.sa_flags = SA_RESTART;
23474 sigaction(0, &act, &oact);
23476 return 0;
23478 _ACEOF
23479 rm -f conftest.$ac_objext conftest$ac_exeext
23480 if { (ac_try="$ac_link"
23481 case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23484 esac
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_link") 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest$ac_exeext &&
23496 $as_test_x conftest$ac_exeext; then
23497 pgac_cv_func_posix_signals=yes
23498 else
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 pgac_cv_func_posix_signals=no
23505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23506 conftest$ac_exeext conftest.$ac_ext
23508 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23509 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23510 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23512 cat >>confdefs.h <<\_ACEOF
23513 #define HAVE_POSIX_SIGNALS
23514 _ACEOF
23517 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23519 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23520 { { echo "$as_me:$LINENO: error:
23521 Thread-safety requires POSIX signals, which are not supported by this
23522 operating system." >&5
23523 echo "$as_me: error:
23524 Thread-safety requires POSIX signals, which are not supported by this
23525 operating system." >&2;}
23526 { (exit 1); exit 1; }; }
23530 if test $ac_cv_func_fseeko = yes; then
23531 # Check whether --enable-largefile was given.
23532 if test "${enable_largefile+set}" = set; then
23533 enableval=$enable_largefile;
23536 if test "$enable_largefile" != no; then
23538 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23539 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23540 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23542 else
23543 ac_cv_sys_largefile_CC=no
23544 if test "$GCC" != yes; then
23545 ac_save_CC=$CC
23546 while :; do
23547 # IRIX 6.2 and later do not support large files by default,
23548 # so use the C compiler's -n32 option if that helps.
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h. */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 #include <sys/types.h>
23556 /* Check that off_t can represent 2**63 - 1 correctly.
23557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23558 since some C++ compilers masquerading as C compilers
23559 incorrectly reject 9223372036854775807. */
23560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23562 && LARGE_OFF_T % 2147483647 == 1)
23563 ? 1 : -1];
23565 main ()
23569 return 0;
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23589 break
23590 else
23591 echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23597 rm -f core conftest.err conftest.$ac_objext
23598 CC="$CC -n32"
23599 rm -f conftest.$ac_objext
23600 if { (ac_try="$ac_compile"
23601 case "(($ac_try" in
23602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603 *) ac_try_echo=$ac_try;;
23604 esac
23605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23606 (eval "$ac_compile") 2>conftest.er1
23607 ac_status=$?
23608 grep -v '^ *+' conftest.er1 >conftest.err
23609 rm -f conftest.er1
23610 cat conftest.err >&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } && {
23613 test -z "$ac_c_werror_flag" ||
23614 test ! -s conftest.err
23615 } && test -s conftest.$ac_objext; then
23616 ac_cv_sys_largefile_CC=' -n32'; break
23617 else
23618 echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23624 rm -f core conftest.err conftest.$ac_objext
23625 break
23626 done
23627 CC=$ac_save_CC
23628 rm -f conftest.$ac_ext
23631 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23632 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23633 if test "$ac_cv_sys_largefile_CC" != no; then
23634 CC=$CC$ac_cv_sys_largefile_CC
23637 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23638 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23639 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23641 else
23642 while :; do
23643 cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h. */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 #include <sys/types.h>
23650 /* Check that off_t can represent 2**63 - 1 correctly.
23651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23652 since some C++ compilers masquerading as C compilers
23653 incorrectly reject 9223372036854775807. */
23654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23656 && LARGE_OFF_T % 2147483647 == 1)
23657 ? 1 : -1];
23659 main ()
23663 return 0;
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23674 ac_status=$?
23675 grep -v '^ *+' conftest.er1 >conftest.err
23676 rm -f conftest.er1
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 ac_cv_sys_file_offset_bits=no; break
23684 else
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692 cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h. */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #define _FILE_OFFSET_BITS 64
23699 #include <sys/types.h>
23700 /* Check that off_t can represent 2**63 - 1 correctly.
23701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23702 since some C++ compilers masquerading as C compilers
23703 incorrectly reject 9223372036854775807. */
23704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23706 && LARGE_OFF_T % 2147483647 == 1)
23707 ? 1 : -1];
23709 main ()
23713 return 0;
23715 _ACEOF
23716 rm -f conftest.$ac_objext
23717 if { (ac_try="$ac_compile"
23718 case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_compile") 2>conftest.er1
23724 ac_status=$?
23725 grep -v '^ *+' conftest.er1 >conftest.err
23726 rm -f conftest.er1
23727 cat conftest.err >&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest.$ac_objext; then
23733 ac_cv_sys_file_offset_bits=64; break
23734 else
23735 echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 ac_cv_sys_file_offset_bits=unknown
23743 break
23744 done
23746 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23747 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23748 case $ac_cv_sys_file_offset_bits in #(
23749 no | unknown) ;;
23751 cat >>confdefs.h <<_ACEOF
23752 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23753 _ACEOF
23755 esac
23756 rm -f conftest*
23757 if test $ac_cv_sys_file_offset_bits = unknown; then
23758 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23759 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23760 if test "${ac_cv_sys_large_files+set}" = set; then
23761 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 else
23763 while :; do
23764 cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h. */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 #include <sys/types.h>
23771 /* Check that off_t can represent 2**63 - 1 correctly.
23772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23773 since some C++ compilers masquerading as C compilers
23774 incorrectly reject 9223372036854775807. */
23775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23777 && LARGE_OFF_T % 2147483647 == 1)
23778 ? 1 : -1];
23780 main ()
23784 return 0;
23786 _ACEOF
23787 rm -f conftest.$ac_objext
23788 if { (ac_try="$ac_compile"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23792 esac
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_compile") 2>conftest.er1
23795 ac_status=$?
23796 grep -v '^ *+' conftest.er1 >conftest.err
23797 rm -f conftest.er1
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } && {
23801 test -z "$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23803 } && test -s conftest.$ac_objext; then
23804 ac_cv_sys_large_files=no; break
23805 else
23806 echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h. */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 #define _LARGE_FILES 1
23820 #include <sys/types.h>
23821 /* Check that off_t can represent 2**63 - 1 correctly.
23822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23823 since some C++ compilers masquerading as C compilers
23824 incorrectly reject 9223372036854775807. */
23825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23827 && LARGE_OFF_T % 2147483647 == 1)
23828 ? 1 : -1];
23830 main ()
23834 return 0;
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23842 esac
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23845 ac_status=$?
23846 grep -v '^ *+' conftest.er1 >conftest.err
23847 rm -f conftest.er1
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23854 ac_cv_sys_large_files=1; break
23855 else
23856 echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 ac_cv_sys_large_files=unknown
23864 break
23865 done
23867 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23868 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23869 case $ac_cv_sys_large_files in #(
23870 no | unknown) ;;
23872 cat >>confdefs.h <<_ACEOF
23873 #define _LARGE_FILES $ac_cv_sys_large_files
23874 _ACEOF
23876 esac
23877 rm -f conftest*
23883 # Check for largefile support (must be after AC_SYS_LARGEFILE)
23884 { echo "$as_me:$LINENO: checking for off_t" >&5
23885 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23886 if test "${ac_cv_type_off_t+set}" = set; then
23887 echo $ECHO_N "(cached) $ECHO_C" >&6
23888 else
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h. */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 $ac_includes_default
23896 typedef off_t ac__type_new_;
23898 main ()
23900 if ((ac__type_new_ *) 0)
23901 return 0;
23902 if (sizeof (ac__type_new_))
23903 return 0;
23905 return 0;
23907 _ACEOF
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23913 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23916 ac_status=$?
23917 grep -v '^ *+' conftest.er1 >conftest.err
23918 rm -f conftest.er1
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 ac_cv_type_off_t=yes
23926 else
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ac_cv_type_off_t=no
23933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23935 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23936 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23938 # The cast to long int works around a bug in the HP C Compiler
23939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23941 # This bug is HP SR number 8606223364.
23942 { echo "$as_me:$LINENO: checking size of off_t" >&5
23943 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
23944 if test "${ac_cv_sizeof_off_t+set}" = set; then
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947 if test "$cross_compiling" = yes; then
23948 # Depending upon the size, compute the lo and hi bounds.
23949 cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h. */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h. */
23955 $ac_includes_default
23956 typedef off_t ac__type_sizeof_;
23958 main ()
23960 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23961 test_array [0] = 0
23964 return 0;
23966 _ACEOF
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest.$ac_objext; then
23984 ac_lo=0 ac_mid=0
23985 while :; do
23986 cat >conftest.$ac_ext <<_ACEOF
23987 /* confdefs.h. */
23988 _ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h. */
23992 $ac_includes_default
23993 typedef off_t ac__type_sizeof_;
23995 main ()
23997 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23998 test_array [0] = 0
24001 return 0;
24003 _ACEOF
24004 rm -f conftest.$ac_objext
24005 if { (ac_try="$ac_compile"
24006 case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24009 esac
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_compile") 2>conftest.er1
24012 ac_status=$?
24013 grep -v '^ *+' conftest.er1 >conftest.err
24014 rm -f conftest.er1
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest.$ac_objext; then
24021 ac_hi=$ac_mid; break
24022 else
24023 echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24026 ac_lo=`expr $ac_mid + 1`
24027 if test $ac_lo -le $ac_mid; then
24028 ac_lo= ac_hi=
24029 break
24031 ac_mid=`expr 2 '*' $ac_mid + 1`
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 done
24036 else
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24040 cat >conftest.$ac_ext <<_ACEOF
24041 /* confdefs.h. */
24042 _ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h. */
24046 $ac_includes_default
24047 typedef off_t ac__type_sizeof_;
24049 main ()
24051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24052 test_array [0] = 0
24055 return 0;
24057 _ACEOF
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_compile") 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest.$ac_objext; then
24075 ac_hi=-1 ac_mid=-1
24076 while :; do
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h. */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24084 typedef off_t ac__type_sizeof_;
24086 main ()
24088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24089 test_array [0] = 0
24092 return 0;
24094 _ACEOF
24095 rm -f conftest.$ac_objext
24096 if { (ac_try="$ac_compile"
24097 case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24100 esac
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102 (eval "$ac_compile") 2>conftest.er1
24103 ac_status=$?
24104 grep -v '^ *+' conftest.er1 >conftest.err
24105 rm -f conftest.er1
24106 cat conftest.err >&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); } && {
24109 test -z "$ac_c_werror_flag" ||
24110 test ! -s conftest.err
24111 } && test -s conftest.$ac_objext; then
24112 ac_lo=$ac_mid; break
24113 else
24114 echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24117 ac_hi=`expr '(' $ac_mid ')' - 1`
24118 if test $ac_mid -le $ac_hi; then
24119 ac_lo= ac_hi=
24120 break
24122 ac_mid=`expr 2 '*' $ac_mid`
24125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24126 done
24127 else
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ac_lo= ac_hi=
24134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24138 # Binary search between lo and hi bounds.
24139 while test "x$ac_lo" != "x$ac_hi"; do
24140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 typedef off_t ac__type_sizeof_;
24150 main ()
24152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24153 test_array [0] = 0
24156 return 0;
24158 _ACEOF
24159 rm -f conftest.$ac_objext
24160 if { (ac_try="$ac_compile"
24161 case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24164 esac
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_compile") 2>conftest.er1
24167 ac_status=$?
24168 grep -v '^ *+' conftest.er1 >conftest.err
24169 rm -f conftest.er1
24170 cat conftest.err >&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && {
24173 test -z "$ac_c_werror_flag" ||
24174 test ! -s conftest.err
24175 } && test -s conftest.$ac_objext; then
24176 ac_hi=$ac_mid
24177 else
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 ac_lo=`expr '(' $ac_mid ')' + 1`
24184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24185 done
24186 case $ac_lo in
24187 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24188 '') if test "$ac_cv_type_off_t" = yes; then
24189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24190 See \`config.log' for more details." >&5
24191 echo "$as_me: error: cannot compute sizeof (off_t)
24192 See \`config.log' for more details." >&2;}
24193 { (exit 77); exit 77; }; }
24194 else
24195 ac_cv_sizeof_off_t=0
24196 fi ;;
24197 esac
24198 else
24199 cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h. */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 $ac_includes_default
24206 typedef off_t ac__type_sizeof_;
24207 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24208 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24209 #include <stdio.h>
24210 #include <stdlib.h>
24212 main ()
24215 FILE *f = fopen ("conftest.val", "w");
24216 if (! f)
24217 return 1;
24218 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24220 long int i = longval ();
24221 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24222 return 1;
24223 fprintf (f, "%ld\n", i);
24225 else
24227 unsigned long int i = ulongval ();
24228 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24229 return 1;
24230 fprintf (f, "%lu\n", i);
24232 return ferror (f) || fclose (f) != 0;
24235 return 0;
24237 _ACEOF
24238 rm -f conftest$ac_exeext
24239 if { (ac_try="$ac_link"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24243 esac
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245 (eval "$ac_link") 2>&5
24246 ac_status=$?
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24249 { (case "(($ac_try" in
24250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251 *) ac_try_echo=$ac_try;;
24252 esac
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254 (eval "$ac_try") 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258 ac_cv_sizeof_off_t=`cat conftest.val`
24259 else
24260 echo "$as_me: program exited with status $ac_status" >&5
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ( exit $ac_status )
24265 if test "$ac_cv_type_off_t" = yes; then
24266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24267 See \`config.log' for more details." >&5
24268 echo "$as_me: error: cannot compute sizeof (off_t)
24269 See \`config.log' for more details." >&2;}
24270 { (exit 77); exit 77; }; }
24271 else
24272 ac_cv_sizeof_off_t=0
24275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24277 rm -f conftest.val
24279 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24280 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24284 cat >>confdefs.h <<_ACEOF
24285 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24286 _ACEOF
24290 if test "$ac_cv_sizeof_off_t" -lt 8 -o "$enable_segmented_files" = "yes"; then
24292 cat >>confdefs.h <<\_ACEOF
24293 #define USE_SEGMENTED_FILES 1
24294 _ACEOF
24298 # SunOS doesn't handle negative byte comparisons properly with +/- return
24299 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24300 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24301 if test "${ac_cv_func_memcmp_working+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304 if test "$cross_compiling" = yes; then
24305 ac_cv_func_memcmp_working=no
24306 else
24307 cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h. */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24315 main ()
24318 /* Some versions of memcmp are not 8-bit clean. */
24319 char c0 = '\100', c1 = '\200', c2 = '\201';
24320 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24321 return 1;
24323 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24324 or more and with at least one buffer not starting on a 4-byte boundary.
24325 William Lewis provided this test program. */
24327 char foo[21];
24328 char bar[21];
24329 int i;
24330 for (i = 0; i < 4; i++)
24332 char *a = foo + i;
24333 char *b = bar + i;
24334 strcpy (a, "--------01111111");
24335 strcpy (b, "--------10000000");
24336 if (memcmp (a, b, 16) >= 0)
24337 return 1;
24339 return 0;
24343 return 0;
24345 _ACEOF
24346 rm -f conftest$ac_exeext
24347 if { (ac_try="$ac_link"
24348 case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24351 esac
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_link") 2>&5
24354 ac_status=$?
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24357 { (case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24360 esac
24361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24362 (eval "$ac_try") 2>&5
24363 ac_status=$?
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; }; then
24366 ac_cv_func_memcmp_working=yes
24367 else
24368 echo "$as_me: program exited with status $ac_status" >&5
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24372 ( exit $ac_status )
24373 ac_cv_func_memcmp_working=no
24375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24380 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24381 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24382 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24383 *" memcmp.$ac_objext "* ) ;;
24384 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24386 esac
24391 # Select semaphore implementation type.
24392 if test "$PORTNAME" != "win32"; then
24393 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24395 cat >>confdefs.h <<\_ACEOF
24396 #define USE_NAMED_POSIX_SEMAPHORES 1
24397 _ACEOF
24399 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24400 else
24401 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24403 cat >>confdefs.h <<\_ACEOF
24404 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24405 _ACEOF
24407 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24408 else
24410 cat >>confdefs.h <<\_ACEOF
24411 #define USE_SYSV_SEMAPHORES 1
24412 _ACEOF
24414 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24417 else
24419 cat >>confdefs.h <<\_ACEOF
24420 #define USE_WIN32_SEMAPHORES 1
24421 _ACEOF
24423 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24427 # Select shared-memory implementation type.
24428 if test "$PORTNAME" != "win32"; then
24430 cat >>confdefs.h <<\_ACEOF
24431 #define USE_SYSV_SHARED_MEMORY 1
24432 _ACEOF
24434 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24435 else
24437 cat >>confdefs.h <<\_ACEOF
24438 #define USE_WIN32_SHARED_MEMORY 1
24439 _ACEOF
24441 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24444 # If not set in template file, set bytes to use libc memset()
24445 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24446 MEMSET_LOOP_LIMIT=1024
24449 cat >>confdefs.h <<_ACEOF
24450 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24451 _ACEOF
24455 if test "$enable_nls" = yes ; then
24457 { echo "$as_me:$LINENO: checking for library containing gettext" >&5
24458 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
24459 if test "${ac_cv_search_gettext+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24462 ac_func_search_save_LIBS=$LIBS
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h. */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24470 /* Override any GCC internal prototype to avoid an error.
24471 Use char because int might match the return type of a GCC
24472 builtin and then its argument prototype would still apply. */
24473 #ifdef __cplusplus
24474 extern "C"
24475 #endif
24476 char gettext ();
24478 main ()
24480 return gettext ();
24482 return 0;
24484 _ACEOF
24485 for ac_lib in '' intl; do
24486 if test -z "$ac_lib"; then
24487 ac_res="none required"
24488 else
24489 ac_res=-l$ac_lib
24490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (ac_try="$ac_link"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_link") 2>conftest.er1
24500 ac_status=$?
24501 grep -v '^ *+' conftest.er1 >conftest.err
24502 rm -f conftest.er1
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_c_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest$ac_exeext &&
24509 $as_test_x conftest$ac_exeext; then
24510 ac_cv_search_gettext=$ac_res
24511 else
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24519 conftest$ac_exeext
24520 if test "${ac_cv_search_gettext+set}" = set; then
24521 break
24523 done
24524 if test "${ac_cv_search_gettext+set}" = set; then
24526 else
24527 ac_cv_search_gettext=no
24529 rm conftest.$ac_ext
24530 LIBS=$ac_func_search_save_LIBS
24532 { echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
24533 echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
24534 ac_res=$ac_cv_search_gettext
24535 if test "$ac_res" != no; then
24536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24538 else
24539 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24540 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24541 { (exit 1); exit 1; }; }
24544 if test "${ac_cv_header_libintl_h+set}" = set; then
24545 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24546 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24547 if test "${ac_cv_header_libintl_h+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24551 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24552 else
24553 # Is the header compilable?
24554 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24555 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24556 cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h. */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 $ac_includes_default
24563 #include <libintl.h>
24564 _ACEOF
24565 rm -f conftest.$ac_objext
24566 if { (ac_try="$ac_compile"
24567 case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570 esac
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_compile") 2>conftest.er1
24573 ac_status=$?
24574 grep -v '^ *+' conftest.er1 >conftest.err
24575 rm -f conftest.er1
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest.$ac_objext; then
24582 ac_header_compiler=yes
24583 else
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_header_compiler=no
24590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24592 echo "${ECHO_T}$ac_header_compiler" >&6; }
24594 # Is the header present?
24595 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24596 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24597 cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h. */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24603 #include <libintl.h>
24604 _ACEOF
24605 if { (ac_try="$ac_cpp conftest.$ac_ext"
24606 case "(($ac_try" in
24607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608 *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24612 ac_status=$?
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } >/dev/null && {
24618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24620 }; then
24621 ac_header_preproc=yes
24622 else
24623 echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.$ac_ext >&5
24626 ac_header_preproc=no
24629 rm -f conftest.err conftest.$ac_ext
24630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24631 echo "${ECHO_T}$ac_header_preproc" >&6; }
24633 # So? What about this header?
24634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24635 yes:no: )
24636 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24637 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24639 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24640 ac_header_preproc=yes
24642 no:yes:* )
24643 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24644 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24646 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24648 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24649 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24650 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24651 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24652 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24653 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24654 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24655 ( cat <<\_ASBOX
24656 ## ---------------------------------------- ##
24657 ## Report this to pgsql-bugs@postgresql.org ##
24658 ## ---------------------------------------- ##
24659 _ASBOX
24660 ) | sed "s/^/$as_me: WARNING: /" >&2
24662 esac
24663 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24664 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24665 if test "${ac_cv_header_libintl_h+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668 ac_cv_header_libintl_h=$ac_header_preproc
24670 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24671 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24674 if test $ac_cv_header_libintl_h = yes; then
24676 else
24677 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24678 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24679 { (exit 1); exit 1; }; }
24683 for ac_prog in msgfmt
24685 # Extract the first word of "$ac_prog", so it can be a program name with args.
24686 set dummy $ac_prog; ac_word=$2
24687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24689 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692 if test -n "$MSGFMT"; then
24693 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24694 else
24695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24696 for as_dir in $PATH
24698 IFS=$as_save_IFS
24699 test -z "$as_dir" && as_dir=.
24700 for ac_exec_ext in '' $ac_executable_extensions; do
24701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24702 ac_cv_prog_MSGFMT="$ac_prog"
24703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24704 break 2
24706 done
24707 done
24708 IFS=$as_save_IFS
24712 MSGFMT=$ac_cv_prog_MSGFMT
24713 if test -n "$MSGFMT"; then
24714 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24715 echo "${ECHO_T}$MSGFMT" >&6; }
24716 else
24717 { echo "$as_me:$LINENO: result: no" >&5
24718 echo "${ECHO_T}no" >&6; }
24722 test -n "$MSGFMT" && break
24723 done
24725 if test -z "$MSGFMT"; then
24726 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24727 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24728 { (exit 1); exit 1; }; }
24730 for ac_prog in msgmerge
24732 # Extract the first word of "$ac_prog", so it can be a program name with args.
24733 set dummy $ac_prog; ac_word=$2
24734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24736 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739 if test -n "$MSGMERGE"; then
24740 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24741 else
24742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24743 for as_dir in $PATH
24745 IFS=$as_save_IFS
24746 test -z "$as_dir" && as_dir=.
24747 for ac_exec_ext in '' $ac_executable_extensions; do
24748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24749 ac_cv_prog_MSGMERGE="$ac_prog"
24750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24751 break 2
24753 done
24754 done
24755 IFS=$as_save_IFS
24759 MSGMERGE=$ac_cv_prog_MSGMERGE
24760 if test -n "$MSGMERGE"; then
24761 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24762 echo "${ECHO_T}$MSGMERGE" >&6; }
24763 else
24764 { echo "$as_me:$LINENO: result: no" >&5
24765 echo "${ECHO_T}no" >&6; }
24769 test -n "$MSGMERGE" && break
24770 done
24772 for ac_prog in xgettext
24774 # Extract the first word of "$ac_prog", so it can be a program name with args.
24775 set dummy $ac_prog; ac_word=$2
24776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24778 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
24780 else
24781 if test -n "$XGETTEXT"; then
24782 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24783 else
24784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24785 for as_dir in $PATH
24787 IFS=$as_save_IFS
24788 test -z "$as_dir" && as_dir=.
24789 for ac_exec_ext in '' $ac_executable_extensions; do
24790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24791 ac_cv_prog_XGETTEXT="$ac_prog"
24792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24793 break 2
24795 done
24796 done
24797 IFS=$as_save_IFS
24801 XGETTEXT=$ac_cv_prog_XGETTEXT
24802 if test -n "$XGETTEXT"; then
24803 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24804 echo "${ECHO_T}$XGETTEXT" >&6; }
24805 else
24806 { echo "$as_me:$LINENO: result: no" >&5
24807 echo "${ECHO_T}no" >&6; }
24811 test -n "$XGETTEXT" && break
24812 done
24817 # Check for Tcl configuration script tclConfig.sh
24818 if test "$with_tcl" = yes; then
24819 for ac_prog in tclsh tcl
24821 # Extract the first word of "$ac_prog", so it can be a program name with args.
24822 set dummy $ac_prog; ac_word=$2
24823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24825 if test "${ac_cv_path_TCLSH+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828 case $TCLSH in
24829 [\\/]* | ?:[\\/]*)
24830 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
24833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24834 for as_dir in $PATH
24836 IFS=$as_save_IFS
24837 test -z "$as_dir" && as_dir=.
24838 for ac_exec_ext in '' $ac_executable_extensions; do
24839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24840 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
24841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24842 break 2
24844 done
24845 done
24846 IFS=$as_save_IFS
24849 esac
24851 TCLSH=$ac_cv_path_TCLSH
24852 if test -n "$TCLSH"; then
24853 { echo "$as_me:$LINENO: result: $TCLSH" >&5
24854 echo "${ECHO_T}$TCLSH" >&6; }
24855 else
24856 { echo "$as_me:$LINENO: result: no" >&5
24857 echo "${ECHO_T}no" >&6; }
24861 test -n "$TCLSH" && break
24862 done
24864 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24865 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
24866 # Let user override test
24867 if test -z "$TCL_CONFIG_SH"; then
24868 pgac_test_dirs="$with_tclconfig"
24870 set X $pgac_test_dirs; shift
24871 if test $# -eq 0; then
24872 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24873 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24874 { (exit 1); exit 1; }; }
24875 set X `echo 'puts $auto_path' | $TCLSH`; shift
24878 for pgac_dir do
24879 if test -r "$pgac_dir/tclConfig.sh"; then
24880 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
24881 break
24883 done
24886 if test -z "$TCL_CONFIG_SH"; then
24887 { echo "$as_me:$LINENO: result: no" >&5
24888 echo "${ECHO_T}no" >&6; }
24889 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24890 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24891 { (exit 1); exit 1; }; }
24892 else
24893 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24894 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
24899 . "$TCL_CONFIG_SH"
24900 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24901 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24902 eval TCL_LIBS=\"$TCL_LIBS\"
24903 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24904 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24906 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24907 ac_save_CPPFLAGS=$CPPFLAGS
24908 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24909 if test "${ac_cv_header_tcl_h+set}" = set; then
24910 { echo "$as_me:$LINENO: checking for tcl.h" >&5
24911 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
24912 if test "${ac_cv_header_tcl_h+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24916 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
24917 else
24918 # Is the header compilable?
24919 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
24920 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
24921 cat >conftest.$ac_ext <<_ACEOF
24922 /* confdefs.h. */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 $ac_includes_default
24928 #include <tcl.h>
24929 _ACEOF
24930 rm -f conftest.$ac_objext
24931 if { (ac_try="$ac_compile"
24932 case "(($ac_try" in
24933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24935 esac
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_compile") 2>conftest.er1
24938 ac_status=$?
24939 grep -v '^ *+' conftest.er1 >conftest.err
24940 rm -f conftest.er1
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } && {
24944 test -z "$ac_c_werror_flag" ||
24945 test ! -s conftest.err
24946 } && test -s conftest.$ac_objext; then
24947 ac_header_compiler=yes
24948 else
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 ac_header_compiler=no
24955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24957 echo "${ECHO_T}$ac_header_compiler" >&6; }
24959 # Is the header present?
24960 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
24961 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h. */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 #include <tcl.h>
24969 _ACEOF
24970 if { (ac_try="$ac_cpp conftest.$ac_ext"
24971 case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24977 ac_status=$?
24978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } >/dev/null && {
24983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 }; then
24986 ac_header_preproc=yes
24987 else
24988 echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24991 ac_header_preproc=no
24994 rm -f conftest.err conftest.$ac_ext
24995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24996 echo "${ECHO_T}$ac_header_preproc" >&6; }
24998 # So? What about this header?
24999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25000 yes:no: )
25001 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25002 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25003 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25004 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25005 ac_header_preproc=yes
25007 no:yes:* )
25008 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25009 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25011 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25012 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25013 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25014 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25015 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25016 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25017 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25018 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25019 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25020 ( cat <<\_ASBOX
25021 ## ---------------------------------------- ##
25022 ## Report this to pgsql-bugs@postgresql.org ##
25023 ## ---------------------------------------- ##
25024 _ASBOX
25025 ) | sed "s/^/$as_me: WARNING: /" >&2
25027 esac
25028 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25029 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25030 if test "${ac_cv_header_tcl_h+set}" = set; then
25031 echo $ECHO_N "(cached) $ECHO_C" >&6
25032 else
25033 ac_cv_header_tcl_h=$ac_header_preproc
25035 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25036 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25039 if test $ac_cv_header_tcl_h = yes; then
25041 else
25042 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25043 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25044 { (exit 1); exit 1; }; }
25048 CPPFLAGS=$ac_save_CPPFLAGS
25052 # Check for DocBook and tools
25054 for ac_prog in onsgmls nsgmls
25056 # Extract the first word of "$ac_prog", so it can be a program name with args.
25057 set dummy $ac_prog; ac_word=$2
25058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25060 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25062 else
25063 if test -n "$NSGMLS"; then
25064 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25065 else
25066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25067 for as_dir in $PATH
25069 IFS=$as_save_IFS
25070 test -z "$as_dir" && as_dir=.
25071 for ac_exec_ext in '' $ac_executable_extensions; do
25072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25073 ac_cv_prog_NSGMLS="$ac_prog"
25074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25075 break 2
25077 done
25078 done
25079 IFS=$as_save_IFS
25083 NSGMLS=$ac_cv_prog_NSGMLS
25084 if test -n "$NSGMLS"; then
25085 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25086 echo "${ECHO_T}$NSGMLS" >&6; }
25087 else
25088 { echo "$as_me:$LINENO: result: no" >&5
25089 echo "${ECHO_T}no" >&6; }
25093 test -n "$NSGMLS" && break
25094 done
25096 for ac_prog in openjade jade
25098 # Extract the first word of "$ac_prog", so it can be a program name with args.
25099 set dummy $ac_prog; ac_word=$2
25100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25102 if test "${ac_cv_prog_JADE+set}" = set; then
25103 echo $ECHO_N "(cached) $ECHO_C" >&6
25104 else
25105 if test -n "$JADE"; then
25106 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25107 else
25108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25109 for as_dir in $PATH
25111 IFS=$as_save_IFS
25112 test -z "$as_dir" && as_dir=.
25113 for ac_exec_ext in '' $ac_executable_extensions; do
25114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25115 ac_cv_prog_JADE="$ac_prog"
25116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25117 break 2
25119 done
25120 done
25121 IFS=$as_save_IFS
25125 JADE=$ac_cv_prog_JADE
25126 if test -n "$JADE"; then
25127 { echo "$as_me:$LINENO: result: $JADE" >&5
25128 echo "${ECHO_T}$JADE" >&6; }
25129 else
25130 { echo "$as_me:$LINENO: result: no" >&5
25131 echo "${ECHO_T}no" >&6; }
25135 test -n "$JADE" && break
25136 done
25139 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25140 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25141 if test "${pgac_cv_check_docbook+set}" = set; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144 cat >conftest.sgml <<EOF
25145 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25146 <book>
25147 <title>test</title>
25148 <chapter>
25149 <title>random</title>
25150 <sect1>
25151 <title>testsect</title>
25152 <para>text</para>
25153 </sect1>
25154 </chapter>
25155 </book>
25158 pgac_cv_check_docbook=no
25160 if test -n "$NSGMLS"; then
25161 $NSGMLS -s conftest.sgml 1>&5 2>&1
25162 if test $? -eq 0; then
25163 pgac_cv_check_docbook=yes
25166 rm -f conftest.sgml
25168 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25169 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25171 have_docbook=$pgac_cv_check_docbook
25174 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25175 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25176 if test "${pgac_cv_path_stylesheets+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179 if test -n "$DOCBOOKSTYLE"; then
25180 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25181 else
25182 for pgac_prefix in /usr /usr/local /opt; do
25183 for pgac_infix in share lib; do
25184 for pgac_postfix in \
25185 sgml/stylesheets/nwalsh-modular \
25186 sgml/stylesheets/docbook \
25187 sgml/stylesheets/dsssl/docbook \
25188 sgml/docbook-dsssl \
25189 sgml/docbook/dsssl/modular \
25190 sgml/docbook/stylesheet/dsssl/modular \
25191 sgml/docbook/dsssl-stylesheets
25193 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25194 if test -r "$pgac_candidate/html/docbook.dsl" \
25195 && test -r "$pgac_candidate/print/docbook.dsl"
25196 then
25197 pgac_cv_path_stylesheets=$pgac_candidate
25198 break 3
25200 done
25201 done
25202 done
25206 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25208 if test -n "$DOCBOOKSTYLE"; then
25209 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25210 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25211 else
25212 { echo "$as_me:$LINENO: result: no" >&5
25213 echo "${ECHO_T}no" >&6; }
25215 if test -n "$DOCBOOKSTYLE"; then
25216 for ac_prog in collateindex.pl
25218 # Extract the first word of "$ac_prog", so it can be a program name with args.
25219 set dummy $ac_prog; ac_word=$2
25220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25222 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25223 echo $ECHO_N "(cached) $ECHO_C" >&6
25224 else
25225 case $COLLATEINDEX in
25226 [\\/]* | ?:[\\/]*)
25227 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25231 for as_dir in $DOCBOOKSTYLE/bin $PATH
25233 IFS=$as_save_IFS
25234 test -z "$as_dir" && as_dir=.
25235 for ac_exec_ext in '' $ac_executable_extensions; do
25236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25237 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25239 break 2
25241 done
25242 done
25243 IFS=$as_save_IFS
25246 esac
25248 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25249 if test -n "$COLLATEINDEX"; then
25250 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25251 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25252 else
25253 { echo "$as_me:$LINENO: result: no" >&5
25254 echo "${ECHO_T}no" >&6; }
25258 test -n "$COLLATEINDEX" && break
25259 done
25261 else
25262 for ac_prog in collateindex.pl
25264 # Extract the first word of "$ac_prog", so it can be a program name with args.
25265 set dummy $ac_prog; ac_word=$2
25266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25268 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271 case $COLLATEINDEX in
25272 [\\/]* | ?:[\\/]*)
25273 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25277 for as_dir in $PATH
25279 IFS=$as_save_IFS
25280 test -z "$as_dir" && as_dir=.
25281 for ac_exec_ext in '' $ac_executable_extensions; do
25282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25283 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25285 break 2
25287 done
25288 done
25289 IFS=$as_save_IFS
25292 esac
25294 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25295 if test -n "$COLLATEINDEX"; then
25296 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25297 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25298 else
25299 { echo "$as_me:$LINENO: result: no" >&5
25300 echo "${ECHO_T}no" >&6; }
25304 test -n "$COLLATEINDEX" && break
25305 done
25308 for ac_prog in sgmlspl
25310 # Extract the first word of "$ac_prog", so it can be a program name with args.
25311 set dummy $ac_prog; ac_word=$2
25312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25314 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317 if test -n "$SGMLSPL"; then
25318 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25319 else
25320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25321 for as_dir in $PATH
25323 IFS=$as_save_IFS
25324 test -z "$as_dir" && as_dir=.
25325 for ac_exec_ext in '' $ac_executable_extensions; do
25326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25327 ac_cv_prog_SGMLSPL="$ac_prog"
25328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25329 break 2
25331 done
25332 done
25333 IFS=$as_save_IFS
25337 SGMLSPL=$ac_cv_prog_SGMLSPL
25338 if test -n "$SGMLSPL"; then
25339 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25340 echo "${ECHO_T}$SGMLSPL" >&6; }
25341 else
25342 { echo "$as_me:$LINENO: result: no" >&5
25343 echo "${ECHO_T}no" >&6; }
25347 test -n "$SGMLSPL" && break
25348 done
25351 # Thread testing
25353 # We have to run the thread test near the end so we have all our symbols
25354 # defined. Cross compiling throws a warning.
25356 if test "$enable_thread_safety_force" = yes; then
25357 if test "$PORTNAME" != "win32"
25358 then
25359 { echo "$as_me:$LINENO: WARNING:
25360 *** Skipping thread test program. --enable-thread-safety-force was used.
25361 *** Run the program in src/test/thread on the your machine and add proper
25362 *** locking function calls to your applications to guarantee thread safety.
25363 " >&5
25364 echo "$as_me: WARNING:
25365 *** Skipping thread test program. --enable-thread-safety-force was used.
25366 *** Run the program in src/test/thread on the your machine and add proper
25367 *** locking function calls to your applications to guarantee thread safety.
25368 " >&2;}
25369 else
25370 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25371 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25373 elif test "$enable_thread_safety" = yes; then
25374 if test "$PORTNAME" != "win32"
25375 then
25376 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25377 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25379 _CFLAGS="$CFLAGS"
25380 _LIBS="$LIBS"
25381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25382 LIBS="$LIBS $PTHREAD_LIBS"
25383 if test "$cross_compiling" = yes; then
25384 { echo "$as_me:$LINENO: result: maybe" >&5
25385 echo "${ECHO_T}maybe" >&6; }
25386 { echo "$as_me:$LINENO: WARNING:
25387 *** Skipping thread test program because of cross-compile build.
25388 *** Run the program in src/test/thread on the target machine.
25389 " >&5
25390 echo "$as_me: WARNING:
25391 *** Skipping thread test program because of cross-compile build.
25392 *** Run the program in src/test/thread on the target machine.
25393 " >&2;}
25394 else
25395 cat >conftest.$ac_ext <<_ACEOF
25396 /* confdefs.h. */
25397 _ACEOF
25398 cat confdefs.h >>conftest.$ac_ext
25399 cat >>conftest.$ac_ext <<_ACEOF
25400 /* end confdefs.h. */
25401 #include "$srcdir/src/test/thread/thread_test.c"
25402 _ACEOF
25403 rm -f conftest$ac_exeext
25404 if { (ac_try="$ac_link"
25405 case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25408 esac
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_link") 2>&5
25411 ac_status=$?
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25414 { (case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25417 esac
25418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25419 (eval "$ac_try") 2>&5
25420 ac_status=$?
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 { echo "$as_me:$LINENO: result: yes" >&5
25424 echo "${ECHO_T}yes" >&6; }
25425 else
25426 echo "$as_me: program exited with status $ac_status" >&5
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ( exit $ac_status )
25431 { echo "$as_me:$LINENO: result: no" >&5
25432 echo "${ECHO_T}no" >&6; }
25433 { { echo "$as_me:$LINENO: error: thread test program failed
25434 This platform is not thread-safe. Check the file 'config.log'for the
25435 exact reason.
25437 You can use the configure option --enable-thread-safety-force to force
25438 threads to be enabled. But you must then run the program in
25439 src/test/thread and add locking function calls to your applications to
25440 guarantee thread safety." >&5
25441 echo "$as_me: error: thread test program failed
25442 This platform is not thread-safe. Check the file 'config.log'for the
25443 exact reason.
25445 You can use the configure option --enable-thread-safety-force to force
25446 threads to be enabled. But you must then run the program in
25447 src/test/thread and add locking function calls to your applications to
25448 guarantee thread safety." >&2;}
25449 { (exit 1); exit 1; }; }
25451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25455 CFLAGS="$_CFLAGS"
25456 LIBS="$_LIBS"
25457 else
25458 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25459 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25463 # prepare build tree if outside source tree
25464 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25465 # Note 2: /bin/pwd might be better than shell's built-in at getting
25466 # a symlink-free name.
25467 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25468 vpath_build=no
25469 else
25470 vpath_build=yes
25471 if test "$no_create" != yes; then
25472 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25473 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25474 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25475 || { { echo "$as_me:$LINENO: error: failed" >&5
25476 echo "$as_me: error: failed" >&2;}
25477 { (exit 1); exit 1; }; }
25478 { echo "$as_me:$LINENO: result: done" >&5
25479 echo "${ECHO_T}done" >&6; }
25485 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25488 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}"
25491 if test "$PORTNAME" = "win32"; then
25492 ac_config_commands="$ac_config_commands check_win32_symlinks"
25496 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25499 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25502 cat >confcache <<\_ACEOF
25503 # This file is a shell script that caches the results of configure
25504 # tests run on this system so they can be shared between configure
25505 # scripts and configure runs, see configure's option --config-cache.
25506 # It is not useful on other systems. If it contains results you don't
25507 # want to keep, you may remove or edit it.
25509 # config.status only pays attention to the cache file if you give it
25510 # the --recheck option to rerun configure.
25512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25514 # following values.
25516 _ACEOF
25518 # The following way of writing the cache mishandles newlines in values,
25519 # but we know of no workaround that is simple, portable, and efficient.
25520 # So, we kill variables containing newlines.
25521 # Ultrix sh set writes to stderr and can't be redirected directly,
25522 # and sets the high bit in the cache file unless we assign to the vars.
25524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25525 eval ac_val=\$$ac_var
25526 case $ac_val in #(
25527 *${as_nl}*)
25528 case $ac_var in #(
25529 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25530 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25531 esac
25532 case $ac_var in #(
25533 _ | IFS | as_nl) ;; #(
25534 *) $as_unset $ac_var ;;
25535 esac ;;
25536 esac
25537 done
25539 (set) 2>&1 |
25540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25541 *${as_nl}ac_space=\ *)
25542 # `set' does not quote correctly, so add quotes (double-quote
25543 # substitution turns \\\\ into \\, and sed turns \\ into \).
25544 sed -n \
25545 "s/'/'\\\\''/g;
25546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25547 ;; #(
25549 # `set' quotes correctly as required by POSIX, so do not add quotes.
25550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25552 esac |
25553 sort
25555 sed '
25556 /^ac_cv_env_/b end
25557 t clear
25558 :clear
25559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25560 t end
25561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25562 :end' >>confcache
25563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25564 if test -w "$cache_file"; then
25565 test "x$cache_file" != "x/dev/null" &&
25566 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25567 echo "$as_me: updating cache $cache_file" >&6;}
25568 cat confcache >$cache_file
25569 else
25570 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25571 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25574 rm -f confcache
25576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25577 # Let make expand exec_prefix.
25578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25580 DEFS=-DHAVE_CONFIG_H
25582 ac_libobjs=
25583 ac_ltlibobjs=
25584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25585 # 1. Remove the extension, and $U if already installed.
25586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25587 ac_i=`echo "$ac_i" | sed "$ac_script"`
25588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25589 # will be set to the directory where LIBOBJS objects are built.
25590 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25591 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25592 done
25593 LIBOBJS=$ac_libobjs
25595 LTLIBOBJS=$ac_ltlibobjs
25599 : ${CONFIG_STATUS=./config.status}
25600 ac_clean_files_save=$ac_clean_files
25601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25604 cat >$CONFIG_STATUS <<_ACEOF
25605 #! $SHELL
25606 # Generated by $as_me.
25607 # Run this file to recreate the current configuration.
25608 # Compiler output produced by configure, useful for debugging
25609 # configure, is in config.log if it exists.
25611 debug=false
25612 ac_cs_recheck=false
25613 ac_cs_silent=false
25614 SHELL=\${CONFIG_SHELL-$SHELL}
25615 _ACEOF
25617 cat >>$CONFIG_STATUS <<\_ACEOF
25618 ## --------------------- ##
25619 ## M4sh Initialization. ##
25620 ## --------------------- ##
25622 # Be more Bourne compatible
25623 DUALCASE=1; export DUALCASE # for MKS sh
25624 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25625 emulate sh
25626 NULLCMD=:
25627 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25628 # is contrary to our usage. Disable this feature.
25629 alias -g '${1+"$@"}'='"$@"'
25630 setopt NO_GLOB_SUBST
25631 else
25632 case `(set -o) 2>/dev/null` in
25633 *posix*) set -o posix ;;
25634 esac
25641 # PATH needs CR
25642 # Avoid depending upon Character Ranges.
25643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25646 as_cr_digits='0123456789'
25647 as_cr_alnum=$as_cr_Letters$as_cr_digits
25649 # The user is always right.
25650 if test "${PATH_SEPARATOR+set}" != set; then
25651 echo "#! /bin/sh" >conf$$.sh
25652 echo "exit 0" >>conf$$.sh
25653 chmod +x conf$$.sh
25654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25655 PATH_SEPARATOR=';'
25656 else
25657 PATH_SEPARATOR=:
25659 rm -f conf$$.sh
25662 # Support unset when possible.
25663 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25664 as_unset=unset
25665 else
25666 as_unset=false
25670 # IFS
25671 # We need space, tab and new line, in precisely that order. Quoting is
25672 # there to prevent editors from complaining about space-tab.
25673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25674 # splitting by setting IFS to empty value.)
25675 as_nl='
25677 IFS=" "" $as_nl"
25679 # Find who we are. Look in the path if we contain no directory separator.
25680 case $0 in
25681 *[\\/]* ) as_myself=$0 ;;
25682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25683 for as_dir in $PATH
25685 IFS=$as_save_IFS
25686 test -z "$as_dir" && as_dir=.
25687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25688 done
25689 IFS=$as_save_IFS
25692 esac
25693 # We did not find ourselves, most probably we were run as `sh COMMAND'
25694 # in which case we are not to be found in the path.
25695 if test "x$as_myself" = x; then
25696 as_myself=$0
25698 if test ! -f "$as_myself"; then
25699 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25700 { (exit 1); exit 1; }
25703 # Work around bugs in pre-3.0 UWIN ksh.
25704 for as_var in ENV MAIL MAILPATH
25705 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25706 done
25707 PS1='$ '
25708 PS2='> '
25709 PS4='+ '
25711 # NLS nuisances.
25712 for as_var in \
25713 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25714 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25715 LC_TELEPHONE LC_TIME
25717 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25718 eval $as_var=C; export $as_var
25719 else
25720 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25722 done
25724 # Required to use basename.
25725 if expr a : '\(a\)' >/dev/null 2>&1 &&
25726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25727 as_expr=expr
25728 else
25729 as_expr=false
25732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25733 as_basename=basename
25734 else
25735 as_basename=false
25739 # Name of the executable.
25740 as_me=`$as_basename -- "$0" ||
25741 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25742 X"$0" : 'X\(//\)$' \| \
25743 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25744 echo X/"$0" |
25745 sed '/^.*\/\([^/][^/]*\)\/*$/{
25746 s//\1/
25749 /^X\/\(\/\/\)$/{
25750 s//\1/
25753 /^X\/\(\/\).*/{
25754 s//\1/
25757 s/.*/./; q'`
25759 # CDPATH.
25760 $as_unset CDPATH
25764 as_lineno_1=$LINENO
25765 as_lineno_2=$LINENO
25766 test "x$as_lineno_1" != "x$as_lineno_2" &&
25767 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25769 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25770 # uniformly replaced by the line number. The first 'sed' inserts a
25771 # line-number line after each line using $LINENO; the second 'sed'
25772 # does the real work. The second script uses 'N' to pair each
25773 # line-number line with the line containing $LINENO, and appends
25774 # trailing '-' during substitution so that $LINENO is not a special
25775 # case at line end.
25776 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25777 # scripts with optimization help from Paolo Bonzini. Blame Lee
25778 # E. McMahon (1931-1989) for sed's syntax. :-)
25779 sed -n '
25781 /[$]LINENO/=
25782 ' <$as_myself |
25783 sed '
25784 s/[$]LINENO.*/&-/
25785 t lineno
25787 :lineno
25789 :loop
25790 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25791 t loop
25792 s/-\n.*//
25793 ' >$as_me.lineno &&
25794 chmod +x "$as_me.lineno" ||
25795 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25796 { (exit 1); exit 1; }; }
25798 # Don't try to exec as it changes $[0], causing all sort of problems
25799 # (the dirname of $[0] is not the place where we might find the
25800 # original and so on. Autoconf is especially sensitive to this).
25801 . "./$as_me.lineno"
25802 # Exit status is that of the last command.
25803 exit
25807 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25808 as_dirname=dirname
25809 else
25810 as_dirname=false
25813 ECHO_C= ECHO_N= ECHO_T=
25814 case `echo -n x` in
25815 -n*)
25816 case `echo 'x\c'` in
25817 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25818 *) ECHO_C='\c';;
25819 esac;;
25821 ECHO_N='-n';;
25822 esac
25824 if expr a : '\(a\)' >/dev/null 2>&1 &&
25825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25826 as_expr=expr
25827 else
25828 as_expr=false
25831 rm -f conf$$ conf$$.exe conf$$.file
25832 if test -d conf$$.dir; then
25833 rm -f conf$$.dir/conf$$.file
25834 else
25835 rm -f conf$$.dir
25836 mkdir conf$$.dir
25838 echo >conf$$.file
25839 if ln -s conf$$.file conf$$ 2>/dev/null; then
25840 as_ln_s='ln -s'
25841 # ... but there are two gotchas:
25842 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25843 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25844 # In both cases, we have to default to `cp -p'.
25845 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25846 as_ln_s='cp -p'
25847 elif ln conf$$.file conf$$ 2>/dev/null; then
25848 as_ln_s=ln
25849 else
25850 as_ln_s='cp -p'
25852 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25853 rmdir conf$$.dir 2>/dev/null
25855 if mkdir -p . 2>/dev/null; then
25856 as_mkdir_p=:
25857 else
25858 test -d ./-p && rmdir ./-p
25859 as_mkdir_p=false
25862 if test -x / >/dev/null 2>&1; then
25863 as_test_x='test -x'
25864 else
25865 if ls -dL / >/dev/null 2>&1; then
25866 as_ls_L_option=L
25867 else
25868 as_ls_L_option=
25870 as_test_x='
25871 eval sh -c '\''
25872 if test -d "$1"; then
25873 test -d "$1/.";
25874 else
25875 case $1 in
25876 -*)set "./$1";;
25877 esac;
25878 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25879 ???[sx]*):;;*)false;;esac;fi
25880 '\'' sh
25883 as_executable_p=$as_test_x
25885 # Sed expression to map a string onto a valid CPP name.
25886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25888 # Sed expression to map a string onto a valid variable name.
25889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25892 exec 6>&1
25894 # Save the log message, to keep $[0] and so on meaningful, and to
25895 # report actual input values of CONFIG_FILES etc. instead of their
25896 # values after options handling.
25897 ac_log="
25898 This file was extended by PostgreSQL $as_me 8.4devel, which was
25899 generated by GNU Autoconf 2.61. Invocation command line was
25901 CONFIG_FILES = $CONFIG_FILES
25902 CONFIG_HEADERS = $CONFIG_HEADERS
25903 CONFIG_LINKS = $CONFIG_LINKS
25904 CONFIG_COMMANDS = $CONFIG_COMMANDS
25905 $ $0 $@
25907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25910 _ACEOF
25912 cat >>$CONFIG_STATUS <<_ACEOF
25913 # Files that config.status was made for.
25914 config_files="$ac_config_files"
25915 config_headers="$ac_config_headers"
25916 config_links="$ac_config_links"
25917 config_commands="$ac_config_commands"
25919 _ACEOF
25921 cat >>$CONFIG_STATUS <<\_ACEOF
25922 ac_cs_usage="\
25923 \`$as_me' instantiates files from templates according to the
25924 current configuration.
25926 Usage: $0 [OPTIONS] [FILE]...
25928 -h, --help print this help, then exit
25929 -V, --version print version number and configuration settings, then exit
25930 -q, --quiet do not print progress messages
25931 -d, --debug don't remove temporary files
25932 --recheck update $as_me by reconfiguring in the same conditions
25933 --file=FILE[:TEMPLATE]
25934 instantiate the configuration file FILE
25935 --header=FILE[:TEMPLATE]
25936 instantiate the configuration header FILE
25938 Configuration files:
25939 $config_files
25941 Configuration headers:
25942 $config_headers
25944 Configuration links:
25945 $config_links
25947 Configuration commands:
25948 $config_commands
25950 Report bugs to <bug-autoconf@gnu.org>."
25952 _ACEOF
25953 cat >>$CONFIG_STATUS <<_ACEOF
25954 ac_cs_version="\\
25955 PostgreSQL config.status 8.4devel
25956 configured by $0, generated by GNU Autoconf 2.61,
25957 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25959 Copyright (C) 2006 Free Software Foundation, Inc.
25960 This config.status script is free software; the Free Software Foundation
25961 gives unlimited permission to copy, distribute and modify it."
25963 ac_pwd='$ac_pwd'
25964 srcdir='$srcdir'
25965 _ACEOF
25967 cat >>$CONFIG_STATUS <<\_ACEOF
25968 # If no file are specified by the user, then we need to provide default
25969 # value. By we need to know if files were specified by the user.
25970 ac_need_defaults=:
25971 while test $# != 0
25973 case $1 in
25974 --*=*)
25975 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25976 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25977 ac_shift=:
25980 ac_option=$1
25981 ac_optarg=$2
25982 ac_shift=shift
25984 esac
25986 case $ac_option in
25987 # Handling of the options.
25988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25989 ac_cs_recheck=: ;;
25990 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25991 echo "$ac_cs_version"; exit ;;
25992 --debug | --debu | --deb | --de | --d | -d )
25993 debug=: ;;
25994 --file | --fil | --fi | --f )
25995 $ac_shift
25996 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25997 ac_need_defaults=false;;
25998 --header | --heade | --head | --hea )
25999 $ac_shift
26000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26001 ac_need_defaults=false;;
26002 --he | --h)
26003 # Conflict between --help and --header
26004 { echo "$as_me: error: ambiguous option: $1
26005 Try \`$0 --help' for more information." >&2
26006 { (exit 1); exit 1; }; };;
26007 --help | --hel | -h )
26008 echo "$ac_cs_usage"; exit ;;
26009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26010 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26011 ac_cs_silent=: ;;
26013 # This is an error.
26014 -*) { echo "$as_me: error: unrecognized option: $1
26015 Try \`$0 --help' for more information." >&2
26016 { (exit 1); exit 1; }; } ;;
26018 *) ac_config_targets="$ac_config_targets $1"
26019 ac_need_defaults=false ;;
26021 esac
26022 shift
26023 done
26025 ac_configure_extra_args=
26027 if $ac_cs_silent; then
26028 exec 6>/dev/null
26029 ac_configure_extra_args="$ac_configure_extra_args --silent"
26032 _ACEOF
26033 cat >>$CONFIG_STATUS <<_ACEOF
26034 if \$ac_cs_recheck; then
26035 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26036 CONFIG_SHELL=$SHELL
26037 export CONFIG_SHELL
26038 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26041 _ACEOF
26042 cat >>$CONFIG_STATUS <<\_ACEOF
26043 exec 5>>config.log
26045 echo
26046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26047 ## Running $as_me. ##
26048 _ASBOX
26049 echo "$ac_log"
26050 } >&5
26052 _ACEOF
26053 cat >>$CONFIG_STATUS <<_ACEOF
26054 _ACEOF
26056 cat >>$CONFIG_STATUS <<\_ACEOF
26058 # Handling of arguments.
26059 for ac_config_target in $ac_config_targets
26061 case $ac_config_target in
26062 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26063 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26064 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26065 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26066 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26067 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26068 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26069 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26070 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26071 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26072 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26073 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26077 { (exit 1); exit 1; }; };;
26078 esac
26079 done
26082 # If the user did not use the arguments to specify the items to instantiate,
26083 # then the envvar interface is used. Set only those that are not.
26084 # We use the long form for the default assignment because of an extremely
26085 # bizarre bug on SunOS 4.1.3.
26086 if $ac_need_defaults; then
26087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26089 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26093 # Have a temporary directory for convenience. Make it in the build tree
26094 # simply because there is no reason against having it here, and in addition,
26095 # creating and moving files from /tmp can sometimes cause problems.
26096 # Hook for its removal unless debugging.
26097 # Note that there is a small window in which the directory will not be cleaned:
26098 # after its creation but before its name has been assigned to `$tmp'.
26099 $debug ||
26101 tmp=
26102 trap 'exit_status=$?
26103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26105 trap '{ (exit 1); exit 1; }' 1 2 13 15
26107 # Create a (secure) tmp directory for tmp files.
26110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26111 test -n "$tmp" && test -d "$tmp"
26112 } ||
26114 tmp=./conf$$-$RANDOM
26115 (umask 077 && mkdir "$tmp")
26116 } ||
26118 echo "$me: cannot create a temporary directory in ." >&2
26119 { (exit 1); exit 1; }
26123 # Set up the sed scripts for CONFIG_FILES section.
26126 # No need to generate the scripts if there are no CONFIG_FILES.
26127 # This happens for instance when ./config.status config.h
26128 if test -n "$CONFIG_FILES"; then
26130 _ACEOF
26134 ac_delim='%!_!# '
26135 for ac_last_try in false false false false false :; do
26136 cat >conf$$subs.sed <<_ACEOF
26137 SHELL!$SHELL$ac_delim
26138 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26139 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26140 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26141 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26142 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26143 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26144 exec_prefix!$exec_prefix$ac_delim
26145 prefix!$prefix$ac_delim
26146 program_transform_name!$program_transform_name$ac_delim
26147 bindir!$bindir$ac_delim
26148 sbindir!$sbindir$ac_delim
26149 libexecdir!$libexecdir$ac_delim
26150 datarootdir!$datarootdir$ac_delim
26151 datadir!$datadir$ac_delim
26152 sysconfdir!$sysconfdir$ac_delim
26153 sharedstatedir!$sharedstatedir$ac_delim
26154 localstatedir!$localstatedir$ac_delim
26155 includedir!$includedir$ac_delim
26156 oldincludedir!$oldincludedir$ac_delim
26157 docdir!$docdir$ac_delim
26158 infodir!$infodir$ac_delim
26159 htmldir!$htmldir$ac_delim
26160 dvidir!$dvidir$ac_delim
26161 pdfdir!$pdfdir$ac_delim
26162 psdir!$psdir$ac_delim
26163 libdir!$libdir$ac_delim
26164 localedir!$localedir$ac_delim
26165 mandir!$mandir$ac_delim
26166 DEFS!$DEFS$ac_delim
26167 ECHO_C!$ECHO_C$ac_delim
26168 ECHO_N!$ECHO_N$ac_delim
26169 ECHO_T!$ECHO_T$ac_delim
26170 LIBS!$LIBS$ac_delim
26171 build_alias!$build_alias$ac_delim
26172 host_alias!$host_alias$ac_delim
26173 target_alias!$target_alias$ac_delim
26174 configure_args!$configure_args$ac_delim
26175 build!$build$ac_delim
26176 build_cpu!$build_cpu$ac_delim
26177 build_vendor!$build_vendor$ac_delim
26178 build_os!$build_os$ac_delim
26179 host!$host$ac_delim
26180 host_cpu!$host_cpu$ac_delim
26181 host_vendor!$host_vendor$ac_delim
26182 host_os!$host_os$ac_delim
26183 PORTNAME!$PORTNAME$ac_delim
26184 enable_nls!$enable_nls$ac_delim
26185 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26186 default_port!$default_port$ac_delim
26187 enable_shared!$enable_shared$ac_delim
26188 enable_rpath!$enable_rpath$ac_delim
26189 enable_debug!$enable_debug$ac_delim
26190 enable_profiling!$enable_profiling$ac_delim
26191 DTRACE!$DTRACE$ac_delim
26192 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26193 enable_dtrace!$enable_dtrace$ac_delim
26194 CC!$CC$ac_delim
26195 CFLAGS!$CFLAGS$ac_delim
26196 LDFLAGS!$LDFLAGS$ac_delim
26197 CPPFLAGS!$CPPFLAGS$ac_delim
26198 ac_ct_CC!$ac_ct_CC$ac_delim
26199 EXEEXT!$EXEEXT$ac_delim
26200 OBJEXT!$OBJEXT$ac_delim
26201 CPP!$CPP$ac_delim
26202 GCC!$GCC$ac_delim
26203 TAS!$TAS$ac_delim
26204 autodepend!$autodepend$ac_delim
26205 INCLUDES!$INCLUDES$ac_delim
26206 enable_thread_safety!$enable_thread_safety$ac_delim
26207 with_tcl!$with_tcl$ac_delim
26208 with_perl!$with_perl$ac_delim
26209 with_python!$with_python$ac_delim
26210 with_gssapi!$with_gssapi$ac_delim
26211 with_krb5!$with_krb5$ac_delim
26212 krb_srvtab!$krb_srvtab$ac_delim
26213 with_pam!$with_pam$ac_delim
26214 with_ldap!$with_ldap$ac_delim
26215 with_bonjour!$with_bonjour$ac_delim
26216 with_openssl!$with_openssl$ac_delim
26217 with_ossp_uuid!$with_ossp_uuid$ac_delim
26218 XML2_CONFIG!$XML2_CONFIG$ac_delim
26219 with_libxml!$with_libxml$ac_delim
26220 with_libxslt!$with_libxslt$ac_delim
26221 with_system_tzdata!$with_system_tzdata$ac_delim
26222 with_zlib!$with_zlib$ac_delim
26223 GREP!$GREP$ac_delim
26224 EGREP!$EGREP$ac_delim
26225 ELF_SYS!$ELF_SYS$ac_delim
26226 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26227 LD!$LD$ac_delim
26228 with_gnu_ld!$with_gnu_ld$ac_delim
26229 ld_R_works!$ld_R_works$ac_delim
26230 RANLIB!$RANLIB$ac_delim
26231 STRIP!$STRIP$ac_delim
26232 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26233 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26234 _ACEOF
26236 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26237 break
26238 elif $ac_last_try; then
26239 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26241 { (exit 1); exit 1; }; }
26242 else
26243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26245 done
26247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26248 if test -n "$ac_eof"; then
26249 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26250 ac_eof=`expr $ac_eof + 1`
26253 cat >>$CONFIG_STATUS <<_ACEOF
26254 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26256 _ACEOF
26257 sed '
26258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26259 s/^/s,@/; s/!/@,|#_!!_#|/
26262 s/'"$ac_delim"'$/,g/; t
26263 s/$/\\/; p
26264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26265 ' >>$CONFIG_STATUS <conf$$subs.sed
26266 rm -f conf$$subs.sed
26267 cat >>$CONFIG_STATUS <<_ACEOF
26268 CEOF$ac_eof
26269 _ACEOF
26272 ac_delim='%!_!# '
26273 for ac_last_try in false false false false false :; do
26274 cat >conf$$subs.sed <<_ACEOF
26275 TAR!$TAR$ac_delim
26276 LN_S!$LN_S$ac_delim
26277 AWK!$AWK$ac_delim
26278 YACC!$YACC$ac_delim
26279 YFLAGS!$YFLAGS$ac_delim
26280 FLEX!$FLEX$ac_delim
26281 FLEXFLAGS!$FLEXFLAGS$ac_delim
26282 PERL!$PERL$ac_delim
26283 perl_archlibexp!$perl_archlibexp$ac_delim
26284 perl_privlibexp!$perl_privlibexp$ac_delim
26285 perl_useshrplib!$perl_useshrplib$ac_delim
26286 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26287 PYTHON!$PYTHON$ac_delim
26288 python_version!$python_version$ac_delim
26289 python_configdir!$python_configdir$ac_delim
26290 python_includespec!$python_includespec$ac_delim
26291 python_libdir!$python_libdir$ac_delim
26292 python_libspec!$python_libspec$ac_delim
26293 python_additional_libs!$python_additional_libs$ac_delim
26294 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26295 HAVE_IPV6!$HAVE_IPV6$ac_delim
26296 LIBOBJS!$LIBOBJS$ac_delim
26297 acx_pthread_config!$acx_pthread_config$ac_delim
26298 PTHREAD_CC!$PTHREAD_CC$ac_delim
26299 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26300 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26301 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26302 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26303 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26304 MSGFMT!$MSGFMT$ac_delim
26305 MSGMERGE!$MSGMERGE$ac_delim
26306 XGETTEXT!$XGETTEXT$ac_delim
26307 TCLSH!$TCLSH$ac_delim
26308 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26309 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26310 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26311 TCL_LIBS!$TCL_LIBS$ac_delim
26312 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26313 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26314 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26315 NSGMLS!$NSGMLS$ac_delim
26316 JADE!$JADE$ac_delim
26317 have_docbook!$have_docbook$ac_delim
26318 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26319 COLLATEINDEX!$COLLATEINDEX$ac_delim
26320 SGMLSPL!$SGMLSPL$ac_delim
26321 vpath_build!$vpath_build$ac_delim
26322 LTLIBOBJS!$LTLIBOBJS$ac_delim
26323 _ACEOF
26325 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26326 break
26327 elif $ac_last_try; then
26328 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26329 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26330 { (exit 1); exit 1; }; }
26331 else
26332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26334 done
26336 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26337 if test -n "$ac_eof"; then
26338 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26339 ac_eof=`expr $ac_eof + 1`
26342 cat >>$CONFIG_STATUS <<_ACEOF
26343 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26345 _ACEOF
26346 sed '
26347 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26348 s/^/s,@/; s/!/@,|#_!!_#|/
26351 s/'"$ac_delim"'$/,g/; t
26352 s/$/\\/; p
26353 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26354 ' >>$CONFIG_STATUS <conf$$subs.sed
26355 rm -f conf$$subs.sed
26356 cat >>$CONFIG_STATUS <<_ACEOF
26357 :end
26358 s/|#_!!_#|//g
26359 CEOF$ac_eof
26360 _ACEOF
26363 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26364 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26365 # trailing colons and then remove the whole line if VPATH becomes empty
26366 # (actually we leave an empty line to preserve line numbers).
26367 if test "x$srcdir" = x.; then
26368 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26369 s/:*\$(srcdir):*/:/
26370 s/:*\${srcdir}:*/:/
26371 s/:*@srcdir@:*/:/
26372 s/^\([^=]*=[ ]*\):*/\1/
26373 s/:*$//
26374 s/^[^=]*=[ ]*$//
26378 cat >>$CONFIG_STATUS <<\_ACEOF
26379 fi # test -n "$CONFIG_FILES"
26382 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26384 case $ac_tag in
26385 :[FHLC]) ac_mode=$ac_tag; continue;;
26386 esac
26387 case $ac_mode$ac_tag in
26388 :[FHL]*:*);;
26389 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26390 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26391 { (exit 1); exit 1; }; };;
26392 :[FH]-) ac_tag=-:-;;
26393 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26394 esac
26395 ac_save_IFS=$IFS
26396 IFS=:
26397 set x $ac_tag
26398 IFS=$ac_save_IFS
26399 shift
26400 ac_file=$1
26401 shift
26403 case $ac_mode in
26404 :L) ac_source=$1;;
26405 :[FH])
26406 ac_file_inputs=
26407 for ac_f
26409 case $ac_f in
26410 -) ac_f="$tmp/stdin";;
26411 *) # Look for the file first in the build tree, then in the source tree
26412 # (if the path is not absolute). The absolute path cannot be DOS-style,
26413 # because $ac_f cannot contain `:'.
26414 test -f "$ac_f" ||
26415 case $ac_f in
26416 [\\/$]*) false;;
26417 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26418 esac ||
26419 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26420 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26421 { (exit 1); exit 1; }; };;
26422 esac
26423 ac_file_inputs="$ac_file_inputs $ac_f"
26424 done
26426 # Let's still pretend it is `configure' which instantiates (i.e., don't
26427 # use $as_me), people would be surprised to read:
26428 # /* config.h. Generated by config.status. */
26429 configure_input="Generated from "`IFS=:
26430 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26431 if test x"$ac_file" != x-; then
26432 configure_input="$ac_file. $configure_input"
26433 { echo "$as_me:$LINENO: creating $ac_file" >&5
26434 echo "$as_me: creating $ac_file" >&6;}
26437 case $ac_tag in
26438 *:-:* | *:-) cat >"$tmp/stdin";;
26439 esac
26441 esac
26443 ac_dir=`$as_dirname -- "$ac_file" ||
26444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26445 X"$ac_file" : 'X\(//\)[^/]' \| \
26446 X"$ac_file" : 'X\(//\)$' \| \
26447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26448 echo X"$ac_file" |
26449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26450 s//\1/
26453 /^X\(\/\/\)[^/].*/{
26454 s//\1/
26457 /^X\(\/\/\)$/{
26458 s//\1/
26461 /^X\(\/\).*/{
26462 s//\1/
26465 s/.*/./; q'`
26466 { as_dir="$ac_dir"
26467 case $as_dir in #(
26468 -*) as_dir=./$as_dir;;
26469 esac
26470 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26471 as_dirs=
26472 while :; do
26473 case $as_dir in #(
26474 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26475 *) as_qdir=$as_dir;;
26476 esac
26477 as_dirs="'$as_qdir' $as_dirs"
26478 as_dir=`$as_dirname -- "$as_dir" ||
26479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26480 X"$as_dir" : 'X\(//\)[^/]' \| \
26481 X"$as_dir" : 'X\(//\)$' \| \
26482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26483 echo X"$as_dir" |
26484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26485 s//\1/
26488 /^X\(\/\/\)[^/].*/{
26489 s//\1/
26492 /^X\(\/\/\)$/{
26493 s//\1/
26496 /^X\(\/\).*/{
26497 s//\1/
26500 s/.*/./; q'`
26501 test -d "$as_dir" && break
26502 done
26503 test -z "$as_dirs" || eval "mkdir $as_dirs"
26504 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26505 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26506 { (exit 1); exit 1; }; }; }
26507 ac_builddir=.
26509 case "$ac_dir" in
26510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26513 # A ".." for each directory in $ac_dir_suffix.
26514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26515 case $ac_top_builddir_sub in
26516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26518 esac ;;
26519 esac
26520 ac_abs_top_builddir=$ac_pwd
26521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26522 # for backward compatibility:
26523 ac_top_builddir=$ac_top_build_prefix
26525 case $srcdir in
26526 .) # We are building in place.
26527 ac_srcdir=.
26528 ac_top_srcdir=$ac_top_builddir_sub
26529 ac_abs_top_srcdir=$ac_pwd ;;
26530 [\\/]* | ?:[\\/]* ) # Absolute name.
26531 ac_srcdir=$srcdir$ac_dir_suffix;
26532 ac_top_srcdir=$srcdir
26533 ac_abs_top_srcdir=$srcdir ;;
26534 *) # Relative name.
26535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26536 ac_top_srcdir=$ac_top_build_prefix$srcdir
26537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26538 esac
26539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26542 case $ac_mode in
26545 # CONFIG_FILE
26548 _ACEOF
26550 cat >>$CONFIG_STATUS <<\_ACEOF
26551 # If the template does not know about datarootdir, expand it.
26552 # FIXME: This hack should be removed a few years after 2.60.
26553 ac_datarootdir_hack=; ac_datarootdir_seen=
26555 case `sed -n '/datarootdir/ {
26559 /@datadir@/p
26560 /@docdir@/p
26561 /@infodir@/p
26562 /@localedir@/p
26563 /@mandir@/p
26564 ' $ac_file_inputs` in
26565 *datarootdir*) ac_datarootdir_seen=yes;;
26566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26567 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26568 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26569 _ACEOF
26570 cat >>$CONFIG_STATUS <<_ACEOF
26571 ac_datarootdir_hack='
26572 s&@datadir@&$datadir&g
26573 s&@docdir@&$docdir&g
26574 s&@infodir@&$infodir&g
26575 s&@localedir@&$localedir&g
26576 s&@mandir@&$mandir&g
26577 s&\\\${datarootdir}&$datarootdir&g' ;;
26578 esac
26579 _ACEOF
26581 # Neutralize VPATH when `$srcdir' = `.'.
26582 # Shell code in configure.ac might set extrasub.
26583 # FIXME: do we really want to maintain this feature?
26584 cat >>$CONFIG_STATUS <<_ACEOF
26585 sed "$ac_vpsub
26586 $extrasub
26587 _ACEOF
26588 cat >>$CONFIG_STATUS <<\_ACEOF
26590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26591 s&@configure_input@&$configure_input&;t t
26592 s&@top_builddir@&$ac_top_builddir_sub&;t t
26593 s&@srcdir@&$ac_srcdir&;t t
26594 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26595 s&@top_srcdir@&$ac_top_srcdir&;t t
26596 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26597 s&@builddir@&$ac_builddir&;t t
26598 s&@abs_builddir@&$ac_abs_builddir&;t t
26599 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26600 $ac_datarootdir_hack
26601 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26604 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26606 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26607 which seems to be undefined. Please make sure it is defined." >&5
26608 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26609 which seems to be undefined. Please make sure it is defined." >&2;}
26611 rm -f "$tmp/stdin"
26612 case $ac_file in
26613 -) cat "$tmp/out"; rm -f "$tmp/out";;
26614 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26615 esac
26619 # CONFIG_HEADER
26621 _ACEOF
26623 # Transform confdefs.h into a sed script `conftest.defines', that
26624 # substitutes the proper values into config.h.in to produce config.h.
26625 rm -f conftest.defines conftest.tail
26626 # First, append a space to every undef/define line, to ease matching.
26627 echo 's/$/ /' >conftest.defines
26628 # Then, protect against being on the right side of a sed subst, or in
26629 # an unquoted here document, in config.status. If some macros were
26630 # called several times there might be several #defines for the same
26631 # symbol, which is useless. But do not sort them, since the last
26632 # AC_DEFINE must be honored.
26633 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26634 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26635 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26636 # PARAMS is the parameter list in the macro definition--in most cases, it's
26637 # just an empty string.
26638 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26639 ac_dB='\\)[ (].*,\\1define\\2'
26640 ac_dC=' '
26641 ac_dD=' ,'
26643 uniq confdefs.h |
26644 sed -n '
26645 t rset
26646 :rset
26647 s/^[ ]*#[ ]*define[ ][ ]*//
26648 t ok
26651 s/[\\&,]/\\&/g
26652 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26653 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26654 ' >>conftest.defines
26656 # Remove the space that was appended to ease matching.
26657 # Then replace #undef with comments. This is necessary, for
26658 # example, in the case of _POSIX_SOURCE, which is predefined and required
26659 # on some systems where configure will not decide to define it.
26660 # (The regexp can be short, since the line contains either #define or #undef.)
26661 echo 's/ $//
26662 s,^[ #]*u.*,/* & */,' >>conftest.defines
26664 # Break up conftest.defines:
26665 ac_max_sed_lines=50
26667 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26668 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26669 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26670 # et cetera.
26671 ac_in='$ac_file_inputs'
26672 ac_out='"$tmp/out1"'
26673 ac_nxt='"$tmp/out2"'
26675 while :
26677 # Write a here document:
26678 cat >>$CONFIG_STATUS <<_ACEOF
26679 # First, check the format of the line:
26680 cat >"\$tmp/defines.sed" <<\\CEOF
26681 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26682 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26684 :def
26685 _ACEOF
26686 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26687 echo 'CEOF
26688 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26689 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26690 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26691 grep . conftest.tail >/dev/null || break
26692 rm -f conftest.defines
26693 mv conftest.tail conftest.defines
26694 done
26695 rm -f conftest.defines conftest.tail
26697 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26698 cat >>$CONFIG_STATUS <<\_ACEOF
26699 if test x"$ac_file" != x-; then
26700 echo "/* $configure_input */" >"$tmp/config.h"
26701 cat "$ac_result" >>"$tmp/config.h"
26702 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26703 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26704 echo "$as_me: $ac_file is unchanged" >&6;}
26705 else
26706 rm -f $ac_file
26707 mv "$tmp/config.h" $ac_file
26709 else
26710 echo "/* $configure_input */"
26711 cat "$ac_result"
26713 rm -f "$tmp/out12"
26717 # CONFIG_LINK
26720 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26721 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26723 if test ! -r "$srcdir/$ac_source"; then
26724 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26725 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26726 { (exit 1); exit 1; }; }
26728 rm -f "$ac_file"
26730 # Try a relative symlink, then a hard link, then a copy.
26731 case $srcdir in
26732 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26733 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
26734 esac
26735 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26736 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
26737 cp -p "$srcdir/$ac_source" "$ac_file" ||
26738 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26739 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26740 { (exit 1); exit 1; }; }
26742 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26743 echo "$as_me: executing $ac_file commands" >&6;}
26745 esac
26748 case $ac_file$ac_mode in
26749 "check_win32_symlinks":C)
26750 # Links sometimes fail undetected on Mingw -
26751 # so here we detect it and warn the user
26752 for FILE in $CONFIG_LINKS
26754 # test -e works for symlinks in the MinGW console
26755 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26756 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26757 done
26759 "src/include/pg_config.h":H)
26760 # Update timestamp for pg_config.h (see Makefile.global)
26761 echo >src/include/stamp-h
26764 esac
26765 done # for ac_tag
26768 { (exit 0); exit 0; }
26769 _ACEOF
26770 chmod +x $CONFIG_STATUS
26771 ac_clean_files=$ac_clean_files_save
26774 # configure is writing to config.log, and then calls config.status.
26775 # config.status does its own redirection, appending to config.log.
26776 # Unfortunately, on DOS this fails, as config.log is still kept open
26777 # by configure, so config.status won't be able to write to it; its
26778 # output is simply discarded. So we exec the FD to /dev/null,
26779 # effectively closing config.log, so it can be properly (re)opened and
26780 # appended to by config.status. When coming back to configure, we
26781 # need to make the FD available again.
26782 if test "$no_create" != yes; then
26783 ac_cs_success=:
26784 ac_config_status_args=
26785 test "$silent" = yes &&
26786 ac_config_status_args="$ac_config_status_args --quiet"
26787 exec 5>/dev/null
26788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26789 exec 5>>config.log
26790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26791 # would make configure fail if this is the last instruction.
26792 $ac_cs_success || { (exit 1); exit 1; }
26796 # Warn about unknown options
26797 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26798 for pgac_arg in $pgac_args with_gnu_ld; do
26799 if test "$pgac_var" = "$pgac_arg"; then
26800 continue 2
26802 done
26803 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26804 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26805 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
26806 done