Fix off-by-one error in autovacuum shmem struct sizing. This could lead to
[PostgreSQL.git] / configure
blob37af429c0f6140577d3a64a7395cbd00dd51c269
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 GCOV
676 LCOV
677 GENHTML
678 enable_coverage
679 DTRACE
680 DTRACEFLAGS
681 enable_dtrace
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 SUN_STUDIO_CC
693 autodepend
694 INCLUDES
695 enable_thread_safety
696 with_tcl
697 with_perl
698 with_python
699 with_gssapi
700 with_krb5
701 krb_srvtab
702 with_pam
703 with_ldap
704 with_bonjour
705 with_openssl
706 with_ossp_uuid
707 XML2_CONFIG
708 with_libxml
709 with_libxslt
710 with_system_tzdata
711 with_zlib
712 GREP
713 EGREP
714 ELF_SYS
715 LDFLAGS_SL
717 with_gnu_ld
718 ld_R_works
719 RANLIB
720 STRIP
721 STRIP_STATIC_LIB
722 STRIP_SHARED_LIB
724 LN_S
726 BISON
727 BISONFLAGS
728 FLEX
729 FLEXFLAGS
730 PERL
731 perl_archlibexp
732 perl_privlibexp
733 perl_useshrplib
734 perl_embed_ldflags
735 PYTHON
736 python_version
737 python_configdir
738 python_includespec
739 python_libdir
740 python_libspec
741 python_additional_libs
742 OSSP_UUID_LIBS
743 HAVE_IPV6
744 LIBOBJS
745 acx_pthread_config
746 PTHREAD_CC
747 PTHREAD_LIBS
748 PTHREAD_CFLAGS
749 LDAP_LIBS_FE
750 LDAP_LIBS_BE
751 HAVE_POSIX_SIGNALS
752 MSGFMT
753 MSGMERGE
754 XGETTEXT
755 TCLSH
756 TCL_CONFIG_SH
757 TCL_INCLUDE_SPEC
758 TCL_LIB_FILE
759 TCL_LIBS
760 TCL_LIB_SPEC
761 TCL_SHARED_BUILD
762 TCL_SHLIB_LD_LIBS
763 NSGMLS
764 JADE
765 have_docbook
766 DOCBOOKSTYLE
767 COLLATEINDEX
768 SGMLSPL
769 vpath_build
770 LTLIBOBJS'
771 ac_subst_files=''
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
781 LDFLAGS_SL
782 DOCBOOKSTYLE'
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
831 ac_prev=
832 ac_dashdash=
833 for ac_option
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
851 ac_dashdash=yes ;;
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
870 --config-cache | -C)
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_$ac_feature=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
904 -enable-* | --enable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_$ac_feature=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_$ac_package=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=no ;;
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 esac
1160 done
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val=\$$ac_var
1175 case $ac_val in
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178 esac
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1181 done
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1197 cross_compiling=yes
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1235 /^X\(\/\/\)$/{
1236 s//\1/
1239 /^X\(\/\).*/{
1240 s//\1/
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1248 else
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338 _ACEOF
1340 cat <<\_ACEOF
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-integer-datetimes
1358 disable 64-bit integer date/time support
1359 --enable-nls[=LANGUAGES]
1360 enable Native Language Support
1361 --disable-shared do not build shared libraries
1362 --disable-rpath do not embed shared library search path in
1363 executables
1364 --disable-spinlocks do not use spinlocks
1365 --enable-debug build with debugging symbols (-g)
1366 --enable-profiling build with profiling enabled
1367 --enable-coverage build with coverage testing instrumentation
1368 --enable-dtrace build with DTrace support
1369 --enable-depend turn on automatic dependency tracking
1370 --enable-cassert enable assertion checks (for debugging)
1371 --enable-thread-safety make client libraries thread-safe
1372 --enable-thread-safety-force
1373 force thread-safety despite thread test failure
1374 --disable-float4-byval disable float4 passed by value
1375 --disable-float8-byval disable float8 passed by value
1376 --disable-largefile omit support for large files
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-template=NAME override operating system template
1382 --with-includes=DIRS look for additional header files in DIRS
1383 --with-libraries=DIRS look for additional libraries in DIRS
1384 --with-libs=DIRS alternative spelling of --with-libraries
1385 --with-pgport=PORTNUM set default port number [5432]
1386 --with-blocksize=BLOCKSIZE
1387 set table block size in kB [8]
1388 --with-segsize=SEGSIZE set table segment size in GB [1]
1389 --with-wal-blocksize=BLOCKSIZE
1390 set WAL block size in kB [8]
1391 --with-wal-segsize=SEGSIZE
1392 set WAL segment size in MB [16]
1393 --with-CC=CMD set compiler (deprecated)
1394 --with-tcl build Tcl modules (PL/Tcl)
1395 --with-tclconfig=DIR tclConfig.sh is in DIR
1396 --with-perl build Perl modules (PL/Perl)
1397 --with-python build Python modules (PL/Python)
1398 --with-gssapi build with GSSAPI support
1399 --with-krb5 build with Kerberos 5 support
1400 --with-krb-srvnam=NAME default service principal name in Kerberos
1401 [postgres]
1402 --with-pam build with PAM support
1403 --with-ldap build with LDAP support
1404 --with-bonjour build with Bonjour support
1405 --with-openssl build with OpenSSL support
1406 --without-readline do not use GNU Readline nor BSD Libedit for editing
1407 --with-libedit-preferred
1408 prefer BSD Libedit over GNU Readline
1409 --with-ossp-uuid use OSSP UUID library when building
1410 contrib/uuid-ossp
1411 --with-libxml build with XML support
1412 --with-libxslt use XSLT support when building contrib/xml2
1413 --with-system-tzdata=DIR
1414 use system time zone data in DIR
1415 --without-zlib do not use Zlib
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427 LDFLAGS_SL
1428 DOCBOOKSTYLE
1429 location of DocBook stylesheets
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <pgsql-bugs@postgresql.org>.
1435 _ACEOF
1436 ac_status=$?
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" || continue
1443 ac_builddir=.
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1461 case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494 cat <<\_ACEOF
1495 PostgreSQL configure 8.4devel
1496 generated by GNU Autoconf 2.61
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1503 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1504 _ACEOF
1505 exit
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1511 It was created by PostgreSQL $as_me 8.4devel, which was
1512 generated by GNU Autoconf 2.61. Invocation command line was
1514 $ $0 $@
1516 _ACEOF
1517 exec 5>>config.log
1519 cat <<_ASUNAME
1520 ## --------- ##
1521 ## Platform. ##
1522 ## --------- ##
1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1531 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1533 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1534 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1536 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1537 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1538 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1539 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1541 _ASUNAME
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 echo "PATH: $as_dir"
1549 done
1550 IFS=$as_save_IFS
1552 } >&5
1554 cat >&5 <<_ACEOF
1557 ## ----------- ##
1558 ## Core tests. ##
1559 ## ----------- ##
1561 _ACEOF
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1569 ac_configure_args=
1570 ac_configure_args0=
1571 ac_configure_args1=
1572 ac_must_keep_next=false
1573 for ac_pass in 1 2
1575 for ac_arg
1577 case $ac_arg in
1578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580 | -silent | --silent | --silen | --sile | --sil)
1581 continue ;;
1582 *\'*)
1583 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1584 esac
1585 case $ac_pass in
1586 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589 if test $ac_must_keep_next = true; then
1590 ac_must_keep_next=false # Got value, back to normal.
1591 else
1592 case $ac_arg in
1593 *=* | --config-cache | -C | -disable-* | --disable-* \
1594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596 | -with-* | --with-* | -without-* | --without-* | --x)
1597 case "$ac_configure_args0 " in
1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599 esac
1601 -* ) ac_must_keep_next=true ;;
1602 esac
1604 ac_configure_args="$ac_configure_args '$ac_arg'"
1606 esac
1607 done
1608 done
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log. We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618 # Save into config.log some information that might help in debugging.
1620 echo
1622 cat <<\_ASBOX
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1626 _ASBOX
1627 echo
1628 # The following way of writing the cache mishandles newlines in values,
1630 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1631 eval ac_val=\$$ac_var
1632 case $ac_val in #(
1633 *${as_nl}*)
1634 case $ac_var in #(
1635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1637 esac
1638 case $ac_var in #(
1639 _ | IFS | as_nl) ;; #(
1640 *) $as_unset $ac_var ;;
1641 esac ;;
1642 esac
1643 done
1644 (set) 2>&1 |
1645 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1646 *${as_nl}ac_space=\ *)
1647 sed -n \
1648 "s/'\''/'\''\\\\'\'''\''/g;
1649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650 ;; #(
1652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1654 esac |
1655 sort
1657 echo
1659 cat <<\_ASBOX
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1663 _ASBOX
1664 echo
1665 for ac_var in $ac_subst_vars
1667 eval ac_val=\$$ac_var
1668 case $ac_val in
1669 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 esac
1671 echo "$ac_var='\''$ac_val'\''"
1672 done | sort
1673 echo
1675 if test -n "$ac_subst_files"; then
1676 cat <<\_ASBOX
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1680 _ASBOX
1681 echo
1682 for ac_var in $ac_subst_files
1684 eval ac_val=\$$ac_var
1685 case $ac_val in
1686 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687 esac
1688 echo "$ac_var='\''$ac_val'\''"
1689 done | sort
1690 echo
1693 if test -s confdefs.h; then
1694 cat <<\_ASBOX
1695 ## ----------- ##
1696 ## confdefs.h. ##
1697 ## ----------- ##
1698 _ASBOX
1699 echo
1700 cat confdefs.h
1701 echo
1703 test "$ac_signal" != 0 &&
1704 echo "$as_me: caught signal $ac_signal"
1705 echo "$as_me: exit $exit_status"
1706 } >&5
1707 rm -f core *.core core.conftest.* &&
1708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709 exit $exit_status
1711 for ac_signal in 1 2 13 15; do
1712 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1713 done
1714 ac_signal=0
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1719 # Predefined preprocessor variables.
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1723 _ACEOF
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1728 _ACEOF
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1733 _ACEOF
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1738 _ACEOF
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1743 _ACEOF
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749 set x "$CONFIG_SITE"
1750 elif test "x$prefix" != xNONE; then
1751 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1752 else
1753 set x "$ac_default_prefix/share/config.site" \
1754 "$ac_default_prefix/etc/config.site"
1756 shift
1757 for ac_site_file
1759 if test -r "$ac_site_file"; then
1760 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1761 echo "$as_me: loading site script $ac_site_file" >&6;}
1762 sed 's/^/| /' "$ac_site_file" >&5
1763 . "$ac_site_file"
1765 done
1767 if test -r "$cache_file"; then
1768 # Some versions of bash will fail to source /dev/null (special
1769 # files actually), so we avoid doing that.
1770 if test -f "$cache_file"; then
1771 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1772 echo "$as_me: loading cache $cache_file" >&6;}
1773 case $cache_file in
1774 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1775 *) . "./$cache_file";;
1776 esac
1778 else
1779 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1780 echo "$as_me: creating cache $cache_file" >&6;}
1781 >$cache_file
1784 # Check that the precious variables saved in the cache have kept the same
1785 # value.
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789 eval ac_new_set=\$ac_env_${ac_var}_set
1790 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791 eval ac_new_val=\$ac_env_${ac_var}_value
1792 case $ac_old_set,$ac_new_set in
1793 set,)
1794 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1795 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796 ac_cache_corrupted=: ;;
1797 ,set)
1798 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1799 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1800 ac_cache_corrupted=: ;;
1801 ,);;
1803 if test "x$ac_old_val" != "x$ac_new_val"; then
1804 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1805 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1806 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1807 echo "$as_me: former value: $ac_old_val" >&2;}
1808 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1809 echo "$as_me: current value: $ac_new_val" >&2;}
1810 ac_cache_corrupted=:
1811 fi;;
1812 esac
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1815 case $ac_new_val in
1816 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1818 esac
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1822 esac
1824 done
1825 if $ac_cache_corrupted; then
1826 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1830 { (exit 1); exit 1; }; }
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 ac_aux_dir=
1869 for ac_dir in config "$srcdir"/config; do
1870 if test -f "$ac_dir/install-sh"; then
1871 ac_aux_dir=$ac_dir
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1873 break
1874 elif test -f "$ac_dir/install.sh"; then
1875 ac_aux_dir=$ac_dir
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1877 break
1878 elif test -f "$ac_dir/shtool"; then
1879 ac_aux_dir=$ac_dir
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1881 break
1883 done
1884 if test -z "$ac_aux_dir"; then
1885 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1900 configure_args=$ac_configure_args
1904 cat >>confdefs.h <<_ACEOF
1905 #define PG_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1909 # Make sure we can run config.sub.
1910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1911 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1912 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1913 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: checking build system type" >&5
1916 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_build+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 ac_build_alias=$build_alias
1921 test "x$ac_build_alias" = x &&
1922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1923 test "x$ac_build_alias" = x &&
1924 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1925 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1926 { (exit 1); exit 1; }; }
1927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1928 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1929 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1930 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1934 echo "${ECHO_T}$ac_cv_build" >&6; }
1935 case $ac_cv_build in
1936 *-*-*) ;;
1937 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1938 echo "$as_me: error: invalid value of canonical build" >&2;}
1939 { (exit 1); exit 1; }; };;
1940 esac
1941 build=$ac_cv_build
1942 ac_save_IFS=$IFS; IFS='-'
1943 set x $ac_cv_build
1944 shift
1945 build_cpu=$1
1946 build_vendor=$2
1947 shift; shift
1948 # Remember, the first character of IFS is used to create $*,
1949 # except with old shells:
1950 build_os=$*
1951 IFS=$ac_save_IFS
1952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1955 { echo "$as_me:$LINENO: checking host system type" >&5
1956 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_host+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test "x$host_alias" = x; then
1961 ac_cv_host=$ac_cv_build
1962 else
1963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1964 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1965 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1966 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1971 echo "${ECHO_T}$ac_cv_host" >&6; }
1972 case $ac_cv_host in
1973 *-*-*) ;;
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1975 echo "$as_me: error: invalid value of canonical host" >&2;}
1976 { (exit 1); exit 1; }; };;
1977 esac
1978 host=$ac_cv_host
1979 ac_save_IFS=$IFS; IFS='-'
1980 set x $ac_cv_host
1981 shift
1982 host_cpu=$1
1983 host_vendor=$2
1984 shift; shift
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1987 host_os=$*
1988 IFS=$ac_save_IFS
1989 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1993 template=
1994 { echo "$as_me:$LINENO: checking which template to use" >&5
1995 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1998 pgac_args="$pgac_args with_template"
2001 # Check whether --with-template was given.
2002 if test "${with_template+set}" = set; then
2003 withval=$with_template;
2004 case $withval in
2005 yes)
2006 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2007 echo "$as_me: error: argument required for --with-template option" >&2;}
2008 { (exit 1); exit 1; }; }
2011 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013 { (exit 1); exit 1; }; }
2017 case $withval in
2018 list) echo; ls "$srcdir/src/template"; exit;;
2019 *) if test -f "$srcdir/src/template/$with_template" ; then
2020 template=$withval
2021 else
2022 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2023 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2024 { (exit 1); exit 1; }; }
2025 fi;;
2026 esac
2029 esac
2031 else
2033 # --with-template not given
2035 case $host_os in
2036 aix*) template=aix ;;
2037 bsdi*) template=bsdi ;;
2038 cygwin*) template=cygwin ;;
2039 darwin*) template=darwin ;;
2040 dgux*) template=dgux ;;
2041 freebsd*) template=freebsd ;;
2042 hpux*) template=hpux ;;
2043 irix*) template=irix ;;
2044 linux*|gnu*|k*bsd*-gnu)
2045 template=linux ;;
2046 mingw*) template=win32 ;;
2047 netbsd*) template=netbsd ;;
2048 nextstep*) template=nextstep ;;
2049 openbsd*) template=openbsd ;;
2050 osf*) template=osf ;;
2051 sco*) template=sco ;;
2052 solaris*) template=solaris ;;
2053 sunos*) template=sunos4 ;;
2054 sysv4.2*)
2055 case $host_vendor in
2056 univel) template=univel ;;
2057 esac ;;
2058 sysv4*) template=svr4 ;;
2059 sysv5*) template=unixware ;;
2060 ultrix*) template=ultrix4 ;;
2061 esac
2063 if test x"$template" = x"" ; then
2064 { { echo "$as_me:$LINENO: error:
2065 *******************************************************************
2066 PostgreSQL has apparently not been ported to your platform yet.
2067 To try a manual configuration, look into the src/template directory
2068 for a similar platform and use the '--with-template=' option.
2070 Please also contact <pgsql-ports@postgresql.org> to see about
2071 rectifying this. Include the above 'checking host system type...'
2072 line.
2073 *******************************************************************
2074 " >&5
2075 echo "$as_me: error:
2076 *******************************************************************
2077 PostgreSQL has apparently not been ported to your platform yet.
2078 To try a manual configuration, look into the src/template directory
2079 for a similar platform and use the '--with-template=' option.
2081 Please also contact <pgsql-ports@postgresql.org> to see about
2082 rectifying this. Include the above 'checking host system type...'
2083 line.
2084 *******************************************************************
2085 " >&2;}
2086 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $template" >&5
2095 echo "${ECHO_T}$template" >&6; }
2097 PORTNAME=$template
2100 # Initialize default assumption that we do not need separate assembly code
2101 # for TAS (test-and-set). This can be overridden by the template file
2102 # when it's executed.
2103 need_tas=no
2104 tas_file=dummy.s
2109 ## Command line options
2113 # Add non-standard directories to the include path
2116 pgac_args="$pgac_args with_includes"
2119 # Check whether --with-includes was given.
2120 if test "${with_includes+set}" = set; then
2121 withval=$with_includes;
2122 case $withval in
2123 yes)
2124 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2125 echo "$as_me: error: argument required for --with-includes option" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131 { (exit 1); exit 1; }; }
2136 esac
2144 # Add non-standard directories to the library search path
2147 pgac_args="$pgac_args with_libraries"
2150 # Check whether --with-libraries was given.
2151 if test "${with_libraries+set}" = set; then
2152 withval=$with_libraries;
2153 case $withval in
2154 yes)
2155 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2156 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2157 { (exit 1); exit 1; }; }
2160 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 LIBRARY_DIRS=$withval
2167 esac
2174 pgac_args="$pgac_args with_libs"
2177 # Check whether --with-libs was given.
2178 if test "${with_libs+set}" = set; then
2179 withval=$with_libs;
2180 case $withval in
2181 yes)
2182 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2183 echo "$as_me: error: argument required for --with-libs option" >&2;}
2184 { (exit 1); exit 1; }; }
2187 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189 { (exit 1); exit 1; }; }
2192 LIBRARY_DIRS=$withval
2194 esac
2202 # 64-bit integer date/time storage: enabled by default.
2204 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2205 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2207 pgac_args="$pgac_args enable_integer_datetimes"
2209 # Check whether --enable-integer-datetimes was given.
2210 if test "${enable_integer_datetimes+set}" = set; then
2211 enableval=$enable_integer_datetimes;
2212 case $enableval in
2213 yes)
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2217 _ACEOF
2224 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2225 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2226 { (exit 1); exit 1; }; }
2228 esac
2230 else
2231 enable_integer_datetimes=yes
2233 cat >>confdefs.h <<\_ACEOF
2234 #define USE_INTEGER_DATETIMES 1
2235 _ACEOF
2240 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2241 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2245 # NLS
2247 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2248 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2250 pgac_args="$pgac_args enable_nls"
2252 # Check whether --enable-nls was given.
2253 if test "${enable_nls+set}" = set; then
2254 enableval=$enable_nls;
2255 case $enableval in
2256 yes)
2263 enable_nls=yes
2264 WANTED_LANGUAGES=$enableval
2266 esac
2268 else
2269 enable_nls=no
2274 if test "$enable_nls" = yes; then
2276 cat >>confdefs.h <<\_ACEOF
2277 #define ENABLE_NLS 1
2278 _ACEOF
2282 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2283 echo "${ECHO_T}$enable_nls" >&6; }
2288 # Default port number (--with-pgport), default 5432
2290 { echo "$as_me:$LINENO: checking for default port number" >&5
2291 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2293 pgac_args="$pgac_args with_pgport"
2296 # Check whether --with-pgport was given.
2297 if test "${with_pgport+set}" = set; then
2298 withval=$with_pgport;
2299 case $withval in
2300 yes)
2301 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2302 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2303 { (exit 1); exit 1; }; }
2306 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 default_port=$withval
2313 esac
2315 else
2316 default_port=5432
2320 { echo "$as_me:$LINENO: result: $default_port" >&5
2321 echo "${ECHO_T}$default_port" >&6; }
2322 # Need both of these because some places want an integer and some a string
2324 cat >>confdefs.h <<_ACEOF
2325 #define DEF_PGPORT ${default_port}
2326 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT_STR "${default_port}"
2331 _ACEOF
2336 # Option to disable shared libraries
2339 pgac_args="$pgac_args enable_shared"
2341 # Check whether --enable-shared was given.
2342 if test "${enable_shared+set}" = set; then
2343 enableval=$enable_shared;
2344 case $enableval in
2345 yes)
2352 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2353 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2354 { (exit 1); exit 1; }; }
2356 esac
2358 else
2359 enable_shared=yes
2367 # '-rpath'-like feature can be disabled
2370 pgac_args="$pgac_args enable_rpath"
2372 # Check whether --enable-rpath was given.
2373 if test "${enable_rpath+set}" = set; then
2374 enableval=$enable_rpath;
2375 case $enableval in
2376 yes)
2383 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2384 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2385 { (exit 1); exit 1; }; }
2387 esac
2389 else
2390 enable_rpath=yes
2398 # Spinlocks
2401 pgac_args="$pgac_args enable_spinlocks"
2403 # Check whether --enable-spinlocks was given.
2404 if test "${enable_spinlocks+set}" = set; then
2405 enableval=$enable_spinlocks;
2406 case $enableval in
2407 yes)
2414 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2415 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2416 { (exit 1); exit 1; }; }
2418 esac
2420 else
2421 enable_spinlocks=yes
2428 # --enable-debug adds -g to compiler flags
2431 pgac_args="$pgac_args enable_debug"
2433 # Check whether --enable-debug was given.
2434 if test "${enable_debug+set}" = set; then
2435 enableval=$enable_debug;
2436 case $enableval in
2437 yes)
2444 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2445 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2446 { (exit 1); exit 1; }; }
2448 esac
2450 else
2451 enable_debug=no
2459 # --enable-profiling enables gcc profiling
2462 pgac_args="$pgac_args enable_profiling"
2464 # Check whether --enable-profiling was given.
2465 if test "${enable_profiling+set}" = set; then
2466 enableval=$enable_profiling;
2467 case $enableval in
2468 yes)
2475 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2476 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2477 { (exit 1); exit 1; }; }
2479 esac
2481 else
2482 enable_profiling=no
2490 # --enable-coverage enables generation of code coverage metrics with gcov
2493 pgac_args="$pgac_args enable_coverage"
2495 # Check whether --enable-coverage was given.
2496 if test "${enable_coverage+set}" = set; then
2497 enableval=$enable_coverage;
2498 case $enableval in
2499 yes)
2500 for ac_prog in gcov
2502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_GCOV+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 if test -n "$GCOV"; then
2510 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_GCOV="$ac_prog"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2523 done
2524 done
2525 IFS=$as_save_IFS
2529 GCOV=$ac_cv_prog_GCOV
2530 if test -n "$GCOV"; then
2531 { echo "$as_me:$LINENO: result: $GCOV" >&5
2532 echo "${ECHO_T}$GCOV" >&6; }
2533 else
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2539 test -n "$GCOV" && break
2540 done
2542 if test -z "$GCOV"; then
2543 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2544 echo "$as_me: error: gcov not found" >&2;}
2545 { (exit 1); exit 1; }; }
2547 for ac_prog in lcov
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_LCOV+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 if test -n "$LCOV"; then
2557 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_LCOV="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2570 done
2571 done
2572 IFS=$as_save_IFS
2576 LCOV=$ac_cv_prog_LCOV
2577 if test -n "$LCOV"; then
2578 { echo "$as_me:$LINENO: result: $LCOV" >&5
2579 echo "${ECHO_T}$LCOV" >&6; }
2580 else
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$LCOV" && break
2587 done
2589 if test -z "$LCOV"; then
2590 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2591 echo "$as_me: error: lcov not found" >&2;}
2592 { (exit 1); exit 1; }; }
2594 for ac_prog in genhtml
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_GENHTML+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 if test -n "$GENHTML"; then
2604 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_GENHTML="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2617 done
2618 done
2619 IFS=$as_save_IFS
2623 GENHTML=$ac_cv_prog_GENHTML
2624 if test -n "$GENHTML"; then
2625 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2626 echo "${ECHO_T}$GENHTML" >&6; }
2627 else
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$GENHTML" && break
2634 done
2636 if test -z "$GENHTML"; then
2637 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2638 echo "$as_me: error: genhtml not found" >&2;}
2639 { (exit 1); exit 1; }; }
2646 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2647 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2648 { (exit 1); exit 1; }; }
2650 esac
2652 else
2653 enable_coverage=no
2661 # DTrace
2664 pgac_args="$pgac_args enable_dtrace"
2666 # Check whether --enable-dtrace was given.
2667 if test "${enable_dtrace+set}" = set; then
2668 enableval=$enable_dtrace;
2669 case $enableval in
2670 yes)
2672 cat >>confdefs.h <<\_ACEOF
2673 #define ENABLE_DTRACE 1
2674 _ACEOF
2676 for ac_prog in dtrace
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_DTRACE+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$DTRACE"; then
2686 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_DTRACE="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 DTRACE=$ac_cv_prog_DTRACE
2706 if test -n "$DTRACE"; then
2707 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2708 echo "${ECHO_T}$DTRACE" >&6; }
2709 else
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$DTRACE" && break
2716 done
2718 if test -z "$DTRACE"; then
2719 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2720 echo "$as_me: error: dtrace not found" >&2;}
2721 { (exit 1); exit 1; }; }
2729 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2730 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2731 { (exit 1); exit 1; }; }
2733 esac
2735 else
2736 enable_dtrace=no
2744 # Block size
2746 { echo "$as_me:$LINENO: checking for block size" >&5
2747 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2749 pgac_args="$pgac_args with_blocksize"
2752 # Check whether --with-blocksize was given.
2753 if test "${with_blocksize+set}" = set; then
2754 withval=$with_blocksize;
2755 case $withval in
2756 yes)
2757 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2758 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2759 { (exit 1); exit 1; }; }
2762 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764 { (exit 1); exit 1; }; }
2767 blocksize=$withval
2769 esac
2771 else
2772 blocksize=8
2776 case ${blocksize} in
2777 1) BLCKSZ=1024;;
2778 2) BLCKSZ=2048;;
2779 4) BLCKSZ=4096;;
2780 8) BLCKSZ=8192;;
2781 16) BLCKSZ=16384;;
2782 32) BLCKSZ=32768;;
2783 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2784 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2785 { (exit 1); exit 1; }; }
2786 esac
2787 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2788 echo "${ECHO_T}${blocksize}kB" >&6; }
2791 cat >>confdefs.h <<_ACEOF
2792 #define BLCKSZ ${BLCKSZ}
2793 _ACEOF
2797 # Relation segment size
2799 { echo "$as_me:$LINENO: checking for segment size" >&5
2800 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2802 pgac_args="$pgac_args with_segsize"
2805 # Check whether --with-segsize was given.
2806 if test "${with_segsize+set}" = set; then
2807 withval=$with_segsize;
2808 case $withval in
2809 yes)
2810 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2811 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2812 { (exit 1); exit 1; }; }
2815 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817 { (exit 1); exit 1; }; }
2820 segsize=$withval
2822 esac
2824 else
2825 segsize=1
2829 # this expression is set up to avoid unnecessary integer overflow
2830 # blocksize is already guaranteed to be a factor of 1024
2831 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2832 test $? -eq 0 || exit 1
2833 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2834 echo "${ECHO_T}${segsize}GB" >&6; }
2837 cat >>confdefs.h <<_ACEOF
2838 #define RELSEG_SIZE ${RELSEG_SIZE}
2839 _ACEOF
2843 # WAL block size
2845 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2846 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2848 pgac_args="$pgac_args with_wal_blocksize"
2851 # Check whether --with-wal-blocksize was given.
2852 if test "${with_wal_blocksize+set}" = set; then
2853 withval=$with_wal_blocksize;
2854 case $withval in
2855 yes)
2856 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2857 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2858 { (exit 1); exit 1; }; }
2861 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863 { (exit 1); exit 1; }; }
2866 wal_blocksize=$withval
2868 esac
2870 else
2871 wal_blocksize=8
2875 case ${wal_blocksize} in
2876 1) XLOG_BLCKSZ=1024;;
2877 2) XLOG_BLCKSZ=2048;;
2878 4) XLOG_BLCKSZ=4096;;
2879 8) XLOG_BLCKSZ=8192;;
2880 16) XLOG_BLCKSZ=16384;;
2881 32) XLOG_BLCKSZ=32768;;
2882 64) XLOG_BLCKSZ=65536;;
2883 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2884 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2885 { (exit 1); exit 1; }; }
2886 esac
2887 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2888 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2891 cat >>confdefs.h <<_ACEOF
2892 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2893 _ACEOF
2897 # WAL segment size
2899 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2900 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2902 pgac_args="$pgac_args with_wal_segsize"
2905 # Check whether --with-wal-segsize was given.
2906 if test "${with_wal_segsize+set}" = set; then
2907 withval=$with_wal_segsize;
2908 case $withval in
2909 yes)
2910 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2911 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2912 { (exit 1); exit 1; }; }
2915 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917 { (exit 1); exit 1; }; }
2920 wal_segsize=$withval
2922 esac
2924 else
2925 wal_segsize=16
2929 case ${wal_segsize} in
2930 1) ;;
2931 2) ;;
2932 4) ;;
2933 8) ;;
2934 16) ;;
2935 32) ;;
2936 64) ;;
2937 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2938 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2939 { (exit 1); exit 1; }; }
2940 esac
2941 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2942 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2945 cat >>confdefs.h <<_ACEOF
2946 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2947 _ACEOF
2951 # C compiler
2954 # For historical reasons you can also use --with-CC to specify the C compiler
2955 # to use, although the standard way to do this is to set the CC environment
2956 # variable.
2958 pgac_args="$pgac_args with_CC"
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then
2963 withval=$with_CC;
2964 case $withval in
2965 yes)
2966 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2967 echo "$as_me: error: argument required for --with-CC option" >&2;}
2968 { (exit 1); exit 1; }; }
2971 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973 { (exit 1); exit 1; }; }
2976 CC=$with_CC
2978 esac
2984 case $template in
2985 aix) pgac_cc_list="gcc xlc";;
2986 irix) pgac_cc_list="cc";; # no gcc
2987 *) pgac_cc_list="gcc cc";;
2988 esac
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in $pgac_cc_list
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3019 done
3020 done
3021 IFS=$as_save_IFS
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027 { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3029 else
3030 { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3035 test -n "$CC" && break
3036 done
3038 if test -z "$CC"; then
3039 ac_ct_CC=$CC
3040 for ac_prog in $pgac_cc_list
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3073 else
3074 { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3079 test -n "$ac_ct_CC" && break
3080 done
3082 if test "x$ac_ct_CC" = x; then
3083 CC=""
3084 else
3085 case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet. If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&5
3090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3091 whose name does not start with the host triplet. If you think this
3092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 CC=$ac_ct_CC
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compiler --version >&5") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compiler -v >&5") 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3148 main ()
3152 return 0;
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort. b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions. Remove them first so a
3171 # subsequent execution test works.
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178 esac
3179 done
3180 rm -f $ac_rmfiles
3182 if { (ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_link_default") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; then
3192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3196 # Autoconf.
3197 for ac_file in $ac_files ''
3199 test -f "$ac_file" || continue
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3203 [ab].out )
3204 # We found the default executable, but exeext='' is most
3205 # certainly right.
3206 break;;
3207 *.* )
3208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209 then :; else
3210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 # We set ac_cv_exeext here because the later test for it is not
3213 # safe: cross compilers may not add the suffix if given an `-o'
3214 # argument, so we may need to know it at that point already.
3215 # Even if this section looks crufty: it has the advantage of
3216 # actually working.
3217 break;;
3219 break;;
3220 esac
3221 done
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3224 else
3225 ac_file=''
3228 { echo "$as_me:$LINENO: result: $ac_file" >&5
3229 echo "${ECHO_T}$ac_file" >&6; }
3230 if test -z "$ac_file"; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: C compiler cannot create executables
3237 See \`config.log' for more details." >&2;}
3238 { (exit 77); exit 77; }; }
3241 ac_exeext=$ac_cv_exeext
3243 # Check that the compiler produces executables we can run. If not, either
3244 # the compiler is broken, or we cross compile.
3245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248 # If not cross compiling, check that we can run a simple program.
3249 if test "$cross_compiling" != yes; then
3250 if { ac_try='./$ac_file'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 cross_compiling=no
3261 else
3262 if test "$cross_compiling" = maybe; then
3263 cross_compiling=yes
3264 else
3265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }
3275 { echo "$as_me:$LINENO: result: yes" >&5
3276 echo "${ECHO_T}yes" >&6; }
3278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3285 echo "${ECHO_T}$cross_compiling" >&6; }
3287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3289 if { (ac_try="$ac_link"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_link") 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; then
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 # `rm'.
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 break;;
3309 * ) break;;
3310 esac
3311 done
3312 else
3313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3320 rm -f conftest$ac_cv_exeext
3321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3326 ac_exeext=$EXEEXT
3327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3329 if test "${ac_cv_objext+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h. */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3340 main ()
3344 return 0;
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 for ac_file in conftest.o conftest.obj conftest.*; do
3359 test -f "$ac_file" || continue;
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363 break;;
3364 esac
3365 done
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details." >&5
3372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3380 echo "${ECHO_T}$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3382 ac_objext=$OBJEXT
3383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3396 main ()
3398 #ifndef __GNUC__
3399 choke me
3400 #endif
3403 return 0;
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.$ac_objext; then
3423 ac_compiler_gnu=yes
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_compiler_gnu=no
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3437 GCC=`test $ac_compiler_gnu = yes && echo yes`
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3447 ac_cv_prog_cc_g=no
3448 CFLAGS="-g"
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3457 main ()
3461 return 0;
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3481 ac_cv_prog_cc_g=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 CFLAGS=""
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3495 main ()
3499 return 0;
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3525 CFLAGS="-g"
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3534 main ()
3538 return 0;
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compile") 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest.$ac_objext; then
3558 ac_cv_prog_cc_g=yes
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3576 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578 CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580 if test "$GCC" = yes; then
3581 CFLAGS="-g -O2"
3582 else
3583 CFLAGS="-g"
3585 else
3586 if test "$GCC" = yes; then
3587 CFLAGS="-O2"
3588 else
3589 CFLAGS=
3592 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3593 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_c89+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 ac_cv_prog_cc_c89=no
3598 ac_save_CC=$CC
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <stdarg.h>
3606 #include <stdio.h>
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613 char **p;
3614 int i;
3616 return p[i];
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3620 char *s;
3621 va_list v;
3622 va_start (v,p);
3623 s = g (p, va_arg (v,int));
3624 va_end (v);
3625 return s;
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
3631 as 'x'. The following induces an error, until -std is added to get
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
3634 that's true only with -std. */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3649 main ()
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 return 0;
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 CC="$ac_save_CC $ac_arg"
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3677 ac_cv_prog_cc_c89=$ac_arg
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 done
3688 rm -f conftest.$ac_ext
3689 CC=$ac_save_CC
3692 # AC_CACHE_VAL
3693 case "x$ac_cv_prog_cc_c89" in
3695 { echo "$as_me:$LINENO: result: none needed" >&5
3696 echo "${ECHO_T}none needed" >&6; } ;;
3697 xno)
3698 { echo "$as_me:$LINENO: result: unsupported" >&5
3699 echo "${ECHO_T}unsupported" >&6; } ;;
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3704 esac
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3715 # but has idiosyncrasies of its own. We assume icc will define
3716 # __INTEL_COMPILER regardless of CFLAGS.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3726 main ()
3728 #ifndef __INTEL_COMPILER
3729 choke me
3730 #endif
3732 return 0;
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3752 ICC=yes
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ICC=no
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 # Check if it's Sun Studio compiler. We assume that
3763 # __SUNPRO_C will be defined for Sun Studio compilers
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3772 main ()
3774 #ifndef __SUNPRO_C
3775 choke me
3776 #endif
3778 return 0;
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
3798 SUN_STUDIO_CC=yes
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 SUN_STUDIO_CC=no
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 unset CFLAGS
3813 # Read the template
3815 . "$srcdir/src/template/$template" || exit
3817 # CFLAGS are selected so:
3818 # If the user specifies something in the environment, that is used.
3819 # else: If the template file set something, that is used.
3820 # else: If coverage was enabled, don't set anything.
3821 # else: If the compiler is GCC, then we use -O2.
3822 # else: If the compiler is something else, then we use -O.
3824 if test "$ac_env_CFLAGS_set" = set; then
3825 CFLAGS=$ac_env_CFLAGS_value
3826 elif test "${CFLAGS+set}" = set; then
3827 : # (keep what template set)
3828 elif test "$enable_coverage" = yes; then
3829 : # no optimization by default
3830 elif test "$GCC" = yes; then
3831 CFLAGS="-O2"
3832 else
3833 # if the user selected debug mode, don't use -O
3834 if test "$enable_debug" != yes; then
3835 CFLAGS="-O"
3839 # Some versions of GCC support some additional useful warning flags.
3840 # Check whether they are supported, and add them to CFLAGS if so.
3841 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3843 if test "$GCC" = yes -a "$ICC" = no; then
3844 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3845 # These work in some but not all gcc versions
3846 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3847 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3848 pgac_save_CFLAGS=$CFLAGS
3849 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3858 main ()
3862 return 0;
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3882 { echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6; }
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 CFLAGS="$pgac_save_CFLAGS"
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3896 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3897 pgac_save_CFLAGS=$CFLAGS
3898 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 CFLAGS="$pgac_save_CFLAGS"
3938 { echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6; }
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 # Disable strict-aliasing rules; needed for gcc 3.3+
3945 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3946 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3947 pgac_save_CFLAGS=$CFLAGS
3948 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3957 main ()
3961 return 0;
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3981 { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 CFLAGS="$pgac_save_CFLAGS"
3988 { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3995 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3996 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3997 pgac_save_CFLAGS=$CFLAGS
3998 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4007 main ()
4011 return 0;
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 CFLAGS="$pgac_save_CFLAGS"
4038 { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 elif test "$ICC" = yes; then
4045 # Intel's compiler has a bug/misoptimization in checking for
4046 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4047 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4048 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4049 pgac_save_CFLAGS=$CFLAGS
4050 CFLAGS="$pgac_save_CFLAGS -mp1"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4059 main ()
4063 return 0;
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4083 { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 CFLAGS="$pgac_save_CFLAGS"
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 # Make sure strict aliasing is off (though this is said to be the default)
4097 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4098 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4099 pgac_save_CFLAGS=$CFLAGS
4100 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4109 main ()
4113 return 0;
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.$ac_objext; then
4133 { echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6; }
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 CFLAGS="$pgac_save_CFLAGS"
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 elif test x"${CC}" = x"xlc"; then
4147 # AIX xlc has to have strict aliasing turned off too
4148 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4149 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4150 pgac_save_CFLAGS=$CFLAGS
4151 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 { echo "$as_me:$LINENO: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6; }
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 CFLAGS="$pgac_save_CFLAGS"
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 # supply -g if --enable-debug
4200 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4201 CFLAGS="$CFLAGS -g"
4204 # enable code coverage if --enable-coverage
4205 if test "$enable_coverage" = yes; then
4206 if test "$GCC" = yes; then
4207 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4208 else
4209 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4210 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4211 { (exit 1); exit 1; }; }
4215 # enable profiling if --enable-profiling
4216 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217 if test "$GCC" = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define PROFILE_PID_DIR 1
4221 _ACEOF
4223 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4224 else
4225 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4226 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4227 { (exit 1); exit 1; }; }
4231 # We already have this in Makefile.win32, but configure needs it too
4232 if test "$PORTNAME" = "win32"; then
4233 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4236 # Check if the compiler still works with the template settings
4237 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4238 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4247 main ()
4249 return 0;
4251 return 0;
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (ac_try="$ac_link"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_link") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest$ac_exeext &&
4271 $as_test_x conftest$ac_exeext; then
4272 { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4281 echo "$as_me: error: cannot proceed" >&2;}
4282 { (exit 1); exit 1; }; }
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286 conftest$ac_exeext conftest.$ac_ext
4288 # Defend against gcc -ffast-math
4289 if test "$GCC" = yes; then
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4298 main ()
4300 #ifdef __FAST_MATH__
4301 choke me
4302 #endif
4304 return 0;
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_compile") 2>conftest.er1
4315 ac_status=$?
4316 grep -v '^ *+' conftest.er1 >conftest.err
4317 rm -f conftest.er1
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && {
4321 test -z "$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4323 } && test -s conftest.$ac_objext; then
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4330 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4331 { (exit 1); exit 1; }; }
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4346 CPP=
4348 if test -z "$CPP"; then
4349 if test "${ac_cv_prog_CPP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 # Double quotes because CPP needs to be expanded
4353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355 ac_preproc_ok=false
4356 for ac_c_preproc_warn_flag in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #ifdef __STDC__
4371 # include <limits.h>
4372 #else
4373 # include <assert.h>
4374 #endif
4375 Syntax error
4376 _ACEOF
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null && {
4390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 }; then
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 # Broken: fails on valid input.
4399 continue
4402 rm -f conftest.err conftest.$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <ac_nonexistent.h>
4413 _ACEOF
4414 if { (ac_try="$ac_cpp conftest.$ac_ext"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } >/dev/null && {
4427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 }; then
4430 # Broken: success on invalid input.
4431 continue
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 # Passes both tests.
4437 ac_preproc_ok=:
4438 break
4441 rm -f conftest.err conftest.$ac_ext
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then
4447 break
4450 done
4451 ac_cv_prog_CPP=$CPP
4454 CPP=$ac_cv_prog_CPP
4455 else
4456 ac_cv_prog_CPP=$CPP
4458 { echo "$as_me:$LINENO: result: $CPP" >&5
4459 echo "${ECHO_T}$CPP" >&6; }
4460 ac_preproc_ok=false
4461 for ac_c_preproc_warn_flag in '' yes
4463 # Use a header file that comes with gcc, so configuring glibc
4464 # with a fresh cross-compiler works.
4465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466 # <limits.h> exists even on freestanding compilers.
4467 # On the NeXT, cc -E runs the code through the compiler's parser,
4468 # not just through cpp. "Syntax error" is here to catch this case.
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #ifdef __STDC__
4476 # include <limits.h>
4477 #else
4478 # include <assert.h>
4479 #endif
4480 Syntax error
4481 _ACEOF
4482 if { (ac_try="$ac_cpp conftest.$ac_ext"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4497 }; then
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 # Broken: fails on valid input.
4504 continue
4507 rm -f conftest.err conftest.$ac_ext
4509 # OK, works on sane cases. Now check whether nonexistent headers
4510 # can be detected and how.
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } >/dev/null && {
4532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4534 }; then
4535 # Broken: success on invalid input.
4536 continue
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 # Passes both tests.
4542 ac_preproc_ok=:
4543 break
4546 rm -f conftest.err conftest.$ac_ext
4548 done
4549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550 rm -f conftest.err conftest.$ac_ext
4551 if $ac_preproc_ok; then
4553 else
4554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&5
4556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&2;}
4558 { (exit 1); exit 1; }; }
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569 # Create compiler version string
4570 if test x"$GCC" = x"yes" ; then
4571 cc_string="GCC `${CC} --version | sed q`"
4572 else
4573 cc_string=$CC
4576 cat >>confdefs.h <<_ACEOF
4577 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4578 _ACEOF
4583 # Set up TAS assembly code if needed; the template file has now had its
4584 # chance to request this.
4586 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4589 if test "$need_tas" = yes ; then
4590 TAS=tas.o
4591 else
4592 TAS=""
4598 # Automatic dependency tracking
4601 pgac_args="$pgac_args enable_depend"
4603 # Check whether --enable-depend was given.
4604 if test "${enable_depend+set}" = set; then
4605 enableval=$enable_depend;
4606 case $enableval in
4607 yes)
4608 autodepend=yes
4614 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4615 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4616 { (exit 1); exit 1; }; }
4618 esac
4620 else
4621 enable_depend=no
4630 # Enable assert checks
4633 pgac_args="$pgac_args enable_cassert"
4635 # Check whether --enable-cassert was given.
4636 if test "${enable_cassert+set}" = set; then
4637 enableval=$enable_cassert;
4638 case $enableval in
4639 yes)
4641 cat >>confdefs.h <<\_ACEOF
4642 #define USE_ASSERT_CHECKING 1
4643 _ACEOF
4650 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4651 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4652 { (exit 1); exit 1; }; }
4654 esac
4656 else
4657 enable_cassert=no
4665 # Include directories
4667 ac_save_IFS=$IFS
4668 IFS="${IFS}${PATH_SEPARATOR}"
4669 # SRCH_INC comes from the template file
4670 for dir in $with_includes $SRCH_INC; do
4671 if test -d "$dir"; then
4672 INCLUDES="$INCLUDES -I$dir"
4673 else
4674 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4675 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4677 done
4678 IFS=$ac_save_IFS
4683 # Library directories
4685 ac_save_IFS=$IFS
4686 IFS="${IFS}${PATH_SEPARATOR}"
4687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4688 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4689 if test -d "$dir"; then
4690 LIBDIRS="$LIBDIRS -L$dir"
4691 else
4692 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4693 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4695 done
4696 IFS=$ac_save_IFS
4699 # Enable thread-safe client libraries
4701 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4702 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4703 if test "$PORTNAME" != "win32"; then
4705 pgac_args="$pgac_args enable_thread_safety"
4707 # Check whether --enable-thread-safety was given.
4708 if test "${enable_thread_safety+set}" = set; then
4709 enableval=$enable_thread_safety;
4710 case $enableval in
4711 yes)
4718 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4719 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4720 { (exit 1); exit 1; }; }
4722 esac
4724 else
4725 enable_thread_safety=no
4730 else
4731 # Win32 should always use threads
4733 pgac_args="$pgac_args enable_thread_safety"
4735 # Check whether --enable-thread-safety was given.
4736 if test "${enable_thread_safety+set}" = set; then
4737 enableval=$enable_thread_safety;
4738 case $enableval in
4739 yes)
4746 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4747 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4748 { (exit 1); exit 1; }; }
4750 esac
4752 else
4753 enable_thread_safety=yes
4761 pgac_args="$pgac_args enable_thread_safety_force"
4763 # Check whether --enable-thread-safety-force was given.
4764 if test "${enable_thread_safety_force+set}" = set; then
4765 enableval=$enable_thread_safety_force;
4766 case $enableval in
4767 yes)
4774 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4775 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4776 { (exit 1); exit 1; }; }
4778 esac
4780 else
4781 enable_thread_safety_force=no
4786 if test "$enable_thread_safety" = yes -o \
4787 "$enable_thread_safety_force" = yes; then
4788 enable_thread_safety="yes" # for 'force'
4790 cat >>confdefs.h <<\_ACEOF
4791 #define ENABLE_THREAD_SAFETY 1
4792 _ACEOF
4795 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4796 echo "${ECHO_T}$enable_thread_safety" >&6; }
4800 # Optionally build Tcl modules (PL/Tcl)
4802 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4803 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4805 pgac_args="$pgac_args with_tcl"
4808 # Check whether --with-tcl was given.
4809 if test "${with_tcl+set}" = set; then
4810 withval=$with_tcl;
4811 case $withval in
4812 yes)
4819 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4820 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4821 { (exit 1); exit 1; }; }
4823 esac
4825 else
4826 with_tcl=no
4831 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4832 echo "${ECHO_T}$with_tcl" >&6; }
4835 # We see if the path to the Tcl/Tk configuration scripts is specified.
4836 # This will override the use of tclsh to find the paths to search.
4839 pgac_args="$pgac_args with_tclconfig"
4842 # Check whether --with-tclconfig was given.
4843 if test "${with_tclconfig+set}" = set; then
4844 withval=$with_tclconfig;
4845 case $withval in
4846 yes)
4847 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4848 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4849 { (exit 1); exit 1; }; }
4852 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854 { (exit 1); exit 1; }; }
4859 esac
4866 # Optionally build Perl modules (PL/Perl)
4868 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4869 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4871 pgac_args="$pgac_args with_perl"
4874 # Check whether --with-perl was given.
4875 if test "${with_perl+set}" = set; then
4876 withval=$with_perl;
4877 case $withval in
4878 yes)
4885 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4886 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4887 { (exit 1); exit 1; }; }
4889 esac
4891 else
4892 with_perl=no
4897 { echo "$as_me:$LINENO: result: $with_perl" >&5
4898 echo "${ECHO_T}$with_perl" >&6; }
4902 # Optionally build Python modules (PL/Python)
4904 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4905 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4907 pgac_args="$pgac_args with_python"
4910 # Check whether --with-python was given.
4911 if test "${with_python+set}" = set; then
4912 withval=$with_python;
4913 case $withval in
4914 yes)
4921 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4922 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4923 { (exit 1); exit 1; }; }
4925 esac
4927 else
4928 with_python=no
4933 { echo "$as_me:$LINENO: result: $with_python" >&5
4934 echo "${ECHO_T}$with_python" >&6; }
4938 # GSSAPI
4940 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4941 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4943 pgac_args="$pgac_args with_gssapi"
4946 # Check whether --with-gssapi was given.
4947 if test "${with_gssapi+set}" = set; then
4948 withval=$with_gssapi;
4949 case $withval in
4950 yes)
4953 cat >>confdefs.h <<\_ACEOF
4954 #define ENABLE_GSS 1
4955 _ACEOF
4957 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4964 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4965 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4966 { (exit 1); exit 1; }; }
4968 esac
4970 else
4971 with_gssapi=no
4976 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4977 echo "${ECHO_T}$with_gssapi" >&6; }
4981 # Kerberos 5
4983 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4984 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4986 pgac_args="$pgac_args with_krb5"
4989 # Check whether --with-krb5 was given.
4990 if test "${with_krb5+set}" = set; then
4991 withval=$with_krb5;
4992 case $withval in
4993 yes)
4996 cat >>confdefs.h <<\_ACEOF
4997 #define KRB5 1
4998 _ACEOF
5000 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5007 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5008 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5009 { (exit 1); exit 1; }; }
5011 esac
5013 else
5014 with_krb5=no
5019 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5020 echo "${ECHO_T}$with_krb5" >&6; }
5028 # Kerberos configuration parameters
5031 pgac_args="$pgac_args with_krb_srvnam"
5034 # Check whether --with-krb-srvnam was given.
5035 if test "${with_krb_srvnam+set}" = set; then
5036 withval=$with_krb_srvnam;
5037 case $withval in
5038 yes)
5039 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5040 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5041 { (exit 1); exit 1; }; }
5044 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046 { (exit 1); exit 1; }; }
5051 esac
5053 else
5054 with_krb_srvnam="postgres"
5059 cat >>confdefs.h <<_ACEOF
5060 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5061 _ACEOF
5066 # PAM
5068 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5069 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5071 pgac_args="$pgac_args with_pam"
5074 # Check whether --with-pam was given.
5075 if test "${with_pam+set}" = set; then
5076 withval=$with_pam;
5077 case $withval in
5078 yes)
5080 cat >>confdefs.h <<\_ACEOF
5081 #define USE_PAM 1
5082 _ACEOF
5089 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5090 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5091 { (exit 1); exit 1; }; }
5093 esac
5095 else
5096 with_pam=no
5101 { echo "$as_me:$LINENO: result: $with_pam" >&5
5102 echo "${ECHO_T}$with_pam" >&6; }
5107 # LDAP
5109 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5110 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5112 pgac_args="$pgac_args with_ldap"
5115 # Check whether --with-ldap was given.
5116 if test "${with_ldap+set}" = set; then
5117 withval=$with_ldap;
5118 case $withval in
5119 yes)
5121 cat >>confdefs.h <<\_ACEOF
5122 #define USE_LDAP 1
5123 _ACEOF
5130 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5131 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5132 { (exit 1); exit 1; }; }
5134 esac
5136 else
5137 with_ldap=no
5142 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5143 echo "${ECHO_T}$with_ldap" >&6; }
5148 # Bonjour
5150 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5151 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5153 pgac_args="$pgac_args with_bonjour"
5156 # Check whether --with-bonjour was given.
5157 if test "${with_bonjour+set}" = set; then
5158 withval=$with_bonjour;
5159 case $withval in
5160 yes)
5162 cat >>confdefs.h <<\_ACEOF
5163 #define USE_BONJOUR 1
5164 _ACEOF
5171 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5172 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5173 { (exit 1); exit 1; }; }
5175 esac
5177 else
5178 with_bonjour=no
5183 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5184 echo "${ECHO_T}$with_bonjour" >&6; }
5189 # OpenSSL
5191 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5192 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5194 pgac_args="$pgac_args with_openssl"
5197 # Check whether --with-openssl was given.
5198 if test "${with_openssl+set}" = set; then
5199 withval=$with_openssl;
5200 case $withval in
5201 yes)
5203 cat >>confdefs.h <<\_ACEOF
5204 #define USE_SSL 1
5205 _ACEOF
5212 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5213 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5214 { (exit 1); exit 1; }; }
5216 esac
5218 else
5219 with_openssl=no
5224 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5225 echo "${ECHO_T}$with_openssl" >&6; }
5230 # Readline
5233 pgac_args="$pgac_args with_readline"
5236 # Check whether --with-readline was given.
5237 if test "${with_readline+set}" = set; then
5238 withval=$with_readline;
5239 case $withval in
5240 yes)
5247 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5248 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5249 { (exit 1); exit 1; }; }
5251 esac
5253 else
5254 with_readline=yes
5259 # readline on MinGW has problems with backslashes in psql and other bugs.
5260 # This is particularly a problem with non-US code pages.
5261 # Therefore disable its use until we understand the cause. 2004-07-20
5262 if test "$PORTNAME" = "win32"; then
5263 if test "$with_readline" = yes; then
5264 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5265 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5266 with_readline=no
5272 # Prefer libedit
5275 pgac_args="$pgac_args with_libedit_preferred"
5278 # Check whether --with-libedit-preferred was given.
5279 if test "${with_libedit_preferred+set}" = set; then
5280 withval=$with_libedit_preferred;
5281 case $withval in
5282 yes)
5289 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5290 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5291 { (exit 1); exit 1; }; }
5293 esac
5295 else
5296 with_libedit_preferred=no
5304 # OSSP UUID library
5307 pgac_args="$pgac_args with_ossp_uuid"
5310 # Check whether --with-ossp-uuid was given.
5311 if test "${with_ossp_uuid+set}" = set; then
5312 withval=$with_ossp_uuid;
5313 case $withval in
5314 yes)
5321 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5322 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5323 { (exit 1); exit 1; }; }
5325 esac
5327 else
5328 with_ossp_uuid=no
5337 # XML
5340 pgac_args="$pgac_args with_libxml"
5343 # Check whether --with-libxml was given.
5344 if test "${with_libxml+set}" = set; then
5345 withval=$with_libxml;
5346 case $withval in
5347 yes)
5349 cat >>confdefs.h <<\_ACEOF
5350 #define USE_LIBXML 1
5351 _ACEOF
5358 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5359 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5360 { (exit 1); exit 1; }; }
5362 esac
5364 else
5365 with_libxml=no
5371 if test "$with_libxml" = yes ; then
5372 for ac_prog in xml2-config
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 if test -n "$XML2_CONFIG"; then
5382 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_XML2_CONFIG="$ac_prog"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5402 if test -n "$XML2_CONFIG"; then
5403 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5404 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5405 else
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5411 test -n "$XML2_CONFIG" && break
5412 done
5414 if test -n "$XML2_CONFIG"; then
5415 for pgac_option in `$XML2_CONFIG --cflags`; do
5416 case $pgac_option in
5417 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5418 esac
5419 done
5420 for pgac_option in `$XML2_CONFIG --libs`; do
5421 case $pgac_option in
5422 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5423 esac
5424 done
5431 # XSLT
5434 pgac_args="$pgac_args with_libxslt"
5437 # Check whether --with-libxslt was given.
5438 if test "${with_libxslt+set}" = set; then
5439 withval=$with_libxslt;
5440 case $withval in
5441 yes)
5443 cat >>confdefs.h <<\_ACEOF
5444 #define USE_LIBXSLT 1
5445 _ACEOF
5452 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5453 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5454 { (exit 1); exit 1; }; }
5456 esac
5458 else
5459 with_libxslt=no
5469 # tzdata
5472 pgac_args="$pgac_args with_system_tzdata"
5475 # Check whether --with-system-tzdata was given.
5476 if test "${with_system_tzdata+set}" = set; then
5477 withval=$with_system_tzdata;
5478 case $withval in
5479 yes)
5480 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5481 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5482 { (exit 1); exit 1; }; }
5485 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487 { (exit 1); exit 1; }; }
5492 esac
5500 # Zlib
5503 pgac_args="$pgac_args with_zlib"
5506 # Check whether --with-zlib was given.
5507 if test "${with_zlib+set}" = set; then
5508 withval=$with_zlib;
5509 case $withval in
5510 yes)
5517 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5518 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5519 { (exit 1); exit 1; }; }
5521 esac
5523 else
5524 with_zlib=yes
5532 # Elf
5535 # Assume system is ELF if it predefines __ELF__ as 1,
5536 # otherwise believe host_os based default.
5537 case $host_os in
5538 freebsd1*|freebsd2*) elf=no;;
5539 freebsd3*|freebsd4*) elf=yes;;
5540 esac
5543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5545 if test "${ac_cv_path_GREP+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548 # Extract the first word of "grep ggrep" to use in msg output
5549 if test -z "$GREP"; then
5550 set dummy grep ggrep; ac_prog_name=$2
5551 if test "${ac_cv_path_GREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 ac_path_GREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in grep ggrep; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5565 # Check for GNU ac_path_GREP and select it if it is found.
5566 # Check for GNU $ac_path_GREP
5567 case `"$ac_path_GREP" --version 2>&1` in
5568 *GNU*)
5569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5571 ac_count=0
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5573 while :
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'GREP' >> "conftest.nl"
5579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 ac_count=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_GREP="$ac_path_GREP"
5585 ac_path_GREP_max=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5589 done
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5594 $ac_path_GREP_found && break 3
5595 done
5596 done
5598 done
5599 IFS=$as_save_IFS
5604 GREP="$ac_cv_path_GREP"
5605 if test -z "$GREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5611 else
5612 ac_cv_path_GREP=$GREP
5617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5619 GREP="$ac_cv_path_GREP"
5622 { echo "$as_me:$LINENO: checking for egrep" >&5
5623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5628 then ac_cv_path_EGREP="$GREP -E"
5629 else
5630 # Extract the first word of "egrep" to use in msg output
5631 if test -z "$EGREP"; then
5632 set dummy egrep; ac_prog_name=$2
5633 if test "${ac_cv_path_EGREP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 ac_path_EGREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in egrep; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5647 # Check for GNU ac_path_EGREP and select it if it is found.
5648 # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5650 *GNU*)
5651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5653 ac_count=0
5654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5655 while :
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 echo 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 ac_count=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP="$ac_path_EGREP"
5667 ac_path_EGREP_max=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5676 $ac_path_EGREP_found && break 3
5677 done
5678 done
5680 done
5681 IFS=$as_save_IFS
5686 EGREP="$ac_cv_path_EGREP"
5687 if test -z "$EGREP"; then
5688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690 { (exit 1); exit 1; }; }
5693 else
5694 ac_cv_path_EGREP=$EGREP
5700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5702 EGREP="$ac_cv_path_EGREP"
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #if __ELF__
5713 #endif
5715 _ACEOF
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "yes" >/dev/null 2>&1; then
5718 ELF_SYS=true
5719 else
5720 if test "X$elf" = "Xyes" ; then
5721 ELF_SYS=true
5722 else
5723 ELF_SYS=
5726 rm -f conftest*
5731 # Assignments
5734 CPPFLAGS="$CPPFLAGS $INCLUDES"
5735 LDFLAGS="$LDFLAGS $LIBDIRS"
5740 # Check whether --with-gnu-ld was given.
5741 if test "${with_gnu_ld+set}" = set; then
5742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5743 else
5744 with_gnu_ld=no
5747 ac_prog=ld
5748 if test "$GCC" = yes; then
5749 # Check if gcc -print-prog-name=ld gives a path.
5750 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5751 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5752 case $host in
5753 *-*-mingw*)
5754 # gcc leaves a trailing carriage return which upsets mingw
5755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5758 esac
5759 case "$ac_prog" in
5760 # Accept absolute paths.
5761 [\\/]* | [A-Za-z]:[\\/]*)
5762 re_direlt='/[^/][^/]*/\.\./'
5763 # Canonicalize the path of ld
5764 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5765 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5766 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5767 done
5768 test -z "$LD" && LD="$ac_prog"
5771 # If it fails, then pretend we aren't using GCC.
5772 ac_prog=ld
5775 # If it is relative, then search for the first ld in PATH.
5776 with_gnu_ld=unknown
5778 esac
5779 elif test "$with_gnu_ld" = yes; then
5780 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5782 else
5783 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_LD+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 if test -z "$LD"; then
5790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791 for ac_dir in $PATH; do
5792 test -z "$ac_dir" && ac_dir=.
5793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794 ac_cv_path_LD="$ac_dir/$ac_prog"
5795 # Check to see if the program is GNU ld. I'd rather use --version,
5796 # but apparently some GNU ld's only accept -v.
5797 # Break only if it was the GNU/non-GNU ld that we prefer.
5798 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5799 test "$with_gnu_ld" != no && break
5800 else
5801 test "$with_gnu_ld" != yes && break
5804 done
5805 IFS="$ac_save_ifs"
5806 else
5807 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5811 LD="$ac_cv_path_LD"
5812 if test -n "$LD"; then
5813 { echo "$as_me:$LINENO: result: $LD" >&5
5814 echo "${ECHO_T}$LD" >&6; }
5815 else
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5821 { (exit 1); exit 1; }; }
5822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5828 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5829 ac_cv_prog_gnu_ld=yes
5830 else
5831 ac_cv_prog_gnu_ld=no
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5835 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$ac_cv_prog_gnu_ld
5841 case $host_os in sysv5*)
5842 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5843 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5844 if test "${pgac_cv_prog_ld_R+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5848 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5857 main ()
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (ac_try="$ac_link"
5866 case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_link") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest$ac_exeext &&
5881 $as_test_x conftest$ac_exeext; then
5882 pgac_cv_prog_ld_R=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 pgac_cv_prog_ld_R=no
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891 conftest$ac_exeext conftest.$ac_ext
5892 LDFLAGS=$pgac_save_LDFLAGS
5895 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5896 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5897 ld_R_works=$pgac_cv_prog_ld_R
5899 esac
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5922 done
5923 done
5924 IFS=$as_save_IFS
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6; }
5932 else
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5972 else
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5977 if test "x$ac_ct_RANLIB" = x; then
5978 RANLIB=":"
5979 else
5980 case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet. If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990 RANLIB=$ac_ct_RANLIB
5992 else
5993 RANLIB="$ac_cv_prog_RANLIB"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6019 done
6020 done
6021 IFS=$as_save_IFS
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027 { echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6; }
6029 else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6036 if test -z "$ac_cv_prog_STRIP"; then
6037 ac_ct_STRIP=$STRIP
6038 # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 if test -n "$ac_ct_STRIP"; then
6046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_STRIP="strip"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6059 done
6060 done
6061 IFS=$as_save_IFS
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6069 else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6074 if test "x$ac_ct_STRIP" = x; then
6075 STRIP=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 STRIP=$ac_ct_STRIP
6089 else
6090 STRIP="$ac_cv_prog_STRIP"
6094 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6095 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6096 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6097 STRIP_STATIC_LIB="$STRIP -x"
6098 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6099 { echo "$as_me:$LINENO: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6; }
6101 else
6102 STRIP_STATIC_LIB=:
6103 STRIP_SHARED_LIB=:
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6111 # Extract the first word of "tar", so it can be a program name with args.
6112 set dummy tar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_TAR+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 case $TAR in
6119 [\\/]* | ?:[\\/]*)
6120 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6134 done
6135 done
6136 IFS=$as_save_IFS
6139 esac
6141 TAR=$ac_cv_path_TAR
6142 if test -n "$TAR"; then
6143 { echo "$as_me:$LINENO: result: $TAR" >&5
6144 echo "${ECHO_T}$TAR" >&6; }
6145 else
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6151 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6153 LN_S=$as_ln_s
6154 if test "$LN_S" = "ln -s"; then
6155 { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6157 else
6158 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6159 echo "${ECHO_T}no, using $LN_S" >&6; }
6162 for ac_prog in gawk mawk nawk awk
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AWK+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 if test -n "$AWK"; then
6172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AWK="$ac_prog"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6191 AWK=$ac_cv_prog_AWK
6192 if test -n "$AWK"; then
6193 { echo "$as_me:$LINENO: result: $AWK" >&5
6194 echo "${ECHO_T}$AWK" >&6; }
6195 else
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6201 test -n "$AWK" && break
6202 done
6205 # Let the user override the search
6206 if test -z "$BISON"; then
6207 for ac_prog in bison
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_BISON+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 if test -n "$BISON"; then
6217 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_BISON="$ac_prog"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6230 done
6231 done
6232 IFS=$as_save_IFS
6236 BISON=$ac_cv_prog_BISON
6237 if test -n "$BISON"; then
6238 { echo "$as_me:$LINENO: result: $BISON" >&5
6239 echo "${ECHO_T}$BISON" >&6; }
6240 else
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6246 test -n "$BISON" && break
6247 done
6251 if test "$BISON"; then
6252 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6253 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6254 echo "$as_me: using $pgac_bison_version" >&6;}
6255 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6256 then
6257 { echo "$as_me:$LINENO: WARNING:
6258 *** The installed version of Bison is too old to use with PostgreSQL.
6259 *** Bison version 1.875 or later is required." >&5
6260 echo "$as_me: WARNING:
6261 *** The installed version of Bison is too old to use with PostgreSQL.
6262 *** Bison version 1.875 or later is required." >&2;}
6263 BISON=""
6267 if test -z "$BISON"; then
6268 { echo "$as_me:$LINENO: WARNING:
6269 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6270 *** change any of the parser definition files. You can obtain Bison from
6271 *** a GNU mirror site. (If you are using the official distribution of
6272 *** PostgreSQL then you do not need to worry about this, because the Bison
6273 *** output is pre-generated.)" >&5
6274 echo "$as_me: WARNING:
6275 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6276 *** change any of the parser definition files. You can obtain Bison from
6277 *** a GNU mirror site. (If you are using the official distribution of
6278 *** PostgreSQL then you do not need to worry about this, because the Bison
6279 *** output is pre-generated.)" >&2;}
6281 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6284 { echo "$as_me:$LINENO: checking for flex" >&5
6285 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6286 if test "${pgac_cv_path_flex+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 # Let the user override the test
6290 if test -n "$FLEX"; then
6291 pgac_cv_path_flex=$FLEX
6292 else
6293 pgac_save_IFS=$IFS
6294 IFS=$PATH_SEPARATOR
6295 for pgac_dir in $PATH; do
6296 IFS=$pgac_save_IFS
6297 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6298 pgac_dir=`pwd`
6300 for pgac_prog in flex lex; do
6301 pgac_candidate="$pgac_dir/$pgac_prog"
6302 if test -f "$pgac_candidate" \
6303 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6304 then
6305 echo '%%' > conftest.l
6306 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6307 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6308 pgac_broken_flex=$pgac_candidate
6309 continue
6312 pgac_cv_path_flex=$pgac_candidate
6313 break 2
6316 done
6317 done
6318 rm -f conftest.l lex.yy.c
6319 : ${pgac_cv_path_flex=no}
6323 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6324 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6325 if test x"$pgac_cv_path_flex" = x"no"; then
6326 if test -n "$pgac_broken_flex"; then
6327 { echo "$as_me:$LINENO: WARNING:
6328 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6329 *** should get version 2.5.4 or later." >&5
6330 echo "$as_me: WARNING:
6331 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6332 *** should get version 2.5.4 or later." >&2;}
6335 { echo "$as_me:$LINENO: WARNING:
6336 *** Without Flex you will not be able to build PostgreSQL from CVS or
6337 *** change any of the scanner definition files. You can obtain Flex from
6338 *** a GNU mirror site. (If you are using the official distribution of
6339 *** PostgreSQL then you do not need to worry about this because the Flex
6340 *** output is pre-generated.)" >&5
6341 echo "$as_me: WARNING:
6342 *** Without Flex you will not be able to build PostgreSQL from CVS or
6343 *** change any of the scanner definition files. You can obtain Flex from
6344 *** a GNU mirror site. (If you are using the official distribution of
6345 *** PostgreSQL then you do not need to worry about this because the Flex
6346 *** output is pre-generated.)" >&2;}
6348 FLEX=
6349 else
6350 FLEX=$pgac_cv_path_flex
6351 pgac_flex_version=`$FLEX -V 2>/dev/null`
6352 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6353 echo "$as_me: using $pgac_flex_version" >&6;}
6360 # Extract the first word of "perl", so it can be a program name with args.
6361 set dummy perl; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_PERL+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367 case $PERL in
6368 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6383 done
6384 done
6385 IFS=$as_save_IFS
6388 esac
6390 PERL=$ac_cv_path_PERL
6391 if test -n "$PERL"; then
6392 { echo "$as_me:$LINENO: result: $PERL" >&5
6393 echo "${ECHO_T}$PERL" >&6; }
6394 else
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 if test "$with_perl" = yes; then
6402 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6403 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6404 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6405 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6406 echo "${ECHO_T}$perl_archlibexp" >&6; }
6407 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6408 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6409 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6410 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6411 echo "${ECHO_T}$perl_privlibexp" >&6; }
6412 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6413 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6414 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6415 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6416 echo "${ECHO_T}$perl_useshrplib" >&6; }
6418 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6419 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6421 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6423 if test -z "$perl_embed_ldflags" ; then
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6427 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6428 installed." >&5
6429 echo "$as_me: error: could not determine flags for linking embedded Perl.
6430 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6431 installed." >&2;}
6432 { (exit 1); exit 1; }; }
6433 else
6434 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6435 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6440 if test "$with_python" = yes; then
6441 # Extract the first word of "python", so it can be a program name with args.
6442 set dummy python; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_PYTHON+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 case $PYTHON in
6449 [\\/]* | ?:[\\/]*)
6450 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6469 esac
6471 PYTHON=$ac_cv_path_PYTHON
6472 if test -n "$PYTHON"; then
6473 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6474 echo "${ECHO_T}$PYTHON" >&6; }
6475 else
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6481 if test x"$PYTHON" = x""; then
6482 { { echo "$as_me:$LINENO: error: Python not found" >&5
6483 echo "$as_me: error: Python not found" >&2;}
6484 { (exit 1); exit 1; }; }
6488 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6489 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6490 if "${PYTHON}" 2>&- -c 'import distutils'
6491 then
6492 { echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6; }
6494 else
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6498 echo "$as_me: error: distutils module not found" >&2;}
6499 { (exit 1); exit 1; }; }
6501 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6502 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6503 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6504 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')"`
6505 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6507 # This should be enough of a message.
6508 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6509 echo "${ECHO_T}$python_configdir" >&6; }
6512 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6513 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6515 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6516 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6517 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6518 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6520 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6521 then
6522 # New way: use the official shared library
6523 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6524 python_libspec="-L${python_libdir} -l${ldlibrary}"
6525 else
6526 # Old way: use libpython from python_configdir
6527 python_libdir="${python_configdir}"
6528 python_libspec="-L${python_libdir} -lpython${python_version}"
6531 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6533 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6534 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6537 # threaded python is not supported on bsd's
6538 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6539 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6540 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6541 if test "$pythreads" = "1"; then
6542 { echo "$as_me:$LINENO: result: yes" >&5
6543 echo "${ECHO_T}yes" >&6; }
6544 case $host_os in
6545 openbsd*|freebsd*)
6546 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6547 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6548 { (exit 1); exit 1; }; }
6550 esac
6551 else
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6559 # Supply a numeric version string for use by 3rd party add-ons
6560 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6561 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6562 tr '.' ' ' |
6563 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6565 cat >>confdefs.h <<_ACEOF
6566 #define PG_VERSION_NUM $PG_VERSION_NUM
6567 _ACEOF
6571 ## Libraries
6573 ## Most libraries are included only if they demonstrably provide a function
6574 ## we need, but libm is an exception: always include it, because there are
6575 ## too many compilers that play cute optimization games that will break
6576 ## probes for standard functions such as pow().
6580 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6581 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6582 if test "${ac_cv_lib_m_main+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 ac_check_lib_save_LIBS=$LIBS
6586 LIBS="-lm $LIBS"
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6596 main ()
6598 return main ();
6600 return 0;
6602 _ACEOF
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_link") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest$ac_exeext &&
6620 $as_test_x conftest$ac_exeext; then
6621 ac_cv_lib_m_main=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_cv_lib_m_main=no
6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630 conftest$ac_exeext conftest.$ac_ext
6631 LIBS=$ac_check_lib_save_LIBS
6633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6634 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6635 if test $ac_cv_lib_m_main = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE_LIBM 1
6638 _ACEOF
6640 LIBS="-lm $LIBS"
6644 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6645 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6646 if test "${ac_cv_search_setproctitle+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 ac_func_search_save_LIBS=$LIBS
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6657 /* Override any GCC internal prototype to avoid an error.
6658 Use char because int might match the return type of a GCC
6659 builtin and then its argument prototype would still apply. */
6660 #ifdef __cplusplus
6661 extern "C"
6662 #endif
6663 char setproctitle ();
6665 main ()
6667 return setproctitle ();
6669 return 0;
6671 _ACEOF
6672 for ac_lib in '' util; do
6673 if test -z "$ac_lib"; then
6674 ac_res="none required"
6675 else
6676 ac_res=-l$ac_lib
6677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_link") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && {
6693 test -z "$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 } && test -s conftest$ac_exeext &&
6696 $as_test_x conftest$ac_exeext; then
6697 ac_cv_search_setproctitle=$ac_res
6698 else
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6706 conftest$ac_exeext
6707 if test "${ac_cv_search_setproctitle+set}" = set; then
6708 break
6710 done
6711 if test "${ac_cv_search_setproctitle+set}" = set; then
6713 else
6714 ac_cv_search_setproctitle=no
6716 rm conftest.$ac_ext
6717 LIBS=$ac_func_search_save_LIBS
6719 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6720 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6721 ac_res=$ac_cv_search_setproctitle
6722 if test "$ac_res" != no; then
6723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6727 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6728 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6729 if test "${ac_cv_search_dlopen+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 ac_func_search_save_LIBS=$LIBS
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 /* Override any GCC internal prototype to avoid an error.
6741 Use char because int might match the return type of a GCC
6742 builtin and then its argument prototype would still apply. */
6743 #ifdef __cplusplus
6744 extern "C"
6745 #endif
6746 char dlopen ();
6748 main ()
6750 return dlopen ();
6752 return 0;
6754 _ACEOF
6755 for ac_lib in '' dl; do
6756 if test -z "$ac_lib"; then
6757 ac_res="none required"
6758 else
6759 ac_res=-l$ac_lib
6760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_link") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest$ac_exeext &&
6779 $as_test_x conftest$ac_exeext; then
6780 ac_cv_search_dlopen=$ac_res
6781 else
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6789 conftest$ac_exeext
6790 if test "${ac_cv_search_dlopen+set}" = set; then
6791 break
6793 done
6794 if test "${ac_cv_search_dlopen+set}" = set; then
6796 else
6797 ac_cv_search_dlopen=no
6799 rm conftest.$ac_ext
6800 LIBS=$ac_func_search_save_LIBS
6802 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6803 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6804 ac_res=$ac_cv_search_dlopen
6805 if test "$ac_res" != no; then
6806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6810 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6811 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6812 if test "${ac_cv_search_socket+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 ac_func_search_save_LIBS=$LIBS
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6823 /* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
6826 #ifdef __cplusplus
6827 extern "C"
6828 #endif
6829 char socket ();
6831 main ()
6833 return socket ();
6835 return 0;
6837 _ACEOF
6838 for ac_lib in '' socket wsock32; do
6839 if test -z "$ac_lib"; then
6840 ac_res="none required"
6841 else
6842 ac_res=-l$ac_lib
6843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (ac_try="$ac_link"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_link") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest$ac_exeext &&
6862 $as_test_x conftest$ac_exeext; then
6863 ac_cv_search_socket=$ac_res
6864 else
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6872 conftest$ac_exeext
6873 if test "${ac_cv_search_socket+set}" = set; then
6874 break
6876 done
6877 if test "${ac_cv_search_socket+set}" = set; then
6879 else
6880 ac_cv_search_socket=no
6882 rm conftest.$ac_ext
6883 LIBS=$ac_func_search_save_LIBS
6885 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6886 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6887 ac_res=$ac_cv_search_socket
6888 if test "$ac_res" != no; then
6889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6893 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6894 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6895 if test "${ac_cv_search_shl_load+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 ac_func_search_save_LIBS=$LIBS
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6906 /* Override any GCC internal prototype to avoid an error.
6907 Use char because int might match the return type of a GCC
6908 builtin and then its argument prototype would still apply. */
6909 #ifdef __cplusplus
6910 extern "C"
6911 #endif
6912 char shl_load ();
6914 main ()
6916 return shl_load ();
6918 return 0;
6920 _ACEOF
6921 for ac_lib in '' dld; do
6922 if test -z "$ac_lib"; then
6923 ac_res="none required"
6924 else
6925 ac_res=-l$ac_lib
6926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>conftest.er1
6936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest$ac_exeext &&
6945 $as_test_x conftest$ac_exeext; then
6946 ac_cv_search_shl_load=$ac_res
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6955 conftest$ac_exeext
6956 if test "${ac_cv_search_shl_load+set}" = set; then
6957 break
6959 done
6960 if test "${ac_cv_search_shl_load+set}" = set; then
6962 else
6963 ac_cv_search_shl_load=no
6965 rm conftest.$ac_ext
6966 LIBS=$ac_func_search_save_LIBS
6968 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6969 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6970 ac_res=$ac_cv_search_shl_load
6971 if test "$ac_res" != no; then
6972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6976 # We only use libld in port/dynloader/aix.c
6977 case $host_os in
6978 aix*)
6979 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6980 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6981 if test "${ac_cv_search_ldopen+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 ac_func_search_save_LIBS=$LIBS
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any GCC internal prototype to avoid an error.
6993 Use char because int might match the return type of a GCC
6994 builtin and then its argument prototype would still apply. */
6995 #ifdef __cplusplus
6996 extern "C"
6997 #endif
6998 char ldopen ();
7000 main ()
7002 return ldopen ();
7004 return 0;
7006 _ACEOF
7007 for ac_lib in '' ld; do
7008 if test -z "$ac_lib"; then
7009 ac_res="none required"
7010 else
7011 ac_res=-l$ac_lib
7012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (ac_try="$ac_link"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_link") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest$ac_exeext &&
7031 $as_test_x conftest$ac_exeext; then
7032 ac_cv_search_ldopen=$ac_res
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041 conftest$ac_exeext
7042 if test "${ac_cv_search_ldopen+set}" = set; then
7043 break
7045 done
7046 if test "${ac_cv_search_ldopen+set}" = set; then
7048 else
7049 ac_cv_search_ldopen=no
7051 rm conftest.$ac_ext
7052 LIBS=$ac_func_search_save_LIBS
7054 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7055 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7056 ac_res=$ac_cv_search_ldopen
7057 if test "$ac_res" != no; then
7058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7063 esac
7064 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7065 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7066 if test "${ac_cv_search_getopt_long+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 ac_func_search_save_LIBS=$LIBS
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7077 /* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7080 #ifdef __cplusplus
7081 extern "C"
7082 #endif
7083 char getopt_long ();
7085 main ()
7087 return getopt_long ();
7089 return 0;
7091 _ACEOF
7092 for ac_lib in '' getopt gnugetopt; do
7093 if test -z "$ac_lib"; then
7094 ac_res="none required"
7095 else
7096 ac_res=-l$ac_lib
7097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7101 case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7104 esac
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_link") 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest$ac_exeext &&
7116 $as_test_x conftest$ac_exeext; then
7117 ac_cv_search_getopt_long=$ac_res
7118 else
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7126 conftest$ac_exeext
7127 if test "${ac_cv_search_getopt_long+set}" = set; then
7128 break
7130 done
7131 if test "${ac_cv_search_getopt_long+set}" = set; then
7133 else
7134 ac_cv_search_getopt_long=no
7136 rm conftest.$ac_ext
7137 LIBS=$ac_func_search_save_LIBS
7139 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7140 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7141 ac_res=$ac_cv_search_getopt_long
7142 if test "$ac_res" != no; then
7143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7147 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7148 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7149 if test "${ac_cv_search_crypt+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 ac_func_search_save_LIBS=$LIBS
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 char crypt ();
7168 main ()
7170 return crypt ();
7172 return 0;
7174 _ACEOF
7175 for ac_lib in '' crypt; do
7176 if test -z "$ac_lib"; then
7177 ac_res="none required"
7178 else
7179 ac_res=-l$ac_lib
7180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7182 rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (ac_try="$ac_link"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_link") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest$ac_exeext &&
7199 $as_test_x conftest$ac_exeext; then
7200 ac_cv_search_crypt=$ac_res
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7209 conftest$ac_exeext
7210 if test "${ac_cv_search_crypt+set}" = set; then
7211 break
7213 done
7214 if test "${ac_cv_search_crypt+set}" = set; then
7216 else
7217 ac_cv_search_crypt=no
7219 rm conftest.$ac_ext
7220 LIBS=$ac_func_search_save_LIBS
7222 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7223 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7224 ac_res=$ac_cv_search_crypt
7225 if test "$ac_res" != no; then
7226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7230 # Solaris:
7231 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7232 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7233 if test "${ac_cv_search_fdatasync+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 ac_func_search_save_LIBS=$LIBS
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7244 /* Override any GCC internal prototype to avoid an error.
7245 Use char because int might match the return type of a GCC
7246 builtin and then its argument prototype would still apply. */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 char fdatasync ();
7252 main ()
7254 return fdatasync ();
7256 return 0;
7258 _ACEOF
7259 for ac_lib in '' rt posix4; do
7260 if test -z "$ac_lib"; then
7261 ac_res="none required"
7262 else
7263 ac_res=-l$ac_lib
7264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_link") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest$ac_exeext &&
7283 $as_test_x conftest$ac_exeext; then
7284 ac_cv_search_fdatasync=$ac_res
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7293 conftest$ac_exeext
7294 if test "${ac_cv_search_fdatasync+set}" = set; then
7295 break
7297 done
7298 if test "${ac_cv_search_fdatasync+set}" = set; then
7300 else
7301 ac_cv_search_fdatasync=no
7303 rm conftest.$ac_ext
7304 LIBS=$ac_func_search_save_LIBS
7306 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7307 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7308 ac_res=$ac_cv_search_fdatasync
7309 if test "$ac_res" != no; then
7310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7314 # Cygwin:
7315 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7316 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7317 if test "${ac_cv_search_shmget+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320 ac_func_search_save_LIBS=$LIBS
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7331 #ifdef __cplusplus
7332 extern "C"
7333 #endif
7334 char shmget ();
7336 main ()
7338 return shmget ();
7340 return 0;
7342 _ACEOF
7343 for ac_lib in '' cygipc; do
7344 if test -z "$ac_lib"; then
7345 ac_res="none required"
7346 else
7347 ac_res=-l$ac_lib
7348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 ac_cv_search_shmget=$ac_res
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext
7378 if test "${ac_cv_search_shmget+set}" = set; then
7379 break
7381 done
7382 if test "${ac_cv_search_shmget+set}" = set; then
7384 else
7385 ac_cv_search_shmget=no
7387 rm conftest.$ac_ext
7388 LIBS=$ac_func_search_save_LIBS
7390 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7391 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7392 ac_res=$ac_cv_search_shmget
7393 if test "$ac_res" != no; then
7394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7399 if test "$with_readline" = yes; then
7402 if test "${pgac_cv_check_readline+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 pgac_cv_check_readline=no
7406 pgac_save_LIBS=$LIBS
7407 if test x"$with_libedit_preferred" != x"yes"
7408 then READLINE_ORDER="-lreadline -ledit"
7409 else READLINE_ORDER="-ledit -lreadline"
7411 for pgac_rllib in $READLINE_ORDER ; do
7412 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7413 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7414 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7415 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 /* Override any GCC internal prototype to avoid an error.
7424 Use char because int might match the return type of a GCC
7425 builtin and then its argument prototype would still apply. */
7426 #ifdef __cplusplus
7427 extern "C"
7428 #endif
7429 char readline ();
7431 main ()
7433 return readline ();
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_link") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest$ac_exeext &&
7455 $as_test_x conftest$ac_exeext; then
7457 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7458 # recognize dependent libraries; assume curses is needed if we didn't
7459 # find any dependency.
7460 case $host_os in
7461 netbsd* | openbsd* | irix*)
7462 if test x"$pgac_lib" = x"" ; then
7463 pgac_lib=" -lcurses"
7464 fi ;;
7465 esac
7467 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7468 break
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7478 conftest$ac_exeext conftest.$ac_ext
7479 done
7480 if test "$pgac_cv_check_readline" != no ; then
7481 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7482 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7483 break
7484 else
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7488 done
7489 LIBS=$pgac_save_LIBS
7493 if test "$pgac_cv_check_readline" != no ; then
7494 LIBS="$pgac_cv_check_readline $LIBS"
7496 cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_LIBREADLINE 1
7498 _ACEOF
7503 if test x"$pgac_cv_check_readline" = x"no"; then
7504 { { echo "$as_me:$LINENO: error: readline library not found
7505 If you have readline already installed, see config.log for details on the
7506 failure. It is possible the compiler isn't looking in the proper directory.
7507 Use --without-readline to disable readline support." >&5
7508 echo "$as_me: error: readline library not found
7509 If you have readline already installed, see config.log for details on the
7510 failure. It is possible the compiler isn't looking in the proper directory.
7511 Use --without-readline to disable readline support." >&2;}
7512 { (exit 1); exit 1; }; }
7516 if test "$with_zlib" = yes; then
7518 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7519 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7520 if test "${ac_cv_lib_z_inflate+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523 ac_check_lib_save_LIBS=$LIBS
7524 LIBS="-lz $LIBS"
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h. */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7532 /* Override any GCC internal prototype to avoid an error.
7533 Use char because int might match the return type of a GCC
7534 builtin and then its argument prototype would still apply. */
7535 #ifdef __cplusplus
7536 extern "C"
7537 #endif
7538 char inflate ();
7540 main ()
7542 return inflate ();
7544 return 0;
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7549 case "(($ac_try" in
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_link") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext &&
7564 $as_test_x conftest$ac_exeext; then
7565 ac_cv_lib_z_inflate=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_lib_z_inflate=no
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7577 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7578 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7579 if test $ac_cv_lib_z_inflate = yes; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define HAVE_LIBZ 1
7582 _ACEOF
7584 LIBS="-lz $LIBS"
7586 else
7587 { { echo "$as_me:$LINENO: error: zlib library not found
7588 If you have zlib already installed, see config.log for details on the
7589 failure. It is possible the compiler isn't looking in the proper directory.
7590 Use --without-zlib to disable zlib support." >&5
7591 echo "$as_me: error: zlib library not found
7592 If you have zlib already installed, see config.log for details on the
7593 failure. It is possible the compiler isn't looking in the proper directory.
7594 Use --without-zlib to disable zlib support." >&2;}
7595 { (exit 1); exit 1; }; }
7600 if test "$enable_spinlocks" = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_SPINLOCKS 1
7604 _ACEOF
7606 else
7607 { echo "$as_me:$LINENO: WARNING:
7608 *** Not using spinlocks will cause poor performance." >&5
7609 echo "$as_me: WARNING:
7610 *** Not using spinlocks will cause poor performance." >&2;}
7613 if test "$with_gssapi" = yes ; then
7614 if test "$PORTNAME" != "win32"; then
7615 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7616 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7617 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 ac_func_search_save_LIBS=$LIBS
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7628 /* Override any GCC internal prototype to avoid an error.
7629 Use char because int might match the return type of a GCC
7630 builtin and then its argument prototype would still apply. */
7631 #ifdef __cplusplus
7632 extern "C"
7633 #endif
7634 char gss_init_sec_context ();
7636 main ()
7638 return gss_init_sec_context ();
7640 return 0;
7642 _ACEOF
7643 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7644 if test -z "$ac_lib"; then
7645 ac_res="none required"
7646 else
7647 ac_res=-l$ac_lib
7648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7650 rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (ac_try="$ac_link"
7652 case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_link") 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest$ac_exeext &&
7667 $as_test_x conftest$ac_exeext; then
7668 ac_cv_search_gss_init_sec_context=$ac_res
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7677 conftest$ac_exeext
7678 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7679 break
7681 done
7682 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7684 else
7685 ac_cv_search_gss_init_sec_context=no
7687 rm conftest.$ac_ext
7688 LIBS=$ac_func_search_save_LIBS
7690 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7691 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7692 ac_res=$ac_cv_search_gss_init_sec_context
7693 if test "$ac_res" != no; then
7694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7696 else
7697 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7698 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7699 { (exit 1); exit 1; }; }
7702 else
7703 LIBS="$LIBS -lgssapi32"
7707 if test "$with_krb5" = yes ; then
7708 if test "$PORTNAME" != "win32"; then
7709 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7710 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7711 if test "${ac_cv_search_com_err+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 ac_func_search_save_LIBS=$LIBS
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 char com_err ();
7730 main ()
7732 return com_err ();
7734 return 0;
7736 _ACEOF
7737 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7738 if test -z "$ac_lib"; then
7739 ac_res="none required"
7740 else
7741 ac_res=-l$ac_lib
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest$ac_exeext &&
7761 $as_test_x conftest$ac_exeext; then
7762 ac_cv_search_com_err=$ac_res
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7771 conftest$ac_exeext
7772 if test "${ac_cv_search_com_err+set}" = set; then
7773 break
7775 done
7776 if test "${ac_cv_search_com_err+set}" = set; then
7778 else
7779 ac_cv_search_com_err=no
7781 rm conftest.$ac_ext
7782 LIBS=$ac_func_search_save_LIBS
7784 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7785 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7786 ac_res=$ac_cv_search_com_err
7787 if test "$ac_res" != no; then
7788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7790 else
7791 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7792 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7793 { (exit 1); exit 1; }; }
7796 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7797 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7798 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 ac_func_search_save_LIBS=$LIBS
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 /* Override any GCC internal prototype to avoid an error.
7810 Use char because int might match the return type of a GCC
7811 builtin and then its argument prototype would still apply. */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 char krb5_sendauth ();
7817 main ()
7819 return krb5_sendauth ();
7821 return 0;
7823 _ACEOF
7824 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7825 if test -z "$ac_lib"; then
7826 ac_res="none required"
7827 else
7828 ac_res=-l$ac_lib
7829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7833 case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836 esac
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest$ac_exeext &&
7848 $as_test_x conftest$ac_exeext; then
7849 ac_cv_search_krb5_sendauth=$ac_res
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7858 conftest$ac_exeext
7859 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7860 break
7862 done
7863 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7865 else
7866 ac_cv_search_krb5_sendauth=no
7868 rm conftest.$ac_ext
7869 LIBS=$ac_func_search_save_LIBS
7871 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7872 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7873 ac_res=$ac_cv_search_krb5_sendauth
7874 if test "$ac_res" != no; then
7875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7877 else
7878 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7879 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7880 { (exit 1); exit 1; }; }
7883 else
7884 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7885 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7886 if test "${ac_cv_search_com_err+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 ac_func_search_save_LIBS=$LIBS
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7897 /* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7900 #ifdef __cplusplus
7901 extern "C"
7902 #endif
7903 char com_err ();
7905 main ()
7907 return com_err ();
7909 return 0;
7911 _ACEOF
7912 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7913 if test -z "$ac_lib"; then
7914 ac_res="none required"
7915 else
7916 ac_res=-l$ac_lib
7917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext &&
7936 $as_test_x conftest$ac_exeext; then
7937 ac_cv_search_com_err=$ac_res
7938 else
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7946 conftest$ac_exeext
7947 if test "${ac_cv_search_com_err+set}" = set; then
7948 break
7950 done
7951 if test "${ac_cv_search_com_err+set}" = set; then
7953 else
7954 ac_cv_search_com_err=no
7956 rm conftest.$ac_ext
7957 LIBS=$ac_func_search_save_LIBS
7959 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7960 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7961 ac_res=$ac_cv_search_com_err
7962 if test "$ac_res" != no; then
7963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7965 else
7966 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7967 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7968 { (exit 1); exit 1; }; }
7974 if test "$with_openssl" = yes ; then
7975 if test "$PORTNAME" != "win32"; then
7977 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7978 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7979 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lcrypto $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 char CRYPTO_new_ex_data ();
7999 main ()
8001 return CRYPTO_new_ex_data ();
8003 return 0;
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (ac_try="$ac_link"
8008 case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_link") 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest$ac_exeext &&
8023 $as_test_x conftest$ac_exeext; then
8024 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8033 conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8036 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8037 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8038 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_LIBCRYPTO 1
8041 _ACEOF
8043 LIBS="-lcrypto $LIBS"
8045 else
8046 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8047 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8048 { (exit 1); exit 1; }; }
8052 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8053 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8054 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 ac_check_lib_save_LIBS=$LIBS
8058 LIBS="-lssl $LIBS"
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8066 /* Override any GCC internal prototype to avoid an error.
8067 Use char because int might match the return type of a GCC
8068 builtin and then its argument prototype would still apply. */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 char SSL_library_init ();
8074 main ()
8076 return SSL_library_init ();
8078 return 0;
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8083 case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext &&
8098 $as_test_x conftest$ac_exeext; then
8099 ac_cv_lib_ssl_SSL_library_init=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_lib_ssl_SSL_library_init=no
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8111 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8112 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8113 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_LIBSSL 1
8116 _ACEOF
8118 LIBS="-lssl $LIBS"
8120 else
8121 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8122 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8123 { (exit 1); exit 1; }; }
8126 else
8128 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8129 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8130 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-leay32 $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8145 #ifdef __cplusplus
8146 extern "C"
8147 #endif
8148 char CRYPTO_new_ex_data ();
8150 main ()
8152 return CRYPTO_new_ex_data ();
8154 return 0;
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8159 case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_link") 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_c_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest$ac_exeext &&
8174 $as_test_x conftest$ac_exeext; then
8175 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8184 conftest$ac_exeext conftest.$ac_ext
8185 LIBS=$ac_check_lib_save_LIBS
8187 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8188 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8189 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8190 cat >>confdefs.h <<_ACEOF
8191 #define HAVE_LIBEAY32 1
8192 _ACEOF
8194 LIBS="-leay32 $LIBS"
8196 else
8197 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8198 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8199 { (exit 1); exit 1; }; }
8203 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8204 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8205 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208 ac_check_lib_save_LIBS=$LIBS
8209 LIBS="-lssleay32 $LIBS"
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char SSL_library_init ();
8225 main ()
8227 return SSL_library_init ();
8229 return 0;
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (ac_try="$ac_link"
8234 case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_link") 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest$ac_exeext &&
8249 $as_test_x conftest$ac_exeext; then
8250 ac_cv_lib_ssleay32_SSL_library_init=yes
8251 else
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_cv_lib_ssleay32_SSL_library_init=no
8258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8262 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8263 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8264 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_LIBSSLEAY32 1
8267 _ACEOF
8269 LIBS="-lssleay32 $LIBS"
8271 else
8272 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8273 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8274 { (exit 1); exit 1; }; }
8280 if test "$with_pam" = yes ; then
8282 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8283 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8284 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lpam $LIBS"
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 char pam_start ();
8304 main ()
8306 return pam_start ();
8308 return 0;
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8313 case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_link") 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest$ac_exeext &&
8328 $as_test_x conftest$ac_exeext; then
8329 ac_cv_lib_pam_pam_start=yes
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_lib_pam_pam_start=no
8337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8341 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8342 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8343 if test $ac_cv_lib_pam_pam_start = yes; then
8344 cat >>confdefs.h <<_ACEOF
8345 #define HAVE_LIBPAM 1
8346 _ACEOF
8348 LIBS="-lpam $LIBS"
8350 else
8351 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8352 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8353 { (exit 1); exit 1; }; }
8358 if test "$with_libxml" = yes ; then
8360 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8361 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8362 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-lxml2 $LIBS"
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8374 /* Override any GCC internal prototype to avoid an error.
8375 Use char because int might match the return type of a GCC
8376 builtin and then its argument prototype would still apply. */
8377 #ifdef __cplusplus
8378 extern "C"
8379 #endif
8380 char xmlSaveToBuffer ();
8382 main ()
8384 return xmlSaveToBuffer ();
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_lib_xml2_xmlSaveToBuffer=no
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8420 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8421 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define HAVE_LIBXML2 1
8424 _ACEOF
8426 LIBS="-lxml2 $LIBS"
8428 else
8429 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8430 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8431 { (exit 1); exit 1; }; }
8436 if test "$with_libxslt" = yes ; then
8438 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8439 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8440 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 ac_check_lib_save_LIBS=$LIBS
8444 LIBS="-lxslt $LIBS"
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 /* Override any GCC internal prototype to avoid an error.
8453 Use char because int might match the return type of a GCC
8454 builtin and then its argument prototype would still apply. */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 char xsltCleanupGlobals ();
8460 main ()
8462 return xsltCleanupGlobals ();
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_link") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest$ac_exeext &&
8484 $as_test_x conftest$ac_exeext; then
8485 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8486 else
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_lib_xslt_xsltCleanupGlobals=no
8493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8497 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8498 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8499 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8500 cat >>confdefs.h <<_ACEOF
8501 #define HAVE_LIBXSLT 1
8502 _ACEOF
8504 LIBS="-lxslt $LIBS"
8506 else
8507 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8508 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8509 { (exit 1); exit 1; }; }
8514 # for contrib/uuid-ossp
8515 if test "$with_ossp_uuid" = yes ; then
8516 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8517 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8518 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lossp-uuid $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char uuid_export ();
8538 main ()
8540 return uuid_export ();
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_link") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest$ac_exeext &&
8562 $as_test_x conftest$ac_exeext; then
8563 ac_cv_lib_ossp_uuid_uuid_export=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_lib_ossp_uuid_uuid_export=no
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8576 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8577 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8578 OSSP_UUID_LIBS="-lossp-uuid"
8579 else
8580 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8581 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8582 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 ac_check_lib_save_LIBS=$LIBS
8586 LIBS="-luuid $LIBS"
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 /* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 char uuid_export ();
8602 main ()
8604 return uuid_export ();
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (ac_try="$ac_link"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_link") 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest$ac_exeext &&
8626 $as_test_x conftest$ac_exeext; then
8627 ac_cv_lib_uuid_uuid_export=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_uuid_uuid_export=no
8635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8636 conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8639 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8640 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8641 if test $ac_cv_lib_uuid_uuid_export = yes; then
8642 OSSP_UUID_LIBS="-luuid"
8643 else
8644 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8645 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8646 { (exit 1); exit 1; }; }
8656 ## Header files
8659 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8660 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8661 if test "${ac_cv_header_stdc+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 #include <stdlib.h>
8671 #include <stdarg.h>
8672 #include <string.h>
8673 #include <float.h>
8676 main ()
8680 return 0;
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_header_stdc=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_header_stdc=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 if test $ac_cv_header_stdc = yes; then
8711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8712 cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h. */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 #include <string.h>
8720 _ACEOF
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "memchr" >/dev/null 2>&1; then
8724 else
8725 ac_cv_header_stdc=no
8727 rm -f conftest*
8731 if test $ac_cv_header_stdc = yes; then
8732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 #include <stdlib.h>
8741 _ACEOF
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "free" >/dev/null 2>&1; then
8745 else
8746 ac_cv_header_stdc=no
8748 rm -f conftest*
8752 if test $ac_cv_header_stdc = yes; then
8753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8754 if test "$cross_compiling" = yes; then
8756 else
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h. */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 #include <ctype.h>
8764 #include <stdlib.h>
8765 #if ((' ' & 0x0FF) == 0x020)
8766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8768 #else
8769 # define ISLOWER(c) \
8770 (('a' <= (c) && (c) <= 'i') \
8771 || ('j' <= (c) && (c) <= 'r') \
8772 || ('s' <= (c) && (c) <= 'z'))
8773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8774 #endif
8776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8778 main ()
8780 int i;
8781 for (i = 0; i < 256; i++)
8782 if (XOR (islower (i), ISLOWER (i))
8783 || toupper (i) != TOUPPER (i))
8784 return 2;
8785 return 0;
8787 _ACEOF
8788 rm -f conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8790 case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_link") 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8809 else
8810 echo "$as_me: program exited with status $ac_status" >&5
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ( exit $ac_status )
8815 ac_cv_header_stdc=no
8817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8823 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8824 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8825 if test $ac_cv_header_stdc = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define STDC_HEADERS 1
8829 _ACEOF
8833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8844 inttypes.h stdint.h unistd.h
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8860 #include <$ac_header>
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8864 case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 eval "$as_ac_Header=yes"
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 eval "$as_ac_Header=no"
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 ac_res=`eval echo '${'$as_ac_Header'}'`
8890 { echo "$as_me:$LINENO: result: $ac_res" >&5
8891 echo "${ECHO_T}$ac_res" >&6; }
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893 cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895 _ACEOF
8899 done
8928 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
8930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 ac_res=`eval echo '${'$as_ac_Header'}'`
8938 { echo "$as_me:$LINENO: result: $ac_res" >&5
8939 echo "${ECHO_T}$ac_res" >&6; }
8940 else
8941 # Is the header compilable?
8942 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 $ac_includes_default
8951 #include <$ac_header>
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (ac_try="$ac_compile"
8955 case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958 esac
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && {
8967 test -z "$ac_c_werror_flag" ||
8968 test ! -s conftest.err
8969 } && test -s conftest.$ac_objext; then
8970 ac_header_compiler=yes
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_header_compiler=no
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980 echo "${ECHO_T}$ac_header_compiler" >&6; }
8982 # Is the header present?
8983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h. */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 #include <$ac_header>
8992 _ACEOF
8993 if { (ac_try="$ac_cpp conftest.$ac_ext"
8994 case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } >/dev/null && {
9006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 }; then
9009 ac_header_preproc=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_header_preproc=no
9017 rm -f conftest.err conftest.$ac_ext
9018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 echo "${ECHO_T}$ac_header_preproc" >&6; }
9021 # So? What about this header?
9022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9023 yes:no: )
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028 ac_header_preproc=yes
9030 no:yes:* )
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9043 ( cat <<\_ASBOX
9044 ## ---------------------------------------- ##
9045 ## Report this to pgsql-bugs@postgresql.org ##
9046 ## ---------------------------------------- ##
9047 _ASBOX
9048 ) | sed "s/^/$as_me: WARNING: /" >&2
9050 esac
9051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066 _ACEOF
9070 done
9073 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9074 # netinet/in.h is included first.
9076 for ac_header in netinet/in.h
9078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_res=`eval echo '${'$as_ac_Header'}'`
9086 { echo "$as_me:$LINENO: result: $ac_res" >&5
9087 echo "${ECHO_T}$ac_res" >&6; }
9088 else
9089 # Is the header compilable?
9090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 #include <$ac_header>
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (ac_try="$ac_compile"
9103 case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_c_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest.$ac_objext; then
9118 ac_header_compiler=yes
9119 else
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ac_header_compiler=no
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9128 echo "${ECHO_T}$ac_header_compiler" >&6; }
9130 # Is the header present?
9131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 #include <$ac_header>
9140 _ACEOF
9141 if { (ac_try="$ac_cpp conftest.$ac_ext"
9142 case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } >/dev/null && {
9154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 }; then
9157 ac_header_preproc=yes
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_header_preproc=no
9165 rm -f conftest.err conftest.$ac_ext
9166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9167 echo "${ECHO_T}$ac_header_preproc" >&6; }
9169 # So? What about this header?
9170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9171 yes:no: )
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9176 ac_header_preproc=yes
9178 no:yes:* )
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9191 ( cat <<\_ASBOX
9192 ## ---------------------------------------- ##
9193 ## Report this to pgsql-bugs@postgresql.org ##
9194 ## ---------------------------------------- ##
9195 _ASBOX
9196 ) | sed "s/^/$as_me: WARNING: /" >&2
9198 esac
9199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 eval "$as_ac_Header=\$ac_header_preproc"
9206 ac_res=`eval echo '${'$as_ac_Header'}'`
9207 { echo "$as_me:$LINENO: result: $ac_res" >&5
9208 echo "${ECHO_T}$ac_res" >&6; }
9211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9214 _ACEOF
9218 done
9221 for ac_header in netinet/tcp.h
9223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9236 #ifdef HAVE_NETINET_IN_H
9237 #include <netinet/in.h>
9238 #endif
9241 #include <$ac_header>
9242 _ACEOF
9243 rm -f conftest.$ac_objext
9244 if { (ac_try="$ac_compile"
9245 case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9248 esac
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_compile") 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest.$ac_objext; then
9260 eval "$as_ac_Header=yes"
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 eval "$as_ac_Header=no"
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 ac_res=`eval echo '${'$as_ac_Header'}'`
9271 { echo "$as_me:$LINENO: result: $ac_res" >&5
9272 echo "${ECHO_T}$ac_res" >&6; }
9273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9276 _ACEOF
9280 done
9283 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9285 for ac_header in readline/readline.h
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 ac_res=`eval echo '${'$as_ac_Header'}'`
9295 { echo "$as_me:$LINENO: result: $ac_res" >&5
9296 echo "${ECHO_T}$ac_res" >&6; }
9297 else
9298 # Is the header compilable?
9299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (ac_try="$ac_compile"
9312 case "(($ac_try" in
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_compile") 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest.$ac_objext; then
9327 ac_header_compiler=yes
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_header_compiler=no
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9337 echo "${ECHO_T}$ac_header_compiler" >&6; }
9339 # Is the header present?
9340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <$ac_header>
9349 _ACEOF
9350 if { (ac_try="$ac_cpp conftest.$ac_ext"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } >/dev/null && {
9363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 }; then
9366 ac_header_preproc=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_preproc=no
9374 rm -f conftest.err conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9376 echo "${ECHO_T}$ac_header_preproc" >&6; }
9378 # So? What about this header?
9379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9380 yes:no: )
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9385 ac_header_preproc=yes
9387 no:yes:* )
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9400 ( cat <<\_ASBOX
9401 ## ---------------------------------------- ##
9402 ## Report this to pgsql-bugs@postgresql.org ##
9403 ## ---------------------------------------- ##
9404 _ASBOX
9405 ) | sed "s/^/$as_me: WARNING: /" >&2
9407 esac
9408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 eval "$as_ac_Header=\$ac_header_preproc"
9415 ac_res=`eval echo '${'$as_ac_Header'}'`
9416 { echo "$as_me:$LINENO: result: $ac_res" >&5
9417 echo "${ECHO_T}$ac_res" >&6; }
9420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9423 _ACEOF
9425 else
9427 for ac_header in readline.h
9429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 ac_res=`eval echo '${'$as_ac_Header'}'`
9437 { echo "$as_me:$LINENO: result: $ac_res" >&5
9438 echo "${ECHO_T}$ac_res" >&6; }
9439 else
9440 # Is the header compilable?
9441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 #include <$ac_header>
9451 _ACEOF
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9454 case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_compile") 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && {
9466 test -z "$ac_c_werror_flag" ||
9467 test ! -s conftest.err
9468 } && test -s conftest.$ac_objext; then
9469 ac_header_compiler=yes
9470 else
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_header_compiler=no
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9479 echo "${ECHO_T}$ac_header_compiler" >&6; }
9481 # Is the header present?
9482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 #include <$ac_header>
9491 _ACEOF
9492 if { (ac_try="$ac_cpp conftest.$ac_ext"
9493 case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null && {
9505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 }; then
9508 ac_header_preproc=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_header_preproc=no
9516 rm -f conftest.err conftest.$ac_ext
9517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9518 echo "${ECHO_T}$ac_header_preproc" >&6; }
9520 # So? What about this header?
9521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9522 yes:no: )
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9527 ac_header_preproc=yes
9529 no:yes:* )
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9542 ( cat <<\_ASBOX
9543 ## ---------------------------------------- ##
9544 ## Report this to pgsql-bugs@postgresql.org ##
9545 ## ---------------------------------------- ##
9546 _ASBOX
9547 ) | sed "s/^/$as_me: WARNING: /" >&2
9549 esac
9550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 eval "$as_ac_Header=\$ac_header_preproc"
9557 ac_res=`eval echo '${'$as_ac_Header'}'`
9558 { echo "$as_me:$LINENO: result: $ac_res" >&5
9559 echo "${ECHO_T}$ac_res" >&6; }
9562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9565 _ACEOF
9567 else
9568 { { echo "$as_me:$LINENO: error: readline header not found
9569 If you have readline already installed, see config.log for details on the
9570 failure. It is possible the compiler isn't looking in the proper directory.
9571 Use --without-readline to disable readline support." >&5
9572 echo "$as_me: error: readline header not found
9573 If you have readline already installed, see config.log for details on the
9574 failure. It is possible the compiler isn't looking in the proper directory.
9575 Use --without-readline to disable readline support." >&2;}
9576 { (exit 1); exit 1; }; }
9579 done
9583 done
9586 for ac_header in readline/history.h
9588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_res=`eval echo '${'$as_ac_Header'}'`
9596 { echo "$as_me:$LINENO: result: $ac_res" >&5
9597 echo "${ECHO_T}$ac_res" >&6; }
9598 else
9599 # Is the header compilable?
9600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $ac_includes_default
9609 #include <$ac_header>
9610 _ACEOF
9611 rm -f conftest.$ac_objext
9612 if { (ac_try="$ac_compile"
9613 case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_compile") 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && {
9625 test -z "$ac_c_werror_flag" ||
9626 test ! -s conftest.err
9627 } && test -s conftest.$ac_objext; then
9628 ac_header_compiler=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_header_compiler=no
9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9638 echo "${ECHO_T}$ac_header_compiler" >&6; }
9640 # Is the header present?
9641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <$ac_header>
9650 _ACEOF
9651 if { (ac_try="$ac_cpp conftest.$ac_ext"
9652 case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } >/dev/null && {
9664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 }; then
9667 ac_header_preproc=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_header_preproc=no
9675 rm -f conftest.err conftest.$ac_ext
9676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9677 echo "${ECHO_T}$ac_header_preproc" >&6; }
9679 # So? What about this header?
9680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9681 yes:no: )
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9686 ac_header_preproc=yes
9688 no:yes:* )
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9701 ( cat <<\_ASBOX
9702 ## ---------------------------------------- ##
9703 ## Report this to pgsql-bugs@postgresql.org ##
9704 ## ---------------------------------------- ##
9705 _ASBOX
9706 ) | sed "s/^/$as_me: WARNING: /" >&2
9708 esac
9709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 eval "$as_ac_Header=\$ac_header_preproc"
9716 ac_res=`eval echo '${'$as_ac_Header'}'`
9717 { echo "$as_me:$LINENO: result: $ac_res" >&5
9718 echo "${ECHO_T}$ac_res" >&6; }
9721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9722 cat >>confdefs.h <<_ACEOF
9723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9724 _ACEOF
9726 else
9728 for ac_header in history.h
9730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 ac_res=`eval echo '${'$as_ac_Header'}'`
9738 { echo "$as_me:$LINENO: result: $ac_res" >&5
9739 echo "${ECHO_T}$ac_res" >&6; }
9740 else
9741 # Is the header compilable?
9742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 #include <$ac_header>
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (ac_try="$ac_compile"
9755 case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_compile") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest.$ac_objext; then
9770 ac_header_compiler=yes
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_header_compiler=no
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9780 echo "${ECHO_T}$ac_header_compiler" >&6; }
9782 # Is the header present?
9783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 #include <$ac_header>
9792 _ACEOF
9793 if { (ac_try="$ac_cpp conftest.$ac_ext"
9794 case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } >/dev/null && {
9806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 }; then
9809 ac_header_preproc=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_header_preproc=no
9817 rm -f conftest.err conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9819 echo "${ECHO_T}$ac_header_preproc" >&6; }
9821 # So? What about this header?
9822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9823 yes:no: )
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9828 ac_header_preproc=yes
9830 no:yes:* )
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9843 ( cat <<\_ASBOX
9844 ## ---------------------------------------- ##
9845 ## Report this to pgsql-bugs@postgresql.org ##
9846 ## ---------------------------------------- ##
9847 _ASBOX
9848 ) | sed "s/^/$as_me: WARNING: /" >&2
9850 esac
9851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856 eval "$as_ac_Header=\$ac_header_preproc"
9858 ac_res=`eval echo '${'$as_ac_Header'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860 echo "${ECHO_T}$ac_res" >&6; }
9863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866 _ACEOF
9868 else
9869 { { echo "$as_me:$LINENO: error: history header not found
9870 If you have readline already installed, see config.log for details on the
9871 failure. It is possible the compiler isn't looking in the proper directory.
9872 Use --without-readline to disable readline support." >&5
9873 echo "$as_me: error: history header not found
9874 If you have readline already installed, see config.log for details on the
9875 failure. It is possible the compiler isn't looking in the proper directory.
9876 Use --without-readline to disable readline support." >&2;}
9877 { (exit 1); exit 1; }; }
9880 done
9884 done
9888 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9889 # Some installations of libedit usurp /usr/include/readline/, which seems
9890 # bad practice, since in combined installations readline will have its headers
9891 # there. We might have to resort to AC_EGREP checks to make sure we found
9892 # the proper header...
9894 for ac_header in editline/readline.h
9896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_res=`eval echo '${'$as_ac_Header'}'`
9904 { echo "$as_me:$LINENO: result: $ac_res" >&5
9905 echo "${ECHO_T}$ac_res" >&6; }
9906 else
9907 # Is the header compilable?
9908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 $ac_includes_default
9917 #include <$ac_header>
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9936 ac_header_compiler=yes
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ac_header_compiler=no
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9946 echo "${ECHO_T}$ac_header_compiler" >&6; }
9948 # Is the header present?
9949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 #include <$ac_header>
9958 _ACEOF
9959 if { (ac_try="$ac_cpp conftest.$ac_ext"
9960 case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } >/dev/null && {
9972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9973 test ! -s conftest.err
9974 }; then
9975 ac_header_preproc=yes
9976 else
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_header_preproc=no
9983 rm -f conftest.err conftest.$ac_ext
9984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9985 echo "${ECHO_T}$ac_header_preproc" >&6; }
9987 # So? What about this header?
9988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9989 yes:no: )
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9994 ac_header_preproc=yes
9996 no:yes:* )
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10009 ( cat <<\_ASBOX
10010 ## ---------------------------------------- ##
10011 ## Report this to pgsql-bugs@postgresql.org ##
10012 ## ---------------------------------------- ##
10013 _ASBOX
10014 ) | sed "s/^/$as_me: WARNING: /" >&2
10016 esac
10017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 eval "$as_ac_Header=\$ac_header_preproc"
10024 ac_res=`eval echo '${'$as_ac_Header'}'`
10025 { echo "$as_me:$LINENO: result: $ac_res" >&5
10026 echo "${ECHO_T}$ac_res" >&6; }
10029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10032 _ACEOF
10034 else
10036 for ac_header in readline.h
10038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 ac_res=`eval echo '${'$as_ac_Header'}'`
10046 { echo "$as_me:$LINENO: result: $ac_res" >&5
10047 echo "${ECHO_T}$ac_res" >&6; }
10048 else
10049 # Is the header compilable?
10050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 $ac_includes_default
10059 #include <$ac_header>
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest.$ac_objext; then
10078 ac_header_compiler=yes
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_header_compiler=no
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10088 echo "${ECHO_T}$ac_header_compiler" >&6; }
10090 # Is the header present?
10091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h. */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 #include <$ac_header>
10100 _ACEOF
10101 if { (ac_try="$ac_cpp conftest.$ac_ext"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } >/dev/null && {
10114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 }; then
10117 ac_header_preproc=yes
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_header_preproc=no
10125 rm -f conftest.err conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10127 echo "${ECHO_T}$ac_header_preproc" >&6; }
10129 # So? What about this header?
10130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10131 yes:no: )
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10136 ac_header_preproc=yes
10138 no:yes:* )
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10151 ( cat <<\_ASBOX
10152 ## ---------------------------------------- ##
10153 ## Report this to pgsql-bugs@postgresql.org ##
10154 ## ---------------------------------------- ##
10155 _ASBOX
10156 ) | sed "s/^/$as_me: WARNING: /" >&2
10158 esac
10159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 eval "$as_ac_Header=\$ac_header_preproc"
10166 ac_res=`eval echo '${'$as_ac_Header'}'`
10167 { echo "$as_me:$LINENO: result: $ac_res" >&5
10168 echo "${ECHO_T}$ac_res" >&6; }
10171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10172 cat >>confdefs.h <<_ACEOF
10173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10174 _ACEOF
10176 else
10178 for ac_header in readline/readline.h
10180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 ac_res=`eval echo '${'$as_ac_Header'}'`
10188 { echo "$as_me:$LINENO: result: $ac_res" >&5
10189 echo "${ECHO_T}$ac_res" >&6; }
10190 else
10191 # Is the header compilable?
10192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 $ac_includes_default
10201 #include <$ac_header>
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (ac_try="$ac_compile"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_compile") 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest.$ac_objext; then
10220 ac_header_compiler=yes
10221 else
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 ac_header_compiler=no
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10230 echo "${ECHO_T}$ac_header_compiler" >&6; }
10232 # Is the header present?
10233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <$ac_header>
10242 _ACEOF
10243 if { (ac_try="$ac_cpp conftest.$ac_ext"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } >/dev/null && {
10256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 }; then
10259 ac_header_preproc=yes
10260 else
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_header_preproc=no
10267 rm -f conftest.err conftest.$ac_ext
10268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10269 echo "${ECHO_T}$ac_header_preproc" >&6; }
10271 # So? What about this header?
10272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10273 yes:no: )
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10278 ac_header_preproc=yes
10280 no:yes:* )
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10293 ( cat <<\_ASBOX
10294 ## ---------------------------------------- ##
10295 ## Report this to pgsql-bugs@postgresql.org ##
10296 ## ---------------------------------------- ##
10297 _ASBOX
10298 ) | sed "s/^/$as_me: WARNING: /" >&2
10300 esac
10301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 eval "$as_ac_Header=\$ac_header_preproc"
10308 ac_res=`eval echo '${'$as_ac_Header'}'`
10309 { echo "$as_me:$LINENO: result: $ac_res" >&5
10310 echo "${ECHO_T}$ac_res" >&6; }
10313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10316 _ACEOF
10318 else
10319 { { echo "$as_me:$LINENO: error: readline header not found
10320 If you have libedit already installed, see config.log for details on the
10321 failure. It is possible the compiler isn't looking in the proper directory.
10322 Use --without-readline to disable libedit support." >&5
10323 echo "$as_me: error: readline header not found
10324 If you have libedit already installed, see config.log for details on the
10325 failure. It is possible the compiler isn't looking in the proper directory.
10326 Use --without-readline to disable libedit support." >&2;}
10327 { (exit 1); exit 1; }; }
10330 done
10334 done
10338 done
10340 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10341 # not be there at all. Hence, don't complain if not found. We must check
10342 # though, since in yet other versions it is an independent header.
10344 for ac_header in editline/history.h
10346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 ac_res=`eval echo '${'$as_ac_Header'}'`
10354 { echo "$as_me:$LINENO: result: $ac_res" >&5
10355 echo "${ECHO_T}$ac_res" >&6; }
10356 else
10357 # Is the header compilable?
10358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 #include <$ac_header>
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_compile") 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest.$ac_objext; then
10386 ac_header_compiler=yes
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_header_compiler=no
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10396 echo "${ECHO_T}$ac_header_compiler" >&6; }
10398 # Is the header present?
10399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 #include <$ac_header>
10408 _ACEOF
10409 if { (ac_try="$ac_cpp conftest.$ac_ext"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null && {
10422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 }; then
10425 ac_header_preproc=yes
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_header_preproc=no
10433 rm -f conftest.err conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10435 echo "${ECHO_T}$ac_header_preproc" >&6; }
10437 # So? What about this header?
10438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10439 yes:no: )
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10444 ac_header_preproc=yes
10446 no:yes:* )
10447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10459 ( cat <<\_ASBOX
10460 ## ---------------------------------------- ##
10461 ## Report this to pgsql-bugs@postgresql.org ##
10462 ## ---------------------------------------- ##
10463 _ASBOX
10464 ) | sed "s/^/$as_me: WARNING: /" >&2
10466 esac
10467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 eval "$as_ac_Header=\$ac_header_preproc"
10474 ac_res=`eval echo '${'$as_ac_Header'}'`
10475 { echo "$as_me:$LINENO: result: $ac_res" >&5
10476 echo "${ECHO_T}$ac_res" >&6; }
10479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10482 _ACEOF
10484 else
10486 for ac_header in history.h
10488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497 echo "${ECHO_T}$ac_res" >&6; }
10498 else
10499 # Is the header compilable?
10500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 #include <$ac_header>
10510 _ACEOF
10511 rm -f conftest.$ac_objext
10512 if { (ac_try="$ac_compile"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.$ac_objext; then
10528 ac_header_compiler=yes
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_header_compiler=no
10536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538 echo "${ECHO_T}$ac_header_compiler" >&6; }
10540 # Is the header present?
10541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <$ac_header>
10550 _ACEOF
10551 if { (ac_try="$ac_cpp conftest.$ac_ext"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev/null && {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 }; then
10567 ac_header_preproc=yes
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_preproc=no
10575 rm -f conftest.err conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 echo "${ECHO_T}$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581 yes:no: )
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10588 no:yes:* )
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10601 ( cat <<\_ASBOX
10602 ## ---------------------------------------- ##
10603 ## Report this to pgsql-bugs@postgresql.org ##
10604 ## ---------------------------------------- ##
10605 _ASBOX
10606 ) | sed "s/^/$as_me: WARNING: /" >&2
10608 esac
10609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 eval "$as_ac_Header=\$ac_header_preproc"
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624 _ACEOF
10626 else
10628 for ac_header in readline/history.h
10630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 ac_res=`eval echo '${'$as_ac_Header'}'`
10638 { echo "$as_me:$LINENO: result: $ac_res" >&5
10639 echo "${ECHO_T}$ac_res" >&6; }
10640 else
10641 # Is the header compilable?
10642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 $ac_includes_default
10651 #include <$ac_header>
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
10670 ac_header_compiler=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_header_compiler=no
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10680 echo "${ECHO_T}$ac_header_compiler" >&6; }
10682 # Is the header present?
10683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 #include <$ac_header>
10692 _ACEOF
10693 if { (ac_try="$ac_cpp conftest.$ac_ext"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } >/dev/null && {
10706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 }; then
10709 ac_header_preproc=yes
10710 else
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_header_preproc=no
10717 rm -f conftest.err conftest.$ac_ext
10718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10719 echo "${ECHO_T}$ac_header_preproc" >&6; }
10721 # So? What about this header?
10722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10723 yes:no: )
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10728 ac_header_preproc=yes
10730 no:yes:* )
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10743 ( cat <<\_ASBOX
10744 ## ---------------------------------------- ##
10745 ## Report this to pgsql-bugs@postgresql.org ##
10746 ## ---------------------------------------- ##
10747 _ASBOX
10748 ) | sed "s/^/$as_me: WARNING: /" >&2
10750 esac
10751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 eval "$as_ac_Header=\$ac_header_preproc"
10758 ac_res=`eval echo '${'$as_ac_Header'}'`
10759 { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10766 _ACEOF
10770 done
10774 done
10778 done
10782 if test "$with_zlib" = yes; then
10783 if test "${ac_cv_header_zlib_h+set}" = set; then
10784 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10785 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10786 if test "${ac_cv_header_zlib_h+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10790 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10791 else
10792 # Is the header compilable?
10793 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10794 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 $ac_includes_default
10802 #include <zlib.h>
10803 _ACEOF
10804 rm -f conftest.$ac_objext
10805 if { (ac_try="$ac_compile"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_compile") 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } && {
10818 test -z "$ac_c_werror_flag" ||
10819 test ! -s conftest.err
10820 } && test -s conftest.$ac_objext; then
10821 ac_header_compiler=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_header_compiler=no
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10831 echo "${ECHO_T}$ac_header_compiler" >&6; }
10833 # Is the header present?
10834 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10835 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <zlib.h>
10843 _ACEOF
10844 if { (ac_try="$ac_cpp conftest.$ac_ext"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } >/dev/null && {
10857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10859 }; then
10860 ac_header_preproc=yes
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_header_preproc=no
10868 rm -f conftest.err conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870 echo "${ECHO_T}$ac_header_preproc" >&6; }
10872 # So? What about this header?
10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10874 yes:no: )
10875 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10876 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10878 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10879 ac_header_preproc=yes
10881 no:yes:* )
10882 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10883 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10885 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10887 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10889 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10893 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10894 ( cat <<\_ASBOX
10895 ## ---------------------------------------- ##
10896 ## Report this to pgsql-bugs@postgresql.org ##
10897 ## ---------------------------------------- ##
10898 _ASBOX
10899 ) | sed "s/^/$as_me: WARNING: /" >&2
10901 esac
10902 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10903 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10904 if test "${ac_cv_header_zlib_h+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 ac_cv_header_zlib_h=$ac_header_preproc
10909 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10910 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10913 if test $ac_cv_header_zlib_h = yes; then
10915 else
10916 { { echo "$as_me:$LINENO: error: zlib header not found
10917 If you have zlib already installed, see config.log for details on the
10918 failure. It is possible the compiler isn't looking in the proper directory.
10919 Use --without-zlib to disable zlib support." >&5
10920 echo "$as_me: error: zlib header not found
10921 If you have zlib already installed, see config.log for details on the
10922 failure. It is possible the compiler isn't looking in the proper directory.
10923 Use --without-zlib to disable zlib support." >&2;}
10924 { (exit 1); exit 1; }; }
10930 if test "$with_gssapi" = yes ; then
10932 for ac_header in gssapi/gssapi.h
10934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 ac_res=`eval echo '${'$as_ac_Header'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10944 else
10945 # Is the header compilable?
10946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h. */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 $ac_includes_default
10955 #include <$ac_header>
10956 _ACEOF
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_compile") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest.$ac_objext; then
10974 ac_header_compiler=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_header_compiler=no
10982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10984 echo "${ECHO_T}$ac_header_compiler" >&6; }
10986 # Is the header present?
10987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <$ac_header>
10996 _ACEOF
10997 if { (ac_try="$ac_cpp conftest.$ac_ext"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } >/dev/null && {
11010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 }; then
11013 ac_header_preproc=yes
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ac_header_preproc=no
11021 rm -f conftest.err conftest.$ac_ext
11022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11023 echo "${ECHO_T}$ac_header_preproc" >&6; }
11025 # So? What about this header?
11026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11027 yes:no: )
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11032 ac_header_preproc=yes
11034 no:yes:* )
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 ( cat <<\_ASBOX
11048 ## ---------------------------------------- ##
11049 ## Report this to pgsql-bugs@postgresql.org ##
11050 ## ---------------------------------------- ##
11051 _ASBOX
11052 ) | sed "s/^/$as_me: WARNING: /" >&2
11054 esac
11055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060 eval "$as_ac_Header=\$ac_header_preproc"
11062 ac_res=`eval echo '${'$as_ac_Header'}'`
11063 { echo "$as_me:$LINENO: result: $ac_res" >&5
11064 echo "${ECHO_T}$ac_res" >&6; }
11067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11070 _ACEOF
11072 else
11074 for ac_header in gssapi.h
11076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 ac_res=`eval echo '${'$as_ac_Header'}'`
11084 { echo "$as_me:$LINENO: result: $ac_res" >&5
11085 echo "${ECHO_T}$ac_res" >&6; }
11086 else
11087 # Is the header compilable?
11088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11089 echo $ECHO_N "checking $ac_header 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 <$ac_header>
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 $ac_header presence" >&5
11130 echo $ECHO_N "checking $ac_header 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 <$ac_header>
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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11174 ac_header_preproc=yes
11176 no:yes:* )
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11188 echo "$as_me: WARNING: $ac_header: 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 $ac_header" >&5
11198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202 eval "$as_ac_Header=\$ac_header_preproc"
11204 ac_res=`eval echo '${'$as_ac_Header'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11210 cat >>confdefs.h <<_ACEOF
11211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11212 _ACEOF
11214 else
11215 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11216 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11217 { (exit 1); exit 1; }; }
11220 done
11224 done
11228 if test "$with_krb5" = yes ; then
11229 if test "${ac_cv_header_krb5_h+set}" = set; then
11230 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11231 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11232 if test "${ac_cv_header_krb5_h+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11236 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11237 else
11238 # Is the header compilable?
11239 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11240 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 #include <krb5.h>
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
11267 ac_header_compiler=yes
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ac_header_compiler=no
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277 echo "${ECHO_T}$ac_header_compiler" >&6; }
11279 # Is the header present?
11280 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11281 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <krb5.h>
11289 _ACEOF
11290 if { (ac_try="$ac_cpp conftest.$ac_ext"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null && {
11303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 }; then
11306 ac_header_preproc=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_preproc=no
11314 rm -f conftest.err conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11316 echo "${ECHO_T}$ac_header_preproc" >&6; }
11318 # So? What about this header?
11319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11320 yes:no: )
11321 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11322 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11324 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11325 ac_header_preproc=yes
11327 no:yes:* )
11328 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11329 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11331 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11333 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11335 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11337 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11339 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11340 ( cat <<\_ASBOX
11341 ## ---------------------------------------- ##
11342 ## Report this to pgsql-bugs@postgresql.org ##
11343 ## ---------------------------------------- ##
11344 _ASBOX
11345 ) | sed "s/^/$as_me: WARNING: /" >&2
11347 esac
11348 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11349 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11350 if test "${ac_cv_header_krb5_h+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353 ac_cv_header_krb5_h=$ac_header_preproc
11355 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11356 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11359 if test $ac_cv_header_krb5_h = yes; then
11361 else
11362 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11363 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11364 { (exit 1); exit 1; }; }
11370 if test "$with_openssl" = yes ; then
11371 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11372 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11373 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11374 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11378 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11379 else
11380 # Is the header compilable?
11381 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11382 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11390 #include <openssl/ssl.h>
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (ac_try="$ac_compile"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_compile") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest.$ac_objext; then
11409 ac_header_compiler=yes
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11423 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <openssl/ssl.h>
11431 _ACEOF
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } >/dev/null && {
11445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 }; then
11448 ac_header_preproc=yes
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_preproc=no
11456 rm -f conftest.err conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6; }
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 yes:no: )
11463 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11469 no:yes:* )
11470 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11482 ( cat <<\_ASBOX
11483 ## ---------------------------------------- ##
11484 ## Report this to pgsql-bugs@postgresql.org ##
11485 ## ---------------------------------------- ##
11486 _ASBOX
11487 ) | sed "s/^/$as_me: WARNING: /" >&2
11489 esac
11490 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11491 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11492 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11497 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11498 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11501 if test $ac_cv_header_openssl_ssl_h = yes; then
11503 else
11504 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11505 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11506 { (exit 1); exit 1; }; }
11510 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11511 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11512 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11513 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11517 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11518 else
11519 # Is the header compilable?
11520 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11521 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 #include <openssl/err.h>
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11548 ac_header_compiler=yes
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_header_compiler=no
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558 echo "${ECHO_T}$ac_header_compiler" >&6; }
11560 # Is the header present?
11561 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11562 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <openssl/err.h>
11570 _ACEOF
11571 if { (ac_try="$ac_cpp conftest.$ac_ext"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null && {
11584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11585 test ! -s conftest.err
11586 }; then
11587 ac_header_preproc=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_header_preproc=no
11595 rm -f conftest.err conftest.$ac_ext
11596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11597 echo "${ECHO_T}$ac_header_preproc" >&6; }
11599 # So? What about this header?
11600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11601 yes:no: )
11602 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11603 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11605 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11606 ac_header_preproc=yes
11608 no:yes:* )
11609 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11610 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11612 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11614 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11616 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11618 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11620 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11621 ( cat <<\_ASBOX
11622 ## ---------------------------------------- ##
11623 ## Report this to pgsql-bugs@postgresql.org ##
11624 ## ---------------------------------------- ##
11625 _ASBOX
11626 ) | sed "s/^/$as_me: WARNING: /" >&2
11628 esac
11629 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11630 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11631 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 ac_cv_header_openssl_err_h=$ac_header_preproc
11636 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11637 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11640 if test $ac_cv_header_openssl_err_h = yes; then
11642 else
11643 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11644 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11645 { (exit 1); exit 1; }; }
11650 for ac_func in ERR_set_mark
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11679 #undef $ac_func
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char $ac_func ();
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 choke me
11693 #endif
11696 main ()
11698 return $ac_func ();
11700 return 0;
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext &&
11720 $as_test_x conftest$ac_exeext; then
11721 eval "$as_ac_var=yes"
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 eval "$as_ac_var=no"
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11741 done
11745 if test "$with_pam" = yes ; then
11747 for ac_header in security/pam_appl.h
11749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 ac_res=`eval echo '${'$as_ac_Header'}'`
11757 { echo "$as_me:$LINENO: result: $ac_res" >&5
11758 echo "${ECHO_T}$ac_res" >&6; }
11759 else
11760 # Is the header compilable?
11761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11763 cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h. */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 #include <$ac_header>
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_header_compiler=yes
11790 else
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_header_compiler=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 echo "${ECHO_T}$ac_header_compiler" >&6; }
11801 # Is the header present?
11802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h. */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <$ac_header>
11811 _ACEOF
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev/null && {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 }; then
11828 ac_header_preproc=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_header_preproc=no
11836 rm -f conftest.err conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838 echo "${ECHO_T}$ac_header_preproc" >&6; }
11840 # So? What about this header?
11841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11842 yes:no: )
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11847 ac_header_preproc=yes
11849 no:yes:* )
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11862 ( cat <<\_ASBOX
11863 ## ---------------------------------------- ##
11864 ## Report this to pgsql-bugs@postgresql.org ##
11865 ## ---------------------------------------- ##
11866 _ASBOX
11867 ) | sed "s/^/$as_me: WARNING: /" >&2
11869 esac
11870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875 eval "$as_ac_Header=\$ac_header_preproc"
11877 ac_res=`eval echo '${'$as_ac_Header'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11883 cat >>confdefs.h <<_ACEOF
11884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11885 _ACEOF
11887 else
11889 for ac_header in pam/pam_appl.h
11891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 ac_res=`eval echo '${'$as_ac_Header'}'`
11899 { echo "$as_me:$LINENO: result: $ac_res" >&5
11900 echo "${ECHO_T}$ac_res" >&6; }
11901 else
11902 # Is the header compilable?
11903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 $ac_includes_default
11912 #include <$ac_header>
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 ac_header_compiler=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_header_compiler=no
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11941 echo "${ECHO_T}$ac_header_compiler" >&6; }
11943 # Is the header present?
11944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 #include <$ac_header>
11953 _ACEOF
11954 if { (ac_try="$ac_cpp conftest.$ac_ext"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } >/dev/null && {
11967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 }; then
11970 ac_header_preproc=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_header_preproc=no
11978 rm -f conftest.err conftest.$ac_ext
11979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11980 echo "${ECHO_T}$ac_header_preproc" >&6; }
11982 # So? What about this header?
11983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11984 yes:no: )
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11989 ac_header_preproc=yes
11991 no:yes:* )
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004 ( cat <<\_ASBOX
12005 ## ---------------------------------------- ##
12006 ## Report this to pgsql-bugs@postgresql.org ##
12007 ## ---------------------------------------- ##
12008 _ASBOX
12009 ) | sed "s/^/$as_me: WARNING: /" >&2
12011 esac
12012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017 eval "$as_ac_Header=\$ac_header_preproc"
12019 ac_res=`eval echo '${'$as_ac_Header'}'`
12020 { echo "$as_me:$LINENO: result: $ac_res" >&5
12021 echo "${ECHO_T}$ac_res" >&6; }
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 _ACEOF
12029 else
12030 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12031 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12032 { (exit 1); exit 1; }; }
12035 done
12039 done
12043 if test "$with_libxml" = yes ; then
12044 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12045 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12046 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12047 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12051 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12052 else
12053 # Is the header compilable?
12054 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12055 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
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 <libxml/parser.h>
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (ac_try="$ac_compile"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_compile") 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } && {
12079 test -z "$ac_c_werror_flag" ||
12080 test ! -s conftest.err
12081 } && test -s conftest.$ac_objext; then
12082 ac_header_compiler=yes
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_header_compiler=no
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12092 echo "${ECHO_T}$ac_header_compiler" >&6; }
12094 # Is the header present?
12095 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12096 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 #include <libxml/parser.h>
12104 _ACEOF
12105 if { (ac_try="$ac_cpp conftest.$ac_ext"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } >/dev/null && {
12118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 }; then
12121 ac_header_preproc=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_header_preproc=no
12129 rm -f conftest.err conftest.$ac_ext
12130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131 echo "${ECHO_T}$ac_header_preproc" >&6; }
12133 # So? What about this header?
12134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12135 yes:no: )
12136 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12137 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12140 ac_header_preproc=yes
12142 no:yes:* )
12143 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12144 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12146 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12148 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12150 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12152 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12154 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12155 ( cat <<\_ASBOX
12156 ## ---------------------------------------- ##
12157 ## Report this to pgsql-bugs@postgresql.org ##
12158 ## ---------------------------------------- ##
12159 _ASBOX
12160 ) | sed "s/^/$as_me: WARNING: /" >&2
12162 esac
12163 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12164 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12165 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 ac_cv_header_libxml_parser_h=$ac_header_preproc
12170 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12171 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12174 if test $ac_cv_header_libxml_parser_h = yes; then
12176 else
12177 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12178 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12179 { (exit 1); exit 1; }; }
12185 if test "$with_libxslt" = yes ; then
12186 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12187 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12188 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12189 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12193 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12194 else
12195 # Is the header compilable?
12196 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12197 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 #include <libxslt/xslt.h>
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.$ac_objext; then
12224 ac_header_compiler=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_header_compiler=no
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6; }
12236 # Is the header present?
12237 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12238 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <libxslt/xslt.h>
12246 _ACEOF
12247 if { (ac_try="$ac_cpp conftest.$ac_ext"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } >/dev/null && {
12260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 }; then
12263 ac_header_preproc=yes
12264 else
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_header_preproc=no
12271 rm -f conftest.err conftest.$ac_ext
12272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12273 echo "${ECHO_T}$ac_header_preproc" >&6; }
12275 # So? What about this header?
12276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12277 yes:no: )
12278 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12279 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12282 ac_header_preproc=yes
12284 no:yes:* )
12285 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12286 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12288 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12290 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12292 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12294 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12296 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12297 ( cat <<\_ASBOX
12298 ## ---------------------------------------- ##
12299 ## Report this to pgsql-bugs@postgresql.org ##
12300 ## ---------------------------------------- ##
12301 _ASBOX
12302 ) | sed "s/^/$as_me: WARNING: /" >&2
12304 esac
12305 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12306 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12307 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12312 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12313 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12316 if test $ac_cv_header_libxslt_xslt_h = yes; then
12318 else
12319 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12320 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12321 { (exit 1); exit 1; }; }
12327 if test "$with_ldap" = yes ; then
12328 if test "$PORTNAME" != "win32"; then
12330 for ac_header in ldap.h
12332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_res=`eval echo '${'$as_ac_Header'}'`
12340 { echo "$as_me:$LINENO: result: $ac_res" >&5
12341 echo "${ECHO_T}$ac_res" >&6; }
12342 else
12343 # Is the header compilable?
12344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12353 #include <$ac_header>
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest.$ac_objext; then
12372 ac_header_compiler=yes
12373 else
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_header_compiler=no
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12382 echo "${ECHO_T}$ac_header_compiler" >&6; }
12384 # Is the header present?
12385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 #include <$ac_header>
12394 _ACEOF
12395 if { (ac_try="$ac_cpp conftest.$ac_ext"
12396 case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } >/dev/null && {
12408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 }; then
12411 ac_header_preproc=yes
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_header_preproc=no
12419 rm -f conftest.err conftest.$ac_ext
12420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12421 echo "${ECHO_T}$ac_header_preproc" >&6; }
12423 # So? What about this header?
12424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12425 yes:no: )
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12430 ac_header_preproc=yes
12432 no:yes:* )
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12445 ( cat <<\_ASBOX
12446 ## ---------------------------------------- ##
12447 ## Report this to pgsql-bugs@postgresql.org ##
12448 ## ---------------------------------------- ##
12449 _ASBOX
12450 ) | sed "s/^/$as_me: WARNING: /" >&2
12452 esac
12453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 eval "$as_ac_Header=\$ac_header_preproc"
12460 ac_res=`eval echo '${'$as_ac_Header'}'`
12461 { echo "$as_me:$LINENO: result: $ac_res" >&5
12462 echo "${ECHO_T}$ac_res" >&6; }
12465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466 cat >>confdefs.h <<_ACEOF
12467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12468 _ACEOF
12470 else
12471 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12472 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12473 { (exit 1); exit 1; }; }
12476 done
12478 else
12480 for ac_header in winldap.h
12482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 $ac_includes_default
12495 #include <windows.h>
12498 #include <$ac_header>
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (ac_try="$ac_compile"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_compile") 2>conftest.er1
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && {
12514 test -z "$ac_c_werror_flag" ||
12515 test ! -s conftest.err
12516 } && test -s conftest.$ac_objext; then
12517 eval "$as_ac_Header=yes"
12518 else
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 eval "$as_ac_Header=no"
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 ac_res=`eval echo '${'$as_ac_Header'}'`
12528 { echo "$as_me:$LINENO: result: $ac_res" >&5
12529 echo "${ECHO_T}$ac_res" >&6; }
12530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12531 cat >>confdefs.h <<_ACEOF
12532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12533 _ACEOF
12535 else
12536 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12537 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12538 { (exit 1); exit 1; }; }
12541 done
12546 if test "$with_bonjour" = yes ; then
12547 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12548 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12549 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12550 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12554 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12555 else
12556 # Is the header compilable?
12557 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12558 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12566 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.$ac_objext; then
12585 ac_header_compiler=yes
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_header_compiler=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597 # Is the header present?
12598 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12599 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12607 _ACEOF
12608 if { (ac_try="$ac_cpp conftest.$ac_ext"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null && {
12621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 }; then
12624 ac_header_preproc=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_preproc=no
12632 rm -f conftest.err conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12634 echo "${ECHO_T}$ac_header_preproc" >&6; }
12636 # So? What about this header?
12637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12638 yes:no: )
12639 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12640 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12641 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12643 ac_header_preproc=yes
12645 no:yes:* )
12646 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12651 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12653 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12655 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12657 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12658 ( cat <<\_ASBOX
12659 ## ---------------------------------------- ##
12660 ## Report this to pgsql-bugs@postgresql.org ##
12661 ## ---------------------------------------- ##
12662 _ASBOX
12663 ) | sed "s/^/$as_me: WARNING: /" >&2
12665 esac
12666 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12667 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12668 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12673 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12674 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12677 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12679 else
12680 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12681 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12682 { (exit 1); exit 1; }; }
12688 # for contrib/uuid-ossp
12689 if test "$with_ossp_uuid" = yes ; then
12691 for ac_header in ossp/uuid.h
12693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_res=`eval echo '${'$as_ac_Header'}'`
12701 { echo "$as_me:$LINENO: result: $ac_res" >&5
12702 echo "${ECHO_T}$ac_res" >&6; }
12703 else
12704 # Is the header compilable?
12705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12714 #include <$ac_header>
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (ac_try="$ac_compile"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_compile") 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_c_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest.$ac_objext; then
12733 ac_header_compiler=yes
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 ac_header_compiler=no
12741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12743 echo "${ECHO_T}$ac_header_compiler" >&6; }
12745 # Is the header present?
12746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 #include <$ac_header>
12755 _ACEOF
12756 if { (ac_try="$ac_cpp conftest.$ac_ext"
12757 case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } >/dev/null && {
12769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 }; then
12772 ac_header_preproc=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_header_preproc=no
12780 rm -f conftest.err conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12782 echo "${ECHO_T}$ac_header_preproc" >&6; }
12784 # So? What about this header?
12785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12786 yes:no: )
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12791 ac_header_preproc=yes
12793 no:yes:* )
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12806 ( cat <<\_ASBOX
12807 ## ---------------------------------------- ##
12808 ## Report this to pgsql-bugs@postgresql.org ##
12809 ## ---------------------------------------- ##
12810 _ASBOX
12811 ) | sed "s/^/$as_me: WARNING: /" >&2
12813 esac
12814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819 eval "$as_ac_Header=\$ac_header_preproc"
12821 ac_res=`eval echo '${'$as_ac_Header'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12829 _ACEOF
12831 else
12834 for ac_header in uuid.h
12836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_res=`eval echo '${'$as_ac_Header'}'`
12844 { echo "$as_me:$LINENO: result: $ac_res" >&5
12845 echo "${ECHO_T}$ac_res" >&6; }
12846 else
12847 # Is the header compilable?
12848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h. */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12857 #include <$ac_header>
12858 _ACEOF
12859 rm -f conftest.$ac_objext
12860 if { (ac_try="$ac_compile"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_compile") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && {
12873 test -z "$ac_c_werror_flag" ||
12874 test ! -s conftest.err
12875 } && test -s conftest.$ac_objext; then
12876 ac_header_compiler=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_header_compiler=no
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12886 echo "${ECHO_T}$ac_header_compiler" >&6; }
12888 # Is the header present?
12889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <$ac_header>
12898 _ACEOF
12899 if { (ac_try="$ac_cpp conftest.$ac_ext"
12900 case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } >/dev/null && {
12912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12914 }; then
12915 ac_header_preproc=yes
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_header_preproc=no
12923 rm -f conftest.err conftest.$ac_ext
12924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12925 echo "${ECHO_T}$ac_header_preproc" >&6; }
12927 # So? What about this header?
12928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12929 yes:no: )
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12934 ac_header_preproc=yes
12936 no:yes:* )
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12949 ( cat <<\_ASBOX
12950 ## ---------------------------------------- ##
12951 ## Report this to pgsql-bugs@postgresql.org ##
12952 ## ---------------------------------------- ##
12953 _ASBOX
12954 ) | sed "s/^/$as_me: WARNING: /" >&2
12956 esac
12957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 eval "$as_ac_Header=\$ac_header_preproc"
12964 ac_res=`eval echo '${'$as_ac_Header'}'`
12965 { echo "$as_me:$LINENO: result: $ac_res" >&5
12966 echo "${ECHO_T}$ac_res" >&6; }
12969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12972 _ACEOF
12974 else
12975 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12976 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12977 { (exit 1); exit 1; }; }
12980 done
12984 done
12990 ## Types, structures, compiler characteristics
12993 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12994 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12995 if test "${ac_cv_c_bigendian+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998 # See if sys/param.h defines the BYTE_ORDER macro.
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <sys/types.h>
13006 #include <sys/param.h>
13009 main ()
13011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13012 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13013 bogus endian macros
13014 #endif
13017 return 0;
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (ac_try="$ac_compile"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025 esac
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_compile") 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && {
13034 test -z "$ac_c_werror_flag" ||
13035 test ! -s conftest.err
13036 } && test -s conftest.$ac_objext; then
13037 # It does; now see whether it defined to BIG_ENDIAN or not.
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 #include <sys/types.h>
13045 #include <sys/param.h>
13048 main ()
13050 #if BYTE_ORDER != BIG_ENDIAN
13051 not big endian
13052 #endif
13055 return 0;
13057 _ACEOF
13058 rm -f conftest.$ac_objext
13059 if { (ac_try="$ac_compile"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_compile") 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest.$ac_objext; then
13075 ac_cv_c_bigendian=yes
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_c_bigendian=no
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 else
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 # It does not; compile a test program.
13089 if test "$cross_compiling" = yes; then
13090 # try to guess the endianness by grepping values into an object file
13091 ac_cv_c_bigendian=unknown
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13099 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13100 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13101 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13102 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13103 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13105 main ()
13107 _ascii (); _ebcdic ();
13109 return 0;
13111 _ACEOF
13112 rm -f conftest.$ac_objext
13113 if { (ac_try="$ac_compile"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117 esac
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_compile") 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } && {
13126 test -z "$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13128 } && test -s conftest.$ac_objext; then
13129 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13130 ac_cv_c_bigendian=yes
13132 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13133 if test "$ac_cv_c_bigendian" = unknown; then
13134 ac_cv_c_bigendian=no
13135 else
13136 # finding both strings is unlikely to happen, but who knows?
13137 ac_cv_c_bigendian=unknown
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 else
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13157 main ()
13160 /* Are we little or big endian? From Harbison&Steele. */
13161 union
13163 long int l;
13164 char c[sizeof (long int)];
13165 } u;
13166 u.l = 1;
13167 return u.c[sizeof (long int) - 1] == 1;
13170 return 0;
13172 _ACEOF
13173 rm -f conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_c_bigendian=no
13194 else
13195 echo "$as_me: program exited with status $ac_status" >&5
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ( exit $ac_status )
13200 ac_cv_c_bigendian=yes
13202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13212 case $ac_cv_c_bigendian in
13213 yes)
13215 cat >>confdefs.h <<\_ACEOF
13216 #define WORDS_BIGENDIAN 1
13217 _ACEOF
13222 { { echo "$as_me:$LINENO: error: unknown endianness
13223 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13224 echo "$as_me: error: unknown endianness
13225 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13226 { (exit 1); exit 1; }; } ;;
13227 esac
13229 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13231 if test "${ac_cv_c_const+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13242 main ()
13244 /* FIXME: Include the comments suggested by Paul. */
13245 #ifndef __cplusplus
13246 /* Ultrix mips cc rejects this. */
13247 typedef int charset[2];
13248 const charset cs;
13249 /* SunOS 4.1.1 cc rejects this. */
13250 char const *const *pcpcc;
13251 char **ppc;
13252 /* NEC SVR4.0.2 mips cc rejects this. */
13253 struct point {int x, y;};
13254 static struct point const zero = {0,0};
13255 /* AIX XL C 1.02.0.0 rejects this.
13256 It does not let you subtract one const X* pointer from another in
13257 an arm of an if-expression whose if-part is not a constant
13258 expression */
13259 const char *g = "string";
13260 pcpcc = &g + (g ? g-g : 0);
13261 /* HPUX 7.0 cc rejects these. */
13262 ++pcpcc;
13263 ppc = (char**) pcpcc;
13264 pcpcc = (char const *const *) ppc;
13265 { /* SCO 3.2v4 cc rejects this. */
13266 char *t;
13267 char const *s = 0 ? (char *) 0 : (char const *) 0;
13269 *t++ = 0;
13270 if (s) return 0;
13272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13273 int x[] = {25, 17};
13274 const int *foo = &x[0];
13275 ++foo;
13277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13278 typedef const int *iptr;
13279 iptr p = 0;
13280 ++p;
13282 { /* AIX XL C 1.02.0.0 rejects this saying
13283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13284 struct s { int j; const int *ap[3]; };
13285 struct s *b; b->j = 5;
13287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13288 const int foo = 10;
13289 if (!foo) return 0;
13291 return !cs[0] && !zero.x;
13292 #endif
13295 return 0;
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 ac_cv_c_const=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_cv_c_const=no
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13326 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13327 if test $ac_cv_c_const = no; then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define const
13331 _ACEOF
13335 { echo "$as_me:$LINENO: checking for inline" >&5
13336 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13337 if test "${ac_cv_c_inline+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340 ac_cv_c_inline=no
13341 for ac_kw in inline __inline__ __inline; do
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 #ifndef __cplusplus
13349 typedef int foo_t;
13350 static $ac_kw foo_t static_foo () {return 0; }
13351 $ac_kw foo_t foo () {return 0; }
13352 #endif
13354 _ACEOF
13355 rm -f conftest.$ac_objext
13356 if { (ac_try="$ac_compile"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360 esac
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_compile") 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } && {
13369 test -z "$ac_c_werror_flag" ||
13370 test ! -s conftest.err
13371 } && test -s conftest.$ac_objext; then
13372 ac_cv_c_inline=$ac_kw
13373 else
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 test "$ac_cv_c_inline" != no && break
13382 done
13385 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13386 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13389 case $ac_cv_c_inline in
13390 inline | yes) ;;
13392 case $ac_cv_c_inline in
13393 no) ac_val=;;
13394 *) ac_val=$ac_cv_c_inline;;
13395 esac
13396 cat >>confdefs.h <<_ACEOF
13397 #ifndef __cplusplus
13398 #define inline $ac_val
13399 #endif
13400 _ACEOF
13402 esac
13404 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13405 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13406 if test "${ac_cv_c_stringize+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h. */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 #define x(y) #y
13417 char *s = x(teststring);
13418 _ACEOF
13419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13420 $EGREP "#teststring" >/dev/null 2>&1; then
13421 ac_cv_c_stringize=no
13422 else
13423 ac_cv_c_stringize=yes
13425 rm -f conftest*
13428 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13429 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13430 if test $ac_cv_c_stringize = yes; then
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_STRINGIZE 1
13434 _ACEOF
13438 { echo "$as_me:$LINENO: checking for signed types" >&5
13439 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13440 if test "${pgac_cv_c_signed+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13451 main ()
13453 signed char c; signed short s; signed int i;
13455 return 0;
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_compile") 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && {
13472 test -z "$ac_c_werror_flag" ||
13473 test ! -s conftest.err
13474 } && test -s conftest.$ac_objext; then
13475 pgac_cv_c_signed=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 pgac_cv_c_signed=no
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13486 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13487 if test x"$pgac_cv_c_signed" = xno ; then
13489 cat >>confdefs.h <<\_ACEOF
13490 #define signed
13491 _ACEOF
13494 { echo "$as_me:$LINENO: checking for working volatile" >&5
13495 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13496 if test "${ac_cv_c_volatile+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13507 main ()
13510 volatile int x;
13511 int * volatile y = (int *) 0;
13512 return !x && !y;
13514 return 0;
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13534 ac_cv_c_volatile=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_cv_c_volatile=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13545 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13546 if test $ac_cv_c_volatile = no; then
13548 cat >>confdefs.h <<\_ACEOF
13549 #define volatile
13550 _ACEOF
13554 { echo "$as_me:$LINENO: checking for __func__" >&5
13555 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13556 if test "${pgac_cv_funcname_func_support+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 #include <stdio.h>
13567 main ()
13569 printf("%s\n", __func__);
13571 return 0;
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 if { (ac_try="$ac_compile"
13576 case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 pgac_cv_funcname_func_support=yes
13592 else
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 pgac_cv_funcname_func_support=no
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13602 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13603 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_FUNCNAME__FUNC 1
13607 _ACEOF
13609 else
13610 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13611 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13612 if test "${pgac_cv_funcname_function_support+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 <stdio.h>
13623 main ()
13625 printf("%s\n", __FUNCTION__);
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 pgac_cv_funcname_function_support=yes
13648 else
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 pgac_cv_funcname_function_support=no
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13658 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13659 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13661 cat >>confdefs.h <<\_ACEOF
13662 #define HAVE_FUNCNAME__FUNCTION 1
13663 _ACEOF
13667 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13669 if test "${ac_cv_struct_tm+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <sys/types.h>
13679 #include <time.h>
13682 main ()
13684 struct tm tm;
13685 int *p = &tm.tm_sec;
13686 return !p;
13688 return 0;
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_cv_struct_tm=time.h
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_cv_struct_tm=sys/time.h
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13719 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13720 if test $ac_cv_struct_tm = sys/time.h; then
13722 cat >>confdefs.h <<\_ACEOF
13723 #define TM_IN_SYS_TIME 1
13724 _ACEOF
13728 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13729 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13730 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h. */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 #include <sys/types.h>
13740 #include <$ac_cv_struct_tm>
13744 main ()
13746 static struct tm ac_aggr;
13747 if (ac_aggr.tm_zone)
13748 return 0;
13750 return 0;
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } && {
13767 test -z "$ac_c_werror_flag" ||
13768 test ! -s conftest.err
13769 } && test -s conftest.$ac_objext; then
13770 ac_cv_member_struct_tm_tm_zone=yes
13771 else
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 #include <sys/types.h>
13782 #include <$ac_cv_struct_tm>
13786 main ()
13788 static struct tm ac_aggr;
13789 if (sizeof ac_aggr.tm_zone)
13790 return 0;
13792 return 0;
13794 _ACEOF
13795 rm -f conftest.$ac_objext
13796 if { (ac_try="$ac_compile"
13797 case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_compile") 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } && {
13809 test -z "$ac_c_werror_flag" ||
13810 test ! -s conftest.err
13811 } && test -s conftest.$ac_objext; then
13812 ac_cv_member_struct_tm_tm_zone=yes
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_cv_member_struct_tm_tm_zone=no
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13826 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13827 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_STRUCT_TM_TM_ZONE 1
13831 _ACEOF
13836 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_TM_ZONE 1
13840 _ACEOF
13843 { echo "$as_me:$LINENO: checking for tzname" >&5
13844 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13845 if test "${ac_cv_var_tzname+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <time.h>
13855 #ifndef tzname /* For SGI. */
13856 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13857 #endif
13860 main ()
13862 atoi(*tzname);
13864 return 0;
13866 _ACEOF
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_link") 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest$ac_exeext &&
13884 $as_test_x conftest$ac_exeext; then
13885 ac_cv_var_tzname=yes
13886 else
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_var_tzname=no
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894 conftest$ac_exeext conftest.$ac_ext
13896 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13897 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13898 if test $ac_cv_var_tzname = yes; then
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_TZNAME 1
13902 _ACEOF
13906 { echo "$as_me:$LINENO: checking for union semun" >&5
13907 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13908 if test "${ac_cv_type_union_semun+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 #include <sys/types.h>
13918 #include <sys/ipc.h>
13919 #include <sys/sem.h>
13921 typedef union semun ac__type_new_;
13923 main ()
13925 if ((ac__type_new_ *) 0)
13926 return 0;
13927 if (sizeof (ac__type_new_))
13928 return 0;
13930 return 0;
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.$ac_objext; then
13950 ac_cv_type_union_semun=yes
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_type_union_semun=no
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13961 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13962 if test $ac_cv_type_union_semun = yes; then
13964 cat >>confdefs.h <<_ACEOF
13965 #define HAVE_UNION_SEMUN 1
13966 _ACEOF
13971 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13972 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13973 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <sys/types.h>
13983 #ifdef HAVE_SYS_UN_H
13984 #include <sys/un.h>
13985 #endif
13988 typedef struct sockaddr_un ac__type_new_;
13990 main ()
13992 if ((ac__type_new_ *) 0)
13993 return 0;
13994 if (sizeof (ac__type_new_))
13995 return 0;
13997 return 0;
13999 _ACEOF
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_compile") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest.$ac_objext; then
14017 ac_cv_type_struct_sockaddr_un=yes
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_cv_type_struct_sockaddr_un=no
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14028 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14029 if test $ac_cv_type_struct_sockaddr_un = yes; then
14031 cat >>confdefs.h <<_ACEOF
14032 #define HAVE_STRUCT_SOCKADDR_UN 1
14033 _ACEOF
14036 cat >>confdefs.h <<\_ACEOF
14037 #define HAVE_UNIX_SOCKETS 1
14038 _ACEOF
14042 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14043 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14044 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <sys/types.h>
14054 #ifdef HAVE_SYS_SOCKET_H
14055 #include <sys/socket.h>
14056 #endif
14059 typedef struct sockaddr_storage ac__type_new_;
14061 main ()
14063 if ((ac__type_new_ *) 0)
14064 return 0;
14065 if (sizeof (ac__type_new_))
14066 return 0;
14068 return 0;
14070 _ACEOF
14071 rm -f conftest.$ac_objext
14072 if { (ac_try="$ac_compile"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_compile") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && {
14085 test -z "$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14087 } && test -s conftest.$ac_objext; then
14088 ac_cv_type_struct_sockaddr_storage=yes
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_cv_type_struct_sockaddr_storage=no
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14099 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14100 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14104 _ACEOF
14109 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14110 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14111 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114 cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h. */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 #include <sys/types.h>
14121 #ifdef HAVE_SYS_SOCKET_H
14122 #include <sys/socket.h>
14123 #endif
14127 main ()
14129 static struct sockaddr_storage ac_aggr;
14130 if (ac_aggr.ss_family)
14131 return 0;
14133 return 0;
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141 esac
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
14144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest.$ac_objext; then
14153 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 #include <sys/types.h>
14165 #ifdef HAVE_SYS_SOCKET_H
14166 #include <sys/socket.h>
14167 #endif
14171 main ()
14173 static struct sockaddr_storage ac_aggr;
14174 if (sizeof ac_aggr.ss_family)
14175 return 0;
14177 return 0;
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14185 esac
14186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_compile") 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest.$ac_objext; then
14197 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14198 else
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 ac_cv_member_struct_sockaddr_storage_ss_family=no
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14211 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14212 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14216 _ACEOF
14220 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14221 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14222 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225 cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h. */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #ifdef HAVE_SYS_SOCKET_H
14233 #include <sys/socket.h>
14234 #endif
14238 main ()
14240 static struct sockaddr_storage ac_aggr;
14241 if (ac_aggr.__ss_family)
14242 return 0;
14244 return 0;
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <sys/types.h>
14276 #ifdef HAVE_SYS_SOCKET_H
14277 #include <sys/socket.h>
14278 #endif
14282 main ()
14284 static struct sockaddr_storage ac_aggr;
14285 if (sizeof ac_aggr.__ss_family)
14286 return 0;
14288 return 0;
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_compile") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest.$ac_objext; then
14308 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14309 else
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14313 ac_cv_member_struct_sockaddr_storage___ss_family=no
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14322 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14323 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14327 _ACEOF
14331 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14332 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14333 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 #include <sys/types.h>
14343 #ifdef HAVE_SYS_SOCKET_H
14344 #include <sys/socket.h>
14345 #endif
14349 main ()
14351 static struct sockaddr_storage ac_aggr;
14352 if (ac_aggr.ss_len)
14353 return 0;
14355 return 0;
14357 _ACEOF
14358 rm -f conftest.$ac_objext
14359 if { (ac_try="$ac_compile"
14360 case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && {
14372 test -z "$ac_c_werror_flag" ||
14373 test ! -s conftest.err
14374 } && test -s conftest.$ac_objext; then
14375 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14376 else
14377 echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 #include <sys/types.h>
14387 #ifdef HAVE_SYS_SOCKET_H
14388 #include <sys/socket.h>
14389 #endif
14393 main ()
14395 static struct sockaddr_storage ac_aggr;
14396 if (sizeof ac_aggr.ss_len)
14397 return 0;
14399 return 0;
14401 _ACEOF
14402 rm -f conftest.$ac_objext
14403 if { (ac_try="$ac_compile"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_compile") 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest.$ac_objext; then
14419 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_member_struct_sockaddr_storage_ss_len=no
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14433 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14434 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14438 _ACEOF
14442 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14443 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14444 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #include <sys/types.h>
14454 #ifdef HAVE_SYS_SOCKET_H
14455 #include <sys/socket.h>
14456 #endif
14460 main ()
14462 static struct sockaddr_storage ac_aggr;
14463 if (ac_aggr.__ss_len)
14464 return 0;
14466 return 0;
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (ac_try="$ac_compile"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.$ac_objext; then
14486 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <sys/types.h>
14498 #ifdef HAVE_SYS_SOCKET_H
14499 #include <sys/socket.h>
14500 #endif
14504 main ()
14506 static struct sockaddr_storage ac_aggr;
14507 if (sizeof ac_aggr.__ss_len)
14508 return 0;
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext
14514 if { (ac_try="$ac_compile"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_compile") 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && {
14527 test -z "$ac_c_werror_flag" ||
14528 test ! -s conftest.err
14529 } && test -s conftest.$ac_objext; then
14530 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14531 else
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_member_struct_sockaddr_storage___ss_len=no
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14544 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14545 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14549 _ACEOF
14553 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14554 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14555 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <sys/types.h>
14565 #ifdef HAVE_SYS_SOCKET_H
14566 #include <sys/socket.h>
14567 #endif
14571 main ()
14573 static struct sockaddr ac_aggr;
14574 if (ac_aggr.sa_len)
14575 return 0;
14577 return 0;
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (ac_try="$ac_compile"
14582 case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14585 esac
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14588 ac_status=$?
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.$ac_objext; then
14597 ac_cv_member_struct_sockaddr_sa_len=yes
14598 else
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h. */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #include <sys/types.h>
14609 #ifdef HAVE_SYS_SOCKET_H
14610 #include <sys/socket.h>
14611 #endif
14615 main ()
14617 static struct sockaddr ac_aggr;
14618 if (sizeof ac_aggr.sa_len)
14619 return 0;
14621 return 0;
14623 _ACEOF
14624 rm -f conftest.$ac_objext
14625 if { (ac_try="$ac_compile"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_compile") 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } && {
14638 test -z "$ac_c_werror_flag" ||
14639 test ! -s conftest.err
14640 } && test -s conftest.$ac_objext; then
14641 ac_cv_member_struct_sockaddr_sa_len=yes
14642 else
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_cv_member_struct_sockaddr_sa_len=no
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14655 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14656 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14658 cat >>confdefs.h <<_ACEOF
14659 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14660 _ACEOF
14665 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14666 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14667 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670 cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h. */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <sys/types.h>
14677 #include <sys/socket.h>
14678 #include <netdb.h>
14681 typedef struct addrinfo ac__type_new_;
14683 main ()
14685 if ((ac__type_new_ *) 0)
14686 return 0;
14687 if (sizeof (ac__type_new_))
14688 return 0;
14690 return 0;
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
14710 ac_cv_type_struct_addrinfo=yes
14711 else
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_cv_type_struct_addrinfo=no
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14721 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14722 if test $ac_cv_type_struct_addrinfo = yes; then
14724 cat >>confdefs.h <<_ACEOF
14725 #define HAVE_STRUCT_ADDRINFO 1
14726 _ACEOF
14732 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14733 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14734 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <sys/param.h>
14744 #include <sys/types.h>
14745 #include <sys/socket.h>
14746 #include <sys/ucred.h>
14748 typedef struct cmsgcred ac__type_new_;
14750 main ()
14752 if ((ac__type_new_ *) 0)
14753 return 0;
14754 if (sizeof (ac__type_new_))
14755 return 0;
14757 return 0;
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_cv_type_struct_cmsgcred=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_type_struct_cmsgcred=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14788 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14789 if test $ac_cv_type_struct_cmsgcred = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_STRUCT_CMSGCRED 1
14793 _ACEOF
14797 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14798 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14799 if test "${ac_cv_type_struct_fcred+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802 cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h. */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/param.h>
14809 #include <sys/types.h>
14810 #include <sys/socket.h>
14811 #include <sys/ucred.h>
14813 typedef struct fcred ac__type_new_;
14815 main ()
14817 if ((ac__type_new_ *) 0)
14818 return 0;
14819 if (sizeof (ac__type_new_))
14820 return 0;
14822 return 0;
14824 _ACEOF
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830 esac
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_compile") 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && {
14839 test -z "$ac_c_werror_flag" ||
14840 test ! -s conftest.err
14841 } && test -s conftest.$ac_objext; then
14842 ac_cv_type_struct_fcred=yes
14843 else
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_cv_type_struct_fcred=no
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14853 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14854 if test $ac_cv_type_struct_fcred = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_STRUCT_FCRED 1
14858 _ACEOF
14862 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14863 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14864 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/param.h>
14874 #include <sys/types.h>
14875 #include <sys/socket.h>
14876 #include <sys/ucred.h>
14878 typedef struct sockcred ac__type_new_;
14880 main ()
14882 if ((ac__type_new_ *) 0)
14883 return 0;
14884 if (sizeof (ac__type_new_))
14885 return 0;
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (ac_try="$ac_compile"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_compile") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && {
14904 test -z "$ac_c_werror_flag" ||
14905 test ! -s conftest.err
14906 } && test -s conftest.$ac_objext; then
14907 ac_cv_type_struct_sockcred=yes
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_type_struct_sockcred=no
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14918 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14919 if test $ac_cv_type_struct_sockcred = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_STRUCT_SOCKCRED 1
14923 _ACEOF
14929 { echo "$as_me:$LINENO: checking for struct option" >&5
14930 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14931 if test "${ac_cv_type_struct_option+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #ifdef HAVE_GETOPT_H
14941 #include <getopt.h>
14942 #endif
14944 typedef struct option ac__type_new_;
14946 main ()
14948 if ((ac__type_new_ *) 0)
14949 return 0;
14950 if (sizeof (ac__type_new_))
14951 return 0;
14953 return 0;
14955 _ACEOF
14956 rm -f conftest.$ac_objext
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961 esac
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_compile") 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && {
14970 test -z "$ac_c_werror_flag" ||
14971 test ! -s conftest.err
14972 } && test -s conftest.$ac_objext; then
14973 ac_cv_type_struct_option=yes
14974 else
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ac_cv_type_struct_option=no
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14984 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14985 if test $ac_cv_type_struct_option = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define HAVE_STRUCT_OPTION 1
14989 _ACEOF
14995 if test "$with_zlib" = yes; then
14996 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14997 # did not). While we could work around the lack of z_streamp, it
14998 # seems unwise to encourage people to use such old zlib versions...
14999 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15000 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15001 if test "${ac_cv_type_z_streamp+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 else
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h. */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 #include <zlib.h>
15012 typedef z_streamp ac__type_new_;
15014 main ()
15016 if ((ac__type_new_ *) 0)
15017 return 0;
15018 if (sizeof (ac__type_new_))
15019 return 0;
15021 return 0;
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_cv_type_z_streamp=yes
15042 else
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_type_z_streamp=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15052 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15053 if test $ac_cv_type_z_streamp = yes; then
15055 else
15056 { { echo "$as_me:$LINENO: error: zlib version is too old
15057 Use --without-zlib to disable zlib support." >&5
15058 echo "$as_me: error: zlib version is too old
15059 Use --without-zlib to disable zlib support." >&2;}
15060 { (exit 1); exit 1; }; }
15065 if test "$with_krb5" = yes; then
15066 # Check for differences between MIT and Heimdal (KTH) releases
15067 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15068 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15069 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072 cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h. */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 #include <krb5.h>
15081 main ()
15083 static krb5_ticket ac_aggr;
15084 if (ac_aggr.enc_part2)
15085 return 0;
15087 return 0;
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (ac_try="$ac_compile"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest.$ac_objext; then
15107 ac_cv_member_krb5_ticket_enc_part2=yes
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h. */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 #include <krb5.h>
15121 main ()
15123 static krb5_ticket ac_aggr;
15124 if (sizeof ac_aggr.enc_part2)
15125 return 0;
15127 return 0;
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest.$ac_objext; then
15147 ac_cv_member_krb5_ticket_enc_part2=yes
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_cv_member_krb5_ticket_enc_part2=no
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15161 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15162 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_KRB5_TICKET_ENC_PART2 1
15166 _ACEOF
15169 else
15170 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15171 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15172 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <krb5.h>
15184 main ()
15186 static krb5_ticket ac_aggr;
15187 if (ac_aggr.client)
15188 return 0;
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 ac_cv_member_krb5_ticket_client=yes
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221 #include <krb5.h>
15224 main ()
15226 static krb5_ticket ac_aggr;
15227 if (sizeof ac_aggr.client)
15228 return 0;
15230 return 0;
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (ac_try="$ac_compile"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_compile") 2>conftest.er1
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest.$ac_objext; then
15250 ac_cv_member_krb5_ticket_client=yes
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_member_krb5_ticket_client=no
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15264 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15265 if test $ac_cv_member_krb5_ticket_client = yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_KRB5_TICKET_CLIENT 1
15269 _ACEOF
15272 else
15273 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15274 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15275 { (exit 1); exit 1; }; }
15280 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15281 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15282 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <krb5.h>
15294 main ()
15296 static krb5_error ac_aggr;
15297 if (ac_aggr.text.data)
15298 return 0;
15300 return 0;
15302 _ACEOF
15303 rm -f conftest.$ac_objext
15304 if { (ac_try="$ac_compile"
15305 case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_compile") 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && {
15317 test -z "$ac_c_werror_flag" ||
15318 test ! -s conftest.err
15319 } && test -s conftest.$ac_objext; then
15320 ac_cv_member_krb5_error_text_data=yes
15321 else
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h. */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 #include <krb5.h>
15334 main ()
15336 static krb5_error ac_aggr;
15337 if (sizeof ac_aggr.text.data)
15338 return 0;
15340 return 0;
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (ac_try="$ac_compile"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_compile") 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest.$ac_objext; then
15360 ac_cv_member_krb5_error_text_data=yes
15361 else
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_member_krb5_error_text_data=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15374 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15375 if test $ac_cv_member_krb5_error_text_data = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15379 _ACEOF
15382 else
15383 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15384 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15385 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h. */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 #include <krb5.h>
15397 main ()
15399 static krb5_error ac_aggr;
15400 if (ac_aggr.e_data)
15401 return 0;
15403 return 0;
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest.$ac_objext; then
15423 ac_cv_member_krb5_error_e_data=yes
15424 else
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 #include <krb5.h>
15437 main ()
15439 static krb5_error ac_aggr;
15440 if (sizeof ac_aggr.e_data)
15441 return 0;
15443 return 0;
15445 _ACEOF
15446 rm -f conftest.$ac_objext
15447 if { (ac_try="$ac_compile"
15448 case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_compile") 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && {
15460 test -z "$ac_c_werror_flag" ||
15461 test ! -s conftest.err
15462 } && test -s conftest.$ac_objext; then
15463 ac_cv_member_krb5_error_e_data=yes
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 ac_cv_member_krb5_error_e_data=no
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15477 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15478 if test $ac_cv_member_krb5_error_e_data = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_KRB5_ERROR_E_DATA 1
15482 _ACEOF
15485 else
15486 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15487 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15488 { (exit 1); exit 1; }; }
15494 # Win32 requires headers to be loaded for __stdcall, so can't use
15495 # AC_CHECK_FUNCS here.
15496 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15497 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 #include <krb5.h>
15506 main ()
15508 krb5_free_unparsed_name(NULL,NULL);
15510 return 0;
15512 _ACEOF
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest$ac_exeext &&
15530 $as_test_x conftest$ac_exeext; then
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15534 _ACEOF
15536 { echo "$as_me:$LINENO: result: yes" >&5
15537 echo "${ECHO_T}yes" >&6; }
15538 else
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 { echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6; }
15546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15547 conftest$ac_exeext conftest.$ac_ext
15552 ## Functions, global variables
15555 { echo "$as_me:$LINENO: checking for int timezone" >&5
15556 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15557 if test "${pgac_cv_var_int_timezone+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 #include <time.h>
15567 int res;
15569 main ()
15571 #ifndef __CYGWIN__
15572 res = timezone / 60;
15573 #else
15574 res = _timezone / 60;
15575 #endif
15577 return 0;
15579 _ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (ac_try="$ac_link"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_link") 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest$ac_exeext &&
15597 $as_test_x conftest$ac_exeext; then
15598 pgac_cv_var_int_timezone=yes
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 pgac_cv_var_int_timezone=no
15606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15607 conftest$ac_exeext conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15610 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15611 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_INT_TIMEZONE
15615 _ACEOF
15618 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15619 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15620 if test "${ac_cv_func_accept_return+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623 if test "${ac_cv_func_accept_arg1+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626 if test "${ac_cv_func_accept_arg2+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629 if test "${ac_cv_func_accept_arg3+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15633 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15634 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15635 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 #ifdef HAVE_SYS_TYPES_H
15643 #include <sys/types.h>
15644 #endif
15645 #ifdef HAVE_SYS_SOCKET_H
15646 #include <sys/socket.h>
15647 #endif
15648 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15650 main ()
15654 return 0;
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (ac_try="$ac_compile"
15659 case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_compile") 2>conftest.er1
15665 ac_status=$?
15666 grep -v '^ *+' conftest.er1 >conftest.err
15667 rm -f conftest.er1
15668 cat conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } && {
15671 test -z "$ac_c_werror_flag" ||
15672 test ! -s conftest.err
15673 } && test -s conftest.$ac_objext; then
15674 ac_not_found=no; break 4
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ac_not_found=yes
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 done
15684 done
15685 done
15686 done
15687 if test "$ac_not_found" = yes; then
15688 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15689 echo "$as_me: error: could not determine argument types" >&2;}
15690 { (exit 1); exit 1; }; }
15692 if test "$ac_cv_func_accept_arg3" = "void"; then
15693 ac_cv_func_accept_arg3=int
15703 { 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
15704 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15706 cat >>confdefs.h <<_ACEOF
15707 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15708 _ACEOF
15711 cat >>confdefs.h <<_ACEOF
15712 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15713 _ACEOF
15716 cat >>confdefs.h <<_ACEOF
15717 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15718 _ACEOF
15721 cat >>confdefs.h <<_ACEOF
15722 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15723 _ACEOF
15726 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15727 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15728 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h. */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 #include <sys/time.h>
15739 main ()
15741 struct timeval *tp;
15742 struct timezone *tzp;
15743 gettimeofday(tp,tzp);
15745 return 0;
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest.$ac_objext; then
15765 pgac_cv_func_gettimeofday_1arg=no
15766 else
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 pgac_cv_func_gettimeofday_1arg=yes
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15776 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15777 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15779 cat >>confdefs.h <<\_ACEOF
15780 #define GETTIMEOFDAY_1ARG
15781 _ACEOF
15807 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h. */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15823 #define $ac_func innocuous_$ac_func
15825 /* System header to define __stub macros and hopefully few prototypes,
15826 which can conflict with char $ac_func (); below.
15827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15828 <limits.h> exists even on freestanding compilers. */
15830 #ifdef __STDC__
15831 # include <limits.h>
15832 #else
15833 # include <assert.h>
15834 #endif
15836 #undef $ac_func
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 char $ac_func ();
15845 /* The GNU C library defines this for functions which it implements
15846 to always fail with ENOSYS. Some functions are actually named
15847 something starting with __ and the normal name is an alias. */
15848 #if defined __stub_$ac_func || defined __stub___$ac_func
15849 choke me
15850 #endif
15853 main ()
15855 return $ac_func ();
15857 return 0;
15859 _ACEOF
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_link") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest$ac_exeext &&
15877 $as_test_x conftest$ac_exeext; then
15878 eval "$as_ac_var=yes"
15879 else
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 eval "$as_ac_var=no"
15886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15887 conftest$ac_exeext conftest.$ac_ext
15889 ac_res=`eval echo '${'$as_ac_var'}'`
15890 { echo "$as_me:$LINENO: result: $ac_res" >&5
15891 echo "${ECHO_T}$ac_res" >&6; }
15892 if test `eval echo '${'$as_ac_var'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15895 _ACEOF
15898 done
15901 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15902 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15903 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 #include <unistd.h>
15915 main ()
15917 #ifndef fdatasync
15918 (void) fdatasync;
15919 #endif
15922 return 0;
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (ac_try="$ac_compile"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_compile") 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } && {
15939 test -z "$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 } && test -s conftest.$ac_objext; then
15942 ac_cv_have_decl_fdatasync=yes
15943 else
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_cv_have_decl_fdatasync=no
15950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15953 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15954 if test $ac_cv_have_decl_fdatasync = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define HAVE_DECL_FDATASYNC 1
15958 _ACEOF
15961 else
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE_DECL_FDATASYNC 0
15964 _ACEOF
15970 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15971 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15972 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 else
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <fcntl.h>
15984 main ()
15986 #ifndef posix_fadvise
15987 (void) posix_fadvise;
15988 #endif
15991 return 0;
15993 _ACEOF
15994 rm -f conftest.$ac_objext
15995 if { (ac_try="$ac_compile"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_compile") 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest.$ac_objext; then
16011 ac_cv_have_decl_posix_fadvise=yes
16012 else
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 ac_cv_have_decl_posix_fadvise=no
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16022 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16023 if test $ac_cv_have_decl_posix_fadvise = yes; then
16025 cat >>confdefs.h <<_ACEOF
16026 #define HAVE_DECL_POSIX_FADVISE 1
16027 _ACEOF
16030 else
16031 cat >>confdefs.h <<_ACEOF
16032 #define HAVE_DECL_POSIX_FADVISE 0
16033 _ACEOF
16039 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16040 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16041 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 $ac_includes_default
16052 main ()
16054 #ifndef strlcat
16055 (void) strlcat;
16056 #endif
16059 return 0;
16061 _ACEOF
16062 rm -f conftest.$ac_objext
16063 if { (ac_try="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_compile") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest.$ac_objext; then
16079 ac_cv_have_decl_strlcat=yes
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_have_decl_strlcat=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16090 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16091 if test $ac_cv_have_decl_strlcat = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define HAVE_DECL_STRLCAT 1
16095 _ACEOF
16098 else
16099 cat >>confdefs.h <<_ACEOF
16100 #define HAVE_DECL_STRLCAT 0
16101 _ACEOF
16105 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16106 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16107 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16118 main ()
16120 #ifndef strlcpy
16121 (void) strlcpy;
16122 #endif
16125 return 0;
16127 _ACEOF
16128 rm -f conftest.$ac_objext
16129 if { (ac_try="$ac_compile"
16130 case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16133 esac
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_compile") 2>conftest.er1
16136 ac_status=$?
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } && {
16142 test -z "$ac_c_werror_flag" ||
16143 test ! -s conftest.err
16144 } && test -s conftest.$ac_objext; then
16145 ac_cv_have_decl_strlcpy=yes
16146 else
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ac_cv_have_decl_strlcpy=no
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16156 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16157 if test $ac_cv_have_decl_strlcpy = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define HAVE_DECL_STRLCPY 1
16161 _ACEOF
16164 else
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_DECL_STRLCPY 0
16167 _ACEOF
16173 # This is probably only present on Darwin, but may as well check always
16174 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16175 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16176 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 else
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 #include <fcntl.h>
16188 main ()
16190 #ifndef F_FULLFSYNC
16191 (void) F_FULLFSYNC;
16192 #endif
16195 return 0;
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16215 ac_cv_have_decl_F_FULLFSYNC=yes
16216 else
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_have_decl_F_FULLFSYNC=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16226 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16227 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_DECL_F_FULLFSYNC 1
16231 _ACEOF
16234 else
16235 cat >>confdefs.h <<_ACEOF
16236 #define HAVE_DECL_F_FULLFSYNC 0
16237 _ACEOF
16244 HAVE_IPV6=no
16245 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16246 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16247 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h. */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 $ac_includes_default
16257 #include <netinet/in.h>
16259 typedef struct sockaddr_in6 ac__type_new_;
16261 main ()
16263 if ((ac__type_new_ *) 0)
16264 return 0;
16265 if (sizeof (ac__type_new_))
16266 return 0;
16268 return 0;
16270 _ACEOF
16271 rm -f conftest.$ac_objext
16272 if { (ac_try="$ac_compile"
16273 case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_compile") 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && {
16285 test -z "$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16287 } && test -s conftest.$ac_objext; then
16288 ac_cv_type_struct_sockaddr_in6=yes
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_type_struct_sockaddr_in6=no
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16299 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16300 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16302 cat >>confdefs.h <<\_ACEOF
16303 #define HAVE_IPV6 1
16304 _ACEOF
16306 HAVE_IPV6=yes
16311 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16312 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16313 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h. */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 #include <machine/vmparam.h>
16323 #include <sys/exec.h>
16326 main ()
16328 PS_STRINGS->ps_nargvstr = 1;
16329 PS_STRINGS->ps_argvstr = "foo";
16331 return 0;
16333 _ACEOF
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (ac_try="$ac_link"
16336 case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_link") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } && {
16348 test -z "$ac_c_werror_flag" ||
16349 test ! -s conftest.err
16350 } && test -s conftest$ac_exeext &&
16351 $as_test_x conftest$ac_exeext; then
16352 pgac_cv_var_PS_STRINGS=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 pgac_cv_var_PS_STRINGS=no
16360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361 conftest$ac_exeext conftest.$ac_ext
16363 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16364 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16365 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16367 cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_PS_STRINGS
16369 _ACEOF
16374 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16375 # is missing. Yes, there are machines that have only one. We may
16376 # also decide to use snprintf.c if snprintf() is present but does not
16377 # have all the features we need --- see below.
16379 if test "$PORTNAME" = "win32"; then
16380 # Win32 gets snprintf.c built unconditionally.
16382 # To properly translate all NLS languages strings, we must support the
16383 # *printf() %$ format, which allows *printf() arguments to be selected
16384 # by position in the translated string.
16386 # libintl versions < 0.13 use the native *printf() functions, and Win32
16387 # *printf() doesn't understand %$, so we must use our /port versions,
16388 # which do understand %$. libintl versions >= 0.13 include their own
16389 # *printf versions on Win32. The libintl 0.13 release note text is:
16391 # C format strings with positions, as they arise when a translator
16392 # needs to reorder a sentence, are now supported on all platforms.
16393 # On those few platforms (NetBSD and Woe32) for which the native
16394 # printf()/fprintf()/... functions don't support such format
16395 # strings, replacements are provided through <libintl.h>.
16397 # We could use libintl >= 0.13's *printf() if we were sure that we had
16398 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16399 # to guarantee that, it is best to just use our own, so we are sure to
16400 # get %$ support. In include/port.h we disable the *printf() macros
16401 # that might have been defined by libintl.
16403 # We do this unconditionally whether NLS is used or not so we are sure
16404 # that all Win32 libraries and binaries behave the same.
16405 pgac_need_repl_snprintf=yes
16406 else
16407 pgac_need_repl_snprintf=no
16409 for ac_func in snprintf
16411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h. */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16425 #define $ac_func innocuous_$ac_func
16427 /* System header to define __stub macros and hopefully few prototypes,
16428 which can conflict with char $ac_func (); below.
16429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430 <limits.h> exists even on freestanding compilers. */
16432 #ifdef __STDC__
16433 # include <limits.h>
16434 #else
16435 # include <assert.h>
16436 #endif
16438 #undef $ac_func
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16443 #ifdef __cplusplus
16444 extern "C"
16445 #endif
16446 char $ac_func ();
16447 /* The GNU C library defines this for functions which it implements
16448 to always fail with ENOSYS. Some functions are actually named
16449 something starting with __ and the normal name is an alias. */
16450 #if defined __stub_$ac_func || defined __stub___$ac_func
16451 choke me
16452 #endif
16455 main ()
16457 return $ac_func ();
16459 return 0;
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467 esac
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_link") 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
16478 } && test -s conftest$ac_exeext &&
16479 $as_test_x conftest$ac_exeext; then
16480 eval "$as_ac_var=yes"
16481 else
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 eval "$as_ac_var=no"
16488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489 conftest$ac_exeext conftest.$ac_ext
16491 ac_res=`eval echo '${'$as_ac_var'}'`
16492 { echo "$as_me:$LINENO: result: $ac_res" >&5
16493 echo "${ECHO_T}$ac_res" >&6; }
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495 cat >>confdefs.h <<_ACEOF
16496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16497 _ACEOF
16499 else
16500 pgac_need_repl_snprintf=yes
16502 done
16505 for ac_func in vsnprintf
16507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h. */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16521 #define $ac_func innocuous_$ac_func
16523 /* System header to define __stub macros and hopefully few prototypes,
16524 which can conflict with char $ac_func (); below.
16525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16526 <limits.h> exists even on freestanding compilers. */
16528 #ifdef __STDC__
16529 # include <limits.h>
16530 #else
16531 # include <assert.h>
16532 #endif
16534 #undef $ac_func
16536 /* Override any GCC internal prototype to avoid an error.
16537 Use char because int might match the return type of a GCC
16538 builtin and then its argument prototype would still apply. */
16539 #ifdef __cplusplus
16540 extern "C"
16541 #endif
16542 char $ac_func ();
16543 /* The GNU C library defines this for functions which it implements
16544 to always fail with ENOSYS. Some functions are actually named
16545 something starting with __ and the normal name is an alias. */
16546 #if defined __stub_$ac_func || defined __stub___$ac_func
16547 choke me
16548 #endif
16551 main ()
16553 return $ac_func ();
16555 return 0;
16557 _ACEOF
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (ac_try="$ac_link"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_link") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest$ac_exeext &&
16575 $as_test_x conftest$ac_exeext; then
16576 eval "$as_ac_var=yes"
16577 else
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 eval "$as_ac_var=no"
16584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16585 conftest$ac_exeext conftest.$ac_ext
16587 ac_res=`eval echo '${'$as_ac_var'}'`
16588 { echo "$as_me:$LINENO: result: $ac_res" >&5
16589 echo "${ECHO_T}$ac_res" >&6; }
16590 if test `eval echo '${'$as_ac_var'}'` = yes; then
16591 cat >>confdefs.h <<_ACEOF
16592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16593 _ACEOF
16595 else
16596 pgac_need_repl_snprintf=yes
16598 done
16603 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16604 # include/c.h will provide declarations. Note this is a separate test
16605 # from whether the functions exist in the C library --- there are
16606 # systems that have the functions but don't bother to declare them :-(
16608 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16609 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16610 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613 cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h. */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 $ac_includes_default
16621 main ()
16623 #ifndef snprintf
16624 (void) snprintf;
16625 #endif
16628 return 0;
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest.$ac_objext; then
16648 ac_cv_have_decl_snprintf=yes
16649 else
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_have_decl_snprintf=no
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16659 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16660 if test $ac_cv_have_decl_snprintf = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_DECL_SNPRINTF 1
16664 _ACEOF
16667 else
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_DECL_SNPRINTF 0
16670 _ACEOF
16674 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16675 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16676 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 $ac_includes_default
16687 main ()
16689 #ifndef vsnprintf
16690 (void) vsnprintf;
16691 #endif
16694 return 0;
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (ac_try="$ac_compile"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16714 ac_cv_have_decl_vsnprintf=yes
16715 else
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_have_decl_vsnprintf=no
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16725 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16726 if test $ac_cv_have_decl_vsnprintf = yes; then
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_VSNPRINTF 1
16730 _ACEOF
16733 else
16734 cat >>confdefs.h <<_ACEOF
16735 #define HAVE_DECL_VSNPRINTF 0
16736 _ACEOF
16744 { echo "$as_me:$LINENO: checking for isinf" >&5
16745 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16746 if test "${ac_cv_func_isinf+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16756 #include <math.h>
16757 double glob_double;
16760 main ()
16762 return isinf(glob_double) ? 0 : 1;
16764 return 0;
16766 _ACEOF
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (ac_try="$ac_link"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_link") 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } && {
16781 test -z "$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 } && test -s conftest$ac_exeext &&
16784 $as_test_x conftest$ac_exeext; then
16785 ac_cv_func_isinf=yes
16786 else
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_cv_func_isinf=no
16793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16794 conftest$ac_exeext conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16797 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16799 if test $ac_cv_func_isinf = yes ; then
16801 cat >>confdefs.h <<\_ACEOF
16802 #define HAVE_ISINF 1
16803 _ACEOF
16805 else
16806 case " $LIBOBJS " in
16807 *" isinf.$ac_objext "* ) ;;
16808 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16810 esac
16812 # Look for a way to implement a substitute for isinf()
16817 for ac_func in fpclass fp_class fp_class_d class
16819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16833 #define $ac_func innocuous_$ac_func
16835 /* System header to define __stub macros and hopefully few prototypes,
16836 which can conflict with char $ac_func (); below.
16837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16838 <limits.h> exists even on freestanding compilers. */
16840 #ifdef __STDC__
16841 # include <limits.h>
16842 #else
16843 # include <assert.h>
16844 #endif
16846 #undef $ac_func
16848 /* Override any GCC internal prototype to avoid an error.
16849 Use char because int might match the return type of a GCC
16850 builtin and then its argument prototype would still apply. */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 char $ac_func ();
16855 /* The GNU C library defines this for functions which it implements
16856 to always fail with ENOSYS. Some functions are actually named
16857 something starting with __ and the normal name is an alias. */
16858 #if defined __stub_$ac_func || defined __stub___$ac_func
16859 choke me
16860 #endif
16863 main ()
16865 return $ac_func ();
16867 return 0;
16869 _ACEOF
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_link") 2>conftest.er1
16878 ac_status=$?
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && {
16884 test -z "$ac_c_werror_flag" ||
16885 test ! -s conftest.err
16886 } && test -s conftest$ac_exeext &&
16887 $as_test_x conftest$ac_exeext; then
16888 eval "$as_ac_var=yes"
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_var=no"
16896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16897 conftest$ac_exeext conftest.$ac_ext
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905 _ACEOF
16906 break
16908 done
16912 # Some versions of libedit contain strlcpy(); so disregard that library while
16913 # checking for these standard libc functions.
16914 pgac_save_LIBS="$LIBS"
16915 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16931 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h. */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16947 #define $ac_func innocuous_$ac_func
16949 /* System header to define __stub macros and hopefully few prototypes,
16950 which can conflict with char $ac_func (); below.
16951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952 <limits.h> exists even on freestanding compilers. */
16954 #ifdef __STDC__
16955 # include <limits.h>
16956 #else
16957 # include <assert.h>
16958 #endif
16960 #undef $ac_func
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 char $ac_func ();
16969 /* The GNU C library defines this for functions which it implements
16970 to always fail with ENOSYS. Some functions are actually named
16971 something starting with __ and the normal name is an alias. */
16972 #if defined __stub_$ac_func || defined __stub___$ac_func
16973 choke me
16974 #endif
16977 main ()
16979 return $ac_func ();
16981 return 0;
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_link") 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest$ac_exeext &&
17001 $as_test_x conftest$ac_exeext; then
17002 eval "$as_ac_var=yes"
17003 else
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 eval "$as_ac_var=no"
17010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17011 conftest$ac_exeext conftest.$ac_ext
17013 ac_res=`eval echo '${'$as_ac_var'}'`
17014 { echo "$as_me:$LINENO: result: $ac_res" >&5
17015 echo "${ECHO_T}$ac_res" >&6; }
17016 if test `eval echo '${'$as_ac_var'}'` = yes; then
17017 cat >>confdefs.h <<_ACEOF
17018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17019 _ACEOF
17021 else
17022 case " $LIBOBJS " in
17023 *" $ac_func.$ac_objext "* ) ;;
17024 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17026 esac
17029 done
17033 LIBS="$pgac_save_LIBS"
17035 # System's version of getaddrinfo(), if any, may be used only if we found
17036 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17037 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17038 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17039 # because we want to use our own getaddrinfo.c on Windows anyway.)
17040 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17042 for ac_func in getaddrinfo
17044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 else
17050 cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h. */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17058 #define $ac_func innocuous_$ac_func
17060 /* System header to define __stub macros and hopefully few prototypes,
17061 which can conflict with char $ac_func (); below.
17062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063 <limits.h> exists even on freestanding compilers. */
17065 #ifdef __STDC__
17066 # include <limits.h>
17067 #else
17068 # include <assert.h>
17069 #endif
17071 #undef $ac_func
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char $ac_func ();
17080 /* The GNU C library defines this for functions which it implements
17081 to always fail with ENOSYS. Some functions are actually named
17082 something starting with __ and the normal name is an alias. */
17083 #if defined __stub_$ac_func || defined __stub___$ac_func
17084 choke me
17085 #endif
17088 main ()
17090 return $ac_func ();
17092 return 0;
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 eval "$as_ac_var=yes"
17114 else
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 eval "$as_ac_var=no"
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17124 ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126 echo "${ECHO_T}$ac_res" >&6; }
17127 if test `eval echo '${'$as_ac_var'}'` = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17130 _ACEOF
17132 else
17133 case " $LIBOBJS " in
17134 *" $ac_func.$ac_objext "* ) ;;
17135 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17137 esac
17140 done
17143 else
17144 case " $LIBOBJS " in
17145 *" getaddrinfo.$ac_objext "* ) ;;
17146 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17148 esac
17152 # Similarly, use system's getopt_long() only if system provides struct option.
17153 # Solaris' getopt() doesn't do what we want for long options, so always use
17154 # our versions on that platform.
17155 if test "$PORTNAME" = "solaris"; then
17156 case " $LIBOBJS " in
17157 *" getopt.$ac_objext "* ) ;;
17158 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17160 esac
17162 case " $LIBOBJS " in
17163 *" getopt_long.$ac_objext "* ) ;;
17164 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17166 esac
17168 elif test x"$ac_cv_type_struct_option" = xyes ; then
17170 for ac_func in getopt_long
17172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h. */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17186 #define $ac_func innocuous_$ac_func
17188 /* System header to define __stub macros and hopefully few prototypes,
17189 which can conflict with char $ac_func (); below.
17190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17191 <limits.h> exists even on freestanding compilers. */
17193 #ifdef __STDC__
17194 # include <limits.h>
17195 #else
17196 # include <assert.h>
17197 #endif
17199 #undef $ac_func
17201 /* Override any GCC internal prototype to avoid an error.
17202 Use char because int might match the return type of a GCC
17203 builtin and then its argument prototype would still apply. */
17204 #ifdef __cplusplus
17205 extern "C"
17206 #endif
17207 char $ac_func ();
17208 /* The GNU C library defines this for functions which it implements
17209 to always fail with ENOSYS. Some functions are actually named
17210 something starting with __ and the normal name is an alias. */
17211 #if defined __stub_$ac_func || defined __stub___$ac_func
17212 choke me
17213 #endif
17216 main ()
17218 return $ac_func ();
17220 return 0;
17222 _ACEOF
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_c_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest$ac_exeext &&
17240 $as_test_x conftest$ac_exeext; then
17241 eval "$as_ac_var=yes"
17242 else
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 eval "$as_ac_var=no"
17249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17250 conftest$ac_exeext conftest.$ac_ext
17252 ac_res=`eval echo '${'$as_ac_var'}'`
17253 { echo "$as_me:$LINENO: result: $ac_res" >&5
17254 echo "${ECHO_T}$ac_res" >&6; }
17255 if test `eval echo '${'$as_ac_var'}'` = yes; then
17256 cat >>confdefs.h <<_ACEOF
17257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17258 _ACEOF
17260 else
17261 case " $LIBOBJS " in
17262 *" $ac_func.$ac_objext "* ) ;;
17263 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17265 esac
17268 done
17271 else
17272 case " $LIBOBJS " in
17273 *" getopt_long.$ac_objext "* ) ;;
17274 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17276 esac
17280 # Win32 support
17281 if test "$PORTNAME" = "win32"; then
17283 for ac_func in gettimeofday
17285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17299 #define $ac_func innocuous_$ac_func
17301 /* System header to define __stub macros and hopefully few prototypes,
17302 which can conflict with char $ac_func (); below.
17303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17304 <limits.h> exists even on freestanding compilers. */
17306 #ifdef __STDC__
17307 # include <limits.h>
17308 #else
17309 # include <assert.h>
17310 #endif
17312 #undef $ac_func
17314 /* Override any GCC internal prototype to avoid an error.
17315 Use char because int might match the return type of a GCC
17316 builtin and then its argument prototype would still apply. */
17317 #ifdef __cplusplus
17318 extern "C"
17319 #endif
17320 char $ac_func ();
17321 /* The GNU C library defines this for functions which it implements
17322 to always fail with ENOSYS. Some functions are actually named
17323 something starting with __ and the normal name is an alias. */
17324 #if defined __stub_$ac_func || defined __stub___$ac_func
17325 choke me
17326 #endif
17329 main ()
17331 return $ac_func ();
17333 return 0;
17335 _ACEOF
17336 rm -f conftest.$ac_objext conftest$ac_exeext
17337 if { (ac_try="$ac_link"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17341 esac
17342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_link") 2>conftest.er1
17344 ac_status=$?
17345 grep -v '^ *+' conftest.er1 >conftest.err
17346 rm -f conftest.er1
17347 cat conftest.err >&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest$ac_exeext &&
17353 $as_test_x conftest$ac_exeext; then
17354 eval "$as_ac_var=yes"
17355 else
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 eval "$as_ac_var=no"
17362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17363 conftest$ac_exeext conftest.$ac_ext
17365 ac_res=`eval echo '${'$as_ac_var'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 if test `eval echo '${'$as_ac_var'}'` = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17371 _ACEOF
17373 else
17374 case " $LIBOBJS " in
17375 *" $ac_func.$ac_objext "* ) ;;
17376 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17378 esac
17381 done
17384 case " $LIBOBJS " in
17385 *" kill.$ac_objext "* ) ;;
17386 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17388 esac
17390 case " $LIBOBJS " in
17391 *" open.$ac_objext "* ) ;;
17392 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17394 esac
17396 case " $LIBOBJS " in
17397 *" rand.$ac_objext "* ) ;;
17398 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17400 esac
17402 case " $LIBOBJS " in
17403 *" win32error.$ac_objext "* ) ;;
17404 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17406 esac
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_SYMLINK 1
17411 _ACEOF
17415 if test "$with_readline" = yes; then
17416 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17417 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17418 cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h. */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 #include <stdio.h>
17425 #ifdef HAVE_READLINE_READLINE_H
17426 # include <readline/readline.h>
17427 #elif defined(HAVE_READLINE_H)
17428 # include <readline.h>
17429 #endif
17432 main ()
17434 rl_completion_append_character = 'x';
17436 return 0;
17438 _ACEOF
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
17447 ac_status=$?
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } && {
17453 test -z "$ac_c_werror_flag" ||
17454 test ! -s conftest.err
17455 } && test -s conftest$ac_exeext &&
17456 $as_test_x conftest$ac_exeext; then
17457 { echo "$as_me:$LINENO: result: yes" >&5
17458 echo "${ECHO_T}yes" >&6; }
17460 cat >>confdefs.h <<\_ACEOF
17461 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17462 _ACEOF
17464 else
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 { echo "$as_me:$LINENO: result: no" >&5
17469 echo "${ECHO_T}no" >&6; }
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473 conftest$ac_exeext conftest.$ac_ext
17476 for ac_func in rl_completion_matches rl_filename_completion_function
17478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484 cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h. */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17492 #define $ac_func innocuous_$ac_func
17494 /* System header to define __stub macros and hopefully few prototypes,
17495 which can conflict with char $ac_func (); below.
17496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17497 <limits.h> exists even on freestanding compilers. */
17499 #ifdef __STDC__
17500 # include <limits.h>
17501 #else
17502 # include <assert.h>
17503 #endif
17505 #undef $ac_func
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17510 #ifdef __cplusplus
17511 extern "C"
17512 #endif
17513 char $ac_func ();
17514 /* The GNU C library defines this for functions which it implements
17515 to always fail with ENOSYS. Some functions are actually named
17516 something starting with __ and the normal name is an alias. */
17517 #if defined __stub_$ac_func || defined __stub___$ac_func
17518 choke me
17519 #endif
17522 main ()
17524 return $ac_func ();
17526 return 0;
17528 _ACEOF
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (ac_try="$ac_link"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest$ac_exeext &&
17546 $as_test_x conftest$ac_exeext; then
17547 eval "$as_ac_var=yes"
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17558 ac_res=`eval echo '${'$as_ac_var'}'`
17559 { echo "$as_me:$LINENO: result: $ac_res" >&5
17560 echo "${ECHO_T}$ac_res" >&6; }
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17564 _ACEOF
17567 done
17570 for ac_func in replace_history_entry
17572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586 #define $ac_func innocuous_$ac_func
17588 /* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char $ac_func (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17593 #ifdef __STDC__
17594 # include <limits.h>
17595 #else
17596 # include <assert.h>
17597 #endif
17599 #undef $ac_func
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17604 #ifdef __cplusplus
17605 extern "C"
17606 #endif
17607 char $ac_func ();
17608 /* The GNU C library defines this for functions which it implements
17609 to always fail with ENOSYS. Some functions are actually named
17610 something starting with __ and the normal name is an alias. */
17611 #if defined __stub_$ac_func || defined __stub___$ac_func
17612 choke me
17613 #endif
17616 main ()
17618 return $ac_func ();
17620 return 0;
17622 _ACEOF
17623 rm -f conftest.$ac_objext conftest$ac_exeext
17624 if { (ac_try="$ac_link"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_link") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest$ac_exeext &&
17640 $as_test_x conftest$ac_exeext; then
17641 eval "$as_ac_var=yes"
17642 else
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 eval "$as_ac_var=no"
17649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17650 conftest$ac_exeext conftest.$ac_ext
17652 ac_res=`eval echo '${'$as_ac_var'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654 echo "${ECHO_T}$ac_res" >&6; }
17655 if test `eval echo '${'$as_ac_var'}'` = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17658 _ACEOF
17661 done
17666 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17667 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 #include <setjmp.h>
17676 main ()
17678 sigjmp_buf x; sigsetjmp(x, 1);
17680 return 0;
17682 _ACEOF
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (ac_try="$ac_link"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_link") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest$ac_exeext &&
17700 $as_test_x conftest$ac_exeext; then
17702 cat >>confdefs.h <<\_ACEOF
17703 #define HAVE_SIGSETJMP 1
17704 _ACEOF
17706 { echo "$as_me:$LINENO: result: yes" >&5
17707 echo "${ECHO_T}yes" >&6; }
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 { echo "$as_me:$LINENO: result: no" >&5
17713 echo "${ECHO_T}no" >&6; }
17716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17717 conftest$ac_exeext conftest.$ac_ext
17719 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17720 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17721 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 #include <signal.h>
17731 /* NetBSD declares sys_siglist in unistd.h. */
17732 #ifdef HAVE_UNISTD_H
17733 # include <unistd.h>
17734 #endif
17738 main ()
17740 #ifndef sys_siglist
17741 (void) sys_siglist;
17742 #endif
17745 return 0;
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } && {
17762 test -z "$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 } && test -s conftest.$ac_objext; then
17765 ac_cv_have_decl_sys_siglist=yes
17766 else
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_cv_have_decl_sys_siglist=no
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17776 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17777 if test $ac_cv_have_decl_sys_siglist = yes; then
17779 cat >>confdefs.h <<_ACEOF
17780 #define HAVE_DECL_SYS_SIGLIST 1
17781 _ACEOF
17784 else
17785 cat >>confdefs.h <<_ACEOF
17786 #define HAVE_DECL_SYS_SIGLIST 0
17787 _ACEOF
17795 { echo "$as_me:$LINENO: checking for syslog" >&5
17796 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17797 if test "${ac_cv_func_syslog+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17808 #define syslog innocuous_syslog
17810 /* System header to define __stub macros and hopefully few prototypes,
17811 which can conflict with char syslog (); below.
17812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17813 <limits.h> exists even on freestanding compilers. */
17815 #ifdef __STDC__
17816 # include <limits.h>
17817 #else
17818 # include <assert.h>
17819 #endif
17821 #undef syslog
17823 /* Override any GCC internal prototype to avoid an error.
17824 Use char because int might match the return type of a GCC
17825 builtin and then its argument prototype would still apply. */
17826 #ifdef __cplusplus
17827 extern "C"
17828 #endif
17829 char syslog ();
17830 /* The GNU C library defines this for functions which it implements
17831 to always fail with ENOSYS. Some functions are actually named
17832 something starting with __ and the normal name is an alias. */
17833 #if defined __stub_syslog || defined __stub___syslog
17834 choke me
17835 #endif
17838 main ()
17840 return syslog ();
17842 return 0;
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (ac_try="$ac_link"
17847 case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_link") 2>conftest.er1
17853 ac_status=$?
17854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest$ac_exeext &&
17862 $as_test_x conftest$ac_exeext; then
17863 ac_cv_func_syslog=yes
17864 else
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_func_syslog=no
17871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17872 conftest$ac_exeext conftest.$ac_ext
17874 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17875 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17876 if test $ac_cv_func_syslog = yes; then
17877 if test "${ac_cv_header_syslog_h+set}" = set; then
17878 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17879 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17880 if test "${ac_cv_header_syslog_h+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17884 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17885 else
17886 # Is the header compilable?
17887 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17888 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17889 cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h. */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 $ac_includes_default
17896 #include <syslog.h>
17897 _ACEOF
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_compile") 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest.$ac_objext; then
17915 ac_header_compiler=yes
17916 else
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_header_compiler=no
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17925 echo "${ECHO_T}$ac_header_compiler" >&6; }
17927 # Is the header present?
17928 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17929 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <syslog.h>
17937 _ACEOF
17938 if { (ac_try="$ac_cpp conftest.$ac_ext"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17945 ac_status=$?
17946 grep -v '^ *+' conftest.er1 >conftest.err
17947 rm -f conftest.er1
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } >/dev/null && {
17951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17952 test ! -s conftest.err
17953 }; then
17954 ac_header_preproc=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_header_preproc=no
17962 rm -f conftest.err conftest.$ac_ext
17963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17964 echo "${ECHO_T}$ac_header_preproc" >&6; }
17966 # So? What about this header?
17967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17968 yes:no: )
17969 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17970 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17972 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17973 ac_header_preproc=yes
17975 no:yes:* )
17976 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17977 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17979 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17981 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17983 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17985 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17987 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17988 ( cat <<\_ASBOX
17989 ## ---------------------------------------- ##
17990 ## Report this to pgsql-bugs@postgresql.org ##
17991 ## ---------------------------------------- ##
17992 _ASBOX
17993 ) | sed "s/^/$as_me: WARNING: /" >&2
17995 esac
17996 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17997 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17998 if test "${ac_cv_header_syslog_h+set}" = set; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 else
18001 ac_cv_header_syslog_h=$ac_header_preproc
18003 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18004 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18007 if test $ac_cv_header_syslog_h = yes; then
18009 cat >>confdefs.h <<\_ACEOF
18010 #define HAVE_SYSLOG 1
18011 _ACEOF
18019 { echo "$as_me:$LINENO: checking for optreset" >&5
18020 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18021 if test "${pgac_cv_var_int_optreset+set}" = set; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 #include <unistd.h>
18032 main ()
18034 extern int optreset; optreset = 1;
18036 return 0;
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest$ac_exeext &&
18056 $as_test_x conftest$ac_exeext; then
18057 pgac_cv_var_int_optreset=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 pgac_cv_var_int_optreset=no
18065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18066 conftest$ac_exeext conftest.$ac_ext
18068 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18069 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18070 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18072 cat >>confdefs.h <<\_ACEOF
18073 #define HAVE_INT_OPTRESET 1
18074 _ACEOF
18080 for ac_func in strtoll strtoq
18082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 else
18088 cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h. */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18096 #define $ac_func innocuous_$ac_func
18098 /* System header to define __stub macros and hopefully few prototypes,
18099 which can conflict with char $ac_func (); below.
18100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18101 <limits.h> exists even on freestanding compilers. */
18103 #ifdef __STDC__
18104 # include <limits.h>
18105 #else
18106 # include <assert.h>
18107 #endif
18109 #undef $ac_func
18111 /* Override any GCC internal prototype to avoid an error.
18112 Use char because int might match the return type of a GCC
18113 builtin and then its argument prototype would still apply. */
18114 #ifdef __cplusplus
18115 extern "C"
18116 #endif
18117 char $ac_func ();
18118 /* The GNU C library defines this for functions which it implements
18119 to always fail with ENOSYS. Some functions are actually named
18120 something starting with __ and the normal name is an alias. */
18121 #if defined __stub_$ac_func || defined __stub___$ac_func
18122 choke me
18123 #endif
18126 main ()
18128 return $ac_func ();
18130 return 0;
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (ac_try="$ac_link"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 eval "$as_ac_var=yes"
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 eval "$as_ac_var=no"
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18162 ac_res=`eval echo '${'$as_ac_var'}'`
18163 { echo "$as_me:$LINENO: result: $ac_res" >&5
18164 echo "${ECHO_T}$ac_res" >&6; }
18165 if test `eval echo '${'$as_ac_var'}'` = yes; then
18166 cat >>confdefs.h <<_ACEOF
18167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18168 _ACEOF
18169 break
18171 done
18175 for ac_func in strtoull strtouq
18177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18191 #define $ac_func innocuous_$ac_func
18193 /* System header to define __stub macros and hopefully few prototypes,
18194 which can conflict with char $ac_func (); below.
18195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 <limits.h> exists even on freestanding compilers. */
18198 #ifdef __STDC__
18199 # include <limits.h>
18200 #else
18201 # include <assert.h>
18202 #endif
18204 #undef $ac_func
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18209 #ifdef __cplusplus
18210 extern "C"
18211 #endif
18212 char $ac_func ();
18213 /* The GNU C library defines this for functions which it implements
18214 to always fail with ENOSYS. Some functions are actually named
18215 something starting with __ and the normal name is an alias. */
18216 #if defined __stub_$ac_func || defined __stub___$ac_func
18217 choke me
18218 #endif
18221 main ()
18223 return $ac_func ();
18225 return 0;
18227 _ACEOF
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (ac_try="$ac_link"
18230 case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_link") 2>conftest.er1
18236 ac_status=$?
18237 grep -v '^ *+' conftest.er1 >conftest.err
18238 rm -f conftest.er1
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } && {
18242 test -z "$ac_c_werror_flag" ||
18243 test ! -s conftest.err
18244 } && test -s conftest$ac_exeext &&
18245 $as_test_x conftest$ac_exeext; then
18246 eval "$as_ac_var=yes"
18247 else
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 eval "$as_ac_var=no"
18254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18255 conftest$ac_exeext conftest.$ac_ext
18257 ac_res=`eval echo '${'$as_ac_var'}'`
18258 { echo "$as_me:$LINENO: result: $ac_res" >&5
18259 echo "${ECHO_T}$ac_res" >&6; }
18260 if test `eval echo '${'$as_ac_var'}'` = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18263 _ACEOF
18264 break
18266 done
18269 # Check for one of atexit() or on_exit()
18271 for ac_func in atexit
18273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18287 #define $ac_func innocuous_$ac_func
18289 /* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char $ac_func (); below.
18291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 <limits.h> exists even on freestanding compilers. */
18294 #ifdef __STDC__
18295 # include <limits.h>
18296 #else
18297 # include <assert.h>
18298 #endif
18300 #undef $ac_func
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 char $ac_func ();
18309 /* The GNU C library defines this for functions which it implements
18310 to always fail with ENOSYS. Some functions are actually named
18311 something starting with __ and the normal name is an alias. */
18312 #if defined __stub_$ac_func || defined __stub___$ac_func
18313 choke me
18314 #endif
18317 main ()
18319 return $ac_func ();
18321 return 0;
18323 _ACEOF
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } && {
18338 test -z "$ac_c_werror_flag" ||
18339 test ! -s conftest.err
18340 } && test -s conftest$ac_exeext &&
18341 $as_test_x conftest$ac_exeext; then
18342 eval "$as_ac_var=yes"
18343 else
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 eval "$as_ac_var=no"
18350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351 conftest$ac_exeext conftest.$ac_ext
18353 ac_res=`eval echo '${'$as_ac_var'}'`
18354 { echo "$as_me:$LINENO: result: $ac_res" >&5
18355 echo "${ECHO_T}$ac_res" >&6; }
18356 if test `eval echo '${'$as_ac_var'}'` = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18359 _ACEOF
18361 else
18363 for ac_func in on_exit
18365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 else
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18379 #define $ac_func innocuous_$ac_func
18381 /* System header to define __stub macros and hopefully few prototypes,
18382 which can conflict with char $ac_func (); below.
18383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18384 <limits.h> exists even on freestanding compilers. */
18386 #ifdef __STDC__
18387 # include <limits.h>
18388 #else
18389 # include <assert.h>
18390 #endif
18392 #undef $ac_func
18394 /* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 char $ac_func ();
18401 /* The GNU C library defines this for functions which it implements
18402 to always fail with ENOSYS. Some functions are actually named
18403 something starting with __ and the normal name is an alias. */
18404 #if defined __stub_$ac_func || defined __stub___$ac_func
18405 choke me
18406 #endif
18409 main ()
18411 return $ac_func ();
18413 return 0;
18415 _ACEOF
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_link") 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest$ac_exeext &&
18433 $as_test_x conftest$ac_exeext; then
18434 eval "$as_ac_var=yes"
18435 else
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 eval "$as_ac_var=no"
18442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18443 conftest$ac_exeext conftest.$ac_ext
18445 ac_res=`eval echo '${'$as_ac_var'}'`
18446 { echo "$as_me:$LINENO: result: $ac_res" >&5
18447 echo "${ECHO_T}$ac_res" >&6; }
18448 if test `eval echo '${'$as_ac_var'}'` = yes; then
18449 cat >>confdefs.h <<_ACEOF
18450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18451 _ACEOF
18453 else
18454 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18455 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18456 { (exit 1); exit 1; }; }
18458 done
18461 done
18465 for ac_func in fseeko
18467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18481 #define $ac_func innocuous_$ac_func
18483 /* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char $ac_func (); below.
18485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18486 <limits.h> exists even on freestanding compilers. */
18488 #ifdef __STDC__
18489 # include <limits.h>
18490 #else
18491 # include <assert.h>
18492 #endif
18494 #undef $ac_func
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char $ac_func ();
18503 /* The GNU C library defines this for functions which it implements
18504 to always fail with ENOSYS. Some functions are actually named
18505 something starting with __ and the normal name is an alias. */
18506 #if defined __stub_$ac_func || defined __stub___$ac_func
18507 choke me
18508 #endif
18511 main ()
18513 return $ac_func ();
18515 return 0;
18517 _ACEOF
18518 rm -f conftest.$ac_objext conftest$ac_exeext
18519 if { (ac_try="$ac_link"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest$ac_exeext &&
18535 $as_test_x conftest$ac_exeext; then
18536 eval "$as_ac_var=yes"
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 eval "$as_ac_var=no"
18544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18545 conftest$ac_exeext conftest.$ac_ext
18547 ac_res=`eval echo '${'$as_ac_var'}'`
18548 { echo "$as_me:$LINENO: result: $ac_res" >&5
18549 echo "${ECHO_T}$ac_res" >&6; }
18550 if test `eval echo '${'$as_ac_var'}'` = yes; then
18551 cat >>confdefs.h <<_ACEOF
18552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18553 _ACEOF
18555 else
18556 case " $LIBOBJS " in
18557 *" $ac_func.$ac_objext "* ) ;;
18558 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18560 esac
18563 done
18566 case $host_os in
18567 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18568 bsdi*|netbsd*)
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE_FSEEKO 1
18572 _ACEOF
18574 ac_cv_func_fseeko=yes;;
18576 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18577 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18578 if test "${ac_cv_sys_largefile_source+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581 while :; do
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 <sys/types.h> /* for off_t */
18589 #include <stdio.h>
18591 main ()
18593 int (*fp) (FILE *, off_t, int) = fseeko;
18594 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18596 return 0;
18598 _ACEOF
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_link") 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest$ac_exeext &&
18616 $as_test_x conftest$ac_exeext; then
18617 ac_cv_sys_largefile_source=no; break
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 #define _LARGEFILE_SOURCE 1
18634 #include <sys/types.h> /* for off_t */
18635 #include <stdio.h>
18637 main ()
18639 int (*fp) (FILE *, off_t, int) = fseeko;
18640 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18642 return 0;
18644 _ACEOF
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && {
18659 test -z "$ac_c_werror_flag" ||
18660 test ! -s conftest.err
18661 } && test -s conftest$ac_exeext &&
18662 $as_test_x conftest$ac_exeext; then
18663 ac_cv_sys_largefile_source=1; break
18664 else
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18672 conftest$ac_exeext conftest.$ac_ext
18673 ac_cv_sys_largefile_source=unknown
18674 break
18675 done
18677 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18678 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18679 case $ac_cv_sys_largefile_source in #(
18680 no | unknown) ;;
18682 cat >>confdefs.h <<_ACEOF
18683 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18684 _ACEOF
18686 esac
18687 rm -f conftest*
18689 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18690 # in glibc 2.1.3, but that breaks too many other things.
18691 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18692 if test $ac_cv_sys_largefile_source != unknown; then
18694 cat >>confdefs.h <<\_ACEOF
18695 #define HAVE_FSEEKO 1
18696 _ACEOF
18700 esac
18704 # Pthreads
18706 # For each platform, we need to know about any special compile and link
18707 # libraries, and whether the normal C function names are thread-safe.
18708 # See the comment at the top of src/port/thread.c for more information.
18709 # WIN32 doesn't need the pthread tests; it always uses threads
18710 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18714 ac_ext=c
18715 ac_cpp='$CPP $CPPFLAGS'
18716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18720 acx_pthread_ok=no
18722 # We used to check for pthread.h first, but this fails if pthread.h
18723 # requires special compiler flags (e.g. on True64 or Sequent).
18724 # It gets checked for in the link test anyway.
18726 # First of all, check if the user has set any of the PTHREAD_LIBS,
18727 # etcetera environment variables, and if threads linking works using
18728 # them:
18729 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18730 save_CFLAGS="$CFLAGS"
18731 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18732 save_LIBS="$LIBS"
18733 LIBS="$PTHREAD_LIBS $LIBS"
18734 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18735 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char pthread_join ();
18751 main ()
18753 return pthread_join ();
18755 return 0;
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext &&
18775 $as_test_x conftest$ac_exeext; then
18776 acx_pthread_ok=yes
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18785 conftest$ac_exeext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18787 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18788 if test x"$acx_pthread_ok" = xno; then
18789 PTHREAD_LIBS=""
18790 PTHREAD_CFLAGS=""
18792 LIBS="$save_LIBS"
18793 CFLAGS="$save_CFLAGS"
18796 # We must check for the threads library under a number of different
18797 # names; the ordering is very important because some systems
18798 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18799 # libraries is broken (non-POSIX).
18801 # Create a list of thread flags to try. Items starting with a "-" are
18802 # C compiler flags, and other items are library names, except for "none"
18803 # which indicates that we try without any flags at all, and "pthread-config"
18804 # which is a program returning the flags for the Pth emulation library.
18806 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18808 # The ordering *is* (sometimes) important. Some notes on the
18809 # individual items follow:
18811 # pthreads: AIX (must check this before -lpthread)
18812 # none: in case threads are in libc; should be tried before -Kthread and
18813 # other compiler flags to prevent continual compiler warnings
18814 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18815 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18816 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18817 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18818 # -pthreads: Solaris/gcc
18819 # -mthreads: Mingw32/gcc, Lynx/gcc
18820 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18821 # doesn't hurt to check since this sometimes defines pthreads too;
18822 # also defines -D_REENTRANT)
18823 # pthread: Linux, etcetera
18824 # --thread-safe: KAI C++
18825 # pthread-config: use pthread-config program (for GNU Pth library)
18827 case "${host_cpu}-${host_os}" in
18828 *solaris*)
18830 # On Solaris (at least, for some versions), libc contains stubbed
18831 # (non-functional) versions of the pthreads routines, so link-based
18832 # tests will erroneously succeed. (We need to link with -pthread or
18833 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18834 # a function called by this macro, so we could check for that, but
18835 # who knows whether they'll stub that too in a future libc.) So,
18836 # we'll just look for -pthreads and -lpthread first:
18838 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18840 esac
18842 if test x"$acx_pthread_ok" = xno; then
18843 for flag in $acx_pthread_flags; do
18845 tryPTHREAD_CFLAGS=""
18846 tryPTHREAD_LIBS=""
18847 case $flag in
18848 none)
18849 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18850 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18854 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18855 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18856 tryPTHREAD_CFLAGS="$flag"
18859 pthread-config)
18860 # skip this if we already have flags defined, for PostgreSQL
18861 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18862 # Extract the first word of "pthread-config", so it can be a program name with args.
18863 set dummy pthread-config; ac_word=$2
18864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18866 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 if test -n "$acx_pthread_config"; then
18870 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18871 else
18872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873 for as_dir in $PATH
18875 IFS=$as_save_IFS
18876 test -z "$as_dir" && as_dir=.
18877 for ac_exec_ext in '' $ac_executable_extensions; do
18878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18879 ac_cv_prog_acx_pthread_config="yes"
18880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18881 break 2
18883 done
18884 done
18885 IFS=$as_save_IFS
18887 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18890 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18891 if test -n "$acx_pthread_config"; then
18892 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18893 echo "${ECHO_T}$acx_pthread_config" >&6; }
18894 else
18895 { echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6; }
18900 if test x"$acx_pthread_config" = xno; then continue; fi
18901 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18902 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18906 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18907 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18908 tryPTHREAD_LIBS="-l$flag"
18910 esac
18912 save_LIBS="$LIBS"
18913 save_CFLAGS="$CFLAGS"
18914 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18915 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18917 # Check for various functions. We must include pthread.h,
18918 # since some functions may be macros. (On the Sequent, we
18919 # need a special flag -Kthread to make this header compile.)
18920 # We check for pthread_join because it is in -lpthread on IRIX
18921 # while pthread_create is in libc. We check for pthread_attr_init
18922 # due to DEC craziness with -lpthreads. We check for
18923 # pthread_cleanup_push because it is one of the few pthread
18924 # functions on Solaris that doesn't have a non-functional libc stub.
18925 # We try pthread_create on general principles.
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <pthread.h>
18934 main ()
18936 pthread_t th; pthread_join(th, 0);
18937 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18938 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18940 return 0;
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest$ac_exeext &&
18960 $as_test_x conftest$ac_exeext; then
18961 acx_pthread_ok=yes
18962 else
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 acx_pthread_ok=no
18969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18970 conftest$ac_exeext conftest.$ac_ext
18972 if test "x$acx_pthread_ok" = xyes; then
18973 # Don't use options that are ignored by the compiler.
18974 # We find them by checking stderror.
18975 cat >conftest.$ac_ext <<_ACEOF
18977 main (int argc, char **argv)
18979 (void) argc;
18980 (void) argv;
18981 return 0;
18983 _ACEOF
18984 rm -f conftest.$ac_objext conftest$ac_exeext
18985 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18986 # we continue with more flags because Linux needs -lpthread
18987 # for libpq builds on PostgreSQL. The test above only
18988 # tests for building binaries, not shared libraries.
18989 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18990 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18991 else acx_pthread_ok=no
18995 LIBS="$save_LIBS"
18996 CFLAGS="$save_CFLAGS"
18998 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18999 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19000 done
19003 # Various other checks:
19004 if test "x$acx_pthread_ok" = xyes; then
19005 save_LIBS="$LIBS"
19006 LIBS="$PTHREAD_LIBS $LIBS"
19007 save_CFLAGS="$CFLAGS"
19008 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19010 # Detect AIX lossage: threads are created detached by default
19011 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19012 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19013 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <pthread.h>
19022 main ()
19024 int attr=PTHREAD_CREATE_JOINABLE;
19026 return 0;
19028 _ACEOF
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (ac_try="$ac_link"
19031 case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_link") 2>conftest.er1
19037 ac_status=$?
19038 grep -v '^ *+' conftest.er1 >conftest.err
19039 rm -f conftest.er1
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } && {
19043 test -z "$ac_c_werror_flag" ||
19044 test ! -s conftest.err
19045 } && test -s conftest$ac_exeext &&
19046 $as_test_x conftest$ac_exeext; then
19047 ok=PTHREAD_CREATE_JOINABLE
19048 else
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ok=unknown
19055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056 conftest$ac_exeext conftest.$ac_ext
19057 if test x"$ok" = xunknown; then
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <pthread.h>
19066 main ()
19068 int attr=PTHREAD_CREATE_UNDETACHED;
19070 return 0;
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest$ac_exeext &&
19090 $as_test_x conftest$ac_exeext; then
19091 ok=PTHREAD_CREATE_UNDETACHED
19092 else
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ok=unknown
19099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19100 conftest$ac_exeext conftest.$ac_ext
19102 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define PTHREAD_CREATE_JOINABLE $ok
19106 _ACEOF
19109 { echo "$as_me:$LINENO: result: ${ok}" >&5
19110 echo "${ECHO_T}${ok}" >&6; }
19111 if test x"$ok" = xunknown; then
19112 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19113 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19116 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19117 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19118 flag=no
19119 # We always add these in PostgreSQL
19120 # case "${host_cpu}-${host_os}" in
19121 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19122 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19123 # esac
19124 { echo "$as_me:$LINENO: result: ${flag}" >&5
19125 echo "${ECHO_T}${flag}" >&6; }
19126 if test "x$flag" != xno; then
19127 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19130 LIBS="$save_LIBS"
19131 CFLAGS="$save_CFLAGS"
19133 # Supporting cc_r would require a special CC in all places that
19134 # use libpq, and that is ugly, so we don't do it. Users can still
19135 # define their compiler as cc_r to do thread builds of everything.
19136 # More AIX lossage: must compile with cc_r
19137 # Extract the first word of "cc_r", so it can be a program name with args.
19138 set dummy cc_r; ac_word=$2
19139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19141 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144 if test -n "$PTHREAD_CC"; then
19145 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19146 else
19147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19148 for as_dir in $PATH
19150 IFS=$as_save_IFS
19151 test -z "$as_dir" && as_dir=.
19152 for ac_exec_ext in '' $ac_executable_extensions; do
19153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19154 ac_cv_prog_PTHREAD_CC="cc_r"
19155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19156 break 2
19158 done
19159 done
19160 IFS=$as_save_IFS
19162 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19165 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19166 if test -n "$PTHREAD_CC"; then
19167 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19168 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19169 else
19170 { echo "$as_me:$LINENO: result: no" >&5
19171 echo "${ECHO_T}no" >&6; }
19175 else
19176 PTHREAD_CC="$CC"
19183 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19184 if test x"$acx_pthread_ok" = xyes; then
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_PTHREAD 1
19188 _ACEOF
19191 else
19192 acx_pthread_ok=no
19195 ac_ext=c
19196 ac_cpp='$CPP $CPPFLAGS'
19197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19201 # set thread flags
19203 # Some platforms use these, so just define them. They can't hurt if they
19204 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19205 # enables 5-arg getpwuid_r, among other things.
19206 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19209 # At this point, we don't want to muck with the compiler name for threading.
19210 # Let's see who fails, perhaps AIX. 2004-04-23
19211 if test "$PTHREAD_CC" != "$CC"; then
19212 { { echo "$as_me:$LINENO: error:
19213 PostgreSQL does not support platforms that require a special compiler
19214 for thread safety." >&5
19215 echo "$as_me: error:
19216 PostgreSQL does not support platforms that require a special compiler
19217 for thread safety." >&2;}
19218 { (exit 1); exit 1; }; }
19221 if test "$THREAD_SUPPORT" = no; then
19222 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19223 This platform is known to not support thread-safe programs. For details,
19224 compile and run src/bin/pg_thread_test." >&5
19225 echo "$as_me: error: cannot enable threads on this platform
19226 This platform is known to not support thread-safe programs. For details,
19227 compile and run src/bin/pg_thread_test." >&2;}
19228 { (exit 1); exit 1; }; }
19231 # Check for *_r functions
19232 _CFLAGS="$CFLAGS"
19233 _LIBS="$LIBS"
19234 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19235 LIBS="$LIBS $PTHREAD_LIBS"
19237 if test "$PORTNAME" != "win32"; then
19238 if test "${ac_cv_header_pthread_h+set}" = set; then
19239 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19240 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19241 if test "${ac_cv_header_pthread_h+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19245 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19246 else
19247 # Is the header compilable?
19248 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19249 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h. */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 $ac_includes_default
19257 #include <pthread.h>
19258 _ACEOF
19259 rm -f conftest.$ac_objext
19260 if { (ac_try="$ac_compile"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_compile") 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } && {
19273 test -z "$ac_c_werror_flag" ||
19274 test ! -s conftest.err
19275 } && test -s conftest.$ac_objext; then
19276 ac_header_compiler=yes
19277 else
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_header_compiler=no
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19286 echo "${ECHO_T}$ac_header_compiler" >&6; }
19288 # Is the header present?
19289 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19290 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <pthread.h>
19298 _ACEOF
19299 if { (ac_try="$ac_cpp conftest.$ac_ext"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303 esac
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } >/dev/null && {
19312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 }; then
19315 ac_header_preproc=yes
19316 else
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_header_preproc=no
19323 rm -f conftest.err conftest.$ac_ext
19324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 echo "${ECHO_T}$ac_header_preproc" >&6; }
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 yes:no: )
19330 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19333 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc=yes
19336 no:yes:* )
19337 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19338 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19340 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19342 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19344 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19346 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19348 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19349 ( cat <<\_ASBOX
19350 ## ---------------------------------------- ##
19351 ## Report this to pgsql-bugs@postgresql.org ##
19352 ## ---------------------------------------- ##
19353 _ASBOX
19354 ) | sed "s/^/$as_me: WARNING: /" >&2
19356 esac
19357 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19358 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19359 if test "${ac_cv_header_pthread_h+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 ac_cv_header_pthread_h=$ac_header_preproc
19364 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19365 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19368 if test $ac_cv_header_pthread_h = yes; then
19370 else
19371 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19372 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19373 { (exit 1); exit 1; }; }
19382 for ac_func in strerror_r getpwuid_r gethostbyname_r
19384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19398 #define $ac_func innocuous_$ac_func
19400 /* System header to define __stub macros and hopefully few prototypes,
19401 which can conflict with char $ac_func (); below.
19402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19403 <limits.h> exists even on freestanding compilers. */
19405 #ifdef __STDC__
19406 # include <limits.h>
19407 #else
19408 # include <assert.h>
19409 #endif
19411 #undef $ac_func
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char $ac_func ();
19420 /* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423 #if defined __stub_$ac_func || defined __stub___$ac_func
19424 choke me
19425 #endif
19428 main ()
19430 return $ac_func ();
19432 return 0;
19434 _ACEOF
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest$ac_exeext &&
19452 $as_test_x conftest$ac_exeext; then
19453 eval "$as_ac_var=yes"
19454 else
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 eval "$as_ac_var=no"
19461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462 conftest$ac_exeext conftest.$ac_ext
19464 ac_res=`eval echo '${'$as_ac_var'}'`
19465 { echo "$as_me:$LINENO: result: $ac_res" >&5
19466 echo "${ECHO_T}$ac_res" >&6; }
19467 if test `eval echo '${'$as_ac_var'}'` = yes; then
19468 cat >>confdefs.h <<_ACEOF
19469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19470 _ACEOF
19473 done
19476 # Do test here with the proper thread flags
19477 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19478 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19479 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482 cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h. */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488 #include <sys/types.h>
19489 #include <pwd.h>
19491 main ()
19493 uid_t uid;
19494 struct passwd *space;
19495 char *buf;
19496 size_t bufsize;
19497 struct passwd **result;
19498 getpwuid_r(uid, space, buf, bufsize, result);
19500 return 0;
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (ac_try="$ac_compile"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_compile") 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest.$ac_objext; then
19520 pgac_cv_func_getpwuid_r_5arg=yes
19521 else
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525 pgac_cv_func_getpwuid_r_5arg=no
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19531 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19532 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19534 cat >>confdefs.h <<\_ACEOF
19535 #define GETPWUID_R_5ARG
19536 _ACEOF
19540 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19541 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19542 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 #include <string.h>
19553 main ()
19555 #ifndef _AIX
19556 int strerror_r(int, char *, size_t);
19557 #else
19558 /* Older AIX has 'int' for the third argument so we don't test the args. */
19559 int strerror_r();
19560 #endif
19562 return 0;
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (ac_try="$ac_compile"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_compile") 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest.$ac_objext; then
19582 pgac_cv_func_strerror_r_int=yes
19583 else
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 pgac_cv_func_strerror_r_int=no
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19593 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19594 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19596 cat >>confdefs.h <<\_ACEOF
19597 #define STRERROR_R_INT
19598 _ACEOF
19603 CFLAGS="$_CFLAGS"
19604 LIBS="$_LIBS"
19606 else
19607 # do not use values from template file
19608 PTHREAD_CFLAGS=
19609 PTHREAD_LIBS=
19616 # We can test for libldap_r only after we know PTHREAD_LIBS
19617 if test "$with_ldap" = yes ; then
19618 _LIBS="$LIBS"
19619 if test "$PORTNAME" != "win32"; then
19621 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19622 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19623 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626 ac_check_lib_save_LIBS=$LIBS
19627 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 /* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
19638 #ifdef __cplusplus
19639 extern "C"
19640 #endif
19641 char ldap_bind ();
19643 main ()
19645 return ldap_bind ();
19647 return 0;
19649 _ACEOF
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest$ac_exeext &&
19667 $as_test_x conftest$ac_exeext; then
19668 ac_cv_lib_ldap_ldap_bind=yes
19669 else
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 ac_cv_lib_ldap_ldap_bind=no
19676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19677 conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19680 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19681 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19682 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19683 cat >>confdefs.h <<_ACEOF
19684 #define HAVE_LIBLDAP 1
19685 _ACEOF
19687 LIBS="-lldap $LIBS"
19689 else
19690 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19691 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19692 { (exit 1); exit 1; }; }
19695 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19696 if test "$enable_thread_safety" = yes; then
19697 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19699 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19700 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19701 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704 ac_check_lib_save_LIBS=$LIBS
19705 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19713 /* Override any GCC internal prototype to avoid an error.
19714 Use char because int might match the return type of a GCC
19715 builtin and then its argument prototype would still apply. */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 char ldap_simple_bind ();
19721 main ()
19723 return ldap_simple_bind ();
19725 return 0;
19727 _ACEOF
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (ac_try="$ac_link"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_link") 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest$ac_exeext &&
19745 $as_test_x conftest$ac_exeext; then
19746 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_cv_lib_ldap_r_ldap_simple_bind=no
19754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19755 conftest$ac_exeext conftest.$ac_ext
19756 LIBS=$ac_check_lib_save_LIBS
19758 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19759 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19760 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define HAVE_LIBLDAP_R 1
19763 _ACEOF
19765 LIBS="-lldap_r $LIBS"
19767 else
19768 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19769 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19770 { (exit 1); exit 1; }; }
19773 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19774 else
19775 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19777 else
19779 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19780 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19781 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784 ac_check_lib_save_LIBS=$LIBS
19785 LIBS="-lwldap32 $LIBS"
19786 cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h. */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19793 /* Override any GCC internal prototype to avoid an error.
19794 Use char because int might match the return type of a GCC
19795 builtin and then its argument prototype would still apply. */
19796 #ifdef __cplusplus
19797 extern "C"
19798 #endif
19799 char ldap_bind ();
19801 main ()
19803 return ldap_bind ();
19805 return 0;
19807 _ACEOF
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest$ac_exeext &&
19825 $as_test_x conftest$ac_exeext; then
19826 ac_cv_lib_wldap32_ldap_bind=yes
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_cv_lib_wldap32_ldap_bind=no
19834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19835 conftest$ac_exeext conftest.$ac_ext
19836 LIBS=$ac_check_lib_save_LIBS
19838 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19839 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19840 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_LIBWLDAP32 1
19843 _ACEOF
19845 LIBS="-lwldap32 $LIBS"
19847 else
19848 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19849 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19850 { (exit 1); exit 1; }; }
19853 LDAP_LIBS_FE="-lwldap32"
19854 LDAP_LIBS_BE="-lwldap32"
19856 LIBS="$_LIBS"
19862 # This test makes sure that run tests work at all. Sometimes a shared
19863 # library is found by the linker, but the runtime linker can't find it.
19864 # This check should come after all modifications of compiler or linker
19865 # variables, and before any other run tests.
19866 { echo "$as_me:$LINENO: checking test program" >&5
19867 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19868 if test "$cross_compiling" = yes; then
19869 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19870 echo "${ECHO_T}cross-compiling" >&6; }
19871 else
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h. */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 int main() { return 0; }
19879 _ACEOF
19880 rm -f conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 { echo "$as_me:$LINENO: result: ok" >&5
19901 echo "${ECHO_T}ok" >&6; }
19902 else
19903 echo "$as_me: program exited with status $ac_status" >&5
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 ( exit $ac_status )
19908 { echo "$as_me:$LINENO: result: failed" >&5
19909 echo "${ECHO_T}failed" >&6; }
19910 { { echo "$as_me:$LINENO: error:
19911 Could not execute a simple test program. This may be a problem
19912 related to locating shared libraries. Check the file 'config.log'
19913 for the exact reason." >&5
19914 echo "$as_me: error:
19915 Could not execute a simple test program. This may be a problem
19916 related to locating shared libraries. Check the file 'config.log'
19917 for the exact reason." >&2;}
19918 { (exit 1); exit 1; }; }
19920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19925 # --------------------
19926 # Run tests below here
19927 # --------------------
19929 # Force use of our snprintf if system's doesn't do arg control
19930 # See comment above at snprintf test for details.
19931 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19932 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19933 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19934 if test "${pgac_cv_printf_arg_control+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937 if test "$cross_compiling" = yes; then
19938 pgac_cv_printf_arg_control=cross
19939 else
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <stdio.h>
19947 #include <string.h>
19949 int main()
19951 char buf[100];
19953 /* can it swap arguments? */
19954 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19955 if (strcmp(buf, "4 3") != 0)
19956 return 1;
19957 return 0;
19959 _ACEOF
19960 rm -f conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 pgac_cv_printf_arg_control=yes
19981 else
19982 echo "$as_me: program exited with status $ac_status" >&5
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ( exit $ac_status )
19987 pgac_cv_printf_arg_control=no
19989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19996 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19998 if test $pgac_cv_printf_arg_control != yes ; then
19999 pgac_need_repl_snprintf=yes
20005 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20006 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20007 if test "${pgac_cv_type_long_int_64+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010 if test "$cross_compiling" = yes; then
20011 # If cross-compiling, check the size reported by the compiler and
20012 # trust that the arithmetic works.
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20021 main ()
20023 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20024 test_array [0] = 0
20027 return 0;
20029 _ACEOF
20030 rm -f conftest.$ac_objext
20031 if { (ac_try="$ac_compile"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.$ac_objext; then
20047 pgac_cv_type_long_int_64=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 pgac_cv_type_long_int_64=no
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056 else
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 typedef long int ac_int64;
20066 * These are globals to discourage the compiler from folding all the
20067 * arithmetic tests down to compile-time constants.
20069 ac_int64 a = 20000001;
20070 ac_int64 b = 40000005;
20072 int does_int64_work()
20074 ac_int64 c,d;
20076 if (sizeof(ac_int64) != 8)
20077 return 0; /* definitely not the right size */
20079 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20080 c = a * b;
20081 d = (c + b) / b;
20082 if (d != a+1)
20083 return 0;
20084 return 1;
20086 main() {
20087 exit(! does_int64_work());
20089 _ACEOF
20090 rm -f conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_link") 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 pgac_cv_type_long_int_64=yes
20111 else
20112 echo "$as_me: program exited with status $ac_status" >&5
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ( exit $ac_status )
20117 pgac_cv_type_long_int_64=no
20119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20124 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20125 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20127 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20128 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20130 cat >>confdefs.h <<\_ACEOF
20131 #define HAVE_LONG_INT_64 1
20132 _ACEOF
20137 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20138 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20139 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20140 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143 if test "$cross_compiling" = yes; then
20144 # If cross-compiling, check the size reported by the compiler and
20145 # trust that the arithmetic works.
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20154 main ()
20156 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20157 test_array [0] = 0
20160 return 0;
20162 _ACEOF
20163 rm -f conftest.$ac_objext
20164 if { (ac_try="$ac_compile"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_compile") 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_c_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest.$ac_objext; then
20180 pgac_cv_type_long_long_int_64=yes
20181 else
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20185 pgac_cv_type_long_long_int_64=no
20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 else
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h. */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 typedef long long int ac_int64;
20199 * These are globals to discourage the compiler from folding all the
20200 * arithmetic tests down to compile-time constants.
20202 ac_int64 a = 20000001;
20203 ac_int64 b = 40000005;
20205 int does_int64_work()
20207 ac_int64 c,d;
20209 if (sizeof(ac_int64) != 8)
20210 return 0; /* definitely not the right size */
20212 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20213 c = a * b;
20214 d = (c + b) / b;
20215 if (d != a+1)
20216 return 0;
20217 return 1;
20219 main() {
20220 exit(! does_int64_work());
20222 _ACEOF
20223 rm -f conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_link") 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 pgac_cv_type_long_long_int_64=yes
20244 else
20245 echo "$as_me: program exited with status $ac_status" >&5
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ( exit $ac_status )
20250 pgac_cv_type_long_long_int_64=no
20252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20257 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20258 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20260 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20261 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_LONG_LONG_INT_64 1
20265 _ACEOF
20273 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 #define INT64CONST(x) x##LL
20282 long long int foo = INT64CONST(0x1234567890123456);
20285 main ()
20289 return 0;
20291 _ACEOF
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_compile") 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest.$ac_objext; then
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE_LL_CONSTANTS 1
20312 _ACEOF
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325 # If we found "long int" is 64 bits, assume snprintf handles it. If
20326 # we found we need to use "long long int", better check. We cope with
20327 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20328 # work, fall back to our own snprintf emulation (which we know uses %lld).
20330 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20331 if test $pgac_need_repl_snprintf = no; then
20332 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20333 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20334 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337 for pgac_format in '%lld' '%qd' '%I64d'; do
20338 if test "$cross_compiling" = yes; then
20339 pgac_cv_snprintf_long_long_int_format=cross; break
20340 else
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h. */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 #include <stdio.h>
20348 typedef long long int ac_int64;
20349 #define INT64_FORMAT "$pgac_format"
20351 ac_int64 a = 20000001;
20352 ac_int64 b = 40000005;
20354 int does_int64_snprintf_work()
20356 ac_int64 c;
20357 char buf[100];
20359 if (sizeof(ac_int64) != 8)
20360 return 0; /* doesn't look like the right size */
20362 c = a * b;
20363 snprintf(buf, 100, INT64_FORMAT, c);
20364 if (strcmp(buf, "800000140000005") != 0)
20365 return 0; /* either multiply or snprintf is busted */
20366 return 1;
20368 main() {
20369 exit(! does_int64_snprintf_work());
20371 _ACEOF
20372 rm -f conftest$ac_exeext
20373 if { (ac_try="$ac_link"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20393 else
20394 echo "$as_me: program exited with status $ac_status" >&5
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 done
20406 LONG_LONG_INT_FORMAT=''
20408 case $pgac_cv_snprintf_long_long_int_format in
20409 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20410 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20411 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20412 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20413 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20414 *) { echo "$as_me:$LINENO: result: none" >&5
20415 echo "${ECHO_T}none" >&6; };;
20416 esac
20417 if test "$LONG_LONG_INT_FORMAT" = ""; then
20418 # Force usage of our own snprintf, since system snprintf is broken
20419 pgac_need_repl_snprintf=yes
20420 LONG_LONG_INT_FORMAT='%lld'
20422 else
20423 # Here if we previously decided we needed to use our own snprintf
20424 LONG_LONG_INT_FORMAT='%lld'
20426 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20427 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20428 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20429 else
20430 # Here if we are not using 'long long int' at all
20431 INT64_FORMAT='"%ld"'
20432 UINT64_FORMAT='"%lu"'
20436 cat >>confdefs.h <<_ACEOF
20437 #define INT64_FORMAT $INT64_FORMAT
20438 _ACEOF
20442 cat >>confdefs.h <<_ACEOF
20443 #define UINT64_FORMAT $UINT64_FORMAT
20444 _ACEOF
20447 # Now we have checked all the reasons to replace snprintf
20448 if test $pgac_need_repl_snprintf = yes; then
20450 cat >>confdefs.h <<\_ACEOF
20451 #define USE_REPL_SNPRINTF 1
20452 _ACEOF
20454 case " $LIBOBJS " in
20455 *" snprintf.$ac_objext "* ) ;;
20456 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20458 esac
20462 # Need a #define for the size of Datum (unsigned long)
20463 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20464 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20465 if test "${ac_cv_type_unsigned_long+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20475 typedef unsigned long ac__type_new_;
20477 main ()
20479 if ((ac__type_new_ *) 0)
20480 return 0;
20481 if (sizeof (ac__type_new_))
20482 return 0;
20484 return 0;
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ac_cv_type_unsigned_long=yes
20505 else
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_cv_type_unsigned_long=no
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20515 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20517 # The cast to long int works around a bug in the HP C Compiler
20518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20520 # This bug is HP SR number 8606223364.
20521 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20522 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20523 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526 if test "$cross_compiling" = yes; then
20527 # Depending upon the size, compute the lo and hi bounds.
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h. */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 $ac_includes_default
20535 typedef unsigned long ac__type_sizeof_;
20537 main ()
20539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20540 test_array [0] = 0
20543 return 0;
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (ac_try="$ac_compile"
20548 case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_compile") 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && {
20560 test -z "$ac_c_werror_flag" ||
20561 test ! -s conftest.err
20562 } && test -s conftest.$ac_objext; then
20563 ac_lo=0 ac_mid=0
20564 while :; do
20565 cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h. */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 $ac_includes_default
20572 typedef unsigned long ac__type_sizeof_;
20574 main ()
20576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20577 test_array [0] = 0
20580 return 0;
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
20600 ac_hi=$ac_mid; break
20601 else
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_lo=`expr $ac_mid + 1`
20606 if test $ac_lo -le $ac_mid; then
20607 ac_lo= ac_hi=
20608 break
20610 ac_mid=`expr 2 '*' $ac_mid + 1`
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614 done
20615 else
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20626 typedef unsigned long ac__type_sizeof_;
20628 main ()
20630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20631 test_array [0] = 0
20634 return 0;
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_hi=-1 ac_mid=-1
20655 while :; do
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 typedef unsigned long ac__type_sizeof_;
20665 main ()
20667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20668 test_array [0] = 0
20671 return 0;
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 ac_lo=$ac_mid; break
20692 else
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_hi=`expr '(' $ac_mid ')' - 1`
20697 if test $ac_mid -le $ac_hi; then
20698 ac_lo= ac_hi=
20699 break
20701 ac_mid=`expr 2 '*' $ac_mid`
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 done
20706 else
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20710 ac_lo= ac_hi=
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 # Binary search between lo and hi bounds.
20718 while test "x$ac_lo" != "x$ac_hi"; do
20719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20720 cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h. */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 $ac_includes_default
20727 typedef unsigned long ac__type_sizeof_;
20729 main ()
20731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20732 test_array [0] = 0
20735 return 0;
20737 _ACEOF
20738 rm -f conftest.$ac_objext
20739 if { (ac_try="$ac_compile"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_compile") 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } && {
20752 test -z "$ac_c_werror_flag" ||
20753 test ! -s conftest.err
20754 } && test -s conftest.$ac_objext; then
20755 ac_hi=$ac_mid
20756 else
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_lo=`expr '(' $ac_mid ')' + 1`
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764 done
20765 case $ac_lo in
20766 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20767 '') if test "$ac_cv_type_unsigned_long" = yes; then
20768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20769 See \`config.log' for more details." >&5
20770 echo "$as_me: error: cannot compute sizeof (unsigned long)
20771 See \`config.log' for more details." >&2;}
20772 { (exit 77); exit 77; }; }
20773 else
20774 ac_cv_sizeof_unsigned_long=0
20775 fi ;;
20776 esac
20777 else
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20785 typedef unsigned long ac__type_sizeof_;
20786 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20787 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20788 #include <stdio.h>
20789 #include <stdlib.h>
20791 main ()
20794 FILE *f = fopen ("conftest.val", "w");
20795 if (! f)
20796 return 1;
20797 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20799 long int i = longval ();
20800 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20801 return 1;
20802 fprintf (f, "%ld\n", i);
20804 else
20806 unsigned long int i = ulongval ();
20807 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20808 return 1;
20809 fprintf (f, "%lu\n", i);
20811 return ferror (f) || fclose (f) != 0;
20814 return 0;
20816 _ACEOF
20817 rm -f conftest$ac_exeext
20818 if { (ac_try="$ac_link"
20819 case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_link") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20838 else
20839 echo "$as_me: program exited with status $ac_status" >&5
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ( exit $ac_status )
20844 if test "$ac_cv_type_unsigned_long" = yes; then
20845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20846 See \`config.log' for more details." >&5
20847 echo "$as_me: error: cannot compute sizeof (unsigned long)
20848 See \`config.log' for more details." >&2;}
20849 { (exit 77); exit 77; }; }
20850 else
20851 ac_cv_sizeof_unsigned_long=0
20854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20856 rm -f conftest.val
20858 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20859 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20863 cat >>confdefs.h <<_ACEOF
20864 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20865 _ACEOF
20869 # And one for the size of size_t (enables tweaks for > 32bit address space)
20870 { echo "$as_me:$LINENO: checking for size_t" >&5
20871 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20872 if test "${ac_cv_type_size_t+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20882 typedef size_t ac__type_new_;
20884 main ()
20886 if ((ac__type_new_ *) 0)
20887 return 0;
20888 if (sizeof (ac__type_new_))
20889 return 0;
20891 return 0;
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest.$ac_objext; then
20911 ac_cv_type_size_t=yes
20912 else
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_cv_type_size_t=no
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20922 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20924 # The cast to long int works around a bug in the HP C Compiler
20925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20927 # This bug is HP SR number 8606223364.
20928 { echo "$as_me:$LINENO: checking size of size_t" >&5
20929 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20930 if test "${ac_cv_sizeof_size_t+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 if test "$cross_compiling" = yes; then
20934 # Depending upon the size, compute the lo and hi bounds.
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 $ac_includes_default
20942 typedef size_t ac__type_sizeof_;
20944 main ()
20946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20947 test_array [0] = 0
20950 return 0;
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 ac_lo=0 ac_mid=0
20971 while :; do
20972 cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h. */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 $ac_includes_default
20979 typedef size_t ac__type_sizeof_;
20981 main ()
20983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20984 test_array [0] = 0
20987 return 0;
20989 _ACEOF
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_compile") 2>conftest.er1
20998 ac_status=$?
20999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && {
21004 test -z "$ac_c_werror_flag" ||
21005 test ! -s conftest.err
21006 } && test -s conftest.$ac_objext; then
21007 ac_hi=$ac_mid; break
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_lo=`expr $ac_mid + 1`
21013 if test $ac_lo -le $ac_mid; then
21014 ac_lo= ac_hi=
21015 break
21017 ac_mid=`expr 2 '*' $ac_mid + 1`
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 done
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h. */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 $ac_includes_default
21033 typedef size_t ac__type_sizeof_;
21035 main ()
21037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21038 test_array [0] = 0
21041 return 0;
21043 _ACEOF
21044 rm -f conftest.$ac_objext
21045 if { (ac_try="$ac_compile"
21046 case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_compile") 2>conftest.er1
21052 ac_status=$?
21053 grep -v '^ *+' conftest.er1 >conftest.err
21054 rm -f conftest.er1
21055 cat conftest.err >&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } && {
21058 test -z "$ac_c_werror_flag" ||
21059 test ! -s conftest.err
21060 } && test -s conftest.$ac_objext; then
21061 ac_hi=-1 ac_mid=-1
21062 while :; do
21063 cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h. */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21070 typedef size_t ac__type_sizeof_;
21072 main ()
21074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21075 test_array [0] = 0
21078 return 0;
21080 _ACEOF
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && {
21095 test -z "$ac_c_werror_flag" ||
21096 test ! -s conftest.err
21097 } && test -s conftest.$ac_objext; then
21098 ac_lo=$ac_mid; break
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_hi=`expr '(' $ac_mid ')' - 1`
21104 if test $ac_mid -le $ac_hi; then
21105 ac_lo= ac_hi=
21106 break
21108 ac_mid=`expr 2 '*' $ac_mid`
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 done
21113 else
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ac_lo= ac_hi=
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 # Binary search between lo and hi bounds.
21125 while test "x$ac_lo" != "x$ac_hi"; do
21126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 $ac_includes_default
21134 typedef size_t ac__type_sizeof_;
21136 main ()
21138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21139 test_array [0] = 0
21142 return 0;
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21162 ac_hi=$ac_mid
21163 else
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_lo=`expr '(' $ac_mid ')' + 1`
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 done
21172 case $ac_lo in
21173 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21174 '') if test "$ac_cv_type_size_t" = yes; then
21175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21176 See \`config.log' for more details." >&5
21177 echo "$as_me: error: cannot compute sizeof (size_t)
21178 See \`config.log' for more details." >&2;}
21179 { (exit 77); exit 77; }; }
21180 else
21181 ac_cv_sizeof_size_t=0
21182 fi ;;
21183 esac
21184 else
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 typedef size_t ac__type_sizeof_;
21193 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21194 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21195 #include <stdio.h>
21196 #include <stdlib.h>
21198 main ()
21201 FILE *f = fopen ("conftest.val", "w");
21202 if (! f)
21203 return 1;
21204 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21206 long int i = longval ();
21207 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21208 return 1;
21209 fprintf (f, "%ld\n", i);
21211 else
21213 unsigned long int i = ulongval ();
21214 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21215 return 1;
21216 fprintf (f, "%lu\n", i);
21218 return ferror (f) || fclose (f) != 0;
21221 return 0;
21223 _ACEOF
21224 rm -f conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_link") 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_sizeof_size_t=`cat conftest.val`
21245 else
21246 echo "$as_me: program exited with status $ac_status" >&5
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ( exit $ac_status )
21251 if test "$ac_cv_type_size_t" = yes; then
21252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21253 See \`config.log' for more details." >&5
21254 echo "$as_me: error: cannot compute sizeof (size_t)
21255 See \`config.log' for more details." >&2;}
21256 { (exit 77); exit 77; }; }
21257 else
21258 ac_cv_sizeof_size_t=0
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21263 rm -f conftest.val
21265 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21266 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21270 cat >>confdefs.h <<_ACEOF
21271 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21272 _ACEOF
21276 # Decide whether float4 is passed by value: user-selectable, enabled by default
21277 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21278 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21280 pgac_args="$pgac_args enable_float4_byval"
21282 # Check whether --enable-float4-byval was given.
21283 if test "${enable_float4_byval+set}" = set; then
21284 enableval=$enable_float4_byval;
21285 case $enableval in
21286 yes)
21288 cat >>confdefs.h <<\_ACEOF
21289 #define USE_FLOAT4_BYVAL 1
21290 _ACEOF
21292 float4passbyval=true
21295 float4passbyval=false
21298 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21299 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21300 { (exit 1); exit 1; }; }
21302 esac
21304 else
21305 enable_float4_byval=yes
21307 cat >>confdefs.h <<\_ACEOF
21308 #define USE_FLOAT4_BYVAL 1
21309 _ACEOF
21311 float4passbyval=true
21315 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21316 echo "${ECHO_T}$enable_float4_byval" >&6; }
21318 cat >>confdefs.h <<_ACEOF
21319 #define FLOAT4PASSBYVAL $float4passbyval
21320 _ACEOF
21323 # Decide whether float8 is passed by value.
21324 # Note: this setting also controls int8 and related types such as timestamp.
21325 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21326 # If not, trying to select it is an error.
21327 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21328 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21329 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21331 pgac_args="$pgac_args enable_float8_byval"
21333 # Check whether --enable-float8-byval was given.
21334 if test "${enable_float8_byval+set}" = set; then
21335 enableval=$enable_float8_byval;
21336 case $enableval in
21337 yes)
21344 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21345 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21346 { (exit 1); exit 1; }; }
21348 esac
21350 else
21351 enable_float8_byval=yes
21356 else
21358 pgac_args="$pgac_args enable_float8_byval"
21360 # Check whether --enable-float8-byval was given.
21361 if test "${enable_float8_byval+set}" = set; then
21362 enableval=$enable_float8_byval;
21363 case $enableval in
21364 yes)
21371 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21372 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21373 { (exit 1); exit 1; }; }
21375 esac
21377 else
21378 enable_float8_byval=no
21383 if test "$enable_float8_byval" = yes ; then
21384 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21385 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21386 { (exit 1); exit 1; }; }
21389 if test "$enable_float8_byval" = yes ; then
21391 cat >>confdefs.h <<\_ACEOF
21392 #define USE_FLOAT8_BYVAL 1
21393 _ACEOF
21395 float8passbyval=true
21396 else
21397 float8passbyval=false
21399 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21400 echo "${ECHO_T}$enable_float8_byval" >&6; }
21402 cat >>confdefs.h <<_ACEOF
21403 #define FLOAT8PASSBYVAL $float8passbyval
21404 _ACEOF
21407 # Determine memory alignment requirements for the basic C data types.
21409 { echo "$as_me:$LINENO: checking for short" >&5
21410 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21411 if test "${ac_cv_type_short+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21421 typedef short ac__type_new_;
21423 main ()
21425 if ((ac__type_new_ *) 0)
21426 return 0;
21427 if (sizeof (ac__type_new_))
21428 return 0;
21430 return 0;
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21450 ac_cv_type_short=yes
21451 else
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ac_cv_type_short=no
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21461 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21463 # The cast to long int works around a bug in the HP C Compiler,
21464 # see AC_CHECK_SIZEOF for more information.
21465 { echo "$as_me:$LINENO: checking alignment of short" >&5
21466 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21467 if test "${ac_cv_alignof_short+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 else
21470 if test "$cross_compiling" = yes; then
21471 # Depending upon the size, compute the lo and hi bounds.
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h. */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 $ac_includes_default
21479 #ifndef offsetof
21480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21481 #endif
21482 typedef struct { char x; short y; } ac__type_alignof_;
21484 main ()
21486 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21487 test_array [0] = 0
21490 return 0;
21492 _ACEOF
21493 rm -f conftest.$ac_objext
21494 if { (ac_try="$ac_compile"
21495 case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_compile") 2>conftest.er1
21501 ac_status=$?
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && {
21507 test -z "$ac_c_werror_flag" ||
21508 test ! -s conftest.err
21509 } && test -s conftest.$ac_objext; then
21510 ac_lo=0 ac_mid=0
21511 while :; do
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 #ifndef offsetof
21520 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21521 #endif
21522 typedef struct { char x; short y; } ac__type_alignof_;
21524 main ()
21526 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21527 test_array [0] = 0
21530 return 0;
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest.$ac_objext; then
21550 ac_hi=$ac_mid; break
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ac_lo=`expr $ac_mid + 1`
21556 if test $ac_lo -le $ac_mid; then
21557 ac_lo= ac_hi=
21558 break
21560 ac_mid=`expr 2 '*' $ac_mid + 1`
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 done
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 #ifndef offsetof
21577 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21578 #endif
21579 typedef struct { char x; short y; } ac__type_alignof_;
21581 main ()
21583 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21584 test_array [0] = 0
21587 return 0;
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_compile") 2>conftest.er1
21598 ac_status=$?
21599 grep -v '^ *+' conftest.er1 >conftest.err
21600 rm -f conftest.er1
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && {
21604 test -z "$ac_c_werror_flag" ||
21605 test ! -s conftest.err
21606 } && test -s conftest.$ac_objext; then
21607 ac_hi=-1 ac_mid=-1
21608 while :; do
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 $ac_includes_default
21616 #ifndef offsetof
21617 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21618 #endif
21619 typedef struct { char x; short y; } ac__type_alignof_;
21621 main ()
21623 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21624 test_array [0] = 0
21627 return 0;
21629 _ACEOF
21630 rm -f conftest.$ac_objext
21631 if { (ac_try="$ac_compile"
21632 case "(($ac_try" in
21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21635 esac
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_compile") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest.$ac_objext; then
21647 ac_lo=$ac_mid; break
21648 else
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_hi=`expr '(' $ac_mid ')' - 1`
21653 if test $ac_mid -le $ac_hi; then
21654 ac_lo= ac_hi=
21655 break
21657 ac_mid=`expr 2 '*' $ac_mid`
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 done
21662 else
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21666 ac_lo= ac_hi=
21669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673 # Binary search between lo and hi bounds.
21674 while test "x$ac_lo" != "x$ac_hi"; do
21675 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 #ifndef offsetof
21684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21685 #endif
21686 typedef struct { char x; short y; } ac__type_alignof_;
21688 main ()
21690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21691 test_array [0] = 0
21694 return 0;
21696 _ACEOF
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_compile") 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } && {
21711 test -z "$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 } && test -s conftest.$ac_objext; then
21714 ac_hi=$ac_mid
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_lo=`expr '(' $ac_mid ')' + 1`
21722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21723 done
21724 case $ac_lo in
21725 ?*) ac_cv_alignof_short=$ac_lo;;
21726 '') if test "$ac_cv_type_short" = yes; then
21727 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21728 See \`config.log' for more details." >&5
21729 echo "$as_me: error: cannot compute alignment of short
21730 See \`config.log' for more details." >&2;}
21731 { (exit 77); exit 77; }; }
21732 else
21733 ac_cv_alignof_short=0
21734 fi ;;
21735 esac
21736 else
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 #ifndef offsetof
21745 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21746 #endif
21747 typedef struct { char x; short y; } ac__type_alignof_;
21748 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21749 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21750 #include <stdio.h>
21751 #include <stdlib.h>
21753 main ()
21756 FILE *f = fopen ("conftest.val", "w");
21757 if (! f)
21758 return 1;
21759 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21761 long int i = longval ();
21762 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21763 return 1;
21764 fprintf (f, "%ld\n", i);
21766 else
21768 unsigned long int i = ulongval ();
21769 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21770 return 1;
21771 fprintf (f, "%lu\n", i);
21773 return ferror (f) || fclose (f) != 0;
21776 return 0;
21778 _ACEOF
21779 rm -f conftest$ac_exeext
21780 if { (ac_try="$ac_link"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_link") 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790 { (case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_try") 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_alignof_short=`cat conftest.val`
21800 else
21801 echo "$as_me: program exited with status $ac_status" >&5
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ( exit $ac_status )
21806 if test "$ac_cv_type_short" = yes; then
21807 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21808 See \`config.log' for more details." >&5
21809 echo "$as_me: error: cannot compute alignment of short
21810 See \`config.log' for more details." >&2;}
21811 { (exit 77); exit 77; }; }
21812 else
21813 ac_cv_alignof_short=0
21816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21818 rm -f conftest.val
21820 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21821 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21825 cat >>confdefs.h <<_ACEOF
21826 #define ALIGNOF_SHORT $ac_cv_alignof_short
21827 _ACEOF
21830 { echo "$as_me:$LINENO: checking for int" >&5
21831 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21832 if test "${ac_cv_type_int+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h. */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 $ac_includes_default
21842 typedef int ac__type_new_;
21844 main ()
21846 if ((ac__type_new_ *) 0)
21847 return 0;
21848 if (sizeof (ac__type_new_))
21849 return 0;
21851 return 0;
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871 ac_cv_type_int=yes
21872 else
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_cv_type_int=no
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21882 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21884 # The cast to long int works around a bug in the HP C Compiler,
21885 # see AC_CHECK_SIZEOF for more information.
21886 { echo "$as_me:$LINENO: checking alignment of int" >&5
21887 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21888 if test "${ac_cv_alignof_int+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891 if test "$cross_compiling" = yes; then
21892 # Depending upon the size, compute the lo and hi bounds.
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h. */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 $ac_includes_default
21900 #ifndef offsetof
21901 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21902 #endif
21903 typedef struct { char x; int y; } ac__type_alignof_;
21905 main ()
21907 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21908 test_array [0] = 0
21911 return 0;
21913 _ACEOF
21914 rm -f conftest.$ac_objext
21915 if { (ac_try="$ac_compile"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21919 esac
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_compile") 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && {
21928 test -z "$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21930 } && test -s conftest.$ac_objext; then
21931 ac_lo=0 ac_mid=0
21932 while :; do
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21940 #ifndef offsetof
21941 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21942 #endif
21943 typedef struct { char x; int y; } ac__type_alignof_;
21945 main ()
21947 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21948 test_array [0] = 0
21951 return 0;
21953 _ACEOF
21954 rm -f conftest.$ac_objext
21955 if { (ac_try="$ac_compile"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_compile") 2>conftest.er1
21962 ac_status=$?
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest.$ac_objext; then
21971 ac_hi=$ac_mid; break
21972 else
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_lo=`expr $ac_mid + 1`
21977 if test $ac_lo -le $ac_mid; then
21978 ac_lo= ac_hi=
21979 break
21981 ac_mid=`expr 2 '*' $ac_mid + 1`
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 done
21986 else
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
21997 #ifndef offsetof
21998 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21999 #endif
22000 typedef struct { char x; int y; } ac__type_alignof_;
22002 main ()
22004 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22005 test_array [0] = 0
22008 return 0;
22010 _ACEOF
22011 rm -f conftest.$ac_objext
22012 if { (ac_try="$ac_compile"
22013 case "(($ac_try" in
22014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015 *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018 (eval "$ac_compile") 2>conftest.er1
22019 ac_status=$?
22020 grep -v '^ *+' conftest.er1 >conftest.err
22021 rm -f conftest.er1
22022 cat conftest.err >&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } && {
22025 test -z "$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22027 } && test -s conftest.$ac_objext; then
22028 ac_hi=-1 ac_mid=-1
22029 while :; do
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 $ac_includes_default
22037 #ifndef offsetof
22038 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22039 #endif
22040 typedef struct { char x; int y; } ac__type_alignof_;
22042 main ()
22044 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22045 test_array [0] = 0
22048 return 0;
22050 _ACEOF
22051 rm -f conftest.$ac_objext
22052 if { (ac_try="$ac_compile"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_compile") 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && {
22065 test -z "$ac_c_werror_flag" ||
22066 test ! -s conftest.err
22067 } && test -s conftest.$ac_objext; then
22068 ac_lo=$ac_mid; break
22069 else
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_hi=`expr '(' $ac_mid ')' - 1`
22074 if test $ac_mid -le $ac_hi; then
22075 ac_lo= ac_hi=
22076 break
22078 ac_mid=`expr 2 '*' $ac_mid`
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 done
22083 else
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_lo= ac_hi=
22090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 # Binary search between lo and hi bounds.
22095 while test "x$ac_lo" != "x$ac_hi"; do
22096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22104 #ifndef offsetof
22105 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22106 #endif
22107 typedef struct { char x; int y; } ac__type_alignof_;
22109 main ()
22111 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22112 test_array [0] = 0
22115 return 0;
22117 _ACEOF
22118 rm -f conftest.$ac_objext
22119 if { (ac_try="$ac_compile"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_compile") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && {
22132 test -z "$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 } && test -s conftest.$ac_objext; then
22135 ac_hi=$ac_mid
22136 else
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ac_lo=`expr '(' $ac_mid ')' + 1`
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144 done
22145 case $ac_lo in
22146 ?*) ac_cv_alignof_int=$ac_lo;;
22147 '') if test "$ac_cv_type_int" = yes; then
22148 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22149 See \`config.log' for more details." >&5
22150 echo "$as_me: error: cannot compute alignment of int
22151 See \`config.log' for more details." >&2;}
22152 { (exit 77); exit 77; }; }
22153 else
22154 ac_cv_alignof_int=0
22155 fi ;;
22156 esac
22157 else
22158 cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h. */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 $ac_includes_default
22165 #ifndef offsetof
22166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22167 #endif
22168 typedef struct { char x; int y; } ac__type_alignof_;
22169 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22170 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22171 #include <stdio.h>
22172 #include <stdlib.h>
22174 main ()
22177 FILE *f = fopen ("conftest.val", "w");
22178 if (! f)
22179 return 1;
22180 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22182 long int i = longval ();
22183 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22184 return 1;
22185 fprintf (f, "%ld\n", i);
22187 else
22189 unsigned long int i = ulongval ();
22190 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22191 return 1;
22192 fprintf (f, "%lu\n", i);
22194 return ferror (f) || fclose (f) != 0;
22197 return 0;
22199 _ACEOF
22200 rm -f conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22205 esac
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_link") 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22211 { (case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_try") 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 ac_cv_alignof_int=`cat conftest.val`
22221 else
22222 echo "$as_me: program exited with status $ac_status" >&5
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ( exit $ac_status )
22227 if test "$ac_cv_type_int" = yes; then
22228 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22229 See \`config.log' for more details." >&5
22230 echo "$as_me: error: cannot compute alignment of int
22231 See \`config.log' for more details." >&2;}
22232 { (exit 77); exit 77; }; }
22233 else
22234 ac_cv_alignof_int=0
22237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22239 rm -f conftest.val
22241 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22242 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22246 cat >>confdefs.h <<_ACEOF
22247 #define ALIGNOF_INT $ac_cv_alignof_int
22248 _ACEOF
22251 { echo "$as_me:$LINENO: checking for long" >&5
22252 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22253 if test "${ac_cv_type_long+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 else
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h. */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22263 typedef long ac__type_new_;
22265 main ()
22267 if ((ac__type_new_ *) 0)
22268 return 0;
22269 if (sizeof (ac__type_new_))
22270 return 0;
22272 return 0;
22274 _ACEOF
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_compile") 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest.$ac_objext; then
22292 ac_cv_type_long=yes
22293 else
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ac_cv_type_long=no
22300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22303 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22305 # The cast to long int works around a bug in the HP C Compiler,
22306 # see AC_CHECK_SIZEOF for more information.
22307 { echo "$as_me:$LINENO: checking alignment of long" >&5
22308 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22309 if test "${ac_cv_alignof_long+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312 if test "$cross_compiling" = yes; then
22313 # Depending upon the size, compute the lo and hi bounds.
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22321 #ifndef offsetof
22322 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22323 #endif
22324 typedef struct { char x; long y; } ac__type_alignof_;
22326 main ()
22328 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22329 test_array [0] = 0
22332 return 0;
22334 _ACEOF
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_lo=0 ac_mid=0
22353 while :; do
22354 cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h. */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 $ac_includes_default
22361 #ifndef offsetof
22362 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22363 #endif
22364 typedef struct { char x; long y; } ac__type_alignof_;
22366 main ()
22368 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22369 test_array [0] = 0
22372 return 0;
22374 _ACEOF
22375 rm -f conftest.$ac_objext
22376 if { (ac_try="$ac_compile"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22380 esac
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 ac_hi=$ac_mid; break
22393 else
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_lo=`expr $ac_mid + 1`
22398 if test $ac_lo -le $ac_mid; then
22399 ac_lo= ac_hi=
22400 break
22402 ac_mid=`expr 2 '*' $ac_mid + 1`
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 done
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 $ac_includes_default
22418 #ifndef offsetof
22419 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22420 #endif
22421 typedef struct { char x; long y; } ac__type_alignof_;
22423 main ()
22425 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22426 test_array [0] = 0
22429 return 0;
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_compile") 2>conftest.er1
22440 ac_status=$?
22441 grep -v '^ *+' conftest.er1 >conftest.err
22442 rm -f conftest.er1
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest.$ac_objext; then
22449 ac_hi=-1 ac_mid=-1
22450 while :; do
22451 cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h. */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 $ac_includes_default
22458 #ifndef offsetof
22459 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22460 #endif
22461 typedef struct { char x; long y; } ac__type_alignof_;
22463 main ()
22465 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22466 test_array [0] = 0
22469 return 0;
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest.$ac_objext; then
22489 ac_lo=$ac_mid; break
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_hi=`expr '(' $ac_mid ')' - 1`
22495 if test $ac_mid -le $ac_hi; then
22496 ac_lo= ac_hi=
22497 break
22499 ac_mid=`expr 2 '*' $ac_mid`
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 done
22504 else
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 ac_lo= ac_hi=
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 # Binary search between lo and hi bounds.
22516 while test "x$ac_lo" != "x$ac_hi"; do
22517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22518 cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h. */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 $ac_includes_default
22525 #ifndef offsetof
22526 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22527 #endif
22528 typedef struct { char x; long y; } ac__type_alignof_;
22530 main ()
22532 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22533 test_array [0] = 0
22536 return 0;
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_hi=$ac_mid
22557 else
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_lo=`expr '(' $ac_mid ')' + 1`
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 done
22566 case $ac_lo in
22567 ?*) ac_cv_alignof_long=$ac_lo;;
22568 '') if test "$ac_cv_type_long" = yes; then
22569 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22570 See \`config.log' for more details." >&5
22571 echo "$as_me: error: cannot compute alignment of long
22572 See \`config.log' for more details." >&2;}
22573 { (exit 77); exit 77; }; }
22574 else
22575 ac_cv_alignof_long=0
22576 fi ;;
22577 esac
22578 else
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 #ifndef offsetof
22587 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22588 #endif
22589 typedef struct { char x; long y; } ac__type_alignof_;
22590 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22591 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22592 #include <stdio.h>
22593 #include <stdlib.h>
22595 main ()
22598 FILE *f = fopen ("conftest.val", "w");
22599 if (! f)
22600 return 1;
22601 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22603 long int i = longval ();
22604 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22605 return 1;
22606 fprintf (f, "%ld\n", i);
22608 else
22610 unsigned long int i = ulongval ();
22611 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22612 return 1;
22613 fprintf (f, "%lu\n", i);
22615 return ferror (f) || fclose (f) != 0;
22618 return 0;
22620 _ACEOF
22621 rm -f conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_link") 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22632 { (case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_try") 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
22641 ac_cv_alignof_long=`cat conftest.val`
22642 else
22643 echo "$as_me: program exited with status $ac_status" >&5
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22647 ( exit $ac_status )
22648 if test "$ac_cv_type_long" = yes; then
22649 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22650 See \`config.log' for more details." >&5
22651 echo "$as_me: error: cannot compute alignment of long
22652 See \`config.log' for more details." >&2;}
22653 { (exit 77); exit 77; }; }
22654 else
22655 ac_cv_alignof_long=0
22658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22660 rm -f conftest.val
22662 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22663 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22667 cat >>confdefs.h <<_ACEOF
22668 #define ALIGNOF_LONG $ac_cv_alignof_long
22669 _ACEOF
22672 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22673 { echo "$as_me:$LINENO: checking for long long int" >&5
22674 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22675 if test "${ac_cv_type_long_long_int+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678 cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h. */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 $ac_includes_default
22685 typedef long long int ac__type_new_;
22687 main ()
22689 if ((ac__type_new_ *) 0)
22690 return 0;
22691 if (sizeof (ac__type_new_))
22692 return 0;
22694 return 0;
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22714 ac_cv_type_long_long_int=yes
22715 else
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 ac_cv_type_long_long_int=no
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22725 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22727 # The cast to long int works around a bug in the HP C Compiler,
22728 # see AC_CHECK_SIZEOF for more information.
22729 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22730 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22731 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734 if test "$cross_compiling" = yes; then
22735 # Depending upon the size, compute the lo and hi bounds.
22736 cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h. */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 $ac_includes_default
22743 #ifndef offsetof
22744 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22745 #endif
22746 typedef struct { char x; long long int y; } ac__type_alignof_;
22748 main ()
22750 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22751 test_array [0] = 0
22754 return 0;
22756 _ACEOF
22757 rm -f conftest.$ac_objext
22758 if { (ac_try="$ac_compile"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22765 ac_status=$?
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest.$ac_objext; then
22774 ac_lo=0 ac_mid=0
22775 while :; do
22776 cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h. */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22782 $ac_includes_default
22783 #ifndef offsetof
22784 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22785 #endif
22786 typedef struct { char x; long long int y; } ac__type_alignof_;
22788 main ()
22790 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22791 test_array [0] = 0
22794 return 0;
22796 _ACEOF
22797 rm -f conftest.$ac_objext
22798 if { (ac_try="$ac_compile"
22799 case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802 esac
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_compile") 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && {
22811 test -z "$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 } && test -s conftest.$ac_objext; then
22814 ac_hi=$ac_mid; break
22815 else
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ac_lo=`expr $ac_mid + 1`
22820 if test $ac_lo -le $ac_mid; then
22821 ac_lo= ac_hi=
22822 break
22824 ac_mid=`expr 2 '*' $ac_mid + 1`
22827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 done
22829 else
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h. */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 $ac_includes_default
22840 #ifndef offsetof
22841 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22842 #endif
22843 typedef struct { char x; long long int y; } ac__type_alignof_;
22845 main ()
22847 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22848 test_array [0] = 0
22851 return 0;
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22862 ac_status=$?
22863 grep -v '^ *+' conftest.er1 >conftest.err
22864 rm -f conftest.er1
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest.$ac_objext; then
22871 ac_hi=-1 ac_mid=-1
22872 while :; do
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h. */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 $ac_includes_default
22880 #ifndef offsetof
22881 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22882 #endif
22883 typedef struct { char x; long long int y; } ac__type_alignof_;
22885 main ()
22887 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22888 test_array [0] = 0
22891 return 0;
22893 _ACEOF
22894 rm -f conftest.$ac_objext
22895 if { (ac_try="$ac_compile"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_compile") 2>conftest.er1
22902 ac_status=$?
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } && {
22908 test -z "$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 } && test -s conftest.$ac_objext; then
22911 ac_lo=$ac_mid; break
22912 else
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22916 ac_hi=`expr '(' $ac_mid ')' - 1`
22917 if test $ac_mid -le $ac_hi; then
22918 ac_lo= ac_hi=
22919 break
22921 ac_mid=`expr 2 '*' $ac_mid`
22924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 done
22926 else
22927 echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22930 ac_lo= ac_hi=
22933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 # Binary search between lo and hi bounds.
22938 while test "x$ac_lo" != "x$ac_hi"; do
22939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 $ac_includes_default
22947 #ifndef offsetof
22948 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22949 #endif
22950 typedef struct { char x; long long int y; } ac__type_alignof_;
22952 main ()
22954 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22955 test_array [0] = 0
22958 return 0;
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest.$ac_objext; then
22978 ac_hi=$ac_mid
22979 else
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ac_lo=`expr '(' $ac_mid ')' + 1`
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987 done
22988 case $ac_lo in
22989 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22990 '') if test "$ac_cv_type_long_long_int" = yes; then
22991 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22992 See \`config.log' for more details." >&5
22993 echo "$as_me: error: cannot compute alignment of long long int
22994 See \`config.log' for more details." >&2;}
22995 { (exit 77); exit 77; }; }
22996 else
22997 ac_cv_alignof_long_long_int=0
22998 fi ;;
22999 esac
23000 else
23001 cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h. */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 $ac_includes_default
23008 #ifndef offsetof
23009 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23010 #endif
23011 typedef struct { char x; long long int y; } ac__type_alignof_;
23012 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23013 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23014 #include <stdio.h>
23015 #include <stdlib.h>
23017 main ()
23020 FILE *f = fopen ("conftest.val", "w");
23021 if (! f)
23022 return 1;
23023 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23025 long int i = longval ();
23026 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23027 return 1;
23028 fprintf (f, "%ld\n", i);
23030 else
23032 unsigned long int i = ulongval ();
23033 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23034 return 1;
23035 fprintf (f, "%lu\n", i);
23037 return ferror (f) || fclose (f) != 0;
23040 return 0;
23042 _ACEOF
23043 rm -f conftest$ac_exeext
23044 if { (ac_try="$ac_link"
23045 case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23048 esac
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_link") 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23054 { (case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_try") 2>&5
23060 ac_status=$?
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063 ac_cv_alignof_long_long_int=`cat conftest.val`
23064 else
23065 echo "$as_me: program exited with status $ac_status" >&5
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ( exit $ac_status )
23070 if test "$ac_cv_type_long_long_int" = yes; then
23071 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23072 See \`config.log' for more details." >&5
23073 echo "$as_me: error: cannot compute alignment of long long int
23074 See \`config.log' for more details." >&2;}
23075 { (exit 77); exit 77; }; }
23076 else
23077 ac_cv_alignof_long_long_int=0
23080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23082 rm -f conftest.val
23084 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23085 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23089 cat >>confdefs.h <<_ACEOF
23090 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23091 _ACEOF
23095 { echo "$as_me:$LINENO: checking for double" >&5
23096 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23097 if test "${ac_cv_type_double+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100 cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h. */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 $ac_includes_default
23107 typedef double ac__type_new_;
23109 main ()
23111 if ((ac__type_new_ *) 0)
23112 return 0;
23113 if (sizeof (ac__type_new_))
23114 return 0;
23116 return 0;
23118 _ACEOF
23119 rm -f conftest.$ac_objext
23120 if { (ac_try="$ac_compile"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126 (eval "$ac_compile") 2>conftest.er1
23127 ac_status=$?
23128 grep -v '^ *+' conftest.er1 >conftest.err
23129 rm -f conftest.er1
23130 cat conftest.err >&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest.$ac_objext; then
23136 ac_cv_type_double=yes
23137 else
23138 echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23141 ac_cv_type_double=no
23144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23147 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23149 # The cast to long int works around a bug in the HP C Compiler,
23150 # see AC_CHECK_SIZEOF for more information.
23151 { echo "$as_me:$LINENO: checking alignment of double" >&5
23152 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23153 if test "${ac_cv_alignof_double+set}" = set; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 else
23156 if test "$cross_compiling" = yes; then
23157 # Depending upon the size, compute the lo and hi bounds.
23158 cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h. */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 $ac_includes_default
23165 #ifndef offsetof
23166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23167 #endif
23168 typedef struct { char x; double y; } ac__type_alignof_;
23170 main ()
23172 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23173 test_array [0] = 0
23176 return 0;
23178 _ACEOF
23179 rm -f conftest.$ac_objext
23180 if { (ac_try="$ac_compile"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_compile") 2>conftest.er1
23187 ac_status=$?
23188 grep -v '^ *+' conftest.er1 >conftest.err
23189 rm -f conftest.er1
23190 cat conftest.err >&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest.$ac_objext; then
23196 ac_lo=0 ac_mid=0
23197 while :; do
23198 cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h. */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 $ac_includes_default
23205 #ifndef offsetof
23206 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23207 #endif
23208 typedef struct { char x; double y; } ac__type_alignof_;
23210 main ()
23212 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23213 test_array [0] = 0
23216 return 0;
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_hi=$ac_mid; break
23237 else
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 ac_lo=`expr $ac_mid + 1`
23242 if test $ac_lo -le $ac_mid; then
23243 ac_lo= ac_hi=
23244 break
23246 ac_mid=`expr 2 '*' $ac_mid + 1`
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 done
23251 else
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23255 cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h. */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 $ac_includes_default
23262 #ifndef offsetof
23263 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23264 #endif
23265 typedef struct { char x; double y; } ac__type_alignof_;
23267 main ()
23269 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23270 test_array [0] = 0
23273 return 0;
23275 _ACEOF
23276 rm -f conftest.$ac_objext
23277 if { (ac_try="$ac_compile"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281 esac
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_compile") 2>conftest.er1
23284 ac_status=$?
23285 grep -v '^ *+' conftest.er1 >conftest.err
23286 rm -f conftest.er1
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest.$ac_objext; then
23293 ac_hi=-1 ac_mid=-1
23294 while :; do
23295 cat >conftest.$ac_ext <<_ACEOF
23296 /* confdefs.h. */
23297 _ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23301 $ac_includes_default
23302 #ifndef offsetof
23303 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23304 #endif
23305 typedef struct { char x; double y; } ac__type_alignof_;
23307 main ()
23309 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23310 test_array [0] = 0
23313 return 0;
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23324 ac_status=$?
23325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_lo=$ac_mid; break
23334 else
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 ac_hi=`expr '(' $ac_mid ')' - 1`
23339 if test $ac_mid -le $ac_hi; then
23340 ac_lo= ac_hi=
23341 break
23343 ac_mid=`expr 2 '*' $ac_mid`
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 done
23348 else
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 ac_lo= ac_hi=
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 # Binary search between lo and hi bounds.
23360 while test "x$ac_lo" != "x$ac_hi"; do
23361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23362 cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h. */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23369 #ifndef offsetof
23370 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23371 #endif
23372 typedef struct { char x; double y; } ac__type_alignof_;
23374 main ()
23376 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23377 test_array [0] = 0
23380 return 0;
23382 _ACEOF
23383 rm -f conftest.$ac_objext
23384 if { (ac_try="$ac_compile"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23388 esac
23389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_compile") 2>conftest.er1
23391 ac_status=$?
23392 grep -v '^ *+' conftest.er1 >conftest.err
23393 rm -f conftest.er1
23394 cat conftest.err >&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest.$ac_objext; then
23400 ac_hi=$ac_mid
23401 else
23402 echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 ac_lo=`expr '(' $ac_mid ')' + 1`
23408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23409 done
23410 case $ac_lo in
23411 ?*) ac_cv_alignof_double=$ac_lo;;
23412 '') if test "$ac_cv_type_double" = yes; then
23413 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23414 See \`config.log' for more details." >&5
23415 echo "$as_me: error: cannot compute alignment of double
23416 See \`config.log' for more details." >&2;}
23417 { (exit 77); exit 77; }; }
23418 else
23419 ac_cv_alignof_double=0
23420 fi ;;
23421 esac
23422 else
23423 cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h. */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 $ac_includes_default
23430 #ifndef offsetof
23431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23432 #endif
23433 typedef struct { char x; double y; } ac__type_alignof_;
23434 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23435 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23436 #include <stdio.h>
23437 #include <stdlib.h>
23439 main ()
23442 FILE *f = fopen ("conftest.val", "w");
23443 if (! f)
23444 return 1;
23445 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23447 long int i = longval ();
23448 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23449 return 1;
23450 fprintf (f, "%ld\n", i);
23452 else
23454 unsigned long int i = ulongval ();
23455 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23456 return 1;
23457 fprintf (f, "%lu\n", i);
23459 return ferror (f) || fclose (f) != 0;
23462 return 0;
23464 _ACEOF
23465 rm -f conftest$ac_exeext
23466 if { (ac_try="$ac_link"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_link") 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23476 { (case "(($ac_try" in
23477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478 *) ac_try_echo=$ac_try;;
23479 esac
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481 (eval "$ac_try") 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_alignof_double=`cat conftest.val`
23486 else
23487 echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ( exit $ac_status )
23492 if test "$ac_cv_type_double" = yes; then
23493 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23494 See \`config.log' for more details." >&5
23495 echo "$as_me: error: cannot compute alignment of double
23496 See \`config.log' for more details." >&2;}
23497 { (exit 77); exit 77; }; }
23498 else
23499 ac_cv_alignof_double=0
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23504 rm -f conftest.val
23506 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23507 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23511 cat >>confdefs.h <<_ACEOF
23512 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23513 _ACEOF
23517 # Compute maximum alignment of any basic type.
23518 # We assume long's alignment is at least as strong as char, short, or int;
23519 # but we must check long long (if it exists) and double.
23521 MAX_ALIGNOF=$ac_cv_alignof_long
23522 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23523 MAX_ALIGNOF=$ac_cv_alignof_double
23525 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23526 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23529 cat >>confdefs.h <<_ACEOF
23530 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23531 _ACEOF
23535 # Some platforms predefine the types int8, int16, etc. Only check
23536 # a (hopefully) representative subset.
23537 { echo "$as_me:$LINENO: checking for int8" >&5
23538 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23539 if test "${ac_cv_type_int8+set}" = set; then
23540 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 else
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h. */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 #include <stdio.h>
23549 #ifdef HAVE_SUPPORTDEFS_H
23550 #include <SupportDefs.h>
23551 #endif
23553 typedef int8 ac__type_new_;
23555 main ()
23557 if ((ac__type_new_ *) 0)
23558 return 0;
23559 if (sizeof (ac__type_new_))
23560 return 0;
23562 return 0;
23564 _ACEOF
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570 esac
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_type_int8=yes
23583 else
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_cv_type_int8=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23592 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23593 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23594 if test $ac_cv_type_int8 = yes; then
23596 cat >>confdefs.h <<_ACEOF
23597 #define HAVE_INT8 1
23598 _ACEOF
23602 { echo "$as_me:$LINENO: checking for uint8" >&5
23603 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23604 if test "${ac_cv_type_uint8+set}" = set; then
23605 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 else
23607 cat >conftest.$ac_ext <<_ACEOF
23608 /* confdefs.h. */
23609 _ACEOF
23610 cat confdefs.h >>conftest.$ac_ext
23611 cat >>conftest.$ac_ext <<_ACEOF
23612 /* end confdefs.h. */
23613 #include <stdio.h>
23614 #ifdef HAVE_SUPPORTDEFS_H
23615 #include <SupportDefs.h>
23616 #endif
23618 typedef uint8 ac__type_new_;
23620 main ()
23622 if ((ac__type_new_ *) 0)
23623 return 0;
23624 if (sizeof (ac__type_new_))
23625 return 0;
23627 return 0;
23629 _ACEOF
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23635 esac
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.$ac_objext; then
23647 ac_cv_type_uint8=yes
23648 else
23649 echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 ac_cv_type_uint8=no
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23658 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23659 if test $ac_cv_type_uint8 = yes; then
23661 cat >>confdefs.h <<_ACEOF
23662 #define HAVE_UINT8 1
23663 _ACEOF
23667 { echo "$as_me:$LINENO: checking for int64" >&5
23668 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23669 if test "${ac_cv_type_int64+set}" = set; then
23670 echo $ECHO_N "(cached) $ECHO_C" >&6
23671 else
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h. */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23678 #include <stdio.h>
23679 #ifdef HAVE_SUPPORTDEFS_H
23680 #include <SupportDefs.h>
23681 #endif
23683 typedef int64 ac__type_new_;
23685 main ()
23687 if ((ac__type_new_ *) 0)
23688 return 0;
23689 if (sizeof (ac__type_new_))
23690 return 0;
23692 return 0;
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 ac_cv_type_int64=yes
23713 else
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ac_cv_type_int64=no
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23723 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23724 if test $ac_cv_type_int64 = yes; then
23726 cat >>confdefs.h <<_ACEOF
23727 #define HAVE_INT64 1
23728 _ACEOF
23732 { echo "$as_me:$LINENO: checking for uint64" >&5
23733 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23734 if test "${ac_cv_type_uint64+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 else
23737 cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h. */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23743 #include <stdio.h>
23744 #ifdef HAVE_SUPPORTDEFS_H
23745 #include <SupportDefs.h>
23746 #endif
23748 typedef uint64 ac__type_new_;
23750 main ()
23752 if ((ac__type_new_ *) 0)
23753 return 0;
23754 if (sizeof (ac__type_new_))
23755 return 0;
23757 return 0;
23759 _ACEOF
23760 rm -f conftest.$ac_objext
23761 if { (ac_try="$ac_compile"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23765 esac
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_compile") 2>conftest.er1
23768 ac_status=$?
23769 grep -v '^ *+' conftest.er1 >conftest.err
23770 rm -f conftest.er1
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest.$ac_objext; then
23777 ac_cv_type_uint64=yes
23778 else
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ac_cv_type_uint64=no
23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23788 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23789 if test $ac_cv_type_uint64 = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_UINT64 1
23793 _ACEOF
23799 # We also check for sig_atomic_t, which *should* be defined per ANSI
23800 # C, but is missing on some old platforms.
23801 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23802 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23803 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 #include <signal.h>
23814 typedef sig_atomic_t ac__type_new_;
23816 main ()
23818 if ((ac__type_new_ *) 0)
23819 return 0;
23820 if (sizeof (ac__type_new_))
23821 return 0;
23823 return 0;
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_cv_type_sig_atomic_t=yes
23844 else
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_cv_type_sig_atomic_t=no
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23854 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23855 if test $ac_cv_type_sig_atomic_t = yes; then
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_SIG_ATOMIC_T 1
23859 _ACEOF
23866 # If the user did not disable integer datetimes, check that
23867 # there is a working 64-bit integral type to use.
23868 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23869 test x"$HAVE_LONG_INT_64" = x"no" &&
23870 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23871 test x"$HAVE_INT64" = x"no" ; then
23872 { { echo "$as_me:$LINENO: error:
23873 Integer-based datetime support requires a 64-bit integer type,
23874 but no such type could be found. The --disable-integer-datetimes
23875 configure option can be used to disable integer-based storage
23876 of datetime values." >&5
23877 echo "$as_me: error:
23878 Integer-based datetime support requires a 64-bit integer type,
23879 but no such type could be found. The --disable-integer-datetimes
23880 configure option can be used to disable integer-based storage
23881 of datetime values." >&2;}
23882 { (exit 1); exit 1; }; }
23886 if test "$PORTNAME" != "win32"
23887 then
23888 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23889 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23890 if test "${pgac_cv_func_posix_signals+set}" = set; then
23891 echo $ECHO_N "(cached) $ECHO_C" >&6
23892 else
23893 cat >conftest.$ac_ext <<_ACEOF
23894 /* confdefs.h. */
23895 _ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h. */
23899 #include <signal.h>
23902 main ()
23904 struct sigaction act, oact;
23905 sigemptyset(&act.sa_mask);
23906 act.sa_flags = SA_RESTART;
23907 sigaction(0, &act, &oact);
23909 return 0;
23911 _ACEOF
23912 rm -f conftest.$ac_objext conftest$ac_exeext
23913 if { (ac_try="$ac_link"
23914 case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_link") 2>conftest.er1
23920 ac_status=$?
23921 grep -v '^ *+' conftest.er1 >conftest.err
23922 rm -f conftest.er1
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest$ac_exeext &&
23929 $as_test_x conftest$ac_exeext; then
23930 pgac_cv_func_posix_signals=yes
23931 else
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23935 pgac_cv_func_posix_signals=no
23938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23939 conftest$ac_exeext conftest.$ac_ext
23941 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23942 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23943 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23945 cat >>confdefs.h <<\_ACEOF
23946 #define HAVE_POSIX_SIGNALS
23947 _ACEOF
23950 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23952 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23953 { { echo "$as_me:$LINENO: error:
23954 Thread-safety requires POSIX signals, which are not supported by this
23955 operating system." >&5
23956 echo "$as_me: error:
23957 Thread-safety requires POSIX signals, which are not supported by this
23958 operating system." >&2;}
23959 { (exit 1); exit 1; }; }
23963 if test $ac_cv_func_fseeko = yes; then
23964 # Check whether --enable-largefile was given.
23965 if test "${enable_largefile+set}" = set; then
23966 enableval=$enable_largefile;
23969 if test "$enable_largefile" != no; then
23971 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23972 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23973 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 else
23976 ac_cv_sys_largefile_CC=no
23977 if test "$GCC" != yes; then
23978 ac_save_CC=$CC
23979 while :; do
23980 # IRIX 6.2 and later do not support large files by default,
23981 # so use the C compiler's -n32 option if that helps.
23982 cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h. */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 #include <sys/types.h>
23989 /* Check that off_t can represent 2**63 - 1 correctly.
23990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23991 since some C++ compilers masquerading as C compilers
23992 incorrectly reject 9223372036854775807. */
23993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23995 && LARGE_OFF_T % 2147483647 == 1)
23996 ? 1 : -1];
23998 main ()
24002 return 0;
24004 _ACEOF
24005 rm -f conftest.$ac_objext
24006 if { (ac_try="$ac_compile"
24007 case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24010 esac
24011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012 (eval "$ac_compile") 2>conftest.er1
24013 ac_status=$?
24014 grep -v '^ *+' conftest.er1 >conftest.err
24015 rm -f conftest.er1
24016 cat conftest.err >&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } && {
24019 test -z "$ac_c_werror_flag" ||
24020 test ! -s conftest.err
24021 } && test -s conftest.$ac_objext; then
24022 break
24023 else
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24030 rm -f core conftest.err conftest.$ac_objext
24031 CC="$CC -n32"
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24037 esac
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_compile") 2>conftest.er1
24040 ac_status=$?
24041 grep -v '^ *+' conftest.er1 >conftest.err
24042 rm -f conftest.er1
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } && {
24046 test -z "$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 } && test -s conftest.$ac_objext; then
24049 ac_cv_sys_largefile_CC=' -n32'; break
24050 else
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24057 rm -f core conftest.err conftest.$ac_objext
24058 break
24059 done
24060 CC=$ac_save_CC
24061 rm -f conftest.$ac_ext
24064 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24065 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24066 if test "$ac_cv_sys_largefile_CC" != no; then
24067 CC=$CC$ac_cv_sys_largefile_CC
24070 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24071 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24072 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24073 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 else
24075 while :; do
24076 cat >conftest.$ac_ext <<_ACEOF
24077 /* confdefs.h. */
24078 _ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24082 #include <sys/types.h>
24083 /* Check that off_t can represent 2**63 - 1 correctly.
24084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24085 since some C++ compilers masquerading as C compilers
24086 incorrectly reject 9223372036854775807. */
24087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24089 && LARGE_OFF_T % 2147483647 == 1)
24090 ? 1 : -1];
24092 main ()
24096 return 0;
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24104 esac
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24107 ac_status=$?
24108 grep -v '^ *+' conftest.er1 >conftest.err
24109 rm -f conftest.er1
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 ac_cv_sys_file_offset_bits=no; break
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h. */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h. */
24131 #define _FILE_OFFSET_BITS 64
24132 #include <sys/types.h>
24133 /* Check that off_t can represent 2**63 - 1 correctly.
24134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24135 since some C++ compilers masquerading as C compilers
24136 incorrectly reject 9223372036854775807. */
24137 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24139 && LARGE_OFF_T % 2147483647 == 1)
24140 ? 1 : -1];
24142 main ()
24146 return 0;
24148 _ACEOF
24149 rm -f conftest.$ac_objext
24150 if { (ac_try="$ac_compile"
24151 case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24154 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_compile") 2>conftest.er1
24157 ac_status=$?
24158 grep -v '^ *+' conftest.er1 >conftest.err
24159 rm -f conftest.er1
24160 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } && {
24163 test -z "$ac_c_werror_flag" ||
24164 test ! -s conftest.err
24165 } && test -s conftest.$ac_objext; then
24166 ac_cv_sys_file_offset_bits=64; break
24167 else
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 ac_cv_sys_file_offset_bits=unknown
24176 break
24177 done
24179 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24180 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24181 case $ac_cv_sys_file_offset_bits in #(
24182 no | unknown) ;;
24184 cat >>confdefs.h <<_ACEOF
24185 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24186 _ACEOF
24188 esac
24189 rm -f conftest*
24190 if test $ac_cv_sys_file_offset_bits = unknown; then
24191 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24192 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24193 if test "${ac_cv_sys_large_files+set}" = set; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196 while :; do
24197 cat >conftest.$ac_ext <<_ACEOF
24198 /* confdefs.h. */
24199 _ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24203 #include <sys/types.h>
24204 /* Check that off_t can represent 2**63 - 1 correctly.
24205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24206 since some C++ compilers masquerading as C compilers
24207 incorrectly reject 9223372036854775807. */
24208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24210 && LARGE_OFF_T % 2147483647 == 1)
24211 ? 1 : -1];
24213 main ()
24217 return 0;
24219 _ACEOF
24220 rm -f conftest.$ac_objext
24221 if { (ac_try="$ac_compile"
24222 case "(($ac_try" in
24223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224 *) ac_try_echo=$ac_try;;
24225 esac
24226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227 (eval "$ac_compile") 2>conftest.er1
24228 ac_status=$?
24229 grep -v '^ *+' conftest.er1 >conftest.err
24230 rm -f conftest.er1
24231 cat conftest.err >&5
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); } && {
24234 test -z "$ac_c_werror_flag" ||
24235 test ! -s conftest.err
24236 } && test -s conftest.$ac_objext; then
24237 ac_cv_sys_large_files=no; break
24238 else
24239 echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h. */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 #define _LARGE_FILES 1
24253 #include <sys/types.h>
24254 /* Check that off_t can represent 2**63 - 1 correctly.
24255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24256 since some C++ compilers masquerading as C compilers
24257 incorrectly reject 9223372036854775807. */
24258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24260 && LARGE_OFF_T % 2147483647 == 1)
24261 ? 1 : -1];
24263 main ()
24267 return 0;
24269 _ACEOF
24270 rm -f conftest.$ac_objext
24271 if { (ac_try="$ac_compile"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_compile") 2>conftest.er1
24278 ac_status=$?
24279 grep -v '^ *+' conftest.er1 >conftest.err
24280 rm -f conftest.er1
24281 cat conftest.err >&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } && {
24284 test -z "$ac_c_werror_flag" ||
24285 test ! -s conftest.err
24286 } && test -s conftest.$ac_objext; then
24287 ac_cv_sys_large_files=1; break
24288 else
24289 echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296 ac_cv_sys_large_files=unknown
24297 break
24298 done
24300 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24301 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24302 case $ac_cv_sys_large_files in #(
24303 no | unknown) ;;
24305 cat >>confdefs.h <<_ACEOF
24306 #define _LARGE_FILES $ac_cv_sys_large_files
24307 _ACEOF
24309 esac
24310 rm -f conftest*
24316 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24317 { echo "$as_me:$LINENO: checking for off_t" >&5
24318 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24319 if test "${ac_cv_type_off_t+set}" = set; then
24320 echo $ECHO_N "(cached) $ECHO_C" >&6
24321 else
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h. */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 $ac_includes_default
24329 typedef off_t ac__type_new_;
24331 main ()
24333 if ((ac__type_new_ *) 0)
24334 return 0;
24335 if (sizeof (ac__type_new_))
24336 return 0;
24338 return 0;
24340 _ACEOF
24341 rm -f conftest.$ac_objext
24342 if { (ac_try="$ac_compile"
24343 case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24346 esac
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348 (eval "$ac_compile") 2>conftest.er1
24349 ac_status=$?
24350 grep -v '^ *+' conftest.er1 >conftest.err
24351 rm -f conftest.er1
24352 cat conftest.err >&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); } && {
24355 test -z "$ac_c_werror_flag" ||
24356 test ! -s conftest.err
24357 } && test -s conftest.$ac_objext; then
24358 ac_cv_type_off_t=yes
24359 else
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 ac_cv_type_off_t=no
24366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24369 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24371 # The cast to long int works around a bug in the HP C Compiler
24372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24374 # This bug is HP SR number 8606223364.
24375 { echo "$as_me:$LINENO: checking size of off_t" >&5
24376 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24377 if test "${ac_cv_sizeof_off_t+set}" = set; then
24378 echo $ECHO_N "(cached) $ECHO_C" >&6
24379 else
24380 if test "$cross_compiling" = yes; then
24381 # Depending upon the size, compute the lo and hi bounds.
24382 cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h. */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388 $ac_includes_default
24389 typedef off_t ac__type_sizeof_;
24391 main ()
24393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24394 test_array [0] = 0
24397 return 0;
24399 _ACEOF
24400 rm -f conftest.$ac_objext
24401 if { (ac_try="$ac_compile"
24402 case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_compile") 2>conftest.er1
24408 ac_status=$?
24409 grep -v '^ *+' conftest.er1 >conftest.err
24410 rm -f conftest.er1
24411 cat conftest.err >&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); } && {
24414 test -z "$ac_c_werror_flag" ||
24415 test ! -s conftest.err
24416 } && test -s conftest.$ac_objext; then
24417 ac_lo=0 ac_mid=0
24418 while :; do
24419 cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h. */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24425 $ac_includes_default
24426 typedef off_t ac__type_sizeof_;
24428 main ()
24430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24431 test_array [0] = 0
24434 return 0;
24436 _ACEOF
24437 rm -f conftest.$ac_objext
24438 if { (ac_try="$ac_compile"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24442 esac
24443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444 (eval "$ac_compile") 2>conftest.er1
24445 ac_status=$?
24446 grep -v '^ *+' conftest.er1 >conftest.err
24447 rm -f conftest.er1
24448 cat conftest.err >&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } && {
24451 test -z "$ac_c_werror_flag" ||
24452 test ! -s conftest.err
24453 } && test -s conftest.$ac_objext; then
24454 ac_hi=$ac_mid; break
24455 else
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 ac_lo=`expr $ac_mid + 1`
24460 if test $ac_lo -le $ac_mid; then
24461 ac_lo= ac_hi=
24462 break
24464 ac_mid=`expr 2 '*' $ac_mid + 1`
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468 done
24469 else
24470 echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h. */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 $ac_includes_default
24480 typedef off_t ac__type_sizeof_;
24482 main ()
24484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24485 test_array [0] = 0
24488 return 0;
24490 _ACEOF
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24496 esac
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24499 ac_status=$?
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_hi=-1 ac_mid=-1
24509 while :; do
24510 cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h. */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24516 $ac_includes_default
24517 typedef off_t ac__type_sizeof_;
24519 main ()
24521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24522 test_array [0] = 0
24525 return 0;
24527 _ACEOF
24528 rm -f conftest.$ac_objext
24529 if { (ac_try="$ac_compile"
24530 case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535 (eval "$ac_compile") 2>conftest.er1
24536 ac_status=$?
24537 grep -v '^ *+' conftest.er1 >conftest.err
24538 rm -f conftest.er1
24539 cat conftest.err >&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } && {
24542 test -z "$ac_c_werror_flag" ||
24543 test ! -s conftest.err
24544 } && test -s conftest.$ac_objext; then
24545 ac_lo=$ac_mid; break
24546 else
24547 echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_hi=`expr '(' $ac_mid ')' - 1`
24551 if test $ac_mid -le $ac_hi; then
24552 ac_lo= ac_hi=
24553 break
24555 ac_mid=`expr 2 '*' $ac_mid`
24558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24559 done
24560 else
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_lo= ac_hi=
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 # Binary search between lo and hi bounds.
24572 while test "x$ac_lo" != "x$ac_hi"; do
24573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24574 cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h. */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 $ac_includes_default
24581 typedef off_t ac__type_sizeof_;
24583 main ()
24585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24586 test_array [0] = 0
24589 return 0;
24591 _ACEOF
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_compile") 2>conftest.er1
24600 ac_status=$?
24601 grep -v '^ *+' conftest.er1 >conftest.err
24602 rm -f conftest.er1
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } && {
24606 test -z "$ac_c_werror_flag" ||
24607 test ! -s conftest.err
24608 } && test -s conftest.$ac_objext; then
24609 ac_hi=$ac_mid
24610 else
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ac_lo=`expr '(' $ac_mid ')' + 1`
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 done
24619 case $ac_lo in
24620 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24621 '') if test "$ac_cv_type_off_t" = yes; then
24622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24623 See \`config.log' for more details." >&5
24624 echo "$as_me: error: cannot compute sizeof (off_t)
24625 See \`config.log' for more details." >&2;}
24626 { (exit 77); exit 77; }; }
24627 else
24628 ac_cv_sizeof_off_t=0
24629 fi ;;
24630 esac
24631 else
24632 cat >conftest.$ac_ext <<_ACEOF
24633 /* confdefs.h. */
24634 _ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 $ac_includes_default
24639 typedef off_t ac__type_sizeof_;
24640 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24641 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24642 #include <stdio.h>
24643 #include <stdlib.h>
24645 main ()
24648 FILE *f = fopen ("conftest.val", "w");
24649 if (! f)
24650 return 1;
24651 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24653 long int i = longval ();
24654 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24655 return 1;
24656 fprintf (f, "%ld\n", i);
24658 else
24660 unsigned long int i = ulongval ();
24661 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24662 return 1;
24663 fprintf (f, "%lu\n", i);
24665 return ferror (f) || fclose (f) != 0;
24668 return 0;
24670 _ACEOF
24671 rm -f conftest$ac_exeext
24672 if { (ac_try="$ac_link"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_link") 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24682 { (case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24685 esac
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_try") 2>&5
24688 ac_status=$?
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; }; then
24691 ac_cv_sizeof_off_t=`cat conftest.val`
24692 else
24693 echo "$as_me: program exited with status $ac_status" >&5
24694 echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24697 ( exit $ac_status )
24698 if test "$ac_cv_type_off_t" = yes; then
24699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24700 See \`config.log' for more details." >&5
24701 echo "$as_me: error: cannot compute sizeof (off_t)
24702 See \`config.log' for more details." >&2;}
24703 { (exit 77); exit 77; }; }
24704 else
24705 ac_cv_sizeof_off_t=0
24708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24710 rm -f conftest.val
24712 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24713 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24717 cat >>confdefs.h <<_ACEOF
24718 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24719 _ACEOF
24723 # If we don't have largefile support, can't handle segsize >= 2GB.
24724 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24725 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24726 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24727 { (exit 1); exit 1; }; }
24730 # SunOS doesn't handle negative byte comparisons properly with +/- return
24731 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24732 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24733 if test "${ac_cv_func_memcmp_working+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 else
24736 if test "$cross_compiling" = yes; then
24737 ac_cv_func_memcmp_working=no
24738 else
24739 cat >conftest.$ac_ext <<_ACEOF
24740 /* confdefs.h. */
24741 _ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h. */
24745 $ac_includes_default
24747 main ()
24750 /* Some versions of memcmp are not 8-bit clean. */
24751 char c0 = '\100', c1 = '\200', c2 = '\201';
24752 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24753 return 1;
24755 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24756 or more and with at least one buffer not starting on a 4-byte boundary.
24757 William Lewis provided this test program. */
24759 char foo[21];
24760 char bar[21];
24761 int i;
24762 for (i = 0; i < 4; i++)
24764 char *a = foo + i;
24765 char *b = bar + i;
24766 strcpy (a, "--------01111111");
24767 strcpy (b, "--------10000000");
24768 if (memcmp (a, b, 16) >= 0)
24769 return 1;
24771 return 0;
24775 return 0;
24777 _ACEOF
24778 rm -f conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_link") 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24789 { (case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_try") 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_cv_func_memcmp_working=yes
24799 else
24800 echo "$as_me: program exited with status $ac_status" >&5
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ( exit $ac_status )
24805 ac_cv_func_memcmp_working=no
24807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24812 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24813 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24814 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24815 *" memcmp.$ac_objext "* ) ;;
24816 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24818 esac
24823 # Select semaphore implementation type.
24824 if test "$PORTNAME" != "win32"; then
24825 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24827 cat >>confdefs.h <<\_ACEOF
24828 #define USE_NAMED_POSIX_SEMAPHORES 1
24829 _ACEOF
24831 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24832 else
24833 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24835 cat >>confdefs.h <<\_ACEOF
24836 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24837 _ACEOF
24839 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24840 else
24842 cat >>confdefs.h <<\_ACEOF
24843 #define USE_SYSV_SEMAPHORES 1
24844 _ACEOF
24846 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24849 else
24851 cat >>confdefs.h <<\_ACEOF
24852 #define USE_WIN32_SEMAPHORES 1
24853 _ACEOF
24855 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24859 # Select shared-memory implementation type.
24860 if test "$PORTNAME" != "win32"; then
24862 cat >>confdefs.h <<\_ACEOF
24863 #define USE_SYSV_SHARED_MEMORY 1
24864 _ACEOF
24866 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24867 else
24869 cat >>confdefs.h <<\_ACEOF
24870 #define USE_WIN32_SHARED_MEMORY 1
24871 _ACEOF
24873 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24876 # If not set in template file, set bytes to use libc memset()
24877 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24878 MEMSET_LOOP_LIMIT=1024
24881 cat >>confdefs.h <<_ACEOF
24882 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24883 _ACEOF
24887 if test "$enable_nls" = yes ; then
24889 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24890 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24891 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24893 else
24894 ac_func_search_save_LIBS=$LIBS
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h. */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24902 /* Override any GCC internal prototype to avoid an error.
24903 Use char because int might match the return type of a GCC
24904 builtin and then its argument prototype would still apply. */
24905 #ifdef __cplusplus
24906 extern "C"
24907 #endif
24908 char bind_textdomain_codeset ();
24910 main ()
24912 return bind_textdomain_codeset ();
24914 return 0;
24916 _ACEOF
24917 for ac_lib in '' intl; do
24918 if test -z "$ac_lib"; then
24919 ac_res="none required"
24920 else
24921 ac_res=-l$ac_lib
24922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24924 rm -f conftest.$ac_objext conftest$ac_exeext
24925 if { (ac_try="$ac_link"
24926 case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_link") 2>conftest.er1
24932 ac_status=$?
24933 grep -v '^ *+' conftest.er1 >conftest.err
24934 rm -f conftest.er1
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } && {
24938 test -z "$ac_c_werror_flag" ||
24939 test ! -s conftest.err
24940 } && test -s conftest$ac_exeext &&
24941 $as_test_x conftest$ac_exeext; then
24942 ac_cv_search_bind_textdomain_codeset=$ac_res
24943 else
24944 echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24951 conftest$ac_exeext
24952 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24953 break
24955 done
24956 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24958 else
24959 ac_cv_search_bind_textdomain_codeset=no
24961 rm conftest.$ac_ext
24962 LIBS=$ac_func_search_save_LIBS
24964 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24965 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24966 ac_res=$ac_cv_search_bind_textdomain_codeset
24967 if test "$ac_res" != no; then
24968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24970 else
24971 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24972 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24973 { (exit 1); exit 1; }; }
24976 if test "${ac_cv_header_libintl_h+set}" = set; then
24977 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24978 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24979 if test "${ac_cv_header_libintl_h+set}" = set; then
24980 echo $ECHO_N "(cached) $ECHO_C" >&6
24982 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24983 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24984 else
24985 # Is the header compilable?
24986 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24987 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h. */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24994 $ac_includes_default
24995 #include <libintl.h>
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_compile") 2>conftest.er1
25005 ac_status=$?
25006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && {
25011 test -z "$ac_c_werror_flag" ||
25012 test ! -s conftest.err
25013 } && test -s conftest.$ac_objext; then
25014 ac_header_compiler=yes
25015 else
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25019 ac_header_compiler=no
25022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25024 echo "${ECHO_T}$ac_header_compiler" >&6; }
25026 # Is the header present?
25027 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25028 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h. */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 #include <libintl.h>
25036 _ACEOF
25037 if { (ac_try="$ac_cpp conftest.$ac_ext"
25038 case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25044 ac_status=$?
25045 grep -v '^ *+' conftest.er1 >conftest.err
25046 rm -f conftest.er1
25047 cat conftest.err >&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } >/dev/null && {
25050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25051 test ! -s conftest.err
25052 }; then
25053 ac_header_preproc=yes
25054 else
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 ac_header_preproc=no
25061 rm -f conftest.err conftest.$ac_ext
25062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25063 echo "${ECHO_T}$ac_header_preproc" >&6; }
25065 # So? What about this header?
25066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25067 yes:no: )
25068 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25069 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25070 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25071 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25072 ac_header_preproc=yes
25074 no:yes:* )
25075 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25076 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25078 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25080 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25081 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25082 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25083 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25084 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25085 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25086 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25087 ( cat <<\_ASBOX
25088 ## ---------------------------------------- ##
25089 ## Report this to pgsql-bugs@postgresql.org ##
25090 ## ---------------------------------------- ##
25091 _ASBOX
25092 ) | sed "s/^/$as_me: WARNING: /" >&2
25094 esac
25095 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25096 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25097 if test "${ac_cv_header_libintl_h+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100 ac_cv_header_libintl_h=$ac_header_preproc
25102 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25103 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25106 if test $ac_cv_header_libintl_h = yes; then
25108 else
25109 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25110 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25111 { (exit 1); exit 1; }; }
25115 for ac_prog in msgfmt
25117 # Extract the first word of "$ac_prog", so it can be a program name with args.
25118 set dummy $ac_prog; ac_word=$2
25119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25121 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124 if test -n "$MSGFMT"; then
25125 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25126 else
25127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25128 for as_dir in $PATH
25130 IFS=$as_save_IFS
25131 test -z "$as_dir" && as_dir=.
25132 for ac_exec_ext in '' $ac_executable_extensions; do
25133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25134 ac_cv_prog_MSGFMT="$ac_prog"
25135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25136 break 2
25138 done
25139 done
25140 IFS=$as_save_IFS
25144 MSGFMT=$ac_cv_prog_MSGFMT
25145 if test -n "$MSGFMT"; then
25146 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25147 echo "${ECHO_T}$MSGFMT" >&6; }
25148 else
25149 { echo "$as_me:$LINENO: result: no" >&5
25150 echo "${ECHO_T}no" >&6; }
25154 test -n "$MSGFMT" && break
25155 done
25157 if test -z "$MSGFMT"; then
25158 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25159 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25160 { (exit 1); exit 1; }; }
25162 for ac_prog in msgmerge
25164 # Extract the first word of "$ac_prog", so it can be a program name with args.
25165 set dummy $ac_prog; ac_word=$2
25166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25168 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171 if test -n "$MSGMERGE"; then
25172 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25173 else
25174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25175 for as_dir in $PATH
25177 IFS=$as_save_IFS
25178 test -z "$as_dir" && as_dir=.
25179 for ac_exec_ext in '' $ac_executable_extensions; do
25180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25181 ac_cv_prog_MSGMERGE="$ac_prog"
25182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25183 break 2
25185 done
25186 done
25187 IFS=$as_save_IFS
25191 MSGMERGE=$ac_cv_prog_MSGMERGE
25192 if test -n "$MSGMERGE"; then
25193 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25194 echo "${ECHO_T}$MSGMERGE" >&6; }
25195 else
25196 { echo "$as_me:$LINENO: result: no" >&5
25197 echo "${ECHO_T}no" >&6; }
25201 test -n "$MSGMERGE" && break
25202 done
25204 for ac_prog in xgettext
25206 # Extract the first word of "$ac_prog", so it can be a program name with args.
25207 set dummy $ac_prog; ac_word=$2
25208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25210 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25212 else
25213 if test -n "$XGETTEXT"; then
25214 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25215 else
25216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25217 for as_dir in $PATH
25219 IFS=$as_save_IFS
25220 test -z "$as_dir" && as_dir=.
25221 for ac_exec_ext in '' $ac_executable_extensions; do
25222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25223 ac_cv_prog_XGETTEXT="$ac_prog"
25224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25225 break 2
25227 done
25228 done
25229 IFS=$as_save_IFS
25233 XGETTEXT=$ac_cv_prog_XGETTEXT
25234 if test -n "$XGETTEXT"; then
25235 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25236 echo "${ECHO_T}$XGETTEXT" >&6; }
25237 else
25238 { echo "$as_me:$LINENO: result: no" >&5
25239 echo "${ECHO_T}no" >&6; }
25243 test -n "$XGETTEXT" && break
25244 done
25249 # Check for Tcl configuration script tclConfig.sh
25250 if test "$with_tcl" = yes; then
25251 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25253 # Extract the first word of "$ac_prog", so it can be a program name with args.
25254 set dummy $ac_prog; ac_word=$2
25255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25257 if test "${ac_cv_path_TCLSH+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 else
25260 case $TCLSH in
25261 [\\/]* | ?:[\\/]*)
25262 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25266 for as_dir in $PATH
25268 IFS=$as_save_IFS
25269 test -z "$as_dir" && as_dir=.
25270 for ac_exec_ext in '' $ac_executable_extensions; do
25271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25272 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25274 break 2
25276 done
25277 done
25278 IFS=$as_save_IFS
25281 esac
25283 TCLSH=$ac_cv_path_TCLSH
25284 if test -n "$TCLSH"; then
25285 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25286 echo "${ECHO_T}$TCLSH" >&6; }
25287 else
25288 { echo "$as_me:$LINENO: result: no" >&5
25289 echo "${ECHO_T}no" >&6; }
25293 test -n "$TCLSH" && break
25294 done
25296 if test x"$TCLSH" = x""; then
25297 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25298 echo "$as_me: error: Tcl shell not found" >&2;}
25299 { (exit 1); exit 1; }; }
25302 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25303 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25304 # Let user override test
25305 if test -z "$TCL_CONFIG_SH"; then
25306 pgac_test_dirs="$with_tclconfig"
25308 set X $pgac_test_dirs; shift
25309 if test $# -eq 0; then
25310 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25311 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25312 { (exit 1); exit 1; }; }
25313 set X `echo 'puts $auto_path' | $TCLSH`; shift
25316 for pgac_dir do
25317 if test -r "$pgac_dir/tclConfig.sh"; then
25318 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25319 break
25321 done
25324 if test -z "$TCL_CONFIG_SH"; then
25325 { echo "$as_me:$LINENO: result: no" >&5
25326 echo "${ECHO_T}no" >&6; }
25327 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25328 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25329 { (exit 1); exit 1; }; }
25330 else
25331 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25332 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25337 . "$TCL_CONFIG_SH"
25338 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25339 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25340 eval TCL_LIBS=\"$TCL_LIBS\"
25341 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25342 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25344 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25345 ac_save_CPPFLAGS=$CPPFLAGS
25346 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25347 if test "${ac_cv_header_tcl_h+set}" = set; then
25348 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25349 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25350 if test "${ac_cv_header_tcl_h+set}" = set; then
25351 echo $ECHO_N "(cached) $ECHO_C" >&6
25353 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25354 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25355 else
25356 # Is the header compilable?
25357 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25358 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25359 cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h. */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 $ac_includes_default
25366 #include <tcl.h>
25367 _ACEOF
25368 rm -f conftest.$ac_objext
25369 if { (ac_try="$ac_compile"
25370 case "(($ac_try" in
25371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25372 *) ac_try_echo=$ac_try;;
25373 esac
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375 (eval "$ac_compile") 2>conftest.er1
25376 ac_status=$?
25377 grep -v '^ *+' conftest.er1 >conftest.err
25378 rm -f conftest.er1
25379 cat conftest.err >&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } && {
25382 test -z "$ac_c_werror_flag" ||
25383 test ! -s conftest.err
25384 } && test -s conftest.$ac_objext; then
25385 ac_header_compiler=yes
25386 else
25387 echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25390 ac_header_compiler=no
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25395 echo "${ECHO_T}$ac_header_compiler" >&6; }
25397 # Is the header present?
25398 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25399 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25400 cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h. */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25406 #include <tcl.h>
25407 _ACEOF
25408 if { (ac_try="$ac_cpp conftest.$ac_ext"
25409 case "(($ac_try" in
25410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411 *) ac_try_echo=$ac_try;;
25412 esac
25413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25415 ac_status=$?
25416 grep -v '^ *+' conftest.er1 >conftest.err
25417 rm -f conftest.er1
25418 cat conftest.err >&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } >/dev/null && {
25421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25422 test ! -s conftest.err
25423 }; then
25424 ac_header_preproc=yes
25425 else
25426 echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25429 ac_header_preproc=no
25432 rm -f conftest.err conftest.$ac_ext
25433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25434 echo "${ECHO_T}$ac_header_preproc" >&6; }
25436 # So? What about this header?
25437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25438 yes:no: )
25439 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25440 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25442 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25443 ac_header_preproc=yes
25445 no:yes:* )
25446 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25447 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25449 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25450 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25451 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25452 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25453 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25454 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25455 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25456 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25457 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25458 ( cat <<\_ASBOX
25459 ## ---------------------------------------- ##
25460 ## Report this to pgsql-bugs@postgresql.org ##
25461 ## ---------------------------------------- ##
25462 _ASBOX
25463 ) | sed "s/^/$as_me: WARNING: /" >&2
25465 esac
25466 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25467 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25468 if test "${ac_cv_header_tcl_h+set}" = set; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25470 else
25471 ac_cv_header_tcl_h=$ac_header_preproc
25473 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25474 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25477 if test $ac_cv_header_tcl_h = yes; then
25479 else
25480 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25481 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25482 { (exit 1); exit 1; }; }
25486 CPPFLAGS=$ac_save_CPPFLAGS
25490 # Check for DocBook and tools
25492 for ac_prog in onsgmls nsgmls
25494 # Extract the first word of "$ac_prog", so it can be a program name with args.
25495 set dummy $ac_prog; ac_word=$2
25496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25498 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500 else
25501 if test -n "$NSGMLS"; then
25502 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25503 else
25504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25505 for as_dir in $PATH
25507 IFS=$as_save_IFS
25508 test -z "$as_dir" && as_dir=.
25509 for ac_exec_ext in '' $ac_executable_extensions; do
25510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25511 ac_cv_prog_NSGMLS="$ac_prog"
25512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25513 break 2
25515 done
25516 done
25517 IFS=$as_save_IFS
25521 NSGMLS=$ac_cv_prog_NSGMLS
25522 if test -n "$NSGMLS"; then
25523 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25524 echo "${ECHO_T}$NSGMLS" >&6; }
25525 else
25526 { echo "$as_me:$LINENO: result: no" >&5
25527 echo "${ECHO_T}no" >&6; }
25531 test -n "$NSGMLS" && break
25532 done
25534 for ac_prog in openjade jade
25536 # Extract the first word of "$ac_prog", so it can be a program name with args.
25537 set dummy $ac_prog; ac_word=$2
25538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25540 if test "${ac_cv_prog_JADE+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543 if test -n "$JADE"; then
25544 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25545 else
25546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25547 for as_dir in $PATH
25549 IFS=$as_save_IFS
25550 test -z "$as_dir" && as_dir=.
25551 for ac_exec_ext in '' $ac_executable_extensions; do
25552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25553 ac_cv_prog_JADE="$ac_prog"
25554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25555 break 2
25557 done
25558 done
25559 IFS=$as_save_IFS
25563 JADE=$ac_cv_prog_JADE
25564 if test -n "$JADE"; then
25565 { echo "$as_me:$LINENO: result: $JADE" >&5
25566 echo "${ECHO_T}$JADE" >&6; }
25567 else
25568 { echo "$as_me:$LINENO: result: no" >&5
25569 echo "${ECHO_T}no" >&6; }
25573 test -n "$JADE" && break
25574 done
25577 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25578 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25579 if test "${pgac_cv_check_docbook+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581 else
25582 cat >conftest.sgml <<EOF
25583 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25584 <book>
25585 <title>test</title>
25586 <chapter>
25587 <title>random</title>
25588 <sect1>
25589 <title>testsect</title>
25590 <para>text</para>
25591 </sect1>
25592 </chapter>
25593 </book>
25596 pgac_cv_check_docbook=no
25598 if test -n "$NSGMLS"; then
25599 $NSGMLS -s conftest.sgml 1>&5 2>&1
25600 if test $? -eq 0; then
25601 pgac_cv_check_docbook=yes
25604 rm -f conftest.sgml
25606 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25607 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25609 have_docbook=$pgac_cv_check_docbook
25612 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25613 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25614 if test "${pgac_cv_path_stylesheets+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 else
25617 if test -n "$DOCBOOKSTYLE"; then
25618 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25619 else
25620 for pgac_prefix in /usr /usr/local /opt /sw; do
25621 for pgac_infix in share lib; do
25622 for pgac_postfix in \
25623 sgml/stylesheets/nwalsh-modular \
25624 sgml/stylesheets/docbook \
25625 sgml/stylesheets/dsssl/docbook \
25626 sgml/docbook-dsssl \
25627 sgml/docbook/dsssl/modular \
25628 sgml/docbook/stylesheet/dsssl/modular \
25629 sgml/docbook/dsssl-stylesheets \
25630 sgml/dsssl/docbook-dsssl-nwalsh
25632 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25633 if test -r "$pgac_candidate/html/docbook.dsl" \
25634 && test -r "$pgac_candidate/print/docbook.dsl"
25635 then
25636 pgac_cv_path_stylesheets=$pgac_candidate
25637 break 3
25639 done
25640 done
25641 done
25645 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25647 if test -n "$DOCBOOKSTYLE"; then
25648 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25649 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25650 else
25651 { echo "$as_me:$LINENO: result: no" >&5
25652 echo "${ECHO_T}no" >&6; }
25654 if test -n "$DOCBOOKSTYLE"; then
25655 for ac_prog in collateindex.pl
25657 # Extract the first word of "$ac_prog", so it can be a program name with args.
25658 set dummy $ac_prog; ac_word=$2
25659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25661 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664 case $COLLATEINDEX in
25665 [\\/]* | ?:[\\/]*)
25666 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25670 for as_dir in $DOCBOOKSTYLE/bin $PATH
25672 IFS=$as_save_IFS
25673 test -z "$as_dir" && as_dir=.
25674 for ac_exec_ext in '' $ac_executable_extensions; do
25675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25676 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25678 break 2
25680 done
25681 done
25682 IFS=$as_save_IFS
25685 esac
25687 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25688 if test -n "$COLLATEINDEX"; then
25689 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25690 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25691 else
25692 { echo "$as_me:$LINENO: result: no" >&5
25693 echo "${ECHO_T}no" >&6; }
25697 test -n "$COLLATEINDEX" && break
25698 done
25700 else
25701 for ac_prog in collateindex.pl
25703 # Extract the first word of "$ac_prog", so it can be a program name with args.
25704 set dummy $ac_prog; ac_word=$2
25705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25707 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else
25710 case $COLLATEINDEX in
25711 [\\/]* | ?:[\\/]*)
25712 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25716 for as_dir in $PATH
25718 IFS=$as_save_IFS
25719 test -z "$as_dir" && as_dir=.
25720 for ac_exec_ext in '' $ac_executable_extensions; do
25721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25722 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25724 break 2
25726 done
25727 done
25728 IFS=$as_save_IFS
25731 esac
25733 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25734 if test -n "$COLLATEINDEX"; then
25735 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25736 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25737 else
25738 { echo "$as_me:$LINENO: result: no" >&5
25739 echo "${ECHO_T}no" >&6; }
25743 test -n "$COLLATEINDEX" && break
25744 done
25747 for ac_prog in sgmlspl
25749 # Extract the first word of "$ac_prog", so it can be a program name with args.
25750 set dummy $ac_prog; ac_word=$2
25751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25753 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756 if test -n "$SGMLSPL"; then
25757 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25758 else
25759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25760 for as_dir in $PATH
25762 IFS=$as_save_IFS
25763 test -z "$as_dir" && as_dir=.
25764 for ac_exec_ext in '' $ac_executable_extensions; do
25765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25766 ac_cv_prog_SGMLSPL="$ac_prog"
25767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25768 break 2
25770 done
25771 done
25772 IFS=$as_save_IFS
25776 SGMLSPL=$ac_cv_prog_SGMLSPL
25777 if test -n "$SGMLSPL"; then
25778 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25779 echo "${ECHO_T}$SGMLSPL" >&6; }
25780 else
25781 { echo "$as_me:$LINENO: result: no" >&5
25782 echo "${ECHO_T}no" >&6; }
25786 test -n "$SGMLSPL" && break
25787 done
25790 # Thread testing
25792 # We have to run the thread test near the end so we have all our symbols
25793 # defined. Cross compiling throws a warning.
25795 if test "$enable_thread_safety_force" = yes; then
25796 if test "$PORTNAME" != "win32"
25797 then
25798 { echo "$as_me:$LINENO: WARNING:
25799 *** Skipping thread test program. --enable-thread-safety-force was used.
25800 *** Run the program in src/test/thread on the your machine and add proper
25801 *** locking function calls to your applications to guarantee thread safety.
25802 " >&5
25803 echo "$as_me: WARNING:
25804 *** Skipping thread test program. --enable-thread-safety-force was used.
25805 *** Run the program in src/test/thread on the your machine and add proper
25806 *** locking function calls to your applications to guarantee thread safety.
25807 " >&2;}
25808 else
25809 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25810 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25812 elif test "$enable_thread_safety" = yes; then
25813 if test "$PORTNAME" != "win32"
25814 then
25815 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25816 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25818 _CFLAGS="$CFLAGS"
25819 _LIBS="$LIBS"
25820 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25821 LIBS="$LIBS $PTHREAD_LIBS"
25822 if test "$cross_compiling" = yes; then
25823 { echo "$as_me:$LINENO: result: maybe" >&5
25824 echo "${ECHO_T}maybe" >&6; }
25825 { echo "$as_me:$LINENO: WARNING:
25826 *** Skipping thread test program because of cross-compile build.
25827 *** Run the program in src/test/thread on the target machine.
25828 " >&5
25829 echo "$as_me: WARNING:
25830 *** Skipping thread test program because of cross-compile build.
25831 *** Run the program in src/test/thread on the target machine.
25832 " >&2;}
25833 else
25834 cat >conftest.$ac_ext <<_ACEOF
25835 /* confdefs.h. */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840 #include "$srcdir/src/test/thread/thread_test.c"
25841 _ACEOF
25842 rm -f conftest$ac_exeext
25843 if { (ac_try="$ac_link"
25844 case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25847 esac
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849 (eval "$ac_link") 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25853 { (case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_try") 2>&5
25859 ac_status=$?
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 { echo "$as_me:$LINENO: result: yes" >&5
25863 echo "${ECHO_T}yes" >&6; }
25864 else
25865 echo "$as_me: program exited with status $ac_status" >&5
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25869 ( exit $ac_status )
25870 { echo "$as_me:$LINENO: result: no" >&5
25871 echo "${ECHO_T}no" >&6; }
25872 { { echo "$as_me:$LINENO: error: thread test program failed
25873 This platform is not thread-safe. Check the file 'config.log' for the
25874 exact reason.
25876 You can use the configure option --enable-thread-safety-force to force
25877 threads to be enabled. But you must then run the program in
25878 src/test/thread and add locking function calls to your applications to
25879 guarantee thread safety." >&5
25880 echo "$as_me: error: thread test program failed
25881 This platform is not thread-safe. Check the file 'config.log' for the
25882 exact reason.
25884 You can use the configure option --enable-thread-safety-force to force
25885 threads to be enabled. But you must then run the program in
25886 src/test/thread and add locking function calls to your applications to
25887 guarantee thread safety." >&2;}
25888 { (exit 1); exit 1; }; }
25890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25894 CFLAGS="$_CFLAGS"
25895 LIBS="$_LIBS"
25896 else
25897 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25898 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25902 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25903 # This is much easier than trying to filter LIBS to the minimum for each
25904 # executable. (Note that shared library links won't use this switch, though.)
25905 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25906 # libreadline; therefore we postpone testing it until we know what library
25907 # dependencies readline has. The test code will try to link with $LIBS.
25908 if test "$with_readline" = yes; then
25909 link_test_func=readline
25910 else
25911 link_test_func=exit
25913 if test "$PORTNAME" != "darwin"; then
25914 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25915 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25916 pgac_save_LDFLAGS=$LDFLAGS
25917 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25918 if test "$cross_compiling" = yes; then
25919 LDFLAGS="$pgac_save_LDFLAGS"
25920 { echo "$as_me:$LINENO: result: assuming no" >&5
25921 echo "${ECHO_T}assuming no" >&6; }
25922 else
25923 cat >conftest.$ac_ext <<_ACEOF
25924 /* confdefs.h. */
25925 _ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25929 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25931 main ()
25935 return 0;
25937 _ACEOF
25938 rm -f conftest$ac_exeext
25939 if { (ac_try="$ac_link"
25940 case "(($ac_try" in
25941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942 *) ac_try_echo=$ac_try;;
25943 esac
25944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25945 (eval "$ac_link") 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25949 { (case "(($ac_try" in
25950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25951 *) ac_try_echo=$ac_try;;
25952 esac
25953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25954 (eval "$ac_try") 2>&5
25955 ac_status=$?
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 { echo "$as_me:$LINENO: result: yes" >&5
25959 echo "${ECHO_T}yes" >&6; }
25960 else
25961 echo "$as_me: program exited with status $ac_status" >&5
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ( exit $ac_status )
25966 LDFLAGS="$pgac_save_LDFLAGS"
25967 { echo "$as_me:$LINENO: result: no" >&5
25968 echo "${ECHO_T}no" >&6; }
25970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25975 else
25976 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25977 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25978 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25979 pgac_save_LDFLAGS=$LDFLAGS
25980 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25981 if test "$cross_compiling" = yes; then
25982 LDFLAGS="$pgac_save_LDFLAGS"
25983 { echo "$as_me:$LINENO: result: assuming no" >&5
25984 echo "${ECHO_T}assuming no" >&6; }
25985 else
25986 cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h. */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25994 main ()
25998 return 0;
26000 _ACEOF
26001 rm -f conftest$ac_exeext
26002 if { (ac_try="$ac_link"
26003 case "(($ac_try" in
26004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005 *) ac_try_echo=$ac_try;;
26006 esac
26007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26008 (eval "$ac_link") 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26012 { (case "(($ac_try" in
26013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014 *) ac_try_echo=$ac_try;;
26015 esac
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017 (eval "$ac_try") 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 { echo "$as_me:$LINENO: result: yes" >&5
26022 echo "${ECHO_T}yes" >&6; }
26023 else
26024 echo "$as_me: program exited with status $ac_status" >&5
26025 echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26028 ( exit $ac_status )
26029 LDFLAGS="$pgac_save_LDFLAGS"
26030 { echo "$as_me:$LINENO: result: no" >&5
26031 echo "${ECHO_T}no" >&6; }
26033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26041 # Begin output steps
26043 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26044 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26045 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26046 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26047 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26048 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26050 # prepare build tree if outside source tree
26051 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26052 # Note 2: /bin/pwd might be better than shell's built-in at getting
26053 # a symlink-free name.
26054 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26055 vpath_build=no
26056 else
26057 vpath_build=yes
26058 if test "$no_create" != yes; then
26059 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26060 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26061 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26062 || { { echo "$as_me:$LINENO: error: failed" >&5
26063 echo "$as_me: error: failed" >&2;}
26064 { (exit 1); exit 1; }; }
26065 { echo "$as_me:$LINENO: result: done" >&5
26066 echo "${ECHO_T}done" >&6; }
26072 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26075 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}"
26078 if test "$PORTNAME" = "win32"; then
26079 ac_config_commands="$ac_config_commands check_win32_symlinks"
26083 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26086 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26089 cat >confcache <<\_ACEOF
26090 # This file is a shell script that caches the results of configure
26091 # tests run on this system so they can be shared between configure
26092 # scripts and configure runs, see configure's option --config-cache.
26093 # It is not useful on other systems. If it contains results you don't
26094 # want to keep, you may remove or edit it.
26096 # config.status only pays attention to the cache file if you give it
26097 # the --recheck option to rerun configure.
26099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26101 # following values.
26103 _ACEOF
26105 # The following way of writing the cache mishandles newlines in values,
26106 # but we know of no workaround that is simple, portable, and efficient.
26107 # So, we kill variables containing newlines.
26108 # Ultrix sh set writes to stderr and can't be redirected directly,
26109 # and sets the high bit in the cache file unless we assign to the vars.
26111 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26112 eval ac_val=\$$ac_var
26113 case $ac_val in #(
26114 *${as_nl}*)
26115 case $ac_var in #(
26116 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26117 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26118 esac
26119 case $ac_var in #(
26120 _ | IFS | as_nl) ;; #(
26121 *) $as_unset $ac_var ;;
26122 esac ;;
26123 esac
26124 done
26126 (set) 2>&1 |
26127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26128 *${as_nl}ac_space=\ *)
26129 # `set' does not quote correctly, so add quotes (double-quote
26130 # substitution turns \\\\ into \\, and sed turns \\ into \).
26131 sed -n \
26132 "s/'/'\\\\''/g;
26133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26134 ;; #(
26136 # `set' quotes correctly as required by POSIX, so do not add quotes.
26137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26139 esac |
26140 sort
26142 sed '
26143 /^ac_cv_env_/b end
26144 t clear
26145 :clear
26146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26147 t end
26148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26149 :end' >>confcache
26150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26151 if test -w "$cache_file"; then
26152 test "x$cache_file" != "x/dev/null" &&
26153 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26154 echo "$as_me: updating cache $cache_file" >&6;}
26155 cat confcache >$cache_file
26156 else
26157 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26158 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26161 rm -f confcache
26163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26164 # Let make expand exec_prefix.
26165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26167 DEFS=-DHAVE_CONFIG_H
26169 ac_libobjs=
26170 ac_ltlibobjs=
26171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26172 # 1. Remove the extension, and $U if already installed.
26173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26174 ac_i=`echo "$ac_i" | sed "$ac_script"`
26175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26176 # will be set to the directory where LIBOBJS objects are built.
26177 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26178 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26179 done
26180 LIBOBJS=$ac_libobjs
26182 LTLIBOBJS=$ac_ltlibobjs
26186 : ${CONFIG_STATUS=./config.status}
26187 ac_clean_files_save=$ac_clean_files
26188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26191 cat >$CONFIG_STATUS <<_ACEOF
26192 #! $SHELL
26193 # Generated by $as_me.
26194 # Run this file to recreate the current configuration.
26195 # Compiler output produced by configure, useful for debugging
26196 # configure, is in config.log if it exists.
26198 debug=false
26199 ac_cs_recheck=false
26200 ac_cs_silent=false
26201 SHELL=\${CONFIG_SHELL-$SHELL}
26202 _ACEOF
26204 cat >>$CONFIG_STATUS <<\_ACEOF
26205 ## --------------------- ##
26206 ## M4sh Initialization. ##
26207 ## --------------------- ##
26209 # Be more Bourne compatible
26210 DUALCASE=1; export DUALCASE # for MKS sh
26211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26212 emulate sh
26213 NULLCMD=:
26214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26215 # is contrary to our usage. Disable this feature.
26216 alias -g '${1+"$@"}'='"$@"'
26217 setopt NO_GLOB_SUBST
26218 else
26219 case `(set -o) 2>/dev/null` in
26220 *posix*) set -o posix ;;
26221 esac
26228 # PATH needs CR
26229 # Avoid depending upon Character Ranges.
26230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26233 as_cr_digits='0123456789'
26234 as_cr_alnum=$as_cr_Letters$as_cr_digits
26236 # The user is always right.
26237 if test "${PATH_SEPARATOR+set}" != set; then
26238 echo "#! /bin/sh" >conf$$.sh
26239 echo "exit 0" >>conf$$.sh
26240 chmod +x conf$$.sh
26241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26242 PATH_SEPARATOR=';'
26243 else
26244 PATH_SEPARATOR=:
26246 rm -f conf$$.sh
26249 # Support unset when possible.
26250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26251 as_unset=unset
26252 else
26253 as_unset=false
26257 # IFS
26258 # We need space, tab and new line, in precisely that order. Quoting is
26259 # there to prevent editors from complaining about space-tab.
26260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26261 # splitting by setting IFS to empty value.)
26262 as_nl='
26264 IFS=" "" $as_nl"
26266 # Find who we are. Look in the path if we contain no directory separator.
26267 case $0 in
26268 *[\\/]* ) as_myself=$0 ;;
26269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26270 for as_dir in $PATH
26272 IFS=$as_save_IFS
26273 test -z "$as_dir" && as_dir=.
26274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26275 done
26276 IFS=$as_save_IFS
26279 esac
26280 # We did not find ourselves, most probably we were run as `sh COMMAND'
26281 # in which case we are not to be found in the path.
26282 if test "x$as_myself" = x; then
26283 as_myself=$0
26285 if test ! -f "$as_myself"; then
26286 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26287 { (exit 1); exit 1; }
26290 # Work around bugs in pre-3.0 UWIN ksh.
26291 for as_var in ENV MAIL MAILPATH
26292 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26293 done
26294 PS1='$ '
26295 PS2='> '
26296 PS4='+ '
26298 # NLS nuisances.
26299 for as_var in \
26300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26302 LC_TELEPHONE LC_TIME
26304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26305 eval $as_var=C; export $as_var
26306 else
26307 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26309 done
26311 # Required to use basename.
26312 if expr a : '\(a\)' >/dev/null 2>&1 &&
26313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26314 as_expr=expr
26315 else
26316 as_expr=false
26319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26320 as_basename=basename
26321 else
26322 as_basename=false
26326 # Name of the executable.
26327 as_me=`$as_basename -- "$0" ||
26328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26329 X"$0" : 'X\(//\)$' \| \
26330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26331 echo X/"$0" |
26332 sed '/^.*\/\([^/][^/]*\)\/*$/{
26333 s//\1/
26336 /^X\/\(\/\/\)$/{
26337 s//\1/
26340 /^X\/\(\/\).*/{
26341 s//\1/
26344 s/.*/./; q'`
26346 # CDPATH.
26347 $as_unset CDPATH
26351 as_lineno_1=$LINENO
26352 as_lineno_2=$LINENO
26353 test "x$as_lineno_1" != "x$as_lineno_2" &&
26354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26357 # uniformly replaced by the line number. The first 'sed' inserts a
26358 # line-number line after each line using $LINENO; the second 'sed'
26359 # does the real work. The second script uses 'N' to pair each
26360 # line-number line with the line containing $LINENO, and appends
26361 # trailing '-' during substitution so that $LINENO is not a special
26362 # case at line end.
26363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26364 # scripts with optimization help from Paolo Bonzini. Blame Lee
26365 # E. McMahon (1931-1989) for sed's syntax. :-)
26366 sed -n '
26368 /[$]LINENO/=
26369 ' <$as_myself |
26370 sed '
26371 s/[$]LINENO.*/&-/
26372 t lineno
26374 :lineno
26376 :loop
26377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26378 t loop
26379 s/-\n.*//
26380 ' >$as_me.lineno &&
26381 chmod +x "$as_me.lineno" ||
26382 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26383 { (exit 1); exit 1; }; }
26385 # Don't try to exec as it changes $[0], causing all sort of problems
26386 # (the dirname of $[0] is not the place where we might find the
26387 # original and so on. Autoconf is especially sensitive to this).
26388 . "./$as_me.lineno"
26389 # Exit status is that of the last command.
26390 exit
26394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26395 as_dirname=dirname
26396 else
26397 as_dirname=false
26400 ECHO_C= ECHO_N= ECHO_T=
26401 case `echo -n x` in
26402 -n*)
26403 case `echo 'x\c'` in
26404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26405 *) ECHO_C='\c';;
26406 esac;;
26408 ECHO_N='-n';;
26409 esac
26411 if expr a : '\(a\)' >/dev/null 2>&1 &&
26412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26413 as_expr=expr
26414 else
26415 as_expr=false
26418 rm -f conf$$ conf$$.exe conf$$.file
26419 if test -d conf$$.dir; then
26420 rm -f conf$$.dir/conf$$.file
26421 else
26422 rm -f conf$$.dir
26423 mkdir conf$$.dir
26425 echo >conf$$.file
26426 if ln -s conf$$.file conf$$ 2>/dev/null; then
26427 as_ln_s='ln -s'
26428 # ... but there are two gotchas:
26429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26431 # In both cases, we have to default to `cp -p'.
26432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26433 as_ln_s='cp -p'
26434 elif ln conf$$.file conf$$ 2>/dev/null; then
26435 as_ln_s=ln
26436 else
26437 as_ln_s='cp -p'
26439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26440 rmdir conf$$.dir 2>/dev/null
26442 if mkdir -p . 2>/dev/null; then
26443 as_mkdir_p=:
26444 else
26445 test -d ./-p && rmdir ./-p
26446 as_mkdir_p=false
26449 if test -x / >/dev/null 2>&1; then
26450 as_test_x='test -x'
26451 else
26452 if ls -dL / >/dev/null 2>&1; then
26453 as_ls_L_option=L
26454 else
26455 as_ls_L_option=
26457 as_test_x='
26458 eval sh -c '\''
26459 if test -d "$1"; then
26460 test -d "$1/.";
26461 else
26462 case $1 in
26463 -*)set "./$1";;
26464 esac;
26465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26466 ???[sx]*):;;*)false;;esac;fi
26467 '\'' sh
26470 as_executable_p=$as_test_x
26472 # Sed expression to map a string onto a valid CPP name.
26473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26475 # Sed expression to map a string onto a valid variable name.
26476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26479 exec 6>&1
26481 # Save the log message, to keep $[0] and so on meaningful, and to
26482 # report actual input values of CONFIG_FILES etc. instead of their
26483 # values after options handling.
26484 ac_log="
26485 This file was extended by PostgreSQL $as_me 8.4devel, which was
26486 generated by GNU Autoconf 2.61. Invocation command line was
26488 CONFIG_FILES = $CONFIG_FILES
26489 CONFIG_HEADERS = $CONFIG_HEADERS
26490 CONFIG_LINKS = $CONFIG_LINKS
26491 CONFIG_COMMANDS = $CONFIG_COMMANDS
26492 $ $0 $@
26494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26497 _ACEOF
26499 cat >>$CONFIG_STATUS <<_ACEOF
26500 # Files that config.status was made for.
26501 config_files="$ac_config_files"
26502 config_headers="$ac_config_headers"
26503 config_links="$ac_config_links"
26504 config_commands="$ac_config_commands"
26506 _ACEOF
26508 cat >>$CONFIG_STATUS <<\_ACEOF
26509 ac_cs_usage="\
26510 \`$as_me' instantiates files from templates according to the
26511 current configuration.
26513 Usage: $0 [OPTIONS] [FILE]...
26515 -h, --help print this help, then exit
26516 -V, --version print version number and configuration settings, then exit
26517 -q, --quiet do not print progress messages
26518 -d, --debug don't remove temporary files
26519 --recheck update $as_me by reconfiguring in the same conditions
26520 --file=FILE[:TEMPLATE]
26521 instantiate the configuration file FILE
26522 --header=FILE[:TEMPLATE]
26523 instantiate the configuration header FILE
26525 Configuration files:
26526 $config_files
26528 Configuration headers:
26529 $config_headers
26531 Configuration links:
26532 $config_links
26534 Configuration commands:
26535 $config_commands
26537 Report bugs to <bug-autoconf@gnu.org>."
26539 _ACEOF
26540 cat >>$CONFIG_STATUS <<_ACEOF
26541 ac_cs_version="\\
26542 PostgreSQL config.status 8.4devel
26543 configured by $0, generated by GNU Autoconf 2.61,
26544 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26546 Copyright (C) 2006 Free Software Foundation, Inc.
26547 This config.status script is free software; the Free Software Foundation
26548 gives unlimited permission to copy, distribute and modify it."
26550 ac_pwd='$ac_pwd'
26551 srcdir='$srcdir'
26552 _ACEOF
26554 cat >>$CONFIG_STATUS <<\_ACEOF
26555 # If no file are specified by the user, then we need to provide default
26556 # value. By we need to know if files were specified by the user.
26557 ac_need_defaults=:
26558 while test $# != 0
26560 case $1 in
26561 --*=*)
26562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26564 ac_shift=:
26567 ac_option=$1
26568 ac_optarg=$2
26569 ac_shift=shift
26571 esac
26573 case $ac_option in
26574 # Handling of the options.
26575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26576 ac_cs_recheck=: ;;
26577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26578 echo "$ac_cs_version"; exit ;;
26579 --debug | --debu | --deb | --de | --d | -d )
26580 debug=: ;;
26581 --file | --fil | --fi | --f )
26582 $ac_shift
26583 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26584 ac_need_defaults=false;;
26585 --header | --heade | --head | --hea )
26586 $ac_shift
26587 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26588 ac_need_defaults=false;;
26589 --he | --h)
26590 # Conflict between --help and --header
26591 { echo "$as_me: error: ambiguous option: $1
26592 Try \`$0 --help' for more information." >&2
26593 { (exit 1); exit 1; }; };;
26594 --help | --hel | -h )
26595 echo "$ac_cs_usage"; exit ;;
26596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26597 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26598 ac_cs_silent=: ;;
26600 # This is an error.
26601 -*) { echo "$as_me: error: unrecognized option: $1
26602 Try \`$0 --help' for more information." >&2
26603 { (exit 1); exit 1; }; } ;;
26605 *) ac_config_targets="$ac_config_targets $1"
26606 ac_need_defaults=false ;;
26608 esac
26609 shift
26610 done
26612 ac_configure_extra_args=
26614 if $ac_cs_silent; then
26615 exec 6>/dev/null
26616 ac_configure_extra_args="$ac_configure_extra_args --silent"
26619 _ACEOF
26620 cat >>$CONFIG_STATUS <<_ACEOF
26621 if \$ac_cs_recheck; then
26622 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26623 CONFIG_SHELL=$SHELL
26624 export CONFIG_SHELL
26625 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26628 _ACEOF
26629 cat >>$CONFIG_STATUS <<\_ACEOF
26630 exec 5>>config.log
26632 echo
26633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26634 ## Running $as_me. ##
26635 _ASBOX
26636 echo "$ac_log"
26637 } >&5
26639 _ACEOF
26640 cat >>$CONFIG_STATUS <<_ACEOF
26641 _ACEOF
26643 cat >>$CONFIG_STATUS <<\_ACEOF
26645 # Handling of arguments.
26646 for ac_config_target in $ac_config_targets
26648 case $ac_config_target in
26649 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26650 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26651 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26652 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26653 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26654 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26655 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26656 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26657 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26658 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26659 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26660 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26662 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26663 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26664 { (exit 1); exit 1; }; };;
26665 esac
26666 done
26669 # If the user did not use the arguments to specify the items to instantiate,
26670 # then the envvar interface is used. Set only those that are not.
26671 # We use the long form for the default assignment because of an extremely
26672 # bizarre bug on SunOS 4.1.3.
26673 if $ac_need_defaults; then
26674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26676 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26680 # Have a temporary directory for convenience. Make it in the build tree
26681 # simply because there is no reason against having it here, and in addition,
26682 # creating and moving files from /tmp can sometimes cause problems.
26683 # Hook for its removal unless debugging.
26684 # Note that there is a small window in which the directory will not be cleaned:
26685 # after its creation but before its name has been assigned to `$tmp'.
26686 $debug ||
26688 tmp=
26689 trap 'exit_status=$?
26690 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26692 trap '{ (exit 1); exit 1; }' 1 2 13 15
26694 # Create a (secure) tmp directory for tmp files.
26697 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26698 test -n "$tmp" && test -d "$tmp"
26699 } ||
26701 tmp=./conf$$-$RANDOM
26702 (umask 077 && mkdir "$tmp")
26703 } ||
26705 echo "$me: cannot create a temporary directory in ." >&2
26706 { (exit 1); exit 1; }
26710 # Set up the sed scripts for CONFIG_FILES section.
26713 # No need to generate the scripts if there are no CONFIG_FILES.
26714 # This happens for instance when ./config.status config.h
26715 if test -n "$CONFIG_FILES"; then
26717 _ACEOF
26721 ac_delim='%!_!# '
26722 for ac_last_try in false false false false false :; do
26723 cat >conf$$subs.sed <<_ACEOF
26724 SHELL!$SHELL$ac_delim
26725 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26726 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26727 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26728 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26729 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26730 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26731 exec_prefix!$exec_prefix$ac_delim
26732 prefix!$prefix$ac_delim
26733 program_transform_name!$program_transform_name$ac_delim
26734 bindir!$bindir$ac_delim
26735 sbindir!$sbindir$ac_delim
26736 libexecdir!$libexecdir$ac_delim
26737 datarootdir!$datarootdir$ac_delim
26738 datadir!$datadir$ac_delim
26739 sysconfdir!$sysconfdir$ac_delim
26740 sharedstatedir!$sharedstatedir$ac_delim
26741 localstatedir!$localstatedir$ac_delim
26742 includedir!$includedir$ac_delim
26743 oldincludedir!$oldincludedir$ac_delim
26744 docdir!$docdir$ac_delim
26745 infodir!$infodir$ac_delim
26746 htmldir!$htmldir$ac_delim
26747 dvidir!$dvidir$ac_delim
26748 pdfdir!$pdfdir$ac_delim
26749 psdir!$psdir$ac_delim
26750 libdir!$libdir$ac_delim
26751 localedir!$localedir$ac_delim
26752 mandir!$mandir$ac_delim
26753 DEFS!$DEFS$ac_delim
26754 ECHO_C!$ECHO_C$ac_delim
26755 ECHO_N!$ECHO_N$ac_delim
26756 ECHO_T!$ECHO_T$ac_delim
26757 LIBS!$LIBS$ac_delim
26758 build_alias!$build_alias$ac_delim
26759 host_alias!$host_alias$ac_delim
26760 target_alias!$target_alias$ac_delim
26761 configure_args!$configure_args$ac_delim
26762 build!$build$ac_delim
26763 build_cpu!$build_cpu$ac_delim
26764 build_vendor!$build_vendor$ac_delim
26765 build_os!$build_os$ac_delim
26766 host!$host$ac_delim
26767 host_cpu!$host_cpu$ac_delim
26768 host_vendor!$host_vendor$ac_delim
26769 host_os!$host_os$ac_delim
26770 PORTNAME!$PORTNAME$ac_delim
26771 enable_nls!$enable_nls$ac_delim
26772 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26773 default_port!$default_port$ac_delim
26774 enable_shared!$enable_shared$ac_delim
26775 enable_rpath!$enable_rpath$ac_delim
26776 enable_debug!$enable_debug$ac_delim
26777 enable_profiling!$enable_profiling$ac_delim
26778 GCOV!$GCOV$ac_delim
26779 LCOV!$LCOV$ac_delim
26780 GENHTML!$GENHTML$ac_delim
26781 enable_coverage!$enable_coverage$ac_delim
26782 DTRACE!$DTRACE$ac_delim
26783 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26784 enable_dtrace!$enable_dtrace$ac_delim
26785 CC!$CC$ac_delim
26786 CFLAGS!$CFLAGS$ac_delim
26787 LDFLAGS!$LDFLAGS$ac_delim
26788 CPPFLAGS!$CPPFLAGS$ac_delim
26789 ac_ct_CC!$ac_ct_CC$ac_delim
26790 EXEEXT!$EXEEXT$ac_delim
26791 OBJEXT!$OBJEXT$ac_delim
26792 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26793 CPP!$CPP$ac_delim
26794 GCC!$GCC$ac_delim
26795 TAS!$TAS$ac_delim
26796 autodepend!$autodepend$ac_delim
26797 INCLUDES!$INCLUDES$ac_delim
26798 enable_thread_safety!$enable_thread_safety$ac_delim
26799 with_tcl!$with_tcl$ac_delim
26800 with_perl!$with_perl$ac_delim
26801 with_python!$with_python$ac_delim
26802 with_gssapi!$with_gssapi$ac_delim
26803 with_krb5!$with_krb5$ac_delim
26804 krb_srvtab!$krb_srvtab$ac_delim
26805 with_pam!$with_pam$ac_delim
26806 with_ldap!$with_ldap$ac_delim
26807 with_bonjour!$with_bonjour$ac_delim
26808 with_openssl!$with_openssl$ac_delim
26809 with_ossp_uuid!$with_ossp_uuid$ac_delim
26810 XML2_CONFIG!$XML2_CONFIG$ac_delim
26811 with_libxml!$with_libxml$ac_delim
26812 with_libxslt!$with_libxslt$ac_delim
26813 with_system_tzdata!$with_system_tzdata$ac_delim
26814 with_zlib!$with_zlib$ac_delim
26815 GREP!$GREP$ac_delim
26816 EGREP!$EGREP$ac_delim
26817 ELF_SYS!$ELF_SYS$ac_delim
26818 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26819 LD!$LD$ac_delim
26820 with_gnu_ld!$with_gnu_ld$ac_delim
26821 _ACEOF
26823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26824 break
26825 elif $ac_last_try; then
26826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26827 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26828 { (exit 1); exit 1; }; }
26829 else
26830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26832 done
26834 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26835 if test -n "$ac_eof"; then
26836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26837 ac_eof=`expr $ac_eof + 1`
26840 cat >>$CONFIG_STATUS <<_ACEOF
26841 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26843 _ACEOF
26844 sed '
26845 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26846 s/^/s,@/; s/!/@,|#_!!_#|/
26849 s/'"$ac_delim"'$/,g/; t
26850 s/$/\\/; p
26851 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26852 ' >>$CONFIG_STATUS <conf$$subs.sed
26853 rm -f conf$$subs.sed
26854 cat >>$CONFIG_STATUS <<_ACEOF
26855 CEOF$ac_eof
26856 _ACEOF
26859 ac_delim='%!_!# '
26860 for ac_last_try in false false false false false :; do
26861 cat >conf$$subs.sed <<_ACEOF
26862 ld_R_works!$ld_R_works$ac_delim
26863 RANLIB!$RANLIB$ac_delim
26864 STRIP!$STRIP$ac_delim
26865 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26866 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26867 TAR!$TAR$ac_delim
26868 LN_S!$LN_S$ac_delim
26869 AWK!$AWK$ac_delim
26870 BISON!$BISON$ac_delim
26871 BISONFLAGS!$BISONFLAGS$ac_delim
26872 FLEX!$FLEX$ac_delim
26873 FLEXFLAGS!$FLEXFLAGS$ac_delim
26874 PERL!$PERL$ac_delim
26875 perl_archlibexp!$perl_archlibexp$ac_delim
26876 perl_privlibexp!$perl_privlibexp$ac_delim
26877 perl_useshrplib!$perl_useshrplib$ac_delim
26878 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26879 PYTHON!$PYTHON$ac_delim
26880 python_version!$python_version$ac_delim
26881 python_configdir!$python_configdir$ac_delim
26882 python_includespec!$python_includespec$ac_delim
26883 python_libdir!$python_libdir$ac_delim
26884 python_libspec!$python_libspec$ac_delim
26885 python_additional_libs!$python_additional_libs$ac_delim
26886 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26887 HAVE_IPV6!$HAVE_IPV6$ac_delim
26888 LIBOBJS!$LIBOBJS$ac_delim
26889 acx_pthread_config!$acx_pthread_config$ac_delim
26890 PTHREAD_CC!$PTHREAD_CC$ac_delim
26891 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26892 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26893 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26894 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26895 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26896 MSGFMT!$MSGFMT$ac_delim
26897 MSGMERGE!$MSGMERGE$ac_delim
26898 XGETTEXT!$XGETTEXT$ac_delim
26899 TCLSH!$TCLSH$ac_delim
26900 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26901 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26902 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26903 TCL_LIBS!$TCL_LIBS$ac_delim
26904 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26905 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26906 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26907 NSGMLS!$NSGMLS$ac_delim
26908 JADE!$JADE$ac_delim
26909 have_docbook!$have_docbook$ac_delim
26910 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26911 COLLATEINDEX!$COLLATEINDEX$ac_delim
26912 SGMLSPL!$SGMLSPL$ac_delim
26913 vpath_build!$vpath_build$ac_delim
26914 LTLIBOBJS!$LTLIBOBJS$ac_delim
26915 _ACEOF
26917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
26918 break
26919 elif $ac_last_try; then
26920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26922 { (exit 1); exit 1; }; }
26923 else
26924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26926 done
26928 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26929 if test -n "$ac_eof"; then
26930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26931 ac_eof=`expr $ac_eof + 1`
26934 cat >>$CONFIG_STATUS <<_ACEOF
26935 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26937 _ACEOF
26938 sed '
26939 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26940 s/^/s,@/; s/!/@,|#_!!_#|/
26943 s/'"$ac_delim"'$/,g/; t
26944 s/$/\\/; p
26945 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26946 ' >>$CONFIG_STATUS <conf$$subs.sed
26947 rm -f conf$$subs.sed
26948 cat >>$CONFIG_STATUS <<_ACEOF
26949 :end
26950 s/|#_!!_#|//g
26951 CEOF$ac_eof
26952 _ACEOF
26955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26957 # trailing colons and then remove the whole line if VPATH becomes empty
26958 # (actually we leave an empty line to preserve line numbers).
26959 if test "x$srcdir" = x.; then
26960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26961 s/:*\$(srcdir):*/:/
26962 s/:*\${srcdir}:*/:/
26963 s/:*@srcdir@:*/:/
26964 s/^\([^=]*=[ ]*\):*/\1/
26965 s/:*$//
26966 s/^[^=]*=[ ]*$//
26970 cat >>$CONFIG_STATUS <<\_ACEOF
26971 fi # test -n "$CONFIG_FILES"
26974 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26976 case $ac_tag in
26977 :[FHLC]) ac_mode=$ac_tag; continue;;
26978 esac
26979 case $ac_mode$ac_tag in
26980 :[FHL]*:*);;
26981 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26982 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26983 { (exit 1); exit 1; }; };;
26984 :[FH]-) ac_tag=-:-;;
26985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26986 esac
26987 ac_save_IFS=$IFS
26988 IFS=:
26989 set x $ac_tag
26990 IFS=$ac_save_IFS
26991 shift
26992 ac_file=$1
26993 shift
26995 case $ac_mode in
26996 :L) ac_source=$1;;
26997 :[FH])
26998 ac_file_inputs=
26999 for ac_f
27001 case $ac_f in
27002 -) ac_f="$tmp/stdin";;
27003 *) # Look for the file first in the build tree, then in the source tree
27004 # (if the path is not absolute). The absolute path cannot be DOS-style,
27005 # because $ac_f cannot contain `:'.
27006 test -f "$ac_f" ||
27007 case $ac_f in
27008 [\\/$]*) false;;
27009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27010 esac ||
27011 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27012 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27013 { (exit 1); exit 1; }; };;
27014 esac
27015 ac_file_inputs="$ac_file_inputs $ac_f"
27016 done
27018 # Let's still pretend it is `configure' which instantiates (i.e., don't
27019 # use $as_me), people would be surprised to read:
27020 # /* config.h. Generated by config.status. */
27021 configure_input="Generated from "`IFS=:
27022 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27023 if test x"$ac_file" != x-; then
27024 configure_input="$ac_file. $configure_input"
27025 { echo "$as_me:$LINENO: creating $ac_file" >&5
27026 echo "$as_me: creating $ac_file" >&6;}
27029 case $ac_tag in
27030 *:-:* | *:-) cat >"$tmp/stdin";;
27031 esac
27033 esac
27035 ac_dir=`$as_dirname -- "$ac_file" ||
27036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27037 X"$ac_file" : 'X\(//\)[^/]' \| \
27038 X"$ac_file" : 'X\(//\)$' \| \
27039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27040 echo X"$ac_file" |
27041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27042 s//\1/
27045 /^X\(\/\/\)[^/].*/{
27046 s//\1/
27049 /^X\(\/\/\)$/{
27050 s//\1/
27053 /^X\(\/\).*/{
27054 s//\1/
27057 s/.*/./; q'`
27058 { as_dir="$ac_dir"
27059 case $as_dir in #(
27060 -*) as_dir=./$as_dir;;
27061 esac
27062 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27063 as_dirs=
27064 while :; do
27065 case $as_dir in #(
27066 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27067 *) as_qdir=$as_dir;;
27068 esac
27069 as_dirs="'$as_qdir' $as_dirs"
27070 as_dir=`$as_dirname -- "$as_dir" ||
27071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27072 X"$as_dir" : 'X\(//\)[^/]' \| \
27073 X"$as_dir" : 'X\(//\)$' \| \
27074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27075 echo X"$as_dir" |
27076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27077 s//\1/
27080 /^X\(\/\/\)[^/].*/{
27081 s//\1/
27084 /^X\(\/\/\)$/{
27085 s//\1/
27088 /^X\(\/\).*/{
27089 s//\1/
27092 s/.*/./; q'`
27093 test -d "$as_dir" && break
27094 done
27095 test -z "$as_dirs" || eval "mkdir $as_dirs"
27096 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27097 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27098 { (exit 1); exit 1; }; }; }
27099 ac_builddir=.
27101 case "$ac_dir" in
27102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27105 # A ".." for each directory in $ac_dir_suffix.
27106 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27107 case $ac_top_builddir_sub in
27108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27110 esac ;;
27111 esac
27112 ac_abs_top_builddir=$ac_pwd
27113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27114 # for backward compatibility:
27115 ac_top_builddir=$ac_top_build_prefix
27117 case $srcdir in
27118 .) # We are building in place.
27119 ac_srcdir=.
27120 ac_top_srcdir=$ac_top_builddir_sub
27121 ac_abs_top_srcdir=$ac_pwd ;;
27122 [\\/]* | ?:[\\/]* ) # Absolute name.
27123 ac_srcdir=$srcdir$ac_dir_suffix;
27124 ac_top_srcdir=$srcdir
27125 ac_abs_top_srcdir=$srcdir ;;
27126 *) # Relative name.
27127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27128 ac_top_srcdir=$ac_top_build_prefix$srcdir
27129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27130 esac
27131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27134 case $ac_mode in
27137 # CONFIG_FILE
27140 _ACEOF
27142 cat >>$CONFIG_STATUS <<\_ACEOF
27143 # If the template does not know about datarootdir, expand it.
27144 # FIXME: This hack should be removed a few years after 2.60.
27145 ac_datarootdir_hack=; ac_datarootdir_seen=
27147 case `sed -n '/datarootdir/ {
27151 /@datadir@/p
27152 /@docdir@/p
27153 /@infodir@/p
27154 /@localedir@/p
27155 /@mandir@/p
27156 ' $ac_file_inputs` in
27157 *datarootdir*) ac_datarootdir_seen=yes;;
27158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27159 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27160 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27161 _ACEOF
27162 cat >>$CONFIG_STATUS <<_ACEOF
27163 ac_datarootdir_hack='
27164 s&@datadir@&$datadir&g
27165 s&@docdir@&$docdir&g
27166 s&@infodir@&$infodir&g
27167 s&@localedir@&$localedir&g
27168 s&@mandir@&$mandir&g
27169 s&\\\${datarootdir}&$datarootdir&g' ;;
27170 esac
27171 _ACEOF
27173 # Neutralize VPATH when `$srcdir' = `.'.
27174 # Shell code in configure.ac might set extrasub.
27175 # FIXME: do we really want to maintain this feature?
27176 cat >>$CONFIG_STATUS <<_ACEOF
27177 sed "$ac_vpsub
27178 $extrasub
27179 _ACEOF
27180 cat >>$CONFIG_STATUS <<\_ACEOF
27182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27183 s&@configure_input@&$configure_input&;t t
27184 s&@top_builddir@&$ac_top_builddir_sub&;t t
27185 s&@srcdir@&$ac_srcdir&;t t
27186 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27187 s&@top_srcdir@&$ac_top_srcdir&;t t
27188 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27189 s&@builddir@&$ac_builddir&;t t
27190 s&@abs_builddir@&$ac_abs_builddir&;t t
27191 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27192 $ac_datarootdir_hack
27193 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27196 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27198 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27199 which seems to be undefined. Please make sure it is defined." >&5
27200 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27201 which seems to be undefined. Please make sure it is defined." >&2;}
27203 rm -f "$tmp/stdin"
27204 case $ac_file in
27205 -) cat "$tmp/out"; rm -f "$tmp/out";;
27206 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27207 esac
27211 # CONFIG_HEADER
27213 _ACEOF
27215 # Transform confdefs.h into a sed script `conftest.defines', that
27216 # substitutes the proper values into config.h.in to produce config.h.
27217 rm -f conftest.defines conftest.tail
27218 # First, append a space to every undef/define line, to ease matching.
27219 echo 's/$/ /' >conftest.defines
27220 # Then, protect against being on the right side of a sed subst, or in
27221 # an unquoted here document, in config.status. If some macros were
27222 # called several times there might be several #defines for the same
27223 # symbol, which is useless. But do not sort them, since the last
27224 # AC_DEFINE must be honored.
27225 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27226 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27227 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27228 # PARAMS is the parameter list in the macro definition--in most cases, it's
27229 # just an empty string.
27230 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27231 ac_dB='\\)[ (].*,\\1define\\2'
27232 ac_dC=' '
27233 ac_dD=' ,'
27235 uniq confdefs.h |
27236 sed -n '
27237 t rset
27238 :rset
27239 s/^[ ]*#[ ]*define[ ][ ]*//
27240 t ok
27243 s/[\\&,]/\\&/g
27244 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27245 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27246 ' >>conftest.defines
27248 # Remove the space that was appended to ease matching.
27249 # Then replace #undef with comments. This is necessary, for
27250 # example, in the case of _POSIX_SOURCE, which is predefined and required
27251 # on some systems where configure will not decide to define it.
27252 # (The regexp can be short, since the line contains either #define or #undef.)
27253 echo 's/ $//
27254 s,^[ #]*u.*,/* & */,' >>conftest.defines
27256 # Break up conftest.defines:
27257 ac_max_sed_lines=50
27259 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27260 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27261 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27262 # et cetera.
27263 ac_in='$ac_file_inputs'
27264 ac_out='"$tmp/out1"'
27265 ac_nxt='"$tmp/out2"'
27267 while :
27269 # Write a here document:
27270 cat >>$CONFIG_STATUS <<_ACEOF
27271 # First, check the format of the line:
27272 cat >"\$tmp/defines.sed" <<\\CEOF
27273 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27274 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27276 :def
27277 _ACEOF
27278 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27279 echo 'CEOF
27280 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27281 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27282 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27283 grep . conftest.tail >/dev/null || break
27284 rm -f conftest.defines
27285 mv conftest.tail conftest.defines
27286 done
27287 rm -f conftest.defines conftest.tail
27289 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27290 cat >>$CONFIG_STATUS <<\_ACEOF
27291 if test x"$ac_file" != x-; then
27292 echo "/* $configure_input */" >"$tmp/config.h"
27293 cat "$ac_result" >>"$tmp/config.h"
27294 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27295 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27296 echo "$as_me: $ac_file is unchanged" >&6;}
27297 else
27298 rm -f $ac_file
27299 mv "$tmp/config.h" $ac_file
27301 else
27302 echo "/* $configure_input */"
27303 cat "$ac_result"
27305 rm -f "$tmp/out12"
27309 # CONFIG_LINK
27312 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27313 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27315 if test ! -r "$srcdir/$ac_source"; then
27316 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27317 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27318 { (exit 1); exit 1; }; }
27320 rm -f "$ac_file"
27322 # Try a relative symlink, then a hard link, then a copy.
27323 case $srcdir in
27324 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27325 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27326 esac
27327 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27328 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27329 cp -p "$srcdir/$ac_source" "$ac_file" ||
27330 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27331 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27332 { (exit 1); exit 1; }; }
27334 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27335 echo "$as_me: executing $ac_file commands" >&6;}
27337 esac
27340 case $ac_file$ac_mode in
27341 "check_win32_symlinks":C)
27342 # Links sometimes fail undetected on Mingw -
27343 # so here we detect it and warn the user
27344 for FILE in $CONFIG_LINKS
27346 # test -e works for symlinks in the MinGW console
27347 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27348 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27349 done
27351 "src/include/pg_config.h":H)
27352 # Update timestamp for pg_config.h (see Makefile.global)
27353 echo >src/include/stamp-h
27356 esac
27357 done # for ac_tag
27360 { (exit 0); exit 0; }
27361 _ACEOF
27362 chmod +x $CONFIG_STATUS
27363 ac_clean_files=$ac_clean_files_save
27366 # configure is writing to config.log, and then calls config.status.
27367 # config.status does its own redirection, appending to config.log.
27368 # Unfortunately, on DOS this fails, as config.log is still kept open
27369 # by configure, so config.status won't be able to write to it; its
27370 # output is simply discarded. So we exec the FD to /dev/null,
27371 # effectively closing config.log, so it can be properly (re)opened and
27372 # appended to by config.status. When coming back to configure, we
27373 # need to make the FD available again.
27374 if test "$no_create" != yes; then
27375 ac_cs_success=:
27376 ac_config_status_args=
27377 test "$silent" = yes &&
27378 ac_config_status_args="$ac_config_status_args --quiet"
27379 exec 5>/dev/null
27380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27381 exec 5>>config.log
27382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27383 # would make configure fail if this is the last instruction.
27384 $ac_cs_success || { (exit 1); exit 1; }
27388 # Warn about unknown options
27389 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27390 for pgac_arg in $pgac_args with_gnu_ld; do
27391 if test "$pgac_var" = "$pgac_arg"; then
27392 continue 2
27394 done
27395 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27396 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27397 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27398 done