]> granicus.if.org Git - postgresql/blob - configure
Fix a couple of snapshot management bugs in the new ResourceOwner world:
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
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.
11 #
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
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
30
31 fi
32
33
34
35
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
43
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=:
53   fi
54   rm -f conf$$.sh
55 fi
56
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
62 fi
63
64
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='
71 '
72 IFS=" ""        $as_nl"
73
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
79 do
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
85
86      ;;
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
92 fi
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; }
96 fi
97
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='+ '
105
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
111 do
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
116   fi
117 done
118
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
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
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/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
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
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
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
222   :
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
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
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
238
239
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
255
256 fi
257
258
259 :
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
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
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; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
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+"$@"}
352 fi
353
354
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; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
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
423 }
424
425
426
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" || {
431
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 '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
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; }; }
460
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
467 }
468
469
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
474 fi
475
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;;
483 *)
484   ECHO_N='-n';;
485 esac
486
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
492 fi
493
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
500 fi
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'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
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
523 fi
524
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=
532   fi
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
544   '
545 fi
546 as_executable_p=$as_test_x
547
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'"
550
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'"
553
554
555
556 exec 7<&0 </dev/null 6>&1
557
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`
562
563 #
564 # Initializations.
565 #
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}
575
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'
582
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"
620
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
682 CC
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 SUN_STUDIO_CC
690 CPP
691 GCC
692 TAS
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
716 LD
717 with_gnu_ld
718 ld_R_works
719 RANLIB
720 STRIP
721 STRIP_STATIC_LIB
722 STRIP_SHARED_LIB
723 TAR
724 LN_S
725 AWK
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 DOCBOOK2MAN
770 vpath_build
771 LTLIBOBJS'
772 ac_subst_files=''
773       ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 CPP
782 LDFLAGS_SL
783 DOCBOOKSTYLE'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836   # If the previous option needs an argument, assign it.
837   if test -n "$ac_prev"; then
838     eval $ac_prev=\$ac_option
839     ac_prev=
840     continue
841   fi
842
843   case $ac_option in
844   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
890       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
891    { (exit 1); exit 1; }; }
892     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
893     eval enable_$ac_feature=no ;;
894
895   -docdir | --docdir | --docdi | --doc | --do)
896     ac_prev=docdir ;;
897   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898     docdir=$ac_optarg ;;
899
900   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901     ac_prev=dvidir ;;
902   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903     dvidir=$ac_optarg ;;
904
905   -enable-* | --enable-*)
906     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910    { (exit 1); exit 1; }; }
911     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
912     eval enable_$ac_feature=\$ac_optarg ;;
913
914   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916   | --exec | --exe | --ex)
917     ac_prev=exec_prefix ;;
918   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920   | --exec=* | --exe=* | --ex=*)
921     exec_prefix=$ac_optarg ;;
922
923   -gas | --gas | --ga | --g)
924     # Obsolete; use --with-gas.
925     with_gas=yes ;;
926
927   -help | --help | --hel | --he | -h)
928     ac_init_help=long ;;
929   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930     ac_init_help=recursive ;;
931   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932     ac_init_help=short ;;
933
934   -host | --host | --hos | --ho)
935     ac_prev=host_alias ;;
936   -host=* | --host=* | --hos=* | --ho=*)
937     host_alias=$ac_optarg ;;
938
939   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940     ac_prev=htmldir ;;
941   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942   | --ht=*)
943     htmldir=$ac_optarg ;;
944
945   -includedir | --includedir | --includedi | --included | --include \
946   | --includ | --inclu | --incl | --inc)
947     ac_prev=includedir ;;
948   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949   | --includ=* | --inclu=* | --incl=* | --inc=*)
950     includedir=$ac_optarg ;;
951
952   -infodir | --infodir | --infodi | --infod | --info | --inf)
953     ac_prev=infodir ;;
954   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955     infodir=$ac_optarg ;;
956
957   -libdir | --libdir | --libdi | --libd)
958     ac_prev=libdir ;;
959   -libdir=* | --libdir=* | --libdi=* | --libd=*)
960     libdir=$ac_optarg ;;
961
962   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963   | --libexe | --libex | --libe)
964     ac_prev=libexecdir ;;
965   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966   | --libexe=* | --libex=* | --libe=*)
967     libexecdir=$ac_optarg ;;
968
969   -localedir | --localedir | --localedi | --localed | --locale)
970     ac_prev=localedir ;;
971   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972     localedir=$ac_optarg ;;
973
974   -localstatedir | --localstatedir | --localstatedi | --localstated \
975   | --localstate | --localstat | --localsta | --localst | --locals)
976     ac_prev=localstatedir ;;
977   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979     localstatedir=$ac_optarg ;;
980
981   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982     ac_prev=mandir ;;
983   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984     mandir=$ac_optarg ;;
985
986   -nfp | --nfp | --nf)
987     # Obsolete; use --without-fp.
988     with_fp=no ;;
989
990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991   | --no-cr | --no-c | -n)
992     no_create=yes ;;
993
994   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996     no_recursion=yes ;;
997
998   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000   | --oldin | --oldi | --old | --ol | --o)
1001     ac_prev=oldincludedir ;;
1002   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005     oldincludedir=$ac_optarg ;;
1006
1007   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008     ac_prev=prefix ;;
1009   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010     prefix=$ac_optarg ;;
1011
1012   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013   | --program-pre | --program-pr | --program-p)
1014     ac_prev=program_prefix ;;
1015   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017     program_prefix=$ac_optarg ;;
1018
1019   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020   | --program-suf | --program-su | --program-s)
1021     ac_prev=program_suffix ;;
1022   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024     program_suffix=$ac_optarg ;;
1025
1026   -program-transform-name | --program-transform-name \
1027   | --program-transform-nam | --program-transform-na \
1028   | --program-transform-n | --program-transform- \
1029   | --program-transform | --program-transfor \
1030   | --program-transfo | --program-transf \
1031   | --program-trans | --program-tran \
1032   | --progr-tra | --program-tr | --program-t)
1033     ac_prev=program_transform_name ;;
1034   -program-transform-name=* | --program-transform-name=* \
1035   | --program-transform-nam=* | --program-transform-na=* \
1036   | --program-transform-n=* | --program-transform-=* \
1037   | --program-transform=* | --program-transfor=* \
1038   | --program-transfo=* | --program-transf=* \
1039   | --program-trans=* | --program-tran=* \
1040   | --progr-tra=* | --program-tr=* | --program-t=*)
1041     program_transform_name=$ac_optarg ;;
1042
1043   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044     ac_prev=pdfdir ;;
1045   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046     pdfdir=$ac_optarg ;;
1047
1048   -psdir | --psdir | --psdi | --psd | --ps)
1049     ac_prev=psdir ;;
1050   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051     psdir=$ac_optarg ;;
1052
1053   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054   | -silent | --silent | --silen | --sile | --sil)
1055     silent=yes ;;
1056
1057   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058     ac_prev=sbindir ;;
1059   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060   | --sbi=* | --sb=*)
1061     sbindir=$ac_optarg ;;
1062
1063   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065   | --sharedst | --shareds | --shared | --share | --shar \
1066   | --sha | --sh)
1067     ac_prev=sharedstatedir ;;
1068   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071   | --sha=* | --sh=*)
1072     sharedstatedir=$ac_optarg ;;
1073
1074   -site | --site | --sit)
1075     ac_prev=site ;;
1076   -site=* | --site=* | --sit=*)
1077     site=$ac_optarg ;;
1078
1079   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080     ac_prev=srcdir ;;
1081   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082     srcdir=$ac_optarg ;;
1083
1084   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085   | --syscon | --sysco | --sysc | --sys | --sy)
1086     ac_prev=sysconfdir ;;
1087   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089     sysconfdir=$ac_optarg ;;
1090
1091   -target | --target | --targe | --targ | --tar | --ta | --t)
1092     ac_prev=target_alias ;;
1093   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094     target_alias=$ac_optarg ;;
1095
1096   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097     verbose=yes ;;
1098
1099   -version | --version | --versio | --versi | --vers | -V)
1100     ac_init_version=: ;;
1101
1102   -with-* | --with-*)
1103     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106       { echo "$as_me: error: invalid package name: $ac_package" >&2
1107    { (exit 1); exit 1; }; }
1108     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1109     eval with_$ac_package=\$ac_optarg ;;
1110
1111   -without-* | --without-*)
1112     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118     eval with_$ac_package=no ;;
1119
1120   --x)
1121     # Obsolete; use --with-x.
1122     with_x=yes ;;
1123
1124   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125   | --x-incl | --x-inc | --x-in | --x-i)
1126     ac_prev=x_includes ;;
1127   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129     x_includes=$ac_optarg ;;
1130
1131   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133     ac_prev=x_libraries ;;
1134   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136     x_libraries=$ac_optarg ;;
1137
1138   -*) { echo "$as_me: error: unrecognized option: $ac_option
1139 Try \`$0 --help' for more information." >&2
1140    { (exit 1); exit 1; }; }
1141     ;;
1142
1143   *=*)
1144     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1148    { (exit 1); exit 1; }; }
1149     eval $ac_envvar=\$ac_optarg
1150     export $ac_envvar ;;
1151
1152   *)
1153     # FIXME: should be removed in autoconf 3.0.
1154     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158     ;;
1159
1160   esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165   { echo "$as_me: error: missing argument to $ac_option" >&2
1166    { (exit 1); exit 1; }; }
1167 fi
1168
1169 # Be sure to have absolute directory names.
1170 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171                 datadir sysconfdir sharedstatedir localstatedir includedir \
1172                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173                 libdir localedir mandir
1174 do
1175   eval ac_val=\$$ac_var
1176   case $ac_val in
1177     [\\/$]* | ?:[\\/]* )  continue;;
1178     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179   esac
1180   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1181    { (exit 1); exit 1; }; }
1182 done
1183
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1190
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193   if test "x$build_alias" = x; then
1194     cross_compiling=maybe
1195     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196     If a cross compiler is detected then cross compile mode will be used." >&2
1197   elif test "x$build_alias" != "x$host_alias"; then
1198     cross_compiling=yes
1199   fi
1200 fi
1201
1202 ac_tool_prefix=
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204
1205 test "$silent" = yes && exec 6>/dev/null
1206
1207
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211   { echo "$as_me: error: Working directory cannot be determined" >&2
1212    { (exit 1); exit 1; }; }
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214   { echo "$as_me: error: pwd does not report name of working directory" >&2
1215    { (exit 1); exit 1; }; }
1216
1217
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220   ac_srcdir_defaulted=yes
1221   # Try the directory containing this script, then the parent directory.
1222   ac_confdir=`$as_dirname -- "$0" ||
1223 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224          X"$0" : 'X\(//\)[^/]' \| \
1225          X"$0" : 'X\(//\)$' \| \
1226          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 echo X"$0" |
1228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229             s//\1/
1230             q
1231           }
1232           /^X\(\/\/\)[^/].*/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\).*/{
1241             s//\1/
1242             q
1243           }
1244           s/.*/./; q'`
1245   srcdir=$ac_confdir
1246   if test ! -r "$srcdir/$ac_unique_file"; then
1247     srcdir=..
1248   fi
1249 else
1250   ac_srcdir_defaulted=no
1251 fi
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1255    { (exit 1); exit 1; }; }
1256 fi
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 ac_abs_confdir=`(
1259         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1260    { (exit 1); exit 1; }; }
1261         pwd)`
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264   srcdir=.
1265 fi
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1269 case $srcdir in
1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 esac
1272 for ac_var in $ac_precious_vars; do
1273   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274   eval ac_env_${ac_var}_value=\$${ac_var}
1275   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 done
1278
1279 #
1280 # Report the --help message.
1281 #
1282 if test "$ac_init_help" = "long"; then
1283   # Omit some internal or obsolete options to make the list less imposing.
1284   # This message is too long to be a string in the A/UX 3.1 sh.
1285   cat <<_ACEOF
1286 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1287
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1289
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE.  See below for descriptions of some of the useful variables.
1292
1293 Defaults for the options are specified in brackets.
1294
1295 Configuration:
1296   -h, --help              display this help and exit
1297       --help=short        display options specific to this package
1298       --help=recursive    display the short help of all the included packages
1299   -V, --version           display version information and exit
1300   -q, --quiet, --silent   do not print \`checking...' messages
1301       --cache-file=FILE   cache test results in FILE [disabled]
1302   -C, --config-cache      alias for \`--cache-file=config.cache'
1303   -n, --no-create         do not create output files
1304       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1305
1306 Installation directories:
1307   --prefix=PREFIX         install architecture-independent files in PREFIX
1308                           [$ac_default_prefix]
1309   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1310                           [PREFIX]
1311
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1316
1317 For better control, use the options below.
1318
1319 Fine tuning of the installation directories:
1320   --bindir=DIR           user executables [EPREFIX/bin]
1321   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1322   --libexecdir=DIR       program executables [EPREFIX/libexec]
1323   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1324   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1325   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1326   --libdir=DIR           object code libraries [EPREFIX/lib]
1327   --includedir=DIR       C header files [PREFIX/include]
1328   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1329   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1330   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1331   --infodir=DIR          info documentation [DATAROOTDIR/info]
1332   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1333   --mandir=DIR           man documentation [DATAROOTDIR/man]
1334   --docdir=DIR           documentation root [DATAROOTDIR/doc/postgresql]
1335   --htmldir=DIR          html documentation [DOCDIR]
1336   --dvidir=DIR           dvi documentation [DOCDIR]
1337   --pdfdir=DIR           pdf documentation [DOCDIR]
1338   --psdir=DIR            ps documentation [DOCDIR]
1339 _ACEOF
1340
1341   cat <<\_ACEOF
1342
1343 System types:
1344   --build=BUILD     configure for building on BUILD [guessed]
1345   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1346 _ACEOF
1347 fi
1348
1349 if test -n "$ac_init_help"; then
1350   case $ac_init_help in
1351      short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1352    esac
1353   cat <<\_ACEOF
1354
1355 Optional Features:
1356   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358   --disable-integer-datetimes
1359                           disable 64-bit integer date/time support
1360   --enable-nls[=LANGUAGES]
1361                           enable Native Language Support
1362   --disable-shared        do not build shared libraries
1363   --disable-rpath         do not embed shared library search path in
1364                           executables
1365   --disable-spinlocks     do not use spinlocks
1366   --enable-debug          build with debugging symbols (-g)
1367   --enable-profiling      build with profiling enabled
1368   --enable-coverage       build with coverage testing instrumentation
1369   --enable-dtrace         build with DTrace support
1370   --enable-depend         turn on automatic dependency tracking
1371   --enable-cassert        enable assertion checks (for debugging)
1372   --enable-thread-safety  make client libraries thread-safe
1373   --enable-thread-safety-force
1374                           force thread-safety despite thread test failure
1375   --disable-float4-byval  disable float4 passed by value
1376   --disable-float8-byval  disable float8 passed by value
1377   --disable-largefile     omit support for large files
1378
1379 Optional Packages:
1380   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1381   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1382   --with-template=NAME    override operating system template
1383   --with-includes=DIRS    look for additional header files in DIRS
1384   --with-libraries=DIRS   look for additional libraries in DIRS
1385   --with-libs=DIRS        alternative spelling of --with-libraries
1386   --with-pgport=PORTNUM   set default port number [5432]
1387   --with-blocksize=BLOCKSIZE
1388                           set table block size in kB [8]
1389   --with-segsize=SEGSIZE  set table segment size in GB [1]
1390   --with-wal-blocksize=BLOCKSIZE
1391                           set WAL block size in kB [8]
1392   --with-wal-segsize=SEGSIZE
1393                           set WAL segment size in MB [16]
1394   --with-CC=CMD           set compiler (deprecated)
1395   --with-tcl              build Tcl modules (PL/Tcl)
1396   --with-tclconfig=DIR    tclConfig.sh is in DIR
1397   --with-perl             build Perl modules (PL/Perl)
1398   --with-python           build Python modules (PL/Python)
1399   --with-gssapi           build with GSSAPI support
1400   --with-krb5             build with Kerberos 5 support
1401   --with-krb-srvnam=NAME  default service principal name in Kerberos
1402                           [postgres]
1403   --with-pam              build with PAM support
1404   --with-ldap             build with LDAP support
1405   --with-bonjour          build with Bonjour support
1406   --with-openssl          build with OpenSSL support
1407   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1408   --with-libedit-preferred
1409                           prefer BSD Libedit over GNU Readline
1410   --with-ossp-uuid        use OSSP UUID library when building
1411                           contrib/uuid-ossp
1412   --with-libxml           build with XML support
1413   --with-libxslt          use XSLT support when building contrib/xml2
1414   --with-system-tzdata=DIR
1415                           use system time zone data in DIR
1416   --without-zlib          do not use Zlib
1417   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1418
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   CPP         C preprocessor
1428   LDFLAGS_SL
1429   DOCBOOKSTYLE
1430               location of DocBook stylesheets
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <pgsql-bugs@postgresql.org>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441   # If there are subdirs, report their specific --help.
1442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443     test -d "$ac_dir" || continue
1444     ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1450   # A ".." for each directory in $ac_dir_suffix.
1451   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1452   case $ac_top_builddir_sub in
1453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455   esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463   .)  # We are building in place.
1464     ac_srcdir=.
1465     ac_top_srcdir=$ac_top_builddir_sub
1466     ac_abs_top_srcdir=$ac_pwd ;;
1467   [\\/]* | ?:[\\/]* )  # Absolute name.
1468     ac_srcdir=$srcdir$ac_dir_suffix;
1469     ac_top_srcdir=$srcdir
1470     ac_abs_top_srcdir=$srcdir ;;
1471   *) # Relative name.
1472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473     ac_top_srcdir=$ac_top_build_prefix$srcdir
1474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478     cd "$ac_dir" || { ac_status=$?; continue; }
1479     # Check for guested configure.
1480     if test -f "$ac_srcdir/configure.gnu"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483     elif test -f "$ac_srcdir/configure"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure" --help=recursive
1486     else
1487       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488     fi || ac_status=$?
1489     cd "$ac_pwd" || { ac_status=$?; break; }
1490   done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495   cat <<\_ACEOF
1496 PostgreSQL configure 8.4devel
1497 generated by GNU Autoconf 2.61
1498
1499 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503
1504 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1505 _ACEOF
1506   exit
1507 fi
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1511
1512 It was created by PostgreSQL $as_me 8.4devel, which was
1513 generated by GNU Autoconf 2.61.  Invocation command line was
1514
1515   $ $0 $@
1516
1517 _ACEOF
1518 exec 5>>config.log
1519 {
1520 cat <<_ASUNAME
1521 ## --------- ##
1522 ## Platform. ##
1523 ## --------- ##
1524
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1533
1534 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1535 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1538 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1539 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1540 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1541
1542 _ASUNAME
1543
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1546 do
1547   IFS=$as_save_IFS
1548   test -z "$as_dir" && as_dir=.
1549   echo "PATH: $as_dir"
1550 done
1551 IFS=$as_save_IFS
1552
1553 } >&5
1554
1555 cat >&5 <<_ACEOF
1556
1557
1558 ## ----------- ##
1559 ## Core tests. ##
1560 ## ----------- ##
1561
1562 _ACEOF
1563
1564
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_configure_args=
1571 ac_configure_args0=
1572 ac_configure_args1=
1573 ac_must_keep_next=false
1574 for ac_pass in 1 2
1575 do
1576   for ac_arg
1577   do
1578     case $ac_arg in
1579     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581     | -silent | --silent | --silen | --sile | --sil)
1582       continue ;;
1583     *\'*)
1584       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585     esac
1586     case $ac_pass in
1587     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588     2)
1589       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590       if test $ac_must_keep_next = true; then
1591         ac_must_keep_next=false # Got value, back to normal.
1592       else
1593         case $ac_arg in
1594           *=* | --config-cache | -C | -disable-* | --disable-* \
1595           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597           | -with-* | --with-* | -without-* | --without-* | --x)
1598             case "$ac_configure_args0 " in
1599               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600             esac
1601             ;;
1602           -* ) ac_must_keep_next=true ;;
1603         esac
1604       fi
1605       ac_configure_args="$ac_configure_args '$ac_arg'"
1606       ;;
1607     esac
1608   done
1609 done
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log.  We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619   # Save into config.log some information that might help in debugging.
1620   {
1621     echo
1622
1623     cat <<\_ASBOX
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1627 _ASBOX
1628     echo
1629     # The following way of writing the cache mishandles newlines in values,
1630 (
1631   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632     eval ac_val=\$$ac_var
1633     case $ac_val in #(
1634     *${as_nl}*)
1635       case $ac_var in #(
1636       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1638       esac
1639       case $ac_var in #(
1640       _ | IFS | as_nl) ;; #(
1641       *) $as_unset $ac_var ;;
1642       esac ;;
1643     esac
1644   done
1645   (set) 2>&1 |
1646     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647     *${as_nl}ac_space=\ *)
1648       sed -n \
1649         "s/'\''/'\''\\\\'\'''\''/g;
1650           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651       ;; #(
1652     *)
1653       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1654       ;;
1655     esac |
1656     sort
1657 )
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1664 _ASBOX
1665     echo
1666     for ac_var in $ac_subst_vars
1667     do
1668       eval ac_val=\$$ac_var
1669       case $ac_val in
1670       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671       esac
1672       echo "$ac_var='\''$ac_val'\''"
1673     done | sort
1674     echo
1675
1676     if test -n "$ac_subst_files"; then
1677       cat <<\_ASBOX
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1681 _ASBOX
1682       echo
1683       for ac_var in $ac_subst_files
1684       do
1685         eval ac_val=\$$ac_var
1686         case $ac_val in
1687         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688         esac
1689         echo "$ac_var='\''$ac_val'\''"
1690       done | sort
1691       echo
1692     fi
1693
1694     if test -s confdefs.h; then
1695       cat <<\_ASBOX
1696 ## ----------- ##
1697 ## confdefs.h. ##
1698 ## ----------- ##
1699 _ASBOX
1700       echo
1701       cat confdefs.h
1702       echo
1703     fi
1704     test "$ac_signal" != 0 &&
1705       echo "$as_me: caught signal $ac_signal"
1706     echo "$as_me: exit $exit_status"
1707   } >&5
1708   rm -f core *.core core.conftest.* &&
1709     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1710     exit $exit_status
1711 ' 0
1712 for ac_signal in 1 2 13 15; do
1713   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 done
1715 ac_signal=0
1716
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1719
1720 # Predefined preprocessor variables.
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 _ACEOF
1730
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 _ACEOF
1735
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 _ACEOF
1740
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 _ACEOF
1745
1746
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750   set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 else
1754   set x "$ac_default_prefix/share/config.site" \
1755         "$ac_default_prefix/etc/config.site"
1756 fi
1757 shift
1758 for ac_site_file
1759 do
1760   if test -r "$ac_site_file"; then
1761     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763     sed 's/^/| /' "$ac_site_file" >&5
1764     . "$ac_site_file"
1765   fi
1766 done
1767
1768 if test -r "$cache_file"; then
1769   # Some versions of bash will fail to source /dev/null (special
1770   # files actually), so we avoid doing that.
1771   if test -f "$cache_file"; then
1772     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1774     case $cache_file in
1775       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776       *)                      . "./$cache_file";;
1777     esac
1778   fi
1779 else
1780   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1782   >$cache_file
1783 fi
1784
1785 # Check that the precious variables saved in the cache have kept the same
1786 # value.
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790   eval ac_new_set=\$ac_env_${ac_var}_set
1791   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792   eval ac_new_val=\$ac_env_${ac_var}_value
1793   case $ac_old_set,$ac_new_set in
1794     set,)
1795       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797       ac_cache_corrupted=: ;;
1798     ,set)
1799       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801       ac_cache_corrupted=: ;;
1802     ,);;
1803     *)
1804       if test "x$ac_old_val" != "x$ac_new_val"; then
1805         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1808 echo "$as_me:   former value:  $ac_old_val" >&2;}
1809         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1810 echo "$as_me:   current value: $ac_new_val" >&2;}
1811         ac_cache_corrupted=:
1812       fi;;
1813   esac
1814   # Pass precious variables to config.status.
1815   if test "$ac_new_set" = set; then
1816     case $ac_new_val in
1817     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818     *) ac_arg=$ac_var=$ac_new_val ;;
1819     esac
1820     case " $ac_configure_args " in
1821       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1822       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823     esac
1824   fi
1825 done
1826 if $ac_cache_corrupted; then
1827   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858 ac_ext=c
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863
1864
1865
1866
1867
1868
1869 ac_aux_dir=
1870 for ac_dir in config "$srcdir"/config; do
1871   if test -f "$ac_dir/install-sh"; then
1872     ac_aux_dir=$ac_dir
1873     ac_install_sh="$ac_aux_dir/install-sh -c"
1874     break
1875   elif test -f "$ac_dir/install.sh"; then
1876     ac_aux_dir=$ac_dir
1877     ac_install_sh="$ac_aux_dir/install.sh -c"
1878     break
1879   elif test -f "$ac_dir/shtool"; then
1880     ac_aux_dir=$ac_dir
1881     ac_install_sh="$ac_aux_dir/shtool install -c"
1882     break
1883   fi
1884 done
1885 if test -z "$ac_aux_dir"; then
1886   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1887 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 # These three variables are undocumented and unsupported,
1892 # and are intended to be withdrawn in a future Autoconf release.
1893 # They can cause serious problems if a builder's source tree is in a directory
1894 # whose full name contains unusual characters.
1895 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1896 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1897 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1898
1899
1900
1901 configure_args=$ac_configure_args
1902
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PG_VERSION "$PACKAGE_VERSION"
1907 _ACEOF
1908
1909
1910 # Make sure we can run config.sub.
1911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1912   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1913 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1914    { (exit 1); exit 1; }; }
1915
1916 { echo "$as_me:$LINENO: checking build system type" >&5
1917 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1918 if test "${ac_cv_build+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   ac_build_alias=$build_alias
1922 test "x$ac_build_alias" = x &&
1923   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1924 test "x$ac_build_alias" = x &&
1925   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1926 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1927    { (exit 1); exit 1; }; }
1928 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1929   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1930 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1931    { (exit 1); exit 1; }; }
1932
1933 fi
1934 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1935 echo "${ECHO_T}$ac_cv_build" >&6; }
1936 case $ac_cv_build in
1937 *-*-*) ;;
1938 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1939 echo "$as_me: error: invalid value of canonical build" >&2;}
1940    { (exit 1); exit 1; }; };;
1941 esac
1942 build=$ac_cv_build
1943 ac_save_IFS=$IFS; IFS='-'
1944 set x $ac_cv_build
1945 shift
1946 build_cpu=$1
1947 build_vendor=$2
1948 shift; shift
1949 # Remember, the first character of IFS is used to create $*,
1950 # except with old shells:
1951 build_os=$*
1952 IFS=$ac_save_IFS
1953 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1954
1955
1956 { echo "$as_me:$LINENO: checking host system type" >&5
1957 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1958 if test "${ac_cv_host+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test "x$host_alias" = x; then
1962   ac_cv_host=$ac_cv_build
1963 else
1964   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1965     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1966 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 fi
1971 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972 echo "${ECHO_T}$ac_cv_host" >&6; }
1973 case $ac_cv_host in
1974 *-*-*) ;;
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1976 echo "$as_me: error: invalid value of canonical host" >&2;}
1977    { (exit 1); exit 1; }; };;
1978 esac
1979 host=$ac_cv_host
1980 ac_save_IFS=$IFS; IFS='-'
1981 set x $ac_cv_host
1982 shift
1983 host_cpu=$1
1984 host_vendor=$2
1985 shift; shift
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1988 host_os=$*
1989 IFS=$ac_save_IFS
1990 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1991
1992
1993
1994 template=
1995 { echo "$as_me:$LINENO: checking which template to use" >&5
1996 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1997
1998
1999 pgac_args="$pgac_args with_template"
2000
2001
2002 # Check whether --with-template was given.
2003 if test "${with_template+set}" = set; then
2004   withval=$with_template;
2005   case $withval in
2006     yes)
2007       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2008 echo "$as_me: error: argument required for --with-template option" >&2;}
2009    { (exit 1); exit 1; }; }
2010       ;;
2011     no)
2012       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2013 echo "$as_me: error: argument required for --with-template option" >&2;}
2014    { (exit 1); exit 1; }; }
2015       ;;
2016     *)
2017
2018   case $withval in
2019     list)   echo; ls "$srcdir/src/template"; exit;;
2020     *)      if test -f "$srcdir/src/template/$with_template" ; then
2021               template=$withval
2022             else
2023               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2024 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2025    { (exit 1); exit 1; }; }
2026             fi;;
2027   esac
2028
2029       ;;
2030   esac
2031
2032 else
2033
2034 # --with-template not given
2035
2036 case $host_os in
2037      aix*) template=aix ;;
2038     bsdi*) template=bsdi ;;
2039   cygwin*) template=cygwin ;;
2040   darwin*) template=darwin ;;
2041     dgux*) template=dgux ;;
2042  freebsd*) template=freebsd ;;
2043     hpux*) template=hpux ;;
2044     irix*) template=irix ;;
2045  linux*|gnu*|k*bsd*-gnu)
2046            template=linux ;;
2047    mingw*) template=win32 ;;
2048   netbsd*) template=netbsd ;;
2049 nextstep*) template=nextstep ;;
2050  openbsd*) template=openbsd ;;
2051      osf*) template=osf ;;
2052      sco*) template=sco ;;
2053  solaris*) template=solaris ;;
2054    sunos*) template=sunos4 ;;
2055  sysv4.2*)
2056         case $host_vendor in
2057           univel) template=univel ;;
2058         esac ;;
2059    sysv4*) template=svr4 ;;
2060    sysv5*) template=unixware ;;
2061   ultrix*) template=ultrix4 ;;
2062 esac
2063
2064   if test x"$template" = x"" ; then
2065     { { echo "$as_me:$LINENO: error:
2066 *******************************************************************
2067 PostgreSQL has apparently not been ported to your platform yet.
2068 To try a manual configuration, look into the src/template directory
2069 for a similar platform and use the '--with-template=' option.
2070
2071 Please also contact <pgsql-ports@postgresql.org> to see about
2072 rectifying this.  Include the above 'checking host system type...'
2073 line.
2074 *******************************************************************
2075 " >&5
2076 echo "$as_me: error:
2077 *******************************************************************
2078 PostgreSQL has apparently not been ported to your platform yet.
2079 To try a manual configuration, look into the src/template directory
2080 for a similar platform and use the '--with-template=' option.
2081
2082 Please also contact <pgsql-ports@postgresql.org> to see about
2083 rectifying this.  Include the above 'checking host system type...'
2084 line.
2085 *******************************************************************
2086 " >&2;}
2087    { (exit 1); exit 1; }; }
2088   fi
2089
2090
2091 fi
2092
2093
2094
2095 { echo "$as_me:$LINENO: result: $template" >&5
2096 echo "${ECHO_T}$template" >&6; }
2097
2098 PORTNAME=$template
2099
2100
2101 # Initialize default assumption that we do not need separate assembly code
2102 # for TAS (test-and-set).  This can be overridden by the template file
2103 # when it's executed.
2104 need_tas=no
2105 tas_file=dummy.s
2106
2107
2108
2109 ##
2110 ## Command line options
2111 ##
2112
2113 #
2114 # Add non-standard directories to the include path
2115 #
2116
2117 pgac_args="$pgac_args with_includes"
2118
2119
2120 # Check whether --with-includes was given.
2121 if test "${with_includes+set}" = set; then
2122   withval=$with_includes;
2123   case $withval in
2124     yes)
2125       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2126 echo "$as_me: error: argument required for --with-includes option" >&2;}
2127    { (exit 1); exit 1; }; }
2128       ;;
2129     no)
2130       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2131 echo "$as_me: error: argument required for --with-includes option" >&2;}
2132    { (exit 1); exit 1; }; }
2133       ;;
2134     *)
2135
2136       ;;
2137   esac
2138
2139 fi
2140
2141
2142
2143
2144 #
2145 # Add non-standard directories to the library search path
2146 #
2147
2148 pgac_args="$pgac_args with_libraries"
2149
2150
2151 # Check whether --with-libraries was given.
2152 if test "${with_libraries+set}" = set; then
2153   withval=$with_libraries;
2154   case $withval in
2155     yes)
2156       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2157 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2158    { (exit 1); exit 1; }; }
2159       ;;
2160     no)
2161       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2162 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2163    { (exit 1); exit 1; }; }
2164       ;;
2165     *)
2166       LIBRARY_DIRS=$withval
2167       ;;
2168   esac
2169
2170 fi
2171
2172
2173
2174
2175 pgac_args="$pgac_args with_libs"
2176
2177
2178 # Check whether --with-libs was given.
2179 if test "${with_libs+set}" = set; then
2180   withval=$with_libs;
2181   case $withval in
2182     yes)
2183       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2184 echo "$as_me: error: argument required for --with-libs option" >&2;}
2185    { (exit 1); exit 1; }; }
2186       ;;
2187     no)
2188       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2189 echo "$as_me: error: argument required for --with-libs option" >&2;}
2190    { (exit 1); exit 1; }; }
2191       ;;
2192     *)
2193       LIBRARY_DIRS=$withval
2194       ;;
2195   esac
2196
2197 fi
2198
2199
2200
2201
2202 #
2203 # 64-bit integer date/time storage: enabled by default.
2204 #
2205 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2206 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2207
2208 pgac_args="$pgac_args enable_integer_datetimes"
2209
2210 # Check whether --enable-integer-datetimes was given.
2211 if test "${enable_integer_datetimes+set}" = set; then
2212   enableval=$enable_integer_datetimes;
2213   case $enableval in
2214     yes)
2215
2216 cat >>confdefs.h <<\_ACEOF
2217 #define USE_INTEGER_DATETIMES 1
2218 _ACEOF
2219
2220       ;;
2221     no)
2222       :
2223       ;;
2224     *)
2225       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2226 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2227    { (exit 1); exit 1; }; }
2228       ;;
2229   esac
2230
2231 else
2232   enable_integer_datetimes=yes
2233
2234 cat >>confdefs.h <<\_ACEOF
2235 #define USE_INTEGER_DATETIMES 1
2236 _ACEOF
2237
2238 fi
2239
2240
2241 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2242 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2243
2244
2245 #
2246 # NLS
2247 #
2248 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2249 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2250
2251 pgac_args="$pgac_args enable_nls"
2252
2253 # Check whether --enable-nls was given.
2254 if test "${enable_nls+set}" = set; then
2255   enableval=$enable_nls;
2256   case $enableval in
2257     yes)
2258       :
2259       ;;
2260     no)
2261       :
2262       ;;
2263     *)
2264       enable_nls=yes
2265 WANTED_LANGUAGES=$enableval
2266       ;;
2267   esac
2268
2269 else
2270   enable_nls=no
2271 fi
2272
2273
2274
2275 if test "$enable_nls" = yes; then
2276
2277 cat >>confdefs.h <<\_ACEOF
2278 #define ENABLE_NLS 1
2279 _ACEOF
2280
2281 fi
2282
2283 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2284 echo "${ECHO_T}$enable_nls" >&6; }
2285
2286
2287
2288 #
2289 # Default port number (--with-pgport), default 5432
2290 #
2291 { echo "$as_me:$LINENO: checking for default port number" >&5
2292 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2293
2294 pgac_args="$pgac_args with_pgport"
2295
2296
2297 # Check whether --with-pgport was given.
2298 if test "${with_pgport+set}" = set; then
2299   withval=$with_pgport;
2300   case $withval in
2301     yes)
2302       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2303 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2304    { (exit 1); exit 1; }; }
2305       ;;
2306     no)
2307       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2308 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2309    { (exit 1); exit 1; }; }
2310       ;;
2311     *)
2312       default_port=$withval
2313       ;;
2314   esac
2315
2316 else
2317   default_port=5432
2318 fi
2319
2320
2321 { echo "$as_me:$LINENO: result: $default_port" >&5
2322 echo "${ECHO_T}$default_port" >&6; }
2323 # Need both of these because some places want an integer and some a string
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define DEF_PGPORT ${default_port}
2327 _ACEOF
2328
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define DEF_PGPORT_STR "${default_port}"
2332 _ACEOF
2333
2334
2335
2336 #
2337 # Option to disable shared libraries
2338 #
2339
2340 pgac_args="$pgac_args enable_shared"
2341
2342 # Check whether --enable-shared was given.
2343 if test "${enable_shared+set}" = set; then
2344   enableval=$enable_shared;
2345   case $enableval in
2346     yes)
2347       :
2348       ;;
2349     no)
2350       :
2351       ;;
2352     *)
2353       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2354 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2355    { (exit 1); exit 1; }; }
2356       ;;
2357   esac
2358
2359 else
2360   enable_shared=yes
2361
2362 fi
2363
2364
2365
2366
2367 #
2368 # '-rpath'-like feature can be disabled
2369 #
2370
2371 pgac_args="$pgac_args enable_rpath"
2372
2373 # Check whether --enable-rpath was given.
2374 if test "${enable_rpath+set}" = set; then
2375   enableval=$enable_rpath;
2376   case $enableval in
2377     yes)
2378       :
2379       ;;
2380     no)
2381       :
2382       ;;
2383     *)
2384       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2385 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2386    { (exit 1); exit 1; }; }
2387       ;;
2388   esac
2389
2390 else
2391   enable_rpath=yes
2392
2393 fi
2394
2395
2396
2397
2398 #
2399 # Spinlocks
2400 #
2401
2402 pgac_args="$pgac_args enable_spinlocks"
2403
2404 # Check whether --enable-spinlocks was given.
2405 if test "${enable_spinlocks+set}" = set; then
2406   enableval=$enable_spinlocks;
2407   case $enableval in
2408     yes)
2409       :
2410       ;;
2411     no)
2412       :
2413       ;;
2414     *)
2415       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2416 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2417    { (exit 1); exit 1; }; }
2418       ;;
2419   esac
2420
2421 else
2422   enable_spinlocks=yes
2423
2424 fi
2425
2426
2427
2428 #
2429 # --enable-debug adds -g to compiler flags
2430 #
2431
2432 pgac_args="$pgac_args enable_debug"
2433
2434 # Check whether --enable-debug was given.
2435 if test "${enable_debug+set}" = set; then
2436   enableval=$enable_debug;
2437   case $enableval in
2438     yes)
2439       :
2440       ;;
2441     no)
2442       :
2443       ;;
2444     *)
2445       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2446 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2447    { (exit 1); exit 1; }; }
2448       ;;
2449   esac
2450
2451 else
2452   enable_debug=no
2453
2454 fi
2455
2456
2457
2458
2459 #
2460 # --enable-profiling enables gcc profiling
2461 #
2462
2463 pgac_args="$pgac_args enable_profiling"
2464
2465 # Check whether --enable-profiling was given.
2466 if test "${enable_profiling+set}" = set; then
2467   enableval=$enable_profiling;
2468   case $enableval in
2469     yes)
2470       :
2471       ;;
2472     no)
2473       :
2474       ;;
2475     *)
2476       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2477 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2478    { (exit 1); exit 1; }; }
2479       ;;
2480   esac
2481
2482 else
2483   enable_profiling=no
2484
2485 fi
2486
2487
2488
2489
2490 #
2491 # --enable-coverage enables generation of code coverage metrics with gcov
2492 #
2493
2494 pgac_args="$pgac_args enable_coverage"
2495
2496 # Check whether --enable-coverage was given.
2497 if test "${enable_coverage+set}" = set; then
2498   enableval=$enable_coverage;
2499   case $enableval in
2500     yes)
2501       for ac_prog in gcov
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_GCOV+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$GCOV"; then
2511   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_GCOV="$ac_prog"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 GCOV=$ac_cv_prog_GCOV
2531 if test -n "$GCOV"; then
2532   { echo "$as_me:$LINENO: result: $GCOV" >&5
2533 echo "${ECHO_T}$GCOV" >&6; }
2534 else
2535   { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2537 fi
2538
2539
2540   test -n "$GCOV" && break
2541 done
2542
2543 if test -z "$GCOV"; then
2544   { { echo "$as_me:$LINENO: error: gcov not found" >&5
2545 echo "$as_me: error: gcov not found" >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548 for ac_prog in lcov
2549 do
2550   # Extract the first word of "$ac_prog", so it can be a program name with args.
2551 set dummy $ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_LCOV+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   if test -n "$LCOV"; then
2558   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565   for ac_exec_ext in '' $ac_executable_extensions; do
2566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567     ac_cv_prog_LCOV="$ac_prog"
2568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570   fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 LCOV=$ac_cv_prog_LCOV
2578 if test -n "$LCOV"; then
2579   { echo "$as_me:$LINENO: result: $LCOV" >&5
2580 echo "${ECHO_T}$LCOV" >&6; }
2581 else
2582   { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2584 fi
2585
2586
2587   test -n "$LCOV" && break
2588 done
2589
2590 if test -z "$LCOV"; then
2591   { { echo "$as_me:$LINENO: error: lcov not found" >&5
2592 echo "$as_me: error: lcov not found" >&2;}
2593    { (exit 1); exit 1; }; }
2594 fi
2595 for ac_prog in genhtml
2596 do
2597   # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_GENHTML+set}" = set; then
2602   echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604   if test -n "$GENHTML"; then
2605   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612   for ac_exec_ext in '' $ac_executable_extensions; do
2613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614     ac_cv_prog_GENHTML="$ac_prog"
2615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616     break 2
2617   fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 GENHTML=$ac_cv_prog_GENHTML
2625 if test -n "$GENHTML"; then
2626   { echo "$as_me:$LINENO: result: $GENHTML" >&5
2627 echo "${ECHO_T}$GENHTML" >&6; }
2628 else
2629   { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2631 fi
2632
2633
2634   test -n "$GENHTML" && break
2635 done
2636
2637 if test -z "$GENHTML"; then
2638   { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2639 echo "$as_me: error: genhtml not found" >&2;}
2640    { (exit 1); exit 1; }; }
2641 fi
2642       ;;
2643     no)
2644       :
2645       ;;
2646     *)
2647       { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2648 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2649    { (exit 1); exit 1; }; }
2650       ;;
2651   esac
2652
2653 else
2654   enable_coverage=no
2655
2656 fi
2657
2658
2659
2660
2661 #
2662 # DTrace
2663 #
2664
2665 pgac_args="$pgac_args enable_dtrace"
2666
2667 # Check whether --enable-dtrace was given.
2668 if test "${enable_dtrace+set}" = set; then
2669   enableval=$enable_dtrace;
2670   case $enableval in
2671     yes)
2672
2673 cat >>confdefs.h <<\_ACEOF
2674 #define ENABLE_DTRACE 1
2675 _ACEOF
2676
2677 for ac_prog in dtrace
2678 do
2679   # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_DTRACE+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   if test -n "$DTRACE"; then
2687   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694   for ac_exec_ext in '' $ac_executable_extensions; do
2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696     ac_cv_prog_DTRACE="$ac_prog"
2697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 DTRACE=$ac_cv_prog_DTRACE
2707 if test -n "$DTRACE"; then
2708   { echo "$as_me:$LINENO: result: $DTRACE" >&5
2709 echo "${ECHO_T}$DTRACE" >&6; }
2710 else
2711   { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2713 fi
2714
2715
2716   test -n "$DTRACE" && break
2717 done
2718
2719 if test -z "$DTRACE"; then
2720   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2721 echo "$as_me: error: dtrace not found" >&2;}
2722    { (exit 1); exit 1; }; }
2723 fi
2724
2725       ;;
2726     no)
2727       :
2728       ;;
2729     *)
2730       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2731 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2732    { (exit 1); exit 1; }; }
2733       ;;
2734   esac
2735
2736 else
2737   enable_dtrace=no
2738
2739 fi
2740
2741
2742
2743
2744 #
2745 # Block size
2746 #
2747 { echo "$as_me:$LINENO: checking for block size" >&5
2748 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2749
2750 pgac_args="$pgac_args with_blocksize"
2751
2752
2753 # Check whether --with-blocksize was given.
2754 if test "${with_blocksize+set}" = set; then
2755   withval=$with_blocksize;
2756   case $withval in
2757     yes)
2758       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2759 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2760    { (exit 1); exit 1; }; }
2761       ;;
2762     no)
2763       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2764 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2765    { (exit 1); exit 1; }; }
2766       ;;
2767     *)
2768       blocksize=$withval
2769       ;;
2770   esac
2771
2772 else
2773   blocksize=8
2774 fi
2775
2776
2777 case ${blocksize} in
2778   1) BLCKSZ=1024;;
2779   2) BLCKSZ=2048;;
2780   4) BLCKSZ=4096;;
2781   8) BLCKSZ=8192;;
2782  16) BLCKSZ=16384;;
2783  32) BLCKSZ=32768;;
2784   *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2785 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2786    { (exit 1); exit 1; }; }
2787 esac
2788 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2789 echo "${ECHO_T}${blocksize}kB" >&6; }
2790
2791
2792 cat >>confdefs.h <<_ACEOF
2793 #define BLCKSZ ${BLCKSZ}
2794 _ACEOF
2795
2796
2797 #
2798 # Relation segment size
2799 #
2800 { echo "$as_me:$LINENO: checking for segment size" >&5
2801 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2802
2803 pgac_args="$pgac_args with_segsize"
2804
2805
2806 # Check whether --with-segsize was given.
2807 if test "${with_segsize+set}" = set; then
2808   withval=$with_segsize;
2809   case $withval in
2810     yes)
2811       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2812 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2813    { (exit 1); exit 1; }; }
2814       ;;
2815     no)
2816       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2817 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2818    { (exit 1); exit 1; }; }
2819       ;;
2820     *)
2821       segsize=$withval
2822       ;;
2823   esac
2824
2825 else
2826   segsize=1
2827 fi
2828
2829
2830 # this expression is set up to avoid unnecessary integer overflow
2831 # blocksize is already guaranteed to be a factor of 1024
2832 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2833 test $? -eq 0 || exit 1
2834 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2835 echo "${ECHO_T}${segsize}GB" >&6; }
2836
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define RELSEG_SIZE ${RELSEG_SIZE}
2840 _ACEOF
2841
2842
2843 #
2844 # WAL block size
2845 #
2846 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2847 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2848
2849 pgac_args="$pgac_args with_wal_blocksize"
2850
2851
2852 # Check whether --with-wal-blocksize was given.
2853 if test "${with_wal_blocksize+set}" = set; then
2854   withval=$with_wal_blocksize;
2855   case $withval in
2856     yes)
2857       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2858 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2859    { (exit 1); exit 1; }; }
2860       ;;
2861     no)
2862       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2863 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2864    { (exit 1); exit 1; }; }
2865       ;;
2866     *)
2867       wal_blocksize=$withval
2868       ;;
2869   esac
2870
2871 else
2872   wal_blocksize=8
2873 fi
2874
2875
2876 case ${wal_blocksize} in
2877   1) XLOG_BLCKSZ=1024;;
2878   2) XLOG_BLCKSZ=2048;;
2879   4) XLOG_BLCKSZ=4096;;
2880   8) XLOG_BLCKSZ=8192;;
2881  16) XLOG_BLCKSZ=16384;;
2882  32) XLOG_BLCKSZ=32768;;
2883  64) XLOG_BLCKSZ=65536;;
2884   *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2885 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2886    { (exit 1); exit 1; }; }
2887 esac
2888 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2889 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2890
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2894 _ACEOF
2895
2896
2897 #
2898 # WAL segment size
2899 #
2900 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2901 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2902
2903 pgac_args="$pgac_args with_wal_segsize"
2904
2905
2906 # Check whether --with-wal-segsize was given.
2907 if test "${with_wal_segsize+set}" = set; then
2908   withval=$with_wal_segsize;
2909   case $withval in
2910     yes)
2911       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2912 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2913    { (exit 1); exit 1; }; }
2914       ;;
2915     no)
2916       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2917 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2918    { (exit 1); exit 1; }; }
2919       ;;
2920     *)
2921       wal_segsize=$withval
2922       ;;
2923   esac
2924
2925 else
2926   wal_segsize=16
2927 fi
2928
2929
2930 case ${wal_segsize} in
2931   1) ;;
2932   2) ;;
2933   4) ;;
2934   8) ;;
2935  16) ;;
2936  32) ;;
2937  64) ;;
2938   *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2939 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2940    { (exit 1); exit 1; }; }
2941 esac
2942 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2943 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2944
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2948 _ACEOF
2949
2950
2951 #
2952 # C compiler
2953 #
2954
2955 # For historical reasons you can also use --with-CC to specify the C compiler
2956 # to use, although the standard way to do this is to set the CC environment
2957 # variable.
2958
2959 pgac_args="$pgac_args with_CC"
2960
2961
2962 # Check whether --with-CC was given.
2963 if test "${with_CC+set}" = set; then
2964   withval=$with_CC;
2965   case $withval in
2966     yes)
2967       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2968 echo "$as_me: error: argument required for --with-CC option" >&2;}
2969    { (exit 1); exit 1; }; }
2970       ;;
2971     no)
2972       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2973 echo "$as_me: error: argument required for --with-CC option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976     *)
2977       CC=$with_CC
2978       ;;
2979   esac
2980
2981 fi
2982
2983
2984
2985 case $template in
2986   aix) pgac_cc_list="gcc xlc";;
2987  irix) pgac_cc_list="cc";; # no gcc
2988     *) pgac_cc_list="gcc cc";;
2989 esac
2990
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 if test -n "$ac_tool_prefix"; then
2997   for ac_prog in $pgac_cc_list
2998   do
2999     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_CC+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   if test -n "$CC"; then
3007   ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014   for ac_exec_ext in '' $ac_executable_extensions; do
3015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028   { echo "$as_me:$LINENO: result: $CC" >&5
3029 echo "${ECHO_T}$CC" >&6; }
3030 else
3031   { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3033 fi
3034
3035
3036     test -n "$CC" && break
3037   done
3038 fi
3039 if test -z "$CC"; then
3040   ac_ct_CC=$CC
3041   for ac_prog in $pgac_cc_list
3042 do
3043   # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$ac_ct_CC"; then
3051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060     ac_cv_prog_ac_ct_CC="$ac_prog"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 echo "${ECHO_T}$ac_ct_CC" >&6; }
3074 else
3075   { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3077 fi
3078
3079
3080   test -n "$ac_ct_CC" && break
3081 done
3082
3083   if test "x$ac_ct_CC" = x; then
3084     CC=""
3085   else
3086     case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet.  If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&5
3091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3092 whose name does not start with the host triplet.  If you think this
3093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3094 ac_tool_warned=yes ;;
3095 esac
3096     CC=$ac_ct_CC
3097   fi
3098 fi
3099
3100
3101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: no acceptable C compiler found in \$PATH
3104 See \`config.log' for more details." >&2;}
3105    { (exit 1); exit 1; }; }
3106
3107 # Provide some information about the compiler.
3108 echo "$as_me:$LINENO: checking for C compiler version" >&5
3109 ac_compiler=`set X $ac_compile; echo $2`
3110 { (ac_try="$ac_compiler --version >&5"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_compiler --version >&5") 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }
3120 { (ac_try="$ac_compiler -v >&5"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compiler -v >&5") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }
3130 { (ac_try="$ac_compiler -V >&5"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compiler -V >&5") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }
3140
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 ac_clean_files_save=$ac_clean_files
3157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3158 # Try to create an executable without -o first, disregard a.out.
3159 # It will help us diagnose broken compilers, and finding out an intuition
3160 # of exeext.
3161 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 #
3165 # List of possible output files, starting from the most likely.
3166 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3167 # only as a last resort.  b.out is created by i960 compilers.
3168 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 #
3170 # The IRIX 6 linker writes into existing files which may not be
3171 # executable, retaining their permissions.  Remove them first so a
3172 # subsequent execution test works.
3173 ac_rmfiles=
3174 for ac_file in $ac_files
3175 do
3176   case $ac_file in
3177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3178     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3179   esac
3180 done
3181 rm -f $ac_rmfiles
3182
3183 if { (ac_try="$ac_link_default"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_link_default") 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; then
3193   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3196 # so that the user can short-circuit this test for compilers unknown to
3197 # Autoconf.
3198 for ac_file in $ac_files ''
3199 do
3200   test -f "$ac_file" || continue
3201   case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3203         ;;
3204     [ab].out )
3205         # We found the default executable, but exeext='' is most
3206         # certainly right.
3207         break;;
3208     *.* )
3209         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210         then :; else
3211            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212         fi
3213         # We set ac_cv_exeext here because the later test for it is not
3214         # safe: cross compilers may not add the suffix if given an `-o'
3215         # argument, so we may need to know it at that point already.
3216         # Even if this section looks crufty: it has the advantage of
3217         # actually working.
3218         break;;
3219     * )
3220         break;;
3221   esac
3222 done
3223 test "$ac_cv_exeext" = no && ac_cv_exeext=
3224
3225 else
3226   ac_file=''
3227 fi
3228
3229 { echo "$as_me:$LINENO: result: $ac_file" >&5
3230 echo "${ECHO_T}$ac_file" >&6; }
3231 if test -z "$ac_file"; then
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: C compiler cannot create executables
3238 See \`config.log' for more details." >&2;}
3239    { (exit 77); exit 77; }; }
3240 fi
3241
3242 ac_exeext=$ac_cv_exeext
3243
3244 # Check that the compiler produces executables we can run.  If not, either
3245 # the compiler is broken, or we cross compile.
3246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3249 # If not cross compiling, check that we can run a simple program.
3250 if test "$cross_compiling" != yes; then
3251   if { ac_try='./$ac_file'
3252   { (case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257   (eval "$ac_try") 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; }; then
3261     cross_compiling=no
3262   else
3263     if test "$cross_compiling" = maybe; then
3264         cross_compiling=yes
3265     else
3266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \`config.log' for more details." >&5
3269 echo "$as_me: error: cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details." >&2;}
3272    { (exit 1); exit 1; }; }
3273     fi
3274   fi
3275 fi
3276 { echo "$as_me:$LINENO: result: yes" >&5
3277 echo "${ECHO_T}yes" >&6; }
3278
3279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3280 ac_clean_files=$ac_clean_files_save
3281 # Check that the compiler produces executables we can run.  If not, either
3282 # the compiler is broken, or we cross compile.
3283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3286 echo "${ECHO_T}$cross_compiling" >&6; }
3287
3288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3290 if { (ac_try="$ac_link"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_link") 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; then
3300   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3302 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 # `rm'.
3304 for ac_file in conftest.exe conftest conftest.*; do
3305   test -f "$ac_file" || continue
3306   case $ac_file in
3307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3308     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309           break;;
3310     * ) break;;
3311   esac
3312 done
3313 else
3314   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3317 See \`config.log' for more details." >&2;}
3318    { (exit 1); exit 1; }; }
3319 fi
3320
3321 rm -f conftest$ac_cv_exeext
3322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3324
3325 rm -f conftest.$ac_ext
3326 EXEEXT=$ac_cv_exeext
3327 ac_exeext=$EXEEXT
3328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3330 if test "${ac_cv_objext+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339
3340 int
3341 main ()
3342 {
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.o conftest.obj
3349 if { (ac_try="$ac_compile"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_compile") 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; then
3359   for ac_file in conftest.o conftest.obj conftest.*; do
3360   test -f "$ac_file" || continue;
3361   case $ac_file in
3362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3363     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364        break;;
3365   esac
3366 done
3367 else
3368   echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details." >&5
3373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3374 See \`config.log' for more details." >&2;}
3375    { (exit 1); exit 1; }; }
3376 fi
3377
3378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 fi
3380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3381 echo "${ECHO_T}$ac_cv_objext" >&6; }
3382 OBJEXT=$ac_cv_objext
3383 ac_objext=$OBJEXT
3384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399 #ifndef __GNUC__
3400        choke me
3401 #endif
3402
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.$ac_objext
3408 if { (ac_try="$ac_compile"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_compile") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } && {
3421          test -z "$ac_c_werror_flag" ||
3422          test ! -s conftest.err
3423        } && test -s conftest.$ac_objext; then
3424   ac_compiler_gnu=yes
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429         ac_compiler_gnu=no
3430 fi
3431
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434
3435 fi
3436 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3438 GCC=`test $ac_compiler_gnu = yes && echo yes`
3439 ac_test_CFLAGS=${CFLAGS+set}
3440 ac_save_CFLAGS=$CFLAGS
3441 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3442 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_cc_g+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   ac_save_c_werror_flag=$ac_c_werror_flag
3447    ac_c_werror_flag=yes
3448    ac_cv_prog_cc_g=no
3449    CFLAGS="-g"
3450    cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h.  */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h.  */
3456
3457 int
3458 main ()
3459 {
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (ac_try="$ac_compile"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_compile") 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } && {
3479          test -z "$ac_c_werror_flag" ||
3480          test ! -s conftest.err
3481        } && test -s conftest.$ac_objext; then
3482   ac_cv_prog_cc_g=yes
3483 else
3484   echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487         CFLAGS=""
3488       cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_compile") 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } && {
3517          test -z "$ac_c_werror_flag" ||
3518          test ! -s conftest.err
3519        } && test -s conftest.$ac_objext; then
3520   :
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525         ac_c_werror_flag=$ac_save_c_werror_flag
3526          CFLAGS="-g"
3527          cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } && {
3556          test -z "$ac_c_werror_flag" ||
3557          test ! -s conftest.err
3558        } && test -s conftest.$ac_objext; then
3559   ac_cv_prog_cc_g=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 fi
3569
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 fi
3572
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574    ac_c_werror_flag=$ac_save_c_werror_flag
3575 fi
3576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579   CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581   if test "$GCC" = yes; then
3582     CFLAGS="-g -O2"
3583   else
3584     CFLAGS="-g"
3585   fi
3586 else
3587   if test "$GCC" = yes; then
3588     CFLAGS="-O2"
3589   else
3590     CFLAGS=
3591   fi
3592 fi
3593 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3594 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3595 if test "${ac_cv_prog_cc_c89+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   ac_cv_prog_cc_c89=no
3599 ac_save_CC=$CC
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3614      char **p;
3615      int i;
3616 {
3617   return p[i];
3618 }
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3620 {
3621   char *s;
3622   va_list v;
3623   va_start (v,p);
3624   s = g (p, va_arg (v,int));
3625   va_end (v);
3626   return s;
3627 }
3628
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3630    function prototypes and stuff, but not '\xHH' hex character constants.
3631    These don't provoke an error unfortunately, instead are silently treated
3632    as 'x'.  The following induces an error, until -std is added to get
3633    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3634    array size at least.  It's necessary to write '\x00'==0 to get something
3635    that's true only with -std.  */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639    inside strings and character constants.  */
3640 #define FOO(x) 'x'
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 int argc;
3648 char **argv;
3649 int
3650 main ()
3651 {
3652 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 do
3660   CC="$ac_save_CC $ac_arg"
3661   rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668   (eval "$ac_compile") 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } && {
3675          test -z "$ac_c_werror_flag" ||
3676          test ! -s conftest.err
3677        } && test -s conftest.$ac_objext; then
3678   ac_cv_prog_cc_c89=$ac_arg
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683
3684 fi
3685
3686 rm -f core conftest.err conftest.$ac_objext
3687   test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3691
3692 fi
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3695   x)
3696     { echo "$as_me:$LINENO: result: none needed" >&5
3697 echo "${ECHO_T}none needed" >&6; } ;;
3698   xno)
3699     { echo "$as_me:$LINENO: result: unsupported" >&5
3700 echo "${ECHO_T}unsupported" >&6; } ;;
3701   *)
3702     CC="$CC $ac_cv_prog_cc_c89"
3703     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3704 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3706
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714
3715 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3716 # but has idiosyncrasies of its own.  We assume icc will define
3717 # __INTEL_COMPILER regardless of CFLAGS.
3718
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729 #ifndef __INTEL_COMPILER
3730 choke me
3731 #endif
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (ac_try="$ac_compile"
3738 case "(($ac_try" in
3739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740   *) ac_try_echo=$ac_try;;
3741 esac
3742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3743   (eval "$ac_compile") 2>conftest.er1
3744   ac_status=$?
3745   grep -v '^ *+' conftest.er1 >conftest.err
3746   rm -f conftest.er1
3747   cat conftest.err >&5
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } && {
3750          test -z "$ac_c_werror_flag" ||
3751          test ! -s conftest.err
3752        } && test -s conftest.$ac_objext; then
3753   ICC=yes
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758         ICC=no
3759 fi
3760
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762
3763 # Check if it's Sun Studio compiler. We assume that
3764 # __SUNPRO_C will be defined for Sun Studio compilers
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775 #ifndef __SUNPRO_C
3776 choke me
3777 #endif
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (ac_try="$ac_compile"
3784 case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789   (eval "$ac_compile") 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } && {
3796          test -z "$ac_c_werror_flag" ||
3797          test ! -s conftest.err
3798        } && test -s conftest.$ac_objext; then
3799   SUN_STUDIO_CC=yes
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804         SUN_STUDIO_CC=no
3805 fi
3806
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808
3809
3810
3811 unset CFLAGS
3812
3813 #
3814 # Read the template
3815 #
3816 . "$srcdir/src/template/$template" || exit
3817
3818 # CFLAGS are selected so:
3819 # If the user specifies something in the environment, that is used.
3820 # else:  If the template file set something, that is used.
3821 # else:  If coverage was enabled, don't set anything.
3822 # else:  If the compiler is GCC, then we use -O2.
3823 # else:  If the compiler is something else, then we use -O.
3824
3825 if test "$ac_env_CFLAGS_set" = set; then
3826   CFLAGS=$ac_env_CFLAGS_value
3827 elif test "${CFLAGS+set}" = set; then
3828   : # (keep what template set)
3829 elif test "$enable_coverage" = yes; then
3830   : # no optimization by default
3831 elif test "$GCC" = yes; then
3832   CFLAGS="-O2"
3833 else
3834   # if the user selected debug mode, don't use -O
3835   if test "$enable_debug" != yes; then
3836     CFLAGS="-O"
3837   fi
3838 fi
3839
3840 # Some versions of GCC support some additional useful warning flags.
3841 # Check whether they are supported, and add them to CFLAGS if so.
3842 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3843
3844 if test "$GCC" = yes -a "$ICC" = no; then
3845   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3846   # These work in some but not all gcc versions
3847   { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3848 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3849 pgac_save_CFLAGS=$CFLAGS
3850 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_compile") 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } && {
3880          test -z "$ac_c_werror_flag" ||
3881          test ! -s conftest.err
3882        } && test -s conftest.$ac_objext; then
3883   { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889         CFLAGS="$pgac_save_CFLAGS"
3890                     { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3892 fi
3893
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
3896   { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3897 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3898 pgac_save_CFLAGS=$CFLAGS
3899 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922   (eval "$ac_compile") 2>conftest.er1
3923   ac_status=$?
3924   grep -v '^ *+' conftest.er1 >conftest.err
3925   rm -f conftest.er1
3926   cat conftest.err >&5
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } && {
3929          test -z "$ac_c_werror_flag" ||
3930          test ! -s conftest.err
3931        } && test -s conftest.$ac_objext; then
3932   { echo "$as_me:$LINENO: result: yes" >&5
3933 echo "${ECHO_T}yes" >&6; }
3934 else
3935   echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938         CFLAGS="$pgac_save_CFLAGS"
3939                     { echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6; }
3941 fi
3942
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944
3945   # Disable strict-aliasing rules; needed for gcc 3.3+
3946   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3947 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3948 pgac_save_CFLAGS=$CFLAGS
3949 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960
3961   ;
3962   return 0;
3963 }
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (ac_try="$ac_compile"
3967 case "(($ac_try" in
3968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969   *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972   (eval "$ac_compile") 2>conftest.er1
3973   ac_status=$?
3974   grep -v '^ *+' conftest.er1 >conftest.err
3975   rm -f conftest.er1
3976   cat conftest.err >&5
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); } && {
3979          test -z "$ac_c_werror_flag" ||
3980          test ! -s conftest.err
3981        } && test -s conftest.$ac_objext; then
3982   { echo "$as_me:$LINENO: result: yes" >&5
3983 echo "${ECHO_T}yes" >&6; }
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988         CFLAGS="$pgac_save_CFLAGS"
3989                     { echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6; }
3991 fi
3992
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994
3995   # Disable optimizations that assume no overflow; needed for gcc 4.3+
3996   { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3997 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3998 pgac_save_CFLAGS=$CFLAGS
3999 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h.  */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h.  */
4006
4007 int
4008 main ()
4009 {
4010
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022   (eval "$ac_compile") 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } && {
4029          test -z "$ac_c_werror_flag" ||
4030          test ! -s conftest.err
4031        } && test -s conftest.$ac_objext; then
4032   { echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6; }
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038         CFLAGS="$pgac_save_CFLAGS"
4039                     { echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6; }
4041 fi
4042
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044
4045 elif test "$ICC" = yes; then
4046   # Intel's compiler has a bug/misoptimization in checking for
4047   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4048   { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4049 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4050 pgac_save_CFLAGS=$CFLAGS
4051 CFLAGS="$pgac_save_CFLAGS -mp1"
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058
4059 int
4060 main ()
4061 {
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } && {
4081          test -z "$ac_c_werror_flag" ||
4082          test ! -s conftest.err
4083        } && test -s conftest.$ac_objext; then
4084   { echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6; }
4086 else
4087   echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090         CFLAGS="$pgac_save_CFLAGS"
4091                     { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4093 fi
4094
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096
4097   # Make sure strict aliasing is off (though this is said to be the default)
4098   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4099 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4100 pgac_save_CFLAGS=$CFLAGS
4101 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4119 case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_compile") 2>conftest.er1
4125   ac_status=$?
4126   grep -v '^ *+' conftest.er1 >conftest.err
4127   rm -f conftest.er1
4128   cat conftest.err >&5
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); } && {
4131          test -z "$ac_c_werror_flag" ||
4132          test ! -s conftest.err
4133        } && test -s conftest.$ac_objext; then
4134   { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4136 else
4137   echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140         CFLAGS="$pgac_save_CFLAGS"
4141                     { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4143 fi
4144
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147 elif test x"${CC}" = x"xlc"; then
4148   # AIX xlc has to have strict aliasing turned off too
4149   { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4150 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4151 pgac_save_CFLAGS=$CFLAGS
4152 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159
4160 int
4161 main ()
4162 {
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_compile") 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } && {
4182          test -z "$ac_c_werror_flag" ||
4183          test ! -s conftest.err
4184        } && test -s conftest.$ac_objext; then
4185   { echo "$as_me:$LINENO: result: yes" >&5
4186 echo "${ECHO_T}yes" >&6; }
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191         CFLAGS="$pgac_save_CFLAGS"
4192                     { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4194 fi
4195
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197
4198 fi
4199
4200 # supply -g if --enable-debug
4201 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4202   CFLAGS="$CFLAGS -g"
4203 fi
4204
4205 # enable code coverage if --enable-coverage
4206 if test "$enable_coverage" = yes; then
4207   if test "$GCC" = yes; then
4208     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4209   else
4210     { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4211 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4212    { (exit 1); exit 1; }; }
4213   fi
4214 fi
4215
4216 # enable profiling if --enable-profiling
4217 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4218   if test "$GCC" = yes; then
4219
4220 cat >>confdefs.h <<\_ACEOF
4221 #define PROFILE_PID_DIR 1
4222 _ACEOF
4223
4224     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4225   else
4226     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4227 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4228    { (exit 1); exit 1; }; }
4229   fi
4230 fi
4231
4232 # We already have this in Makefile.win32, but configure needs it too
4233 if test "$PORTNAME" = "win32"; then
4234   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4235 fi
4236
4237 # Check if the compiler still works with the template settings
4238 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4239 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250 return 0;
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_link") 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && {
4269          test -z "$ac_c_werror_flag" ||
4270          test ! -s conftest.err
4271        } && test -s conftest$ac_exeext &&
4272        $as_test_x conftest$ac_exeext; then
4273   { echo "$as_me:$LINENO: result: yes" >&5
4274 echo "${ECHO_T}yes" >&6; }
4275 else
4276   echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279         { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4281    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4282 echo "$as_me: error: cannot proceed" >&2;}
4283    { (exit 1); exit 1; }; }
4284 fi
4285
4286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4287       conftest$ac_exeext conftest.$ac_ext
4288
4289 # Defend against gcc -ffast-math
4290 if test "$GCC" = yes; then
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297
4298 int
4299 main ()
4300 {
4301 #ifdef __FAST_MATH__
4302 choke me
4303 #endif
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (ac_try="$ac_compile"
4310 case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315   (eval "$ac_compile") 2>conftest.er1
4316   ac_status=$?
4317   grep -v '^ *+' conftest.er1 >conftest.err
4318   rm -f conftest.er1
4319   cat conftest.err >&5
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); } && {
4322          test -z "$ac_c_werror_flag" ||
4323          test ! -s conftest.err
4324        } && test -s conftest.$ac_objext; then
4325   :
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330         { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4331 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4332    { (exit 1); exit 1; }; }
4333 fi
4334
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347   CPP=
4348 fi
4349 if test -z "$CPP"; then
4350   if test "${ac_cv_prog_CPP+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353       # Double quotes because CPP needs to be expanded
4354     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355     do
4356       ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4358 do
4359   # Use a header file that comes with gcc, so configuring glibc
4360   # with a fresh cross-compiler works.
4361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362   # <limits.h> exists even on freestanding compilers.
4363   # On the NeXT, cc -E runs the code through the compiler's parser,
4364   # not just through cpp. "Syntax error" is here to catch this case.
4365   cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h.  */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h.  */
4371 #ifdef __STDC__
4372 # include <limits.h>
4373 #else
4374 # include <assert.h>
4375 #endif
4376                      Syntax error
4377 _ACEOF
4378 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } >/dev/null && {
4391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4392          test ! -s conftest.err
4393        }; then
4394   :
4395 else
4396   echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399   # Broken: fails on valid input.
4400 continue
4401 fi
4402
4403 rm -f conftest.err conftest.$ac_ext
4404
4405   # OK, works on sane cases.  Now check whether nonexistent headers
4406   # can be detected and how.
4407   cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <ac_nonexistent.h>
4414 _ACEOF
4415 if { (ac_try="$ac_cpp conftest.$ac_ext"
4416 case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } >/dev/null && {
4428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4429          test ! -s conftest.err
4430        }; then
4431   # Broken: success on invalid input.
4432 continue
4433 else
4434   echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437   # Passes both tests.
4438 ac_preproc_ok=:
4439 break
4440 fi
4441
4442 rm -f conftest.err conftest.$ac_ext
4443
4444 done
4445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4446 rm -f conftest.err conftest.$ac_ext
4447 if $ac_preproc_ok; then
4448   break
4449 fi
4450
4451     done
4452     ac_cv_prog_CPP=$CPP
4453
4454 fi
4455   CPP=$ac_cv_prog_CPP
4456 else
4457   ac_cv_prog_CPP=$CPP
4458 fi
4459 { echo "$as_me:$LINENO: result: $CPP" >&5
4460 echo "${ECHO_T}$CPP" >&6; }
4461 ac_preproc_ok=false
4462 for ac_c_preproc_warn_flag in '' yes
4463 do
4464   # Use a header file that comes with gcc, so configuring glibc
4465   # with a fresh cross-compiler works.
4466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467   # <limits.h> exists even on freestanding compilers.
4468   # On the NeXT, cc -E runs the code through the compiler's parser,
4469   # not just through cpp. "Syntax error" is here to catch this case.
4470   cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 #ifdef __STDC__
4477 # include <limits.h>
4478 #else
4479 # include <assert.h>
4480 #endif
4481                      Syntax error
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } >/dev/null && {
4496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497          test ! -s conftest.err
4498        }; then
4499   :
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504   # Broken: fails on valid input.
4505 continue
4506 fi
4507
4508 rm -f conftest.err conftest.$ac_ext
4509
4510   # OK, works on sane cases.  Now check whether nonexistent headers
4511   # can be detected and how.
4512   cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } >/dev/null && {
4533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534          test ! -s conftest.err
4535        }; then
4536   # Broken: success on invalid input.
4537 continue
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542   # Passes both tests.
4543 ac_preproc_ok=:
4544 break
4545 fi
4546
4547 rm -f conftest.err conftest.$ac_ext
4548
4549 done
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then
4553   :
4554 else
4555   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4556 See \`config.log' for more details." >&5
4557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details." >&2;}
4559    { (exit 1); exit 1; }; }
4560 fi
4561
4562 ac_ext=c
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
4568
4569
4570 # Create compiler version string
4571 if test x"$GCC" = x"yes" ; then
4572   cc_string="GCC `${CC} --version | sed q`"
4573 else
4574   cc_string=$CC
4575 fi
4576
4577 cat >>confdefs.h <<_ACEOF
4578 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4579 _ACEOF
4580
4581
4582
4583 #
4584 # Set up TAS assembly code if needed; the template file has now had its
4585 # chance to request this.
4586 #
4587 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4588
4589
4590 if test "$need_tas" = yes ; then
4591   TAS=tas.o
4592 else
4593   TAS=""
4594 fi
4595
4596
4597
4598 #
4599 # Automatic dependency tracking
4600 #
4601
4602 pgac_args="$pgac_args enable_depend"
4603
4604 # Check whether --enable-depend was given.
4605 if test "${enable_depend+set}" = set; then
4606   enableval=$enable_depend;
4607   case $enableval in
4608     yes)
4609       autodepend=yes
4610       ;;
4611     no)
4612       :
4613       ;;
4614     *)
4615       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4616 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4617    { (exit 1); exit 1; }; }
4618       ;;
4619   esac
4620
4621 else
4622   enable_depend=no
4623
4624 fi
4625
4626
4627
4628
4629
4630 #
4631 # Enable assert checks
4632 #
4633
4634 pgac_args="$pgac_args enable_cassert"
4635
4636 # Check whether --enable-cassert was given.
4637 if test "${enable_cassert+set}" = set; then
4638   enableval=$enable_cassert;
4639   case $enableval in
4640     yes)
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define USE_ASSERT_CHECKING 1
4644 _ACEOF
4645
4646       ;;
4647     no)
4648       :
4649       ;;
4650     *)
4651       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4652 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4653    { (exit 1); exit 1; }; }
4654       ;;
4655   esac
4656
4657 else
4658   enable_cassert=no
4659
4660 fi
4661
4662
4663
4664
4665 #
4666 # Include directories
4667 #
4668 ac_save_IFS=$IFS
4669 IFS="${IFS}${PATH_SEPARATOR}"
4670 # SRCH_INC comes from the template file
4671 for dir in $with_includes $SRCH_INC; do
4672   if test -d "$dir"; then
4673     INCLUDES="$INCLUDES -I$dir"
4674   else
4675     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4676 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4677   fi
4678 done
4679 IFS=$ac_save_IFS
4680
4681
4682
4683 #
4684 # Library directories
4685 #
4686 ac_save_IFS=$IFS
4687 IFS="${IFS}${PATH_SEPARATOR}"
4688 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4689 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4690   if test -d "$dir"; then
4691     LIBDIRS="$LIBDIRS -L$dir"
4692   else
4693     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4694 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4695   fi
4696 done
4697 IFS=$ac_save_IFS
4698
4699 #
4700 # Enable thread-safe client libraries
4701 #
4702 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4703 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4704 if test "$PORTNAME" != "win32"; then
4705
4706 pgac_args="$pgac_args enable_thread_safety"
4707
4708 # Check whether --enable-thread-safety was given.
4709 if test "${enable_thread_safety+set}" = set; then
4710   enableval=$enable_thread_safety;
4711   case $enableval in
4712     yes)
4713       :
4714       ;;
4715     no)
4716       :
4717       ;;
4718     *)
4719       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4720 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4721    { (exit 1); exit 1; }; }
4722       ;;
4723   esac
4724
4725 else
4726   enable_thread_safety=no
4727
4728 fi
4729
4730
4731 else
4732 # Win32 should always use threads
4733
4734 pgac_args="$pgac_args enable_thread_safety"
4735
4736 # Check whether --enable-thread-safety was given.
4737 if test "${enable_thread_safety+set}" = set; then
4738   enableval=$enable_thread_safety;
4739   case $enableval in
4740     yes)
4741       :
4742       ;;
4743     no)
4744       :
4745       ;;
4746     *)
4747       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4748 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4749    { (exit 1); exit 1; }; }
4750       ;;
4751   esac
4752
4753 else
4754   enable_thread_safety=yes
4755
4756 fi
4757
4758
4759 fi
4760
4761
4762 pgac_args="$pgac_args enable_thread_safety_force"
4763
4764 # Check whether --enable-thread-safety-force was given.
4765 if test "${enable_thread_safety_force+set}" = set; then
4766   enableval=$enable_thread_safety_force;
4767   case $enableval in
4768     yes)
4769       :
4770       ;;
4771     no)
4772       :
4773       ;;
4774     *)
4775       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4776 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4777    { (exit 1); exit 1; }; }
4778       ;;
4779   esac
4780
4781 else
4782   enable_thread_safety_force=no
4783
4784 fi
4785
4786
4787 if test "$enable_thread_safety" = yes -o \
4788         "$enable_thread_safety_force" = yes; then
4789   enable_thread_safety="yes"    # for 'force'
4790
4791 cat >>confdefs.h <<\_ACEOF
4792 #define ENABLE_THREAD_SAFETY 1
4793 _ACEOF
4794
4795 fi
4796 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4797 echo "${ECHO_T}$enable_thread_safety" >&6; }
4798
4799
4800 #
4801 # Optionally build Tcl modules (PL/Tcl)
4802 #
4803 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4804 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4805
4806 pgac_args="$pgac_args with_tcl"
4807
4808
4809 # Check whether --with-tcl was given.
4810 if test "${with_tcl+set}" = set; then
4811   withval=$with_tcl;
4812   case $withval in
4813     yes)
4814       :
4815       ;;
4816     no)
4817       :
4818       ;;
4819     *)
4820       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4821 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4822    { (exit 1); exit 1; }; }
4823       ;;
4824   esac
4825
4826 else
4827   with_tcl=no
4828
4829 fi
4830
4831
4832 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4833 echo "${ECHO_T}$with_tcl" >&6; }
4834
4835
4836 # We see if the path to the Tcl/Tk configuration scripts is specified.
4837 # This will override the use of tclsh to find the paths to search.
4838
4839
4840 pgac_args="$pgac_args with_tclconfig"
4841
4842
4843 # Check whether --with-tclconfig was given.
4844 if test "${with_tclconfig+set}" = set; then
4845   withval=$with_tclconfig;
4846   case $withval in
4847     yes)
4848       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4849 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4850    { (exit 1); exit 1; }; }
4851       ;;
4852     no)
4853       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4854 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4855    { (exit 1); exit 1; }; }
4856       ;;
4857     *)
4858
4859       ;;
4860   esac
4861
4862 fi
4863
4864
4865
4866 #
4867 # Optionally build Perl modules (PL/Perl)
4868 #
4869 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4870 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4871
4872 pgac_args="$pgac_args with_perl"
4873
4874
4875 # Check whether --with-perl was given.
4876 if test "${with_perl+set}" = set; then
4877   withval=$with_perl;
4878   case $withval in
4879     yes)
4880       :
4881       ;;
4882     no)
4883       :
4884       ;;
4885     *)
4886       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4887 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4888    { (exit 1); exit 1; }; }
4889       ;;
4890   esac
4891
4892 else
4893   with_perl=no
4894
4895 fi
4896
4897
4898 { echo "$as_me:$LINENO: result: $with_perl" >&5
4899 echo "${ECHO_T}$with_perl" >&6; }
4900
4901
4902 #
4903 # Optionally build Python modules (PL/Python)
4904 #
4905 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4906 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4907
4908 pgac_args="$pgac_args with_python"
4909
4910
4911 # Check whether --with-python was given.
4912 if test "${with_python+set}" = set; then
4913   withval=$with_python;
4914   case $withval in
4915     yes)
4916       :
4917       ;;
4918     no)
4919       :
4920       ;;
4921     *)
4922       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4923 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4924    { (exit 1); exit 1; }; }
4925       ;;
4926   esac
4927
4928 else
4929   with_python=no
4930
4931 fi
4932
4933
4934 { echo "$as_me:$LINENO: result: $with_python" >&5
4935 echo "${ECHO_T}$with_python" >&6; }
4936
4937
4938 #
4939 # GSSAPI
4940 #
4941 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4942 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4943
4944 pgac_args="$pgac_args with_gssapi"
4945
4946
4947 # Check whether --with-gssapi was given.
4948 if test "${with_gssapi+set}" = set; then
4949   withval=$with_gssapi;
4950   case $withval in
4951     yes)
4952
4953
4954 cat >>confdefs.h <<\_ACEOF
4955 #define ENABLE_GSS 1
4956 _ACEOF
4957
4958   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4959
4960       ;;
4961     no)
4962       :
4963       ;;
4964     *)
4965       { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4966 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4967    { (exit 1); exit 1; }; }
4968       ;;
4969   esac
4970
4971 else
4972   with_gssapi=no
4973
4974 fi
4975
4976
4977 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4978 echo "${ECHO_T}$with_gssapi" >&6; }
4979
4980
4981 #
4982 # Kerberos 5
4983 #
4984 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4985 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4986
4987 pgac_args="$pgac_args with_krb5"
4988
4989
4990 # Check whether --with-krb5 was given.
4991 if test "${with_krb5+set}" = set; then
4992   withval=$with_krb5;
4993   case $withval in
4994     yes)
4995
4996
4997 cat >>confdefs.h <<\_ACEOF
4998 #define KRB5 1
4999 _ACEOF
5000
5001   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5002
5003       ;;
5004     no)
5005       :
5006       ;;
5007     *)
5008       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5009 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5010    { (exit 1); exit 1; }; }
5011       ;;
5012   esac
5013
5014 else
5015   with_krb5=no
5016
5017 fi
5018
5019
5020 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5021 echo "${ECHO_T}$with_krb5" >&6; }
5022
5023
5024
5025
5026
5027
5028 #
5029 # Kerberos configuration parameters
5030 #
5031
5032 pgac_args="$pgac_args with_krb_srvnam"
5033
5034
5035 # Check whether --with-krb-srvnam was given.
5036 if test "${with_krb_srvnam+set}" = set; then
5037   withval=$with_krb_srvnam;
5038   case $withval in
5039     yes)
5040       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5041 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5042    { (exit 1); exit 1; }; }
5043       ;;
5044     no)
5045       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5046 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5047    { (exit 1); exit 1; }; }
5048       ;;
5049     *)
5050
5051       ;;
5052   esac
5053
5054 else
5055   with_krb_srvnam="postgres"
5056 fi
5057
5058
5059
5060 cat >>confdefs.h <<_ACEOF
5061 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5062 _ACEOF
5063
5064
5065
5066 #
5067 # PAM
5068 #
5069 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5070 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5071
5072 pgac_args="$pgac_args with_pam"
5073
5074
5075 # Check whether --with-pam was given.
5076 if test "${with_pam+set}" = set; then
5077   withval=$with_pam;
5078   case $withval in
5079     yes)
5080
5081 cat >>confdefs.h <<\_ACEOF
5082 #define USE_PAM 1
5083 _ACEOF
5084
5085       ;;
5086     no)
5087       :
5088       ;;
5089     *)
5090       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5091 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5092    { (exit 1); exit 1; }; }
5093       ;;
5094   esac
5095
5096 else
5097   with_pam=no
5098
5099 fi
5100
5101
5102 { echo "$as_me:$LINENO: result: $with_pam" >&5
5103 echo "${ECHO_T}$with_pam" >&6; }
5104
5105
5106
5107 #
5108 # LDAP
5109 #
5110 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5111 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5112
5113 pgac_args="$pgac_args with_ldap"
5114
5115
5116 # Check whether --with-ldap was given.
5117 if test "${with_ldap+set}" = set; then
5118   withval=$with_ldap;
5119   case $withval in
5120     yes)
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define USE_LDAP 1
5124 _ACEOF
5125
5126       ;;
5127     no)
5128       :
5129       ;;
5130     *)
5131       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5132 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5133    { (exit 1); exit 1; }; }
5134       ;;
5135   esac
5136
5137 else
5138   with_ldap=no
5139
5140 fi
5141
5142
5143 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5144 echo "${ECHO_T}$with_ldap" >&6; }
5145
5146
5147
5148 #
5149 # Bonjour
5150 #
5151 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5152 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5153
5154 pgac_args="$pgac_args with_bonjour"
5155
5156
5157 # Check whether --with-bonjour was given.
5158 if test "${with_bonjour+set}" = set; then
5159   withval=$with_bonjour;
5160   case $withval in
5161     yes)
5162
5163 cat >>confdefs.h <<\_ACEOF
5164 #define USE_BONJOUR 1
5165 _ACEOF
5166
5167       ;;
5168     no)
5169       :
5170       ;;
5171     *)
5172       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5173 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5174    { (exit 1); exit 1; }; }
5175       ;;
5176   esac
5177
5178 else
5179   with_bonjour=no
5180
5181 fi
5182
5183
5184 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5185 echo "${ECHO_T}$with_bonjour" >&6; }
5186
5187
5188
5189 #
5190 # OpenSSL
5191 #
5192 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5193 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5194
5195 pgac_args="$pgac_args with_openssl"
5196
5197
5198 # Check whether --with-openssl was given.
5199 if test "${with_openssl+set}" = set; then
5200   withval=$with_openssl;
5201   case $withval in
5202     yes)
5203
5204 cat >>confdefs.h <<\_ACEOF
5205 #define USE_SSL 1
5206 _ACEOF
5207
5208       ;;
5209     no)
5210       :
5211       ;;
5212     *)
5213       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5214 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5215    { (exit 1); exit 1; }; }
5216       ;;
5217   esac
5218
5219 else
5220   with_openssl=no
5221
5222 fi
5223
5224
5225 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5226 echo "${ECHO_T}$with_openssl" >&6; }
5227
5228
5229
5230 #
5231 # Readline
5232 #
5233
5234 pgac_args="$pgac_args with_readline"
5235
5236
5237 # Check whether --with-readline was given.
5238 if test "${with_readline+set}" = set; then
5239   withval=$with_readline;
5240   case $withval in
5241     yes)
5242       :
5243       ;;
5244     no)
5245       :
5246       ;;
5247     *)
5248       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5249 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5250    { (exit 1); exit 1; }; }
5251       ;;
5252   esac
5253
5254 else
5255   with_readline=yes
5256
5257 fi
5258
5259
5260 # readline on MinGW has problems with backslashes in psql and other bugs.
5261 # This is particularly a problem with non-US code pages.
5262 # Therefore disable its use until we understand the cause. 2004-07-20
5263 if test "$PORTNAME" = "win32"; then
5264   if test "$with_readline" = yes; then
5265     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5266 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5267     with_readline=no
5268   fi
5269 fi
5270
5271
5272 #
5273 # Prefer libedit
5274 #
5275
5276 pgac_args="$pgac_args with_libedit_preferred"
5277
5278
5279 # Check whether --with-libedit-preferred was given.
5280 if test "${with_libedit_preferred+set}" = set; then
5281   withval=$with_libedit_preferred;
5282   case $withval in
5283     yes)
5284       :
5285       ;;
5286     no)
5287       :
5288       ;;
5289     *)
5290       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5291 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5292    { (exit 1); exit 1; }; }
5293       ;;
5294   esac
5295
5296 else
5297   with_libedit_preferred=no
5298
5299 fi
5300
5301
5302
5303
5304 #
5305 # OSSP UUID library
5306 #
5307
5308 pgac_args="$pgac_args with_ossp_uuid"
5309
5310
5311 # Check whether --with-ossp-uuid was given.
5312 if test "${with_ossp_uuid+set}" = set; then
5313   withval=$with_ossp_uuid;
5314   case $withval in
5315     yes)
5316       :
5317       ;;
5318     no)
5319       :
5320       ;;
5321     *)
5322       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5323 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5324    { (exit 1); exit 1; }; }
5325       ;;
5326   esac
5327
5328 else
5329   with_ossp_uuid=no
5330
5331 fi
5332
5333
5334
5335
5336
5337 #
5338 # XML
5339 #
5340
5341 pgac_args="$pgac_args with_libxml"
5342
5343
5344 # Check whether --with-libxml was given.
5345 if test "${with_libxml+set}" = set; then
5346   withval=$with_libxml;
5347   case $withval in
5348     yes)
5349
5350 cat >>confdefs.h <<\_ACEOF
5351 #define USE_LIBXML 1
5352 _ACEOF
5353
5354       ;;
5355     no)
5356       :
5357       ;;
5358     *)
5359       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5360 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5361    { (exit 1); exit 1; }; }
5362       ;;
5363   esac
5364
5365 else
5366   with_libxml=no
5367
5368 fi
5369
5370
5371
5372 if test "$with_libxml" = yes ; then
5373   for ac_prog in xml2-config
5374 do
5375   # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy $ac_prog; ac_word=$2
5377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5379 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   if test -n "$XML2_CONFIG"; then
5383   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390   for ac_exec_ext in '' $ac_executable_extensions; do
5391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392     ac_cv_prog_XML2_CONFIG="$ac_prog"
5393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397 done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5403 if test -n "$XML2_CONFIG"; then
5404   { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5405 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5406 else
5407   { echo "$as_me:$LINENO: result: no" >&5
5408 echo "${ECHO_T}no" >&6; }
5409 fi
5410
5411
5412   test -n "$XML2_CONFIG" && break
5413 done
5414
5415   if test -n "$XML2_CONFIG"; then
5416     for pgac_option in `$XML2_CONFIG --cflags`; do
5417       case $pgac_option in
5418         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5419       esac
5420     done
5421     for pgac_option in `$XML2_CONFIG --libs`; do
5422       case $pgac_option in
5423         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5424       esac
5425     done
5426   fi
5427 fi
5428
5429
5430
5431 #
5432 # XSLT
5433 #
5434
5435 pgac_args="$pgac_args with_libxslt"
5436
5437
5438 # Check whether --with-libxslt was given.
5439 if test "${with_libxslt+set}" = set; then
5440   withval=$with_libxslt;
5441   case $withval in
5442     yes)
5443
5444 cat >>confdefs.h <<\_ACEOF
5445 #define USE_LIBXSLT 1
5446 _ACEOF
5447
5448       ;;
5449     no)
5450       :
5451       ;;
5452     *)
5453       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5454 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5455    { (exit 1); exit 1; }; }
5456       ;;
5457   esac
5458
5459 else
5460   with_libxslt=no
5461
5462 fi
5463
5464
5465
5466
5467
5468
5469 #
5470 # tzdata
5471 #
5472
5473 pgac_args="$pgac_args with_system_tzdata"
5474
5475
5476 # Check whether --with-system-tzdata was given.
5477 if test "${with_system_tzdata+set}" = set; then
5478   withval=$with_system_tzdata;
5479   case $withval in
5480     yes)
5481       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5482 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5483    { (exit 1); exit 1; }; }
5484       ;;
5485     no)
5486       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5487 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5488    { (exit 1); exit 1; }; }
5489       ;;
5490     *)
5491
5492       ;;
5493   esac
5494
5495 fi
5496
5497
5498
5499
5500 #
5501 # Zlib
5502 #
5503
5504 pgac_args="$pgac_args with_zlib"
5505
5506
5507 # Check whether --with-zlib was given.
5508 if test "${with_zlib+set}" = set; then
5509   withval=$with_zlib;
5510   case $withval in
5511     yes)
5512       :
5513       ;;
5514     no)
5515       :
5516       ;;
5517     *)
5518       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5519 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5520    { (exit 1); exit 1; }; }
5521       ;;
5522   esac
5523
5524 else
5525   with_zlib=yes
5526
5527 fi
5528
5529
5530
5531
5532 #
5533 # Elf
5534 #
5535
5536 # Assume system is ELF if it predefines __ELF__ as 1,
5537 # otherwise believe host_os based default.
5538 case $host_os in
5539     freebsd1*|freebsd2*) elf=no;;
5540     freebsd3*|freebsd4*) elf=yes;;
5541 esac
5542
5543
5544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_GREP+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   # Extract the first word of "grep ggrep" to use in msg output
5550 if test -z "$GREP"; then
5551 set dummy grep ggrep; ac_prog_name=$2
5552 if test "${ac_cv_path_GREP+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   ac_path_GREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_prog in grep ggrep; do
5563   for ac_exec_ext in '' $ac_executable_extensions; do
5564     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5565     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5566     # Check for GNU ac_path_GREP and select it if it is found.
5567   # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in
5569 *GNU*)
5570   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5571 *)
5572   ac_count=0
5573   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5574   while :
5575   do
5576     cat "conftest.in" "conftest.in" >"conftest.tmp"
5577     mv "conftest.tmp" "conftest.in"
5578     cp "conftest.in" "conftest.nl"
5579     echo 'GREP' >> "conftest.nl"
5580     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582     ac_count=`expr $ac_count + 1`
5583     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584       # Best one so far, save it but keep looking for a better one
5585       ac_cv_path_GREP="$ac_path_GREP"
5586       ac_path_GREP_max=$ac_count
5587     fi
5588     # 10*(2^10) chars as input seems more than enough
5589     test $ac_count -gt 10 && break
5590   done
5591   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5593
5594
5595     $ac_path_GREP_found && break 3
5596   done
5597 done
5598
5599 done
5600 IFS=$as_save_IFS
5601
5602
5603 fi
5604
5605 GREP="$ac_cv_path_GREP"
5606 if test -z "$GREP"; then
5607   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5609    { (exit 1); exit 1; }; }
5610 fi
5611
5612 else
5613   ac_cv_path_GREP=$GREP
5614 fi
5615
5616
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5620  GREP="$ac_cv_path_GREP"
5621
5622
5623 { echo "$as_me:$LINENO: checking for egrep" >&5
5624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5629    then ac_cv_path_EGREP="$GREP -E"
5630    else
5631      # Extract the first word of "egrep" to use in msg output
5632 if test -z "$EGREP"; then
5633 set dummy egrep; ac_prog_name=$2
5634 if test "${ac_cv_path_EGREP+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   ac_path_EGREP_found=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644   for ac_prog in egrep; do
5645   for ac_exec_ext in '' $ac_executable_extensions; do
5646     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5647     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5648     # Check for GNU ac_path_EGREP and select it if it is found.
5649   # Check for GNU $ac_path_EGREP
5650 case `"$ac_path_EGREP" --version 2>&1` in
5651 *GNU*)
5652   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5653 *)
5654   ac_count=0
5655   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5656   while :
5657   do
5658     cat "conftest.in" "conftest.in" >"conftest.tmp"
5659     mv "conftest.tmp" "conftest.in"
5660     cp "conftest.in" "conftest.nl"
5661     echo 'EGREP' >> "conftest.nl"
5662     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664     ac_count=`expr $ac_count + 1`
5665     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5666       # Best one so far, save it but keep looking for a better one
5667       ac_cv_path_EGREP="$ac_path_EGREP"
5668       ac_path_EGREP_max=$ac_count
5669     fi
5670     # 10*(2^10) chars as input seems more than enough
5671     test $ac_count -gt 10 && break
5672   done
5673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674 esac
5675
5676
5677     $ac_path_EGREP_found && break 3
5678   done
5679 done
5680
5681 done
5682 IFS=$as_save_IFS
5683
5684
5685 fi
5686
5687 EGREP="$ac_cv_path_EGREP"
5688 if test -z "$EGREP"; then
5689   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5691    { (exit 1); exit 1; }; }
5692 fi
5693
5694 else
5695   ac_cv_path_EGREP=$EGREP
5696 fi
5697
5698
5699    fi
5700 fi
5701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5703  EGREP="$ac_cv_path_EGREP"
5704
5705
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 #if __ELF__
5713   yes
5714 #endif
5715
5716 _ACEOF
5717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5718   $EGREP "yes" >/dev/null 2>&1; then
5719   ELF_SYS=true
5720 else
5721   if test "X$elf" = "Xyes" ; then
5722   ELF_SYS=true
5723 else
5724   ELF_SYS=
5725 fi
5726 fi
5727 rm -f conftest*
5728
5729
5730
5731 #
5732 # Assignments
5733 #
5734
5735 CPPFLAGS="$CPPFLAGS $INCLUDES"
5736 LDFLAGS="$LDFLAGS $LIBDIRS"
5737
5738
5739
5740
5741 # Check whether --with-gnu-ld was given.
5742 if test "${with_gnu_ld+set}" = set; then
5743   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5744 else
5745   with_gnu_ld=no
5746 fi
5747
5748 ac_prog=ld
5749 if test "$GCC" = yes; then
5750   # Check if gcc -print-prog-name=ld gives a path.
5751   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5752 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5753   case $host in
5754   *-*-mingw*)
5755     # gcc leaves a trailing carriage return which upsets mingw
5756     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5757   *)
5758     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5759   esac
5760   case "$ac_prog" in
5761     # Accept absolute paths.
5762     [\\/]* | [A-Za-z]:[\\/]*)
5763       re_direlt='/[^/][^/]*/\.\./'
5764       # Canonicalize the path of ld
5765       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5766       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5767         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5768       done
5769       test -z "$LD" && LD="$ac_prog"
5770       ;;
5771   "")
5772     # If it fails, then pretend we aren't using GCC.
5773     ac_prog=ld
5774     ;;
5775   *)
5776     # If it is relative, then search for the first ld in PATH.
5777     with_gnu_ld=unknown
5778     ;;
5779   esac
5780 elif test "$with_gnu_ld" = yes; then
5781   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5783 else
5784   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5786 fi
5787 if test "${ac_cv_path_LD+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   if test -z "$LD"; then
5791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5792   for ac_dir in $PATH; do
5793     test -z "$ac_dir" && ac_dir=.
5794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5795       ac_cv_path_LD="$ac_dir/$ac_prog"
5796       # Check to see if the program is GNU ld.  I'd rather use --version,
5797       # but apparently some GNU ld's only accept -v.
5798       # Break only if it was the GNU/non-GNU ld that we prefer.
5799       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5800         test "$with_gnu_ld" != no && break
5801       else
5802         test "$with_gnu_ld" != yes && break
5803       fi
5804     fi
5805   done
5806   IFS="$ac_save_ifs"
5807 else
5808   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5809 fi
5810 fi
5811
5812 LD="$ac_cv_path_LD"
5813 if test -n "$LD"; then
5814   { echo "$as_me:$LINENO: result: $LD" >&5
5815 echo "${ECHO_T}$LD" >&6; }
5816 else
5817   { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5819 fi
5820 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5821 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5822    { (exit 1); exit 1; }; }
5823 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5824 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5825 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5830   ac_cv_prog_gnu_ld=yes
5831 else
5832   ac_cv_prog_gnu_ld=no
5833 fi
5834 fi
5835 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5836 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5837 with_gnu_ld=$ac_cv_prog_gnu_ld
5838
5839
5840
5841
5842 case $host_os in sysv5*)
5843   { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5844 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5845 if test "${pgac_cv_prog_ld_R+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848
5849     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5850     cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856
5857 int
5858 main ()
5859 {
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (ac_try="$ac_link"
5867 case "(($ac_try" in
5868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869   *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872   (eval "$ac_link") 2>conftest.er1
5873   ac_status=$?
5874   grep -v '^ *+' conftest.er1 >conftest.err
5875   rm -f conftest.er1
5876   cat conftest.err >&5
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); } && {
5879          test -z "$ac_c_werror_flag" ||
5880          test ! -s conftest.err
5881        } && test -s conftest$ac_exeext &&
5882        $as_test_x conftest$ac_exeext; then
5883   pgac_cv_prog_ld_R=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888         pgac_cv_prog_ld_R=no
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5892       conftest$ac_exeext conftest.$ac_ext
5893     LDFLAGS=$pgac_save_LDFLAGS
5894
5895 fi
5896 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5897 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5898   ld_R_works=$pgac_cv_prog_ld_R
5899
5900 esac
5901 if test -n "$ac_tool_prefix"; then
5902   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   if test -n "$RANLIB"; then
5910   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 RANLIB=$ac_cv_prog_RANLIB
5930 if test -n "$RANLIB"; then
5931   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5932 echo "${ECHO_T}$RANLIB" >&6; }
5933 else
5934   { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5937
5938
5939 fi
5940 if test -z "$ac_cv_prog_RANLIB"; then
5941   ac_ct_RANLIB=$RANLIB
5942   # Extract the first word of "ranlib", so it can be a program name with args.
5943 set dummy ranlib; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   if test -n "$ac_ct_RANLIB"; then
5950   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957   for ac_exec_ext in '' $ac_executable_extensions; do
5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959     ac_cv_prog_ac_ct_RANLIB="ranlib"
5960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5972 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5973 else
5974   { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5976 fi
5977
5978   if test "x$ac_ct_RANLIB" = x; then
5979     RANLIB=":"
5980   else
5981     case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5984 whose name does not start with the host triplet.  If you think this
5985 configuration is useful to you, please write to autoconf@gnu.org." >&5
5986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet.  If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991     RANLIB=$ac_ct_RANLIB
5992   fi
5993 else
5994   RANLIB="$ac_cv_prog_RANLIB"
5995 fi
5996
5997
5998   if test -n "$ac_tool_prefix"; then
5999   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$STRIP"; then
6007   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028   { echo "$as_me:$LINENO: result: $STRIP" >&5
6029 echo "${ECHO_T}$STRIP" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_STRIP"; then
6038   ac_ct_STRIP=$STRIP
6039   # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$ac_ct_STRIP"; then
6047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     ac_cv_prog_ac_ct_STRIP="strip"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6069 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6070 else
6071   { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075   if test "x$ac_ct_STRIP" = x; then
6076     STRIP=":"
6077   else
6078     case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6081 whose name does not start with the host triplet.  If you think this
6082 configuration is useful to you, please write to autoconf@gnu.org." >&5
6083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6084 whose name does not start with the host triplet.  If you think this
6085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088     STRIP=$ac_ct_STRIP
6089   fi
6090 else
6091   STRIP="$ac_cv_prog_STRIP"
6092 fi
6093
6094
6095   { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6096 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6097   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6098     STRIP_STATIC_LIB="$STRIP -x"
6099     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6100     { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6102   else
6103     STRIP_STATIC_LIB=:
6104     STRIP_SHARED_LIB=:
6105     { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107   fi
6108
6109
6110
6111
6112 # Extract the first word of "tar", so it can be a program name with args.
6113 set dummy tar; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_path_TAR+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   case $TAR in
6120   [\\/]* | ?:[\\/]*)
6121   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6122   ;;
6123   *)
6124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139   ;;
6140 esac
6141 fi
6142 TAR=$ac_cv_path_TAR
6143 if test -n "$TAR"; then
6144   { echo "$as_me:$LINENO: result: $TAR" >&5
6145 echo "${ECHO_T}$TAR" >&6; }
6146 else
6147   { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6149 fi
6150
6151
6152 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6153 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6154 LN_S=$as_ln_s
6155 if test "$LN_S" = "ln -s"; then
6156   { echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6160 echo "${ECHO_T}no, using $LN_S" >&6; }
6161 fi
6162
6163 for ac_prog in gawk mawk nawk awk
6164 do
6165   # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_AWK+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   if test -n "$AWK"; then
6173   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180   for ac_exec_ext in '' $ac_executable_extensions; do
6181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182     ac_cv_prog_AWK="$ac_prog"
6183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187 done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 AWK=$ac_cv_prog_AWK
6193 if test -n "$AWK"; then
6194   { echo "$as_me:$LINENO: result: $AWK" >&5
6195 echo "${ECHO_T}$AWK" >&6; }
6196 else
6197   { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6199 fi
6200
6201
6202   test -n "$AWK" && break
6203 done
6204
6205
6206 # Let the user override the search
6207 if test -z "$BISON"; then
6208   for ac_prog in bison
6209 do
6210   # Extract the first word of "$ac_prog", so it can be a program name with args.
6211 set dummy $ac_prog; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_BISON+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$BISON"; then
6218   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_BISON="$ac_prog"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 BISON=$ac_cv_prog_BISON
6238 if test -n "$BISON"; then
6239   { echo "$as_me:$LINENO: result: $BISON" >&5
6240 echo "${ECHO_T}$BISON" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6245
6246
6247   test -n "$BISON" && break
6248 done
6249
6250 fi
6251
6252 if test "$BISON"; then
6253   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6254   { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6255 echo "$as_me: using $pgac_bison_version" >&6;}
6256   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6257   then
6258     { echo "$as_me:$LINENO: WARNING:
6259 *** The installed version of Bison is too old to use with PostgreSQL.
6260 *** Bison version 1.875 or later is required." >&5
6261 echo "$as_me: WARNING:
6262 *** The installed version of Bison is too old to use with PostgreSQL.
6263 *** Bison version 1.875 or later is required." >&2;}
6264     BISON=""
6265   fi
6266 fi
6267
6268 if test -z "$BISON"; then
6269   { echo "$as_me:$LINENO: WARNING:
6270 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6271 *** change any of the parser definition files.  You can obtain Bison from
6272 *** a GNU mirror site.  (If you are using the official distribution of
6273 *** PostgreSQL then you do not need to worry about this, because the Bison
6274 *** output is pre-generated.)" >&5
6275 echo "$as_me: WARNING:
6276 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6277 *** change any of the parser definition files.  You can obtain Bison from
6278 *** a GNU mirror site.  (If you are using the official distribution of
6279 *** PostgreSQL then you do not need to worry about this, because the Bison
6280 *** output is pre-generated.)" >&2;}
6281 fi
6282 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6283
6284
6285 { echo "$as_me:$LINENO: checking for flex" >&5
6286 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6287 if test "${pgac_cv_path_flex+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   # Let the user override the test
6291 if test -n "$FLEX"; then
6292   pgac_cv_path_flex=$FLEX
6293 else
6294   pgac_save_IFS=$IFS
6295   IFS=$PATH_SEPARATOR
6296   for pgac_dir in $PATH; do
6297     IFS=$pgac_save_IFS
6298     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6299       pgac_dir=`pwd`
6300     fi
6301     for pgac_prog in flex lex; do
6302       pgac_candidate="$pgac_dir/$pgac_prog"
6303       if test -f "$pgac_candidate" \
6304         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6305       then
6306         echo '%%'  > conftest.l
6307         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6308           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6309             pgac_broken_flex=$pgac_candidate
6310             continue
6311           fi
6312
6313           pgac_cv_path_flex=$pgac_candidate
6314           break 2
6315         fi
6316       fi
6317     done
6318   done
6319   rm -f conftest.l lex.yy.c
6320   : ${pgac_cv_path_flex=no}
6321 fi
6322
6323 fi
6324 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6325 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6326 if test x"$pgac_cv_path_flex" = x"no"; then
6327   if test -n "$pgac_broken_flex"; then
6328     { echo "$as_me:$LINENO: WARNING:
6329 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6330 *** should get version 2.5.4 or later." >&5
6331 echo "$as_me: WARNING:
6332 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6333 *** should get version 2.5.4 or later." >&2;}
6334   fi
6335
6336   { echo "$as_me:$LINENO: WARNING:
6337 *** Without Flex you will not be able to build PostgreSQL from CVS or
6338 *** change any of the scanner definition files.  You can obtain Flex from
6339 *** a GNU mirror site.  (If you are using the official distribution of
6340 *** PostgreSQL then you do not need to worry about this because the Flex
6341 *** output is pre-generated.)" >&5
6342 echo "$as_me: WARNING:
6343 *** Without Flex you will not be able to build PostgreSQL from CVS or
6344 *** change any of the scanner definition files.  You can obtain Flex from
6345 *** a GNU mirror site.  (If you are using the official distribution of
6346 *** PostgreSQL then you do not need to worry about this because the Flex
6347 *** output is pre-generated.)" >&2;}
6348
6349   FLEX=
6350 else
6351   FLEX=$pgac_cv_path_flex
6352   pgac_flex_version=`$FLEX -V 2>/dev/null`
6353   { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6354 echo "$as_me: using $pgac_flex_version" >&6;}
6355 fi
6356
6357
6358
6359
6360
6361 # Extract the first word of "perl", so it can be a program name with args.
6362 set dummy perl; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_PERL+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   case $PERL in
6369   [\\/]* | ?:[\\/]*)
6370   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6371   ;;
6372   *)
6373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378   for ac_exec_ext in '' $ac_executable_extensions; do
6379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382     break 2
6383   fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388   ;;
6389 esac
6390 fi
6391 PERL=$ac_cv_path_PERL
6392 if test -n "$PERL"; then
6393   { echo "$as_me:$LINENO: result: $PERL" >&5
6394 echo "${ECHO_T}$PERL" >&6; }
6395 else
6396   { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 fi
6399
6400
6401 if test "$with_perl" = yes; then
6402
6403 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6404 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6405 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6406 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6407 echo "${ECHO_T}$perl_archlibexp" >&6; }
6408 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6409 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6410 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6411 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6412 echo "${ECHO_T}$perl_privlibexp" >&6; }
6413 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6414 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6415 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6416 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6417 echo "${ECHO_T}$perl_useshrplib" >&6; }
6418
6419 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6420 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6421 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6422 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6423 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6424 if test -z "$perl_embed_ldflags" ; then
6425         { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427         { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6428 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6429 installed." >&5
6430 echo "$as_me: error: could not determine flags for linking embedded Perl.
6431 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6432 installed." >&2;}
6433    { (exit 1); exit 1; }; }
6434 else
6435         { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6436 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6437 fi
6438
6439 fi
6440
6441 if test "$with_python" = yes; then
6442   # Extract the first word of "python", so it can be a program name with args.
6443 set dummy python; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_path_PYTHON+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   case $PYTHON in
6450   [\\/]* | ?:[\\/]*)
6451   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6452   ;;
6453   *)
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459   for ac_exec_ext in '' $ac_executable_extensions; do
6460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469   ;;
6470 esac
6471 fi
6472 PYTHON=$ac_cv_path_PYTHON
6473 if test -n "$PYTHON"; then
6474   { echo "$as_me:$LINENO: result: $PYTHON" >&5
6475 echo "${ECHO_T}$PYTHON" >&6; }
6476 else
6477   { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6479 fi
6480
6481
6482 if test x"$PYTHON" = x""; then
6483   { { echo "$as_me:$LINENO: error: Python not found" >&5
6484 echo "$as_me: error: Python not found" >&2;}
6485    { (exit 1); exit 1; }; }
6486 fi
6487
6488
6489 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6490 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6491 if "${PYTHON}" 2>&- -c 'import distutils'
6492 then
6493     { echo "$as_me:$LINENO: result: yes" >&5
6494 echo "${ECHO_T}yes" >&6; }
6495 else
6496     { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6499 echo "$as_me: error: distutils module not found" >&2;}
6500    { (exit 1); exit 1; }; }
6501 fi
6502 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6503 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6504 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6505 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')"`
6506 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6507
6508 # This should be enough of a message.
6509 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6510 echo "${ECHO_T}$python_configdir" >&6; }
6511
6512
6513 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6514 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6515
6516 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6517 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6518 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6519 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6520
6521 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6522 then
6523         # New way: use the official shared library
6524         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6525         python_libspec="-L${python_libdir} -l${ldlibrary}"
6526 else
6527         # Old way: use libpython from python_configdir
6528         python_libdir="${python_configdir}"
6529         python_libspec="-L${python_libdir} -lpython${python_version}"
6530 fi
6531
6532 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
6534 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6535 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6536
6537
6538 # threaded python is not supported on bsd's
6539 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6540 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6541 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6542 if test "$pythreads" = "1"; then
6543   { echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6; }
6545   case $host_os in
6546   openbsd*|freebsd*)
6547     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6548 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6549    { (exit 1); exit 1; }; }
6550     ;;
6551   esac
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 fi
6559
6560 # Supply a numeric version string for use by 3rd party add-ons
6561 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6562 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6563 tr '.' '        ' |
6564 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6565
6566 cat >>confdefs.h <<_ACEOF
6567 #define PG_VERSION_NUM $PG_VERSION_NUM
6568 _ACEOF
6569
6570
6571 ##
6572 ## Libraries
6573 ##
6574 ## Most libraries are included only if they demonstrably provide a function
6575 ## we need, but libm is an exception: always include it, because there are
6576 ## too many compilers that play cute optimization games that will break
6577 ## probes for standard functions such as pow().
6578 ##
6579
6580
6581 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6582 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6583 if test "${ac_cv_lib_m_main+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   ac_check_lib_save_LIBS=$LIBS
6587 LIBS="-lm  $LIBS"
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6594
6595
6596 int
6597 main ()
6598 {
6599 return main ();
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (ac_try="$ac_link"
6606 case "(($ac_try" in
6607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608   *) ac_try_echo=$ac_try;;
6609 esac
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611   (eval "$ac_link") 2>conftest.er1
6612   ac_status=$?
6613   grep -v '^ *+' conftest.er1 >conftest.err
6614   rm -f conftest.er1
6615   cat conftest.err >&5
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } && {
6618          test -z "$ac_c_werror_flag" ||
6619          test ! -s conftest.err
6620        } && test -s conftest$ac_exeext &&
6621        $as_test_x conftest$ac_exeext; then
6622   ac_cv_lib_m_main=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627         ac_cv_lib_m_main=no
6628 fi
6629
6630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6631       conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_check_lib_save_LIBS
6633 fi
6634 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6635 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6636 if test $ac_cv_lib_m_main = yes; then
6637   cat >>confdefs.h <<_ACEOF
6638 #define HAVE_LIBM 1
6639 _ACEOF
6640
6641   LIBS="-lm $LIBS"
6642
6643 fi
6644
6645 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6646 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6647 if test "${ac_cv_search_setproctitle+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   ac_func_search_save_LIBS=$LIBS
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657
6658 /* Override any GCC internal prototype to avoid an error.
6659    Use char because int might match the return type of a GCC
6660    builtin and then its argument prototype would still apply.  */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 char setproctitle ();
6665 int
6666 main ()
6667 {
6668 return setproctitle ();
6669   ;
6670   return 0;
6671 }
6672 _ACEOF
6673 for ac_lib in '' util; do
6674   if test -z "$ac_lib"; then
6675     ac_res="none required"
6676   else
6677     ac_res=-l$ac_lib
6678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6679   fi
6680   rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6682 case "(($ac_try" in
6683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684   *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687   (eval "$ac_link") 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } && {
6694          test -z "$ac_c_werror_flag" ||
6695          test ! -s conftest.err
6696        } && test -s conftest$ac_exeext &&
6697        $as_test_x conftest$ac_exeext; then
6698   ac_cv_search_setproctitle=$ac_res
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703
6704 fi
6705
6706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6707       conftest$ac_exeext
6708   if test "${ac_cv_search_setproctitle+set}" = set; then
6709   break
6710 fi
6711 done
6712 if test "${ac_cv_search_setproctitle+set}" = set; then
6713   :
6714 else
6715   ac_cv_search_setproctitle=no
6716 fi
6717 rm conftest.$ac_ext
6718 LIBS=$ac_func_search_save_LIBS
6719 fi
6720 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6721 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6722 ac_res=$ac_cv_search_setproctitle
6723 if test "$ac_res" != no; then
6724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6725
6726 fi
6727
6728 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6729 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6730 if test "${ac_cv_search_dlopen+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   ac_func_search_save_LIBS=$LIBS
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h.  */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h.  */
6740
6741 /* Override any GCC internal prototype to avoid an error.
6742    Use char because int might match the return type of a GCC
6743    builtin and then its argument prototype would still apply.  */
6744 #ifdef __cplusplus
6745 extern "C"
6746 #endif
6747 char dlopen ();
6748 int
6749 main ()
6750 {
6751 return dlopen ();
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 for ac_lib in '' dl; do
6757   if test -z "$ac_lib"; then
6758     ac_res="none required"
6759   else
6760     ac_res=-l$ac_lib
6761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6762   fi
6763   rm -f conftest.$ac_objext conftest$ac_exeext
6764 if { (ac_try="$ac_link"
6765 case "(($ac_try" in
6766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767   *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770   (eval "$ac_link") 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } && {
6777          test -z "$ac_c_werror_flag" ||
6778          test ! -s conftest.err
6779        } && test -s conftest$ac_exeext &&
6780        $as_test_x conftest$ac_exeext; then
6781   ac_cv_search_dlopen=$ac_res
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6790       conftest$ac_exeext
6791   if test "${ac_cv_search_dlopen+set}" = set; then
6792   break
6793 fi
6794 done
6795 if test "${ac_cv_search_dlopen+set}" = set; then
6796   :
6797 else
6798   ac_cv_search_dlopen=no
6799 fi
6800 rm conftest.$ac_ext
6801 LIBS=$ac_func_search_save_LIBS
6802 fi
6803 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6804 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6805 ac_res=$ac_cv_search_dlopen
6806 if test "$ac_res" != no; then
6807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6808
6809 fi
6810
6811 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6812 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6813 if test "${ac_cv_search_socket+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   ac_func_search_save_LIBS=$LIBS
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h.  */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h.  */
6823
6824 /* Override any GCC internal prototype to avoid an error.
6825    Use char because int might match the return type of a GCC
6826    builtin and then its argument prototype would still apply.  */
6827 #ifdef __cplusplus
6828 extern "C"
6829 #endif
6830 char socket ();
6831 int
6832 main ()
6833 {
6834 return socket ();
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 for ac_lib in '' socket wsock32; do
6840   if test -z "$ac_lib"; then
6841     ac_res="none required"
6842   else
6843     ac_res=-l$ac_lib
6844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6845   fi
6846   rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (ac_try="$ac_link"
6848 case "(($ac_try" in
6849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850   *) ac_try_echo=$ac_try;;
6851 esac
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853   (eval "$ac_link") 2>conftest.er1
6854   ac_status=$?
6855   grep -v '^ *+' conftest.er1 >conftest.err
6856   rm -f conftest.er1
6857   cat conftest.err >&5
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } && {
6860          test -z "$ac_c_werror_flag" ||
6861          test ! -s conftest.err
6862        } && test -s conftest$ac_exeext &&
6863        $as_test_x conftest$ac_exeext; then
6864   ac_cv_search_socket=$ac_res
6865 else
6866   echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6868
6869
6870 fi
6871
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873       conftest$ac_exeext
6874   if test "${ac_cv_search_socket+set}" = set; then
6875   break
6876 fi
6877 done
6878 if test "${ac_cv_search_socket+set}" = set; then
6879   :
6880 else
6881   ac_cv_search_socket=no
6882 fi
6883 rm conftest.$ac_ext
6884 LIBS=$ac_func_search_save_LIBS
6885 fi
6886 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6887 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6888 ac_res=$ac_cv_search_socket
6889 if test "$ac_res" != no; then
6890   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6891
6892 fi
6893
6894 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6895 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6896 if test "${ac_cv_search_shl_load+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   ac_func_search_save_LIBS=$LIBS
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906
6907 /* Override any GCC internal prototype to avoid an error.
6908    Use char because int might match the return type of a GCC
6909    builtin and then its argument prototype would still apply.  */
6910 #ifdef __cplusplus
6911 extern "C"
6912 #endif
6913 char shl_load ();
6914 int
6915 main ()
6916 {
6917 return shl_load ();
6918   ;
6919   return 0;
6920 }
6921 _ACEOF
6922 for ac_lib in '' dld; do
6923   if test -z "$ac_lib"; then
6924     ac_res="none required"
6925   else
6926     ac_res=-l$ac_lib
6927     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6928   fi
6929   rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933   *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936   (eval "$ac_link") 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } && {
6943          test -z "$ac_c_werror_flag" ||
6944          test ! -s conftest.err
6945        } && test -s conftest$ac_exeext &&
6946        $as_test_x conftest$ac_exeext; then
6947   ac_cv_search_shl_load=$ac_res
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956       conftest$ac_exeext
6957   if test "${ac_cv_search_shl_load+set}" = set; then
6958   break
6959 fi
6960 done
6961 if test "${ac_cv_search_shl_load+set}" = set; then
6962   :
6963 else
6964   ac_cv_search_shl_load=no
6965 fi
6966 rm conftest.$ac_ext
6967 LIBS=$ac_func_search_save_LIBS
6968 fi
6969 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6970 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6971 ac_res=$ac_cv_search_shl_load
6972 if test "$ac_res" != no; then
6973   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6974
6975 fi
6976
6977 # We only use libld in port/dynloader/aix.c
6978 case $host_os in
6979      aix*)
6980         { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6981 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6982 if test "${ac_cv_search_ldopen+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   ac_func_search_save_LIBS=$LIBS
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992
6993 /* Override any GCC internal prototype to avoid an error.
6994    Use char because int might match the return type of a GCC
6995    builtin and then its argument prototype would still apply.  */
6996 #ifdef __cplusplus
6997 extern "C"
6998 #endif
6999 char ldopen ();
7000 int
7001 main ()
7002 {
7003 return ldopen ();
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 for ac_lib in '' ld; do
7009   if test -z "$ac_lib"; then
7010     ac_res="none required"
7011   else
7012     ac_res=-l$ac_lib
7013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7014   fi
7015   rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (ac_try="$ac_link"
7017 case "(($ac_try" in
7018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019   *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022   (eval "$ac_link") 2>conftest.er1
7023   ac_status=$?
7024   grep -v '^ *+' conftest.er1 >conftest.err
7025   rm -f conftest.er1
7026   cat conftest.err >&5
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && {
7029          test -z "$ac_c_werror_flag" ||
7030          test ! -s conftest.err
7031        } && test -s conftest$ac_exeext &&
7032        $as_test_x conftest$ac_exeext; then
7033   ac_cv_search_ldopen=$ac_res
7034 else
7035   echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038
7039 fi
7040
7041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042       conftest$ac_exeext
7043   if test "${ac_cv_search_ldopen+set}" = set; then
7044   break
7045 fi
7046 done
7047 if test "${ac_cv_search_ldopen+set}" = set; then
7048   :
7049 else
7050   ac_cv_search_ldopen=no
7051 fi
7052 rm conftest.$ac_ext
7053 LIBS=$ac_func_search_save_LIBS
7054 fi
7055 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7056 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7057 ac_res=$ac_cv_search_ldopen
7058 if test "$ac_res" != no; then
7059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7060
7061 fi
7062
7063         ;;
7064 esac
7065 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7066 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7067 if test "${ac_cv_search_getopt_long+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   ac_func_search_save_LIBS=$LIBS
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h.  */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h.  */
7077
7078 /* Override any GCC internal prototype to avoid an error.
7079    Use char because int might match the return type of a GCC
7080    builtin and then its argument prototype would still apply.  */
7081 #ifdef __cplusplus
7082 extern "C"
7083 #endif
7084 char getopt_long ();
7085 int
7086 main ()
7087 {
7088 return getopt_long ();
7089   ;
7090   return 0;
7091 }
7092 _ACEOF
7093 for ac_lib in '' getopt gnugetopt; do
7094   if test -z "$ac_lib"; then
7095     ac_res="none required"
7096   else
7097     ac_res=-l$ac_lib
7098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7099   fi
7100   rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (ac_try="$ac_link"
7102 case "(($ac_try" in
7103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104   *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107   (eval "$ac_link") 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } && {
7114          test -z "$ac_c_werror_flag" ||
7115          test ! -s conftest.err
7116        } && test -s conftest$ac_exeext &&
7117        $as_test_x conftest$ac_exeext; then
7118   ac_cv_search_getopt_long=$ac_res
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123
7124 fi
7125
7126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7127       conftest$ac_exeext
7128   if test "${ac_cv_search_getopt_long+set}" = set; then
7129   break
7130 fi
7131 done
7132 if test "${ac_cv_search_getopt_long+set}" = set; then
7133   :
7134 else
7135   ac_cv_search_getopt_long=no
7136 fi
7137 rm conftest.$ac_ext
7138 LIBS=$ac_func_search_save_LIBS
7139 fi
7140 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7141 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7142 ac_res=$ac_cv_search_getopt_long
7143 if test "$ac_res" != no; then
7144   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7145
7146 fi
7147
7148 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7149 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7150 if test "${ac_cv_search_crypt+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   ac_func_search_save_LIBS=$LIBS
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160
7161 /* Override any GCC internal prototype to avoid an error.
7162    Use char because int might match the return type of a GCC
7163    builtin and then its argument prototype would still apply.  */
7164 #ifdef __cplusplus
7165 extern "C"
7166 #endif
7167 char crypt ();
7168 int
7169 main ()
7170 {
7171 return crypt ();
7172   ;
7173   return 0;
7174 }
7175 _ACEOF
7176 for ac_lib in '' crypt; do
7177   if test -z "$ac_lib"; then
7178     ac_res="none required"
7179   else
7180     ac_res=-l$ac_lib
7181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7182   fi
7183   rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (ac_try="$ac_link"
7185 case "(($ac_try" in
7186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187   *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190   (eval "$ac_link") 2>conftest.er1
7191   ac_status=$?
7192   grep -v '^ *+' conftest.er1 >conftest.err
7193   rm -f conftest.er1
7194   cat conftest.err >&5
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } && {
7197          test -z "$ac_c_werror_flag" ||
7198          test ! -s conftest.err
7199        } && test -s conftest$ac_exeext &&
7200        $as_test_x conftest$ac_exeext; then
7201   ac_cv_search_crypt=$ac_res
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206
7207 fi
7208
7209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7210       conftest$ac_exeext
7211   if test "${ac_cv_search_crypt+set}" = set; then
7212   break
7213 fi
7214 done
7215 if test "${ac_cv_search_crypt+set}" = set; then
7216   :
7217 else
7218   ac_cv_search_crypt=no
7219 fi
7220 rm conftest.$ac_ext
7221 LIBS=$ac_func_search_save_LIBS
7222 fi
7223 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7224 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7225 ac_res=$ac_cv_search_crypt
7226 if test "$ac_res" != no; then
7227   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7228
7229 fi
7230
7231 # Solaris:
7232 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7233 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7234 if test "${ac_cv_search_fdatasync+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   ac_func_search_save_LIBS=$LIBS
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244
7245 /* Override any GCC internal prototype to avoid an error.
7246    Use char because int might match the return type of a GCC
7247    builtin and then its argument prototype would still apply.  */
7248 #ifdef __cplusplus
7249 extern "C"
7250 #endif
7251 char fdatasync ();
7252 int
7253 main ()
7254 {
7255 return fdatasync ();
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 for ac_lib in '' rt posix4; do
7261   if test -z "$ac_lib"; then
7262     ac_res="none required"
7263   else
7264     ac_res=-l$ac_lib
7265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7266   fi
7267   rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7269 case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274   (eval "$ac_link") 2>conftest.er1
7275   ac_status=$?
7276   grep -v '^ *+' conftest.er1 >conftest.err
7277   rm -f conftest.er1
7278   cat conftest.err >&5
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } && {
7281          test -z "$ac_c_werror_flag" ||
7282          test ! -s conftest.err
7283        } && test -s conftest$ac_exeext &&
7284        $as_test_x conftest$ac_exeext; then
7285   ac_cv_search_fdatasync=$ac_res
7286 else
7287   echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290
7291 fi
7292
7293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7294       conftest$ac_exeext
7295   if test "${ac_cv_search_fdatasync+set}" = set; then
7296   break
7297 fi
7298 done
7299 if test "${ac_cv_search_fdatasync+set}" = set; then
7300   :
7301 else
7302   ac_cv_search_fdatasync=no
7303 fi
7304 rm conftest.$ac_ext
7305 LIBS=$ac_func_search_save_LIBS
7306 fi
7307 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7308 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7309 ac_res=$ac_cv_search_fdatasync
7310 if test "$ac_res" != no; then
7311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7312
7313 fi
7314
7315 # Cygwin:
7316 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7317 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7318 if test "${ac_cv_search_shmget+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_func_search_save_LIBS=$LIBS
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328
7329 /* Override any GCC internal prototype to avoid an error.
7330    Use char because int might match the return type of a GCC
7331    builtin and then its argument prototype would still apply.  */
7332 #ifdef __cplusplus
7333 extern "C"
7334 #endif
7335 char shmget ();
7336 int
7337 main ()
7338 {
7339 return shmget ();
7340   ;
7341   return 0;
7342 }
7343 _ACEOF
7344 for ac_lib in '' cygipc; do
7345   if test -z "$ac_lib"; then
7346     ac_res="none required"
7347   else
7348     ac_res=-l$ac_lib
7349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7350   fi
7351   rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (ac_try="$ac_link"
7353 case "(($ac_try" in
7354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355   *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358   (eval "$ac_link") 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } && {
7365          test -z "$ac_c_werror_flag" ||
7366          test ! -s conftest.err
7367        } && test -s conftest$ac_exeext &&
7368        $as_test_x conftest$ac_exeext; then
7369   ac_cv_search_shmget=$ac_res
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378       conftest$ac_exeext
7379   if test "${ac_cv_search_shmget+set}" = set; then
7380   break
7381 fi
7382 done
7383 if test "${ac_cv_search_shmget+set}" = set; then
7384   :
7385 else
7386   ac_cv_search_shmget=no
7387 fi
7388 rm conftest.$ac_ext
7389 LIBS=$ac_func_search_save_LIBS
7390 fi
7391 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7392 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7393 ac_res=$ac_cv_search_shmget
7394 if test "$ac_res" != no; then
7395   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7396
7397 fi
7398
7399
7400 if test "$with_readline" = yes; then
7401
7402
7403 if test "${pgac_cv_check_readline+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   pgac_cv_check_readline=no
7407 pgac_save_LIBS=$LIBS
7408 if test x"$with_libedit_preferred" != x"yes"
7409 then    READLINE_ORDER="-lreadline -ledit"
7410 else    READLINE_ORDER="-ledit -lreadline"
7411 fi
7412 for pgac_rllib in $READLINE_ORDER ; do
7413   { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7414 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7415   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7416     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7417     cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423
7424 /* Override any GCC internal prototype to avoid an error.
7425    Use char because int might match the return type of a GCC
7426    builtin and then its argument prototype would still apply.  */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 char readline ();
7431 int
7432 main ()
7433 {
7434 return readline ();
7435   ;
7436   return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443   *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446   (eval "$ac_link") 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } && {
7453          test -z "$ac_c_werror_flag" ||
7454          test ! -s conftest.err
7455        } && test -s conftest$ac_exeext &&
7456        $as_test_x conftest$ac_exeext; then
7457
7458       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7459       # recognize dependent libraries; assume curses is needed if we didn't
7460       # find any dependency.
7461       case $host_os in
7462         netbsd* | openbsd* | irix*)
7463           if test x"$pgac_lib" = x"" ; then
7464             pgac_lib=" -lcurses"
7465           fi ;;
7466       esac
7467
7468       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7469       break
7470
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475
7476 fi
7477
7478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7479       conftest$ac_exeext conftest.$ac_ext
7480   done
7481   if test "$pgac_cv_check_readline" != no ; then
7482     { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7483 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7484     break
7485   else
7486     { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7488   fi
7489 done
7490 LIBS=$pgac_save_LIBS
7491
7492 fi
7493
7494 if test "$pgac_cv_check_readline" != no ; then
7495   LIBS="$pgac_cv_check_readline $LIBS"
7496
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_LIBREADLINE 1
7499 _ACEOF
7500
7501 fi
7502
7503
7504   if test x"$pgac_cv_check_readline" = x"no"; then
7505     { { echo "$as_me:$LINENO: error: readline library not found
7506 If you have readline already installed, see config.log for details on the
7507 failure.  It is possible the compiler isn't looking in the proper directory.
7508 Use --without-readline to disable readline support." >&5
7509 echo "$as_me: error: readline library not found
7510 If you have readline already installed, see config.log for details on the
7511 failure.  It is possible the compiler isn't looking in the proper directory.
7512 Use --without-readline to disable readline support." >&2;}
7513    { (exit 1); exit 1; }; }
7514   fi
7515 fi
7516
7517 if test "$with_zlib" = yes; then
7518
7519 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7520 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7521 if test "${ac_cv_lib_z_inflate+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   ac_check_lib_save_LIBS=$LIBS
7525 LIBS="-lz  $LIBS"
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532
7533 /* Override any GCC internal prototype to avoid an error.
7534    Use char because int might match the return type of a GCC
7535    builtin and then its argument prototype would still apply.  */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 char inflate ();
7540 int
7541 main ()
7542 {
7543 return inflate ();
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7550 case "(($ac_try" in
7551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552   *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555   (eval "$ac_link") 2>conftest.er1
7556   ac_status=$?
7557   grep -v '^ *+' conftest.er1 >conftest.err
7558   rm -f conftest.er1
7559   cat conftest.err >&5
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } && {
7562          test -z "$ac_c_werror_flag" ||
7563          test ! -s conftest.err
7564        } && test -s conftest$ac_exeext &&
7565        $as_test_x conftest$ac_exeext; then
7566   ac_cv_lib_z_inflate=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571         ac_cv_lib_z_inflate=no
7572 fi
7573
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575       conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7577 fi
7578 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7579 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7580 if test $ac_cv_lib_z_inflate = yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define HAVE_LIBZ 1
7583 _ACEOF
7584
7585   LIBS="-lz $LIBS"
7586
7587 else
7588   { { echo "$as_me:$LINENO: error: zlib library not found
7589 If you have zlib already installed, see config.log for details on the
7590 failure.  It is possible the compiler isn't looking in the proper directory.
7591 Use --without-zlib to disable zlib support." >&5
7592 echo "$as_me: error: zlib library not found
7593 If you have zlib already installed, see config.log for details on the
7594 failure.  It is possible the compiler isn't looking in the proper directory.
7595 Use --without-zlib to disable zlib support." >&2;}
7596    { (exit 1); exit 1; }; }
7597 fi
7598
7599 fi
7600
7601 if test "$enable_spinlocks" = yes; then
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_SPINLOCKS 1
7605 _ACEOF
7606
7607 else
7608   { echo "$as_me:$LINENO: WARNING:
7609 *** Not using spinlocks will cause poor performance." >&5
7610 echo "$as_me: WARNING:
7611 *** Not using spinlocks will cause poor performance." >&2;}
7612 fi
7613
7614 if test "$with_gssapi" = yes ; then
7615   if test "$PORTNAME" != "win32"; then
7616     { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7617 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7618 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   ac_func_search_save_LIBS=$LIBS
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628
7629 /* Override any GCC internal prototype to avoid an error.
7630    Use char because int might match the return type of a GCC
7631    builtin and then its argument prototype would still apply.  */
7632 #ifdef __cplusplus
7633 extern "C"
7634 #endif
7635 char gss_init_sec_context ();
7636 int
7637 main ()
7638 {
7639 return gss_init_sec_context ();
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7645   if test -z "$ac_lib"; then
7646     ac_res="none required"
7647   else
7648     ac_res=-l$ac_lib
7649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7650   fi
7651   rm -f conftest.$ac_objext conftest$ac_exeext
7652 if { (ac_try="$ac_link"
7653 case "(($ac_try" in
7654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655   *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658   (eval "$ac_link") 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } && {
7665          test -z "$ac_c_werror_flag" ||
7666          test ! -s conftest.err
7667        } && test -s conftest$ac_exeext &&
7668        $as_test_x conftest$ac_exeext; then
7669   ac_cv_search_gss_init_sec_context=$ac_res
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674
7675 fi
7676
7677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7678       conftest$ac_exeext
7679   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7680   break
7681 fi
7682 done
7683 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7684   :
7685 else
7686   ac_cv_search_gss_init_sec_context=no
7687 fi
7688 rm conftest.$ac_ext
7689 LIBS=$ac_func_search_save_LIBS
7690 fi
7691 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7692 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7693 ac_res=$ac_cv_search_gss_init_sec_context
7694 if test "$ac_res" != no; then
7695   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7696
7697 else
7698   { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7699 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7700    { (exit 1); exit 1; }; }
7701 fi
7702
7703   else
7704     LIBS="$LIBS -lgssapi32"
7705   fi
7706 fi
7707
7708 if test "$with_krb5" = yes ; then
7709   if test "$PORTNAME" != "win32"; then
7710      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7711 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7712 if test "${ac_cv_search_com_err+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   ac_func_search_save_LIBS=$LIBS
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722
7723 /* Override any GCC internal prototype to avoid an error.
7724    Use char because int might match the return type of a GCC
7725    builtin and then its argument prototype would still apply.  */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 char com_err ();
7730 int
7731 main ()
7732 {
7733 return com_err ();
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7739   if test -z "$ac_lib"; then
7740     ac_res="none required"
7741   else
7742     ac_res=-l$ac_lib
7743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7744   fi
7745   rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7747 case "(($ac_try" in
7748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749   *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752   (eval "$ac_link") 2>conftest.er1
7753   ac_status=$?
7754   grep -v '^ *+' conftest.er1 >conftest.err
7755   rm -f conftest.er1
7756   cat conftest.err >&5
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); } && {
7759          test -z "$ac_c_werror_flag" ||
7760          test ! -s conftest.err
7761        } && test -s conftest$ac_exeext &&
7762        $as_test_x conftest$ac_exeext; then
7763   ac_cv_search_com_err=$ac_res
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768
7769 fi
7770
7771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7772       conftest$ac_exeext
7773   if test "${ac_cv_search_com_err+set}" = set; then
7774   break
7775 fi
7776 done
7777 if test "${ac_cv_search_com_err+set}" = set; then
7778   :
7779 else
7780   ac_cv_search_com_err=no
7781 fi
7782 rm conftest.$ac_ext
7783 LIBS=$ac_func_search_save_LIBS
7784 fi
7785 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7786 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7787 ac_res=$ac_cv_search_com_err
7788 if test "$ac_res" != no; then
7789   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7790
7791 else
7792   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7793 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7794    { (exit 1); exit 1; }; }
7795 fi
7796
7797      { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7798 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7799 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_func_search_save_LIBS=$LIBS
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809
7810 /* Override any GCC internal prototype to avoid an error.
7811    Use char because int might match the return type of a GCC
7812    builtin and then its argument prototype would still apply.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 char krb5_sendauth ();
7817 int
7818 main ()
7819 {
7820 return krb5_sendauth ();
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7826   if test -z "$ac_lib"; then
7827     ac_res="none required"
7828   else
7829     ac_res=-l$ac_lib
7830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7831   fi
7832   rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7834 case "(($ac_try" in
7835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836   *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839   (eval "$ac_link") 2>conftest.er1
7840   ac_status=$?
7841   grep -v '^ *+' conftest.er1 >conftest.err
7842   rm -f conftest.er1
7843   cat conftest.err >&5
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } && {
7846          test -z "$ac_c_werror_flag" ||
7847          test ! -s conftest.err
7848        } && test -s conftest$ac_exeext &&
7849        $as_test_x conftest$ac_exeext; then
7850   ac_cv_search_krb5_sendauth=$ac_res
7851 else
7852   echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855
7856 fi
7857
7858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7859       conftest$ac_exeext
7860   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7861   break
7862 fi
7863 done
7864 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7865   :
7866 else
7867   ac_cv_search_krb5_sendauth=no
7868 fi
7869 rm conftest.$ac_ext
7870 LIBS=$ac_func_search_save_LIBS
7871 fi
7872 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7873 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7874 ac_res=$ac_cv_search_krb5_sendauth
7875 if test "$ac_res" != no; then
7876   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7877
7878 else
7879   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7880 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7881    { (exit 1); exit 1; }; }
7882 fi
7883
7884   else
7885      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7886 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7887 if test "${ac_cv_search_com_err+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   ac_func_search_save_LIBS=$LIBS
7891 cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h.  */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h.  */
7897
7898 /* Override any GCC internal prototype to avoid an error.
7899    Use char because int might match the return type of a GCC
7900    builtin and then its argument prototype would still apply.  */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 char com_err ();
7905 int
7906 main ()
7907 {
7908 return com_err ();
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7914   if test -z "$ac_lib"; then
7915     ac_res="none required"
7916   else
7917     ac_res=-l$ac_lib
7918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7919   fi
7920   rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (ac_try="$ac_link"
7922 case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_link") 2>conftest.er1
7928   ac_status=$?
7929   grep -v '^ *+' conftest.er1 >conftest.err
7930   rm -f conftest.er1
7931   cat conftest.err >&5
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } && {
7934          test -z "$ac_c_werror_flag" ||
7935          test ! -s conftest.err
7936        } && test -s conftest$ac_exeext &&
7937        $as_test_x conftest$ac_exeext; then
7938   ac_cv_search_com_err=$ac_res
7939 else
7940   echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943
7944 fi
7945
7946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7947       conftest$ac_exeext
7948   if test "${ac_cv_search_com_err+set}" = set; then
7949   break
7950 fi
7951 done
7952 if test "${ac_cv_search_com_err+set}" = set; then
7953   :
7954 else
7955   ac_cv_search_com_err=no
7956 fi
7957 rm conftest.$ac_ext
7958 LIBS=$ac_func_search_save_LIBS
7959 fi
7960 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7961 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7962 ac_res=$ac_cv_search_com_err
7963 if test "$ac_res" != no; then
7964   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7965
7966 else
7967   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7968 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7969    { (exit 1); exit 1; }; }
7970 fi
7971
7972   fi
7973 fi
7974
7975 if test "$with_openssl" = yes ; then
7976     if test "$PORTNAME" != "win32"; then
7977
7978 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7979 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7980 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-lcrypto  $LIBS"
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991
7992 /* Override any GCC internal prototype to avoid an error.
7993    Use char because int might match the return type of a GCC
7994    builtin and then its argument prototype would still apply.  */
7995 #ifdef __cplusplus
7996 extern "C"
7997 #endif
7998 char CRYPTO_new_ex_data ();
7999 int
8000 main ()
8001 {
8002 return CRYPTO_new_ex_data ();
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (ac_try="$ac_link"
8009 case "(($ac_try" in
8010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011   *) ac_try_echo=$ac_try;;
8012 esac
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014   (eval "$ac_link") 2>conftest.er1
8015   ac_status=$?
8016   grep -v '^ *+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } && {
8021          test -z "$ac_c_werror_flag" ||
8022          test ! -s conftest.err
8023        } && test -s conftest$ac_exeext &&
8024        $as_test_x conftest$ac_exeext; then
8025   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8031 fi
8032
8033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034       conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8036 fi
8037 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8038 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8039 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8040   cat >>confdefs.h <<_ACEOF
8041 #define HAVE_LIBCRYPTO 1
8042 _ACEOF
8043
8044   LIBS="-lcrypto $LIBS"
8045
8046 else
8047   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8048 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8049    { (exit 1); exit 1; }; }
8050 fi
8051
8052
8053 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8054 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8055 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lssl  $LIBS"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h.  */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h.  */
8066
8067 /* Override any GCC internal prototype to avoid an error.
8068    Use char because int might match the return type of a GCC
8069    builtin and then its argument prototype would still apply.  */
8070 #ifdef __cplusplus
8071 extern "C"
8072 #endif
8073 char SSL_library_init ();
8074 int
8075 main ()
8076 {
8077 return SSL_library_init ();
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (ac_try="$ac_link"
8084 case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_link") 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } && {
8096          test -z "$ac_c_werror_flag" ||
8097          test ! -s conftest.err
8098        } && test -s conftest$ac_exeext &&
8099        $as_test_x conftest$ac_exeext; then
8100   ac_cv_lib_ssl_SSL_library_init=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105         ac_cv_lib_ssl_SSL_library_init=no
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109       conftest$ac_exeext conftest.$ac_ext
8110 LIBS=$ac_check_lib_save_LIBS
8111 fi
8112 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8113 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8114 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8115   cat >>confdefs.h <<_ACEOF
8116 #define HAVE_LIBSSL 1
8117 _ACEOF
8118
8119   LIBS="-lssl $LIBS"
8120
8121 else
8122   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8123 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8124    { (exit 1); exit 1; }; }
8125 fi
8126
8127   else
8128
8129 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8130 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8131 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   ac_check_lib_save_LIBS=$LIBS
8135 LIBS="-leay32  $LIBS"
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142
8143 /* Override any GCC internal prototype to avoid an error.
8144    Use char because int might match the return type of a GCC
8145    builtin and then its argument prototype would still apply.  */
8146 #ifdef __cplusplus
8147 extern "C"
8148 #endif
8149 char CRYPTO_new_ex_data ();
8150 int
8151 main ()
8152 {
8153 return CRYPTO_new_ex_data ();
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8160 case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165   (eval "$ac_link") 2>conftest.er1
8166   ac_status=$?
8167   grep -v '^ *+' conftest.er1 >conftest.err
8168   rm -f conftest.er1
8169   cat conftest.err >&5
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } && {
8172          test -z "$ac_c_werror_flag" ||
8173          test ! -s conftest.err
8174        } && test -s conftest$ac_exeext &&
8175        $as_test_x conftest$ac_exeext; then
8176   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8177 else
8178   echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8182 fi
8183
8184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185       conftest$ac_exeext conftest.$ac_ext
8186 LIBS=$ac_check_lib_save_LIBS
8187 fi
8188 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8189 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8190 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8191   cat >>confdefs.h <<_ACEOF
8192 #define HAVE_LIBEAY32 1
8193 _ACEOF
8194
8195   LIBS="-leay32 $LIBS"
8196
8197 else
8198   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8199 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8200    { (exit 1); exit 1; }; }
8201 fi
8202
8203
8204 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8205 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8206 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8207   echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209   ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-lssleay32  $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 /* Override any GCC internal prototype to avoid an error.
8219    Use char because int might match the return type of a GCC
8220    builtin and then its argument prototype would still apply.  */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char SSL_library_init ();
8225 int
8226 main ()
8227 {
8228 return SSL_library_init ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_link") 2>conftest.er1
8241   ac_status=$?
8242   grep -v '^ *+' conftest.er1 >conftest.err
8243   rm -f conftest.er1
8244   cat conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } && {
8247          test -z "$ac_c_werror_flag" ||
8248          test ! -s conftest.err
8249        } && test -s conftest$ac_exeext &&
8250        $as_test_x conftest$ac_exeext; then
8251   ac_cv_lib_ssleay32_SSL_library_init=yes
8252 else
8253   echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256         ac_cv_lib_ssleay32_SSL_library_init=no
8257 fi
8258
8259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8260       conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8262 fi
8263 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8264 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8265 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8266   cat >>confdefs.h <<_ACEOF
8267 #define HAVE_LIBSSLEAY32 1
8268 _ACEOF
8269
8270   LIBS="-lssleay32 $LIBS"
8271
8272 else
8273   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8274 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8275    { (exit 1); exit 1; }; }
8276 fi
8277
8278   fi
8279 fi
8280
8281 if test "$with_pam" = yes ; then
8282
8283 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8284 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8285 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-lpam  $LIBS"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8296
8297 /* Override any GCC internal prototype to avoid an error.
8298    Use char because int might match the return type of a GCC
8299    builtin and then its argument prototype would still apply.  */
8300 #ifdef __cplusplus
8301 extern "C"
8302 #endif
8303 char pam_start ();
8304 int
8305 main ()
8306 {
8307 return pam_start ();
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (ac_try="$ac_link"
8314 case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_link") 2>conftest.er1
8320   ac_status=$?
8321   grep -v '^ *+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } && {
8326          test -z "$ac_c_werror_flag" ||
8327          test ! -s conftest.err
8328        } && test -s conftest$ac_exeext &&
8329        $as_test_x conftest$ac_exeext; then
8330   ac_cv_lib_pam_pam_start=yes
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335         ac_cv_lib_pam_pam_start=no
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8339       conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8341 fi
8342 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8343 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8344 if test $ac_cv_lib_pam_pam_start = yes; then
8345   cat >>confdefs.h <<_ACEOF
8346 #define HAVE_LIBPAM 1
8347 _ACEOF
8348
8349   LIBS="-lpam $LIBS"
8350
8351 else
8352   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8353 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8354    { (exit 1); exit 1; }; }
8355 fi
8356
8357 fi
8358
8359 if test "$with_libxml" = yes ; then
8360
8361 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8362 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8363 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   ac_check_lib_save_LIBS=$LIBS
8367 LIBS="-lxml2  $LIBS"
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374
8375 /* Override any GCC internal prototype to avoid an error.
8376    Use char because int might match the return type of a GCC
8377    builtin and then its argument prototype would still apply.  */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 char xmlSaveToBuffer ();
8382 int
8383 main ()
8384 {
8385 return xmlSaveToBuffer ();
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (ac_try="$ac_link"
8392 case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_link") 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } && {
8404          test -z "$ac_c_werror_flag" ||
8405          test ! -s conftest.err
8406        } && test -s conftest$ac_exeext &&
8407        $as_test_x conftest$ac_exeext; then
8408   ac_cv_lib_xml2_xmlSaveToBuffer=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413         ac_cv_lib_xml2_xmlSaveToBuffer=no
8414 fi
8415
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417       conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8419 fi
8420 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8421 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8422 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8423   cat >>confdefs.h <<_ACEOF
8424 #define HAVE_LIBXML2 1
8425 _ACEOF
8426
8427   LIBS="-lxml2 $LIBS"
8428
8429 else
8430   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8431 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8432    { (exit 1); exit 1; }; }
8433 fi
8434
8435 fi
8436
8437 if test "$with_libxslt" = yes ; then
8438
8439 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8440 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8441 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8442   echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444   ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lxslt  $LIBS"
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452
8453 /* Override any GCC internal prototype to avoid an error.
8454    Use char because int might match the return type of a GCC
8455    builtin and then its argument prototype would still apply.  */
8456 #ifdef __cplusplus
8457 extern "C"
8458 #endif
8459 char xsltCleanupGlobals ();
8460 int
8461 main ()
8462 {
8463 return xsltCleanupGlobals ();
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8470 case "(($ac_try" in
8471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472   *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475   (eval "$ac_link") 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } && {
8482          test -z "$ac_c_werror_flag" ||
8483          test ! -s conftest.err
8484        } && test -s conftest$ac_exeext &&
8485        $as_test_x conftest$ac_exeext; then
8486   ac_cv_lib_xslt_xsltCleanupGlobals=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491         ac_cv_lib_xslt_xsltCleanupGlobals=no
8492 fi
8493
8494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8495       conftest$ac_exeext conftest.$ac_ext
8496 LIBS=$ac_check_lib_save_LIBS
8497 fi
8498 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8499 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8500 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8501   cat >>confdefs.h <<_ACEOF
8502 #define HAVE_LIBXSLT 1
8503 _ACEOF
8504
8505   LIBS="-lxslt $LIBS"
8506
8507 else
8508   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8509 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8510    { (exit 1); exit 1; }; }
8511 fi
8512
8513 fi
8514
8515 # for contrib/uuid-ossp
8516 if test "$with_ossp_uuid" = yes ; then
8517   { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8518 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8519 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522   ac_check_lib_save_LIBS=$LIBS
8523 LIBS="-lossp-uuid  $LIBS"
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 /* Override any GCC internal prototype to avoid an error.
8532    Use char because int might match the return type of a GCC
8533    builtin and then its argument prototype would still apply.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 char uuid_export ();
8538 int
8539 main ()
8540 {
8541 return uuid_export ();
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553   (eval "$ac_link") 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } && {
8560          test -z "$ac_c_werror_flag" ||
8561          test ! -s conftest.err
8562        } && test -s conftest$ac_exeext &&
8563        $as_test_x conftest$ac_exeext; then
8564   ac_cv_lib_ossp_uuid_uuid_export=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569         ac_cv_lib_ossp_uuid_uuid_export=no
8570 fi
8571
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573       conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8575 fi
8576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8577 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8578 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8579   OSSP_UUID_LIBS="-lossp-uuid"
8580 else
8581   { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8582 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8583 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   ac_check_lib_save_LIBS=$LIBS
8587 LIBS="-luuid  $LIBS"
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594
8595 /* Override any GCC internal prototype to avoid an error.
8596    Use char because int might match the return type of a GCC
8597    builtin and then its argument prototype would still apply.  */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 char uuid_export ();
8602 int
8603 main ()
8604 {
8605 return uuid_export ();
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (ac_try="$ac_link"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_link") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } && {
8624          test -z "$ac_c_werror_flag" ||
8625          test ! -s conftest.err
8626        } && test -s conftest$ac_exeext &&
8627        $as_test_x conftest$ac_exeext; then
8628   ac_cv_lib_uuid_uuid_export=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633         ac_cv_lib_uuid_uuid_export=no
8634 fi
8635
8636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8637       conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8639 fi
8640 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8641 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8642 if test $ac_cv_lib_uuid_uuid_export = yes; then
8643   OSSP_UUID_LIBS="-luuid"
8644 else
8645   { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8646 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8647    { (exit 1); exit 1; }; }
8648 fi
8649
8650 fi
8651
8652 fi
8653
8654
8655
8656 ##
8657 ## Header files
8658 ##
8659
8660 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8662 if test "${ac_cv_header_stdc+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 #include <stdlib.h>
8672 #include <stdarg.h>
8673 #include <string.h>
8674 #include <float.h>
8675
8676 int
8677 main ()
8678 {
8679
8680   ;
8681   return 0;
8682 }
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_compile") 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } && {
8698          test -z "$ac_c_werror_flag" ||
8699          test ! -s conftest.err
8700        } && test -s conftest.$ac_objext; then
8701   ac_cv_header_stdc=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706         ac_cv_header_stdc=no
8707 fi
8708
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710
8711 if test $ac_cv_header_stdc = yes; then
8712   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8713   cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h.  */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h.  */
8719 #include <string.h>
8720
8721 _ACEOF
8722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8723   $EGREP "memchr" >/dev/null 2>&1; then
8724   :
8725 else
8726   ac_cv_header_stdc=no
8727 fi
8728 rm -f conftest*
8729
8730 fi
8731
8732 if test $ac_cv_header_stdc = yes; then
8733   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8734   cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #include <stdlib.h>
8741
8742 _ACEOF
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744   $EGREP "free" >/dev/null 2>&1; then
8745   :
8746 else
8747   ac_cv_header_stdc=no
8748 fi
8749 rm -f conftest*
8750
8751 fi
8752
8753 if test $ac_cv_header_stdc = yes; then
8754   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8755   if test "$cross_compiling" = yes; then
8756   :
8757 else
8758   cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 #include <ctype.h>
8765 #include <stdlib.h>
8766 #if ((' ' & 0x0FF) == 0x020)
8767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8769 #else
8770 # define ISLOWER(c) \
8771                    (('a' <= (c) && (c) <= 'i') \
8772                      || ('j' <= (c) && (c) <= 'r') \
8773                      || ('s' <= (c) && (c) <= 'z'))
8774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8775 #endif
8776
8777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8778 int
8779 main ()
8780 {
8781   int i;
8782   for (i = 0; i < 256; i++)
8783     if (XOR (islower (i), ISLOWER (i))
8784         || toupper (i) != TOUPPER (i))
8785       return 2;
8786   return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8791 case "(($ac_try" in
8792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793   *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796   (eval "$ac_link") 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8800   { (case "(($ac_try" in
8801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802   *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805   (eval "$ac_try") 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   :
8810 else
8811   echo "$as_me: program exited with status $ac_status" >&5
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ( exit $ac_status )
8816 ac_cv_header_stdc=no
8817 fi
8818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8819 fi
8820
8821
8822 fi
8823 fi
8824 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8825 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8826 if test $ac_cv_header_stdc = yes; then
8827
8828 cat >>confdefs.h <<\_ACEOF
8829 #define STDC_HEADERS 1
8830 _ACEOF
8831
8832 fi
8833
8834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8845                   inttypes.h stdint.h unistd.h
8846 do
8847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 $ac_includes_default
8860
8861 #include <$ac_header>
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870   (eval "$ac_compile") 2>conftest.er1
8871   ac_status=$?
8872   grep -v '^ *+' conftest.er1 >conftest.err
8873   rm -f conftest.er1
8874   cat conftest.err >&5
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); } && {
8877          test -z "$ac_c_werror_flag" ||
8878          test ! -s conftest.err
8879        } && test -s conftest.$ac_objext; then
8880   eval "$as_ac_Header=yes"
8881 else
8882   echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885         eval "$as_ac_Header=no"
8886 fi
8887
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 ac_res=`eval echo '${'$as_ac_Header'}'`
8891                { echo "$as_me:$LINENO: result: $ac_res" >&5
8892 echo "${ECHO_T}$ac_res" >&6; }
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894   cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897
8898 fi
8899
8900 done
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 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 ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8931 do
8932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8934   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 fi
8939 ac_res=`eval echo '${'$as_ac_Header'}'`
8940                { echo "$as_me:$LINENO: result: $ac_res" >&5
8941 echo "${ECHO_T}$ac_res" >&6; }
8942 else
8943   # Is the header compilable?
8944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952 $ac_includes_default
8953 #include <$ac_header>
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959   *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962   (eval "$ac_compile") 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } && {
8969          test -z "$ac_c_werror_flag" ||
8970          test ! -s conftest.err
8971        } && test -s conftest.$ac_objext; then
8972   ac_header_compiler=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977         ac_header_compiler=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6; }
8983
8984 # Is the header present?
8985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993 #include <$ac_header>
8994 _ACEOF
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 case "(($ac_try" in
8997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998   *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } >/dev/null && {
9008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9009          test ! -s conftest.err
9010        }; then
9011   ac_header_preproc=yes
9012 else
9013   echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016   ac_header_preproc=no
9017 fi
9018
9019 rm -f conftest.err conftest.$ac_ext
9020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9021 echo "${ECHO_T}$ac_header_preproc" >&6; }
9022
9023 # So?  What about this header?
9024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9025   yes:no: )
9026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9030     ac_header_preproc=yes
9031     ;;
9032   no:yes:* )
9033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9045     ( cat <<\_ASBOX
9046 ## ---------------------------------------- ##
9047 ## Report this to pgsql-bugs@postgresql.org ##
9048 ## ---------------------------------------- ##
9049 _ASBOX
9050      ) | sed "s/^/$as_me: WARNING:     /" >&2
9051     ;;
9052 esac
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   eval "$as_ac_Header=\$ac_header_preproc"
9059 fi
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061                { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9063
9064 fi
9065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066   cat >>confdefs.h <<_ACEOF
9067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9068 _ACEOF
9069
9070 fi
9071
9072 done
9073
9074
9075 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9076 # netinet/in.h is included first.
9077
9078 for ac_header in netinet/in.h
9079 do
9080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9082   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 fi
9087 ac_res=`eval echo '${'$as_ac_Header'}'`
9088                { echo "$as_me:$LINENO: result: $ac_res" >&5
9089 echo "${ECHO_T}$ac_res" >&6; }
9090 else
9091   # Is the header compilable?
9092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 $ac_includes_default
9101 #include <$ac_header>
9102 _ACEOF
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9105 case "(($ac_try" in
9106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107   *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110   (eval "$ac_compile") 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } && {
9117          test -z "$ac_c_werror_flag" ||
9118          test ! -s conftest.err
9119        } && test -s conftest.$ac_objext; then
9120   ac_header_compiler=yes
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125         ac_header_compiler=no
9126 fi
9127
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6; }
9131
9132 # Is the header present?
9133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 #include <$ac_header>
9142 _ACEOF
9143 if { (ac_try="$ac_cpp conftest.$ac_ext"
9144 case "(($ac_try" in
9145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146   *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9150   ac_status=$?
9151   grep -v '^ *+' conftest.er1 >conftest.err
9152   rm -f conftest.er1
9153   cat conftest.err >&5
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); } >/dev/null && {
9156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9157          test ! -s conftest.err
9158        }; then
9159   ac_header_preproc=yes
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164   ac_header_preproc=no
9165 fi
9166
9167 rm -f conftest.err conftest.$ac_ext
9168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169 echo "${ECHO_T}$ac_header_preproc" >&6; }
9170
9171 # So?  What about this header?
9172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173   yes:no: )
9174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178     ac_header_preproc=yes
9179     ;;
9180   no:yes:* )
9181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193     ( cat <<\_ASBOX
9194 ## ---------------------------------------- ##
9195 ## Report this to pgsql-bugs@postgresql.org ##
9196 ## ---------------------------------------- ##
9197 _ASBOX
9198      ) | sed "s/^/$as_me: WARNING:     /" >&2
9199     ;;
9200 esac
9201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   eval "$as_ac_Header=\$ac_header_preproc"
9207 fi
9208 ac_res=`eval echo '${'$as_ac_Header'}'`
9209                { echo "$as_me:$LINENO: result: $ac_res" >&5
9210 echo "${ECHO_T}$ac_res" >&6; }
9211
9212 fi
9213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9214   cat >>confdefs.h <<_ACEOF
9215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9216 _ACEOF
9217
9218 fi
9219
9220 done
9221
9222
9223 for ac_header in netinet/tcp.h
9224 do
9225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231   cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h.  */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h.  */
9237 $ac_includes_default
9238 #ifdef HAVE_NETINET_IN_H
9239 #include <netinet/in.h>
9240 #endif
9241
9242
9243 #include <$ac_header>
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (ac_try="$ac_compile"
9247 case "(($ac_try" in
9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249   *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252   (eval "$ac_compile") 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } && {
9259          test -z "$ac_c_werror_flag" ||
9260          test ! -s conftest.err
9261        } && test -s conftest.$ac_objext; then
9262   eval "$as_ac_Header=yes"
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267         eval "$as_ac_Header=no"
9268 fi
9269
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 ac_res=`eval echo '${'$as_ac_Header'}'`
9273                { echo "$as_me:$LINENO: result: $ac_res" >&5
9274 echo "${ECHO_T}$ac_res" >&6; }
9275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9276   cat >>confdefs.h <<_ACEOF
9277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9278 _ACEOF
9279
9280 fi
9281
9282 done
9283
9284
9285 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9286
9287 for ac_header in readline/readline.h
9288 do
9289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9291   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 fi
9296 ac_res=`eval echo '${'$as_ac_Header'}'`
9297                { echo "$as_me:$LINENO: result: $ac_res" >&5
9298 echo "${ECHO_T}$ac_res" >&6; }
9299 else
9300   # Is the header compilable?
9301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309 $ac_includes_default
9310 #include <$ac_header>
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (ac_try="$ac_compile"
9314 case "(($ac_try" in
9315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316   *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319   (eval "$ac_compile") 2>conftest.er1
9320   ac_status=$?
9321   grep -v '^ *+' conftest.er1 >conftest.err
9322   rm -f conftest.er1
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } && {
9326          test -z "$ac_c_werror_flag" ||
9327          test ! -s conftest.err
9328        } && test -s conftest.$ac_objext; then
9329   ac_header_compiler=yes
9330 else
9331   echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334         ac_header_compiler=no
9335 fi
9336
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9339 echo "${ECHO_T}$ac_header_compiler" >&6; }
9340
9341 # Is the header present?
9342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 #include <$ac_header>
9351 _ACEOF
9352 if { (ac_try="$ac_cpp conftest.$ac_ext"
9353 case "(($ac_try" in
9354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355   *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9359   ac_status=$?
9360   grep -v '^ *+' conftest.er1 >conftest.err
9361   rm -f conftest.er1
9362   cat conftest.err >&5
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); } >/dev/null && {
9365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9366          test ! -s conftest.err
9367        }; then
9368   ac_header_preproc=yes
9369 else
9370   echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373   ac_header_preproc=no
9374 fi
9375
9376 rm -f conftest.err conftest.$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9378 echo "${ECHO_T}$ac_header_preproc" >&6; }
9379
9380 # So?  What about this header?
9381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9382   yes:no: )
9383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9387     ac_header_preproc=yes
9388     ;;
9389   no:yes:* )
9390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9402     ( cat <<\_ASBOX
9403 ## ---------------------------------------- ##
9404 ## Report this to pgsql-bugs@postgresql.org ##
9405 ## ---------------------------------------- ##
9406 _ASBOX
9407      ) | sed "s/^/$as_me: WARNING:     /" >&2
9408     ;;
9409 esac
9410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   eval "$as_ac_Header=\$ac_header_preproc"
9416 fi
9417 ac_res=`eval echo '${'$as_ac_Header'}'`
9418                { echo "$as_me:$LINENO: result: $ac_res" >&5
9419 echo "${ECHO_T}$ac_res" >&6; }
9420
9421 fi
9422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9423   cat >>confdefs.h <<_ACEOF
9424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9425 _ACEOF
9426
9427 else
9428
9429 for ac_header in readline.h
9430 do
9431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9433   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 fi
9438 ac_res=`eval echo '${'$as_ac_Header'}'`
9439                { echo "$as_me:$LINENO: result: $ac_res" >&5
9440 echo "${ECHO_T}$ac_res" >&6; }
9441 else
9442   # Is the header compilable?
9443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 $ac_includes_default
9452 #include <$ac_header>
9453 _ACEOF
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9456 case "(($ac_try" in
9457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458   *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461   (eval "$ac_compile") 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && {
9468          test -z "$ac_c_werror_flag" ||
9469          test ! -s conftest.err
9470        } && test -s conftest.$ac_objext; then
9471   ac_header_compiler=yes
9472 else
9473   echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9475
9476         ac_header_compiler=no
9477 fi
9478
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9481 echo "${ECHO_T}$ac_header_compiler" >&6; }
9482
9483 # Is the header present?
9484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492 #include <$ac_header>
9493 _ACEOF
9494 if { (ac_try="$ac_cpp conftest.$ac_ext"
9495 case "(($ac_try" in
9496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497   *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9501   ac_status=$?
9502   grep -v '^ *+' conftest.er1 >conftest.err
9503   rm -f conftest.er1
9504   cat conftest.err >&5
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); } >/dev/null && {
9507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508          test ! -s conftest.err
9509        }; then
9510   ac_header_preproc=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515   ac_header_preproc=no
9516 fi
9517
9518 rm -f conftest.err conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 echo "${ECHO_T}$ac_header_preproc" >&6; }
9521
9522 # So?  What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524   yes:no: )
9525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9529     ac_header_preproc=yes
9530     ;;
9531   no:yes:* )
9532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9544     ( cat <<\_ASBOX
9545 ## ---------------------------------------- ##
9546 ## Report this to pgsql-bugs@postgresql.org ##
9547 ## ---------------------------------------- ##
9548 _ASBOX
9549      ) | sed "s/^/$as_me: WARNING:     /" >&2
9550     ;;
9551 esac
9552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   eval "$as_ac_Header=\$ac_header_preproc"
9558 fi
9559 ac_res=`eval echo '${'$as_ac_Header'}'`
9560                { echo "$as_me:$LINENO: result: $ac_res" >&5
9561 echo "${ECHO_T}$ac_res" >&6; }
9562
9563 fi
9564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9565   cat >>confdefs.h <<_ACEOF
9566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9567 _ACEOF
9568
9569 else
9570   { { echo "$as_me:$LINENO: error: readline header not found
9571 If you have readline already installed, see config.log for details on the
9572 failure.  It is possible the compiler isn't looking in the proper directory.
9573 Use --without-readline to disable readline support." >&5
9574 echo "$as_me: error: readline header not found
9575 If you have readline already installed, see config.log for details on the
9576 failure.  It is possible the compiler isn't looking in the proper directory.
9577 Use --without-readline to disable readline support." >&2;}
9578    { (exit 1); exit 1; }; }
9579 fi
9580
9581 done
9582
9583 fi
9584
9585 done
9586
9587
9588 for ac_header in readline/history.h
9589 do
9590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 fi
9597 ac_res=`eval echo '${'$as_ac_Header'}'`
9598                { echo "$as_me:$LINENO: result: $ac_res" >&5
9599 echo "${ECHO_T}$ac_res" >&6; }
9600 else
9601   # Is the header compilable?
9602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 $ac_includes_default
9611 #include <$ac_header>
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_compile") 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } && {
9627          test -z "$ac_c_werror_flag" ||
9628          test ! -s conftest.err
9629        } && test -s conftest.$ac_objext; then
9630   ac_header_compiler=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635         ac_header_compiler=no
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6; }
9641
9642 # Is the header present?
9643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651 #include <$ac_header>
9652 _ACEOF
9653 if { (ac_try="$ac_cpp conftest.$ac_ext"
9654 case "(($ac_try" in
9655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656   *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } >/dev/null && {
9666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9667          test ! -s conftest.err
9668        }; then
9669   ac_header_preproc=yes
9670 else
9671   echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674   ac_header_preproc=no
9675 fi
9676
9677 rm -f conftest.err conftest.$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9679 echo "${ECHO_T}$ac_header_preproc" >&6; }
9680
9681 # So?  What about this header?
9682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9683   yes:no: )
9684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9688     ac_header_preproc=yes
9689     ;;
9690   no:yes:* )
9691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9703     ( cat <<\_ASBOX
9704 ## ---------------------------------------- ##
9705 ## Report this to pgsql-bugs@postgresql.org ##
9706 ## ---------------------------------------- ##
9707 _ASBOX
9708      ) | sed "s/^/$as_me: WARNING:     /" >&2
9709     ;;
9710 esac
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   eval "$as_ac_Header=\$ac_header_preproc"
9717 fi
9718 ac_res=`eval echo '${'$as_ac_Header'}'`
9719                { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9721
9722 fi
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724   cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9727
9728 else
9729
9730 for ac_header in history.h
9731 do
9732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9737   echo $ECHO_N "(cached) $ECHO_C" >&6
9738 fi
9739 ac_res=`eval echo '${'$as_ac_Header'}'`
9740                { echo "$as_me:$LINENO: result: $ac_res" >&5
9741 echo "${ECHO_T}$ac_res" >&6; }
9742 else
9743   # Is the header compilable?
9744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752 $ac_includes_default
9753 #include <$ac_header>
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (ac_try="$ac_compile"
9757 case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_compile") 2>conftest.er1
9763   ac_status=$?
9764   grep -v '^ *+' conftest.er1 >conftest.err
9765   rm -f conftest.er1
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } && {
9769          test -z "$ac_c_werror_flag" ||
9770          test ! -s conftest.err
9771        } && test -s conftest.$ac_objext; then
9772   ac_header_compiler=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777         ac_header_compiler=no
9778 fi
9779
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9782 echo "${ECHO_T}$ac_header_compiler" >&6; }
9783
9784 # Is the header present?
9785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 #include <$ac_header>
9794 _ACEOF
9795 if { (ac_try="$ac_cpp conftest.$ac_ext"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } >/dev/null && {
9808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        }; then
9811   ac_header_preproc=yes
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816   ac_header_preproc=no
9817 fi
9818
9819 rm -f conftest.err conftest.$ac_ext
9820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 echo "${ECHO_T}$ac_header_preproc" >&6; }
9822
9823 # So?  What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825   yes:no: )
9826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830     ac_header_preproc=yes
9831     ;;
9832   no:yes:* )
9833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845     ( cat <<\_ASBOX
9846 ## ---------------------------------------- ##
9847 ## Report this to pgsql-bugs@postgresql.org ##
9848 ## ---------------------------------------- ##
9849 _ASBOX
9850      ) | sed "s/^/$as_me: WARNING:     /" >&2
9851     ;;
9852 esac
9853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   eval "$as_ac_Header=\$ac_header_preproc"
9859 fi
9860 ac_res=`eval echo '${'$as_ac_Header'}'`
9861                { echo "$as_me:$LINENO: result: $ac_res" >&5
9862 echo "${ECHO_T}$ac_res" >&6; }
9863
9864 fi
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9866   cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9868 _ACEOF
9869
9870 else
9871   { { echo "$as_me:$LINENO: error: history header not found
9872 If you have readline already installed, see config.log for details on the
9873 failure.  It is possible the compiler isn't looking in the proper directory.
9874 Use --without-readline to disable readline support." >&5
9875 echo "$as_me: error: history header not found
9876 If you have readline already installed, see config.log for details on the
9877 failure.  It is possible the compiler isn't looking in the proper directory.
9878 Use --without-readline to disable readline support." >&2;}
9879    { (exit 1); exit 1; }; }
9880 fi
9881
9882 done
9883
9884 fi
9885
9886 done
9887
9888 fi
9889
9890 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9891 # Some installations of libedit usurp /usr/include/readline/, which seems
9892 # bad practice, since in combined installations readline will have its headers
9893 # there.  We might have to resort to AC_EGREP checks to make sure we found
9894 # the proper header...
9895
9896 for ac_header in editline/readline.h
9897 do
9898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9900   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 fi
9905 ac_res=`eval echo '${'$as_ac_Header'}'`
9906                { echo "$as_me:$LINENO: result: $ac_res" >&5
9907 echo "${ECHO_T}$ac_res" >&6; }
9908 else
9909   # Is the header compilable?
9910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 $ac_includes_default
9919 #include <$ac_header>
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9923 case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_compile") 2>conftest.er1
9929   ac_status=$?
9930   grep -v '^ *+' conftest.er1 >conftest.err
9931   rm -f conftest.er1
9932   cat conftest.err >&5
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } && {
9935          test -z "$ac_c_werror_flag" ||
9936          test ! -s conftest.err
9937        } && test -s conftest.$ac_objext; then
9938   ac_header_compiler=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943         ac_header_compiler=no
9944 fi
9945
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9948 echo "${ECHO_T}$ac_header_compiler" >&6; }
9949
9950 # Is the header present?
9951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 #include <$ac_header>
9960 _ACEOF
9961 if { (ac_try="$ac_cpp conftest.$ac_ext"
9962 case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9968   ac_status=$?
9969   grep -v '^ *+' conftest.er1 >conftest.err
9970   rm -f conftest.er1
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } >/dev/null && {
9974          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9975          test ! -s conftest.err
9976        }; then
9977   ac_header_preproc=yes
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982   ac_header_preproc=no
9983 fi
9984
9985 rm -f conftest.err conftest.$ac_ext
9986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9987 echo "${ECHO_T}$ac_header_preproc" >&6; }
9988
9989 # So?  What about this header?
9990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9991   yes:no: )
9992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9996     ac_header_preproc=yes
9997     ;;
9998   no:yes:* )
9999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10011     ( cat <<\_ASBOX
10012 ## ---------------------------------------- ##
10013 ## Report this to pgsql-bugs@postgresql.org ##
10014 ## ---------------------------------------- ##
10015 _ASBOX
10016      ) | sed "s/^/$as_me: WARNING:     /" >&2
10017     ;;
10018 esac
10019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   eval "$as_ac_Header=\$ac_header_preproc"
10025 fi
10026 ac_res=`eval echo '${'$as_ac_Header'}'`
10027                { echo "$as_me:$LINENO: result: $ac_res" >&5
10028 echo "${ECHO_T}$ac_res" >&6; }
10029
10030 fi
10031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10032   cat >>confdefs.h <<_ACEOF
10033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10034 _ACEOF
10035
10036 else
10037
10038 for ac_header in readline.h
10039 do
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 fi
10047 ac_res=`eval echo '${'$as_ac_Header'}'`
10048                { echo "$as_me:$LINENO: result: $ac_res" >&5
10049 echo "${ECHO_T}$ac_res" >&6; }
10050 else
10051   # Is the header compilable?
10052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 $ac_includes_default
10061 #include <$ac_header>
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_compile") 2>conftest.er1
10071   ac_status=$?
10072   grep -v '^ *+' conftest.er1 >conftest.err
10073   rm -f conftest.er1
10074   cat conftest.err >&5
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } && {
10077          test -z "$ac_c_werror_flag" ||
10078          test ! -s conftest.err
10079        } && test -s conftest.$ac_objext; then
10080   ac_header_compiler=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085         ac_header_compiler=no
10086 fi
10087
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10090 echo "${ECHO_T}$ac_header_compiler" >&6; }
10091
10092 # Is the header present?
10093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10095 cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101 #include <$ac_header>
10102 _ACEOF
10103 if { (ac_try="$ac_cpp conftest.$ac_ext"
10104 case "(($ac_try" in
10105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106   *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } >/dev/null && {
10116          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10117          test ! -s conftest.err
10118        }; then
10119   ac_header_preproc=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124   ac_header_preproc=no
10125 fi
10126
10127 rm -f conftest.err conftest.$ac_ext
10128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10129 echo "${ECHO_T}$ac_header_preproc" >&6; }
10130
10131 # So?  What about this header?
10132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10133   yes:no: )
10134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10138     ac_header_preproc=yes
10139     ;;
10140   no:yes:* )
10141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10143     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10144 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10145     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10147     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10148 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10151     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10153     ( cat <<\_ASBOX
10154 ## ---------------------------------------- ##
10155 ## Report this to pgsql-bugs@postgresql.org ##
10156 ## ---------------------------------------- ##
10157 _ASBOX
10158      ) | sed "s/^/$as_me: WARNING:     /" >&2
10159     ;;
10160 esac
10161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164   echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166   eval "$as_ac_Header=\$ac_header_preproc"
10167 fi
10168 ac_res=`eval echo '${'$as_ac_Header'}'`
10169                { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 echo "${ECHO_T}$ac_res" >&6; }
10171
10172 fi
10173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10174   cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10176 _ACEOF
10177
10178 else
10179
10180 for ac_header in readline/readline.h
10181 do
10182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 fi
10189 ac_res=`eval echo '${'$as_ac_Header'}'`
10190                { echo "$as_me:$LINENO: result: $ac_res" >&5
10191 echo "${ECHO_T}$ac_res" >&6; }
10192 else
10193   # Is the header compilable?
10194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h.  */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h.  */
10202 $ac_includes_default
10203 #include <$ac_header>
10204 _ACEOF
10205 rm -f conftest.$ac_objext
10206 if { (ac_try="$ac_compile"
10207 case "(($ac_try" in
10208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209   *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212   (eval "$ac_compile") 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } && {
10219          test -z "$ac_c_werror_flag" ||
10220          test ! -s conftest.err
10221        } && test -s conftest.$ac_objext; then
10222   ac_header_compiler=yes
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227         ac_header_compiler=no
10228 fi
10229
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10232 echo "${ECHO_T}$ac_header_compiler" >&6; }
10233
10234 # Is the header present?
10235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h.  */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h.  */
10243 #include <$ac_header>
10244 _ACEOF
10245 if { (ac_try="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248   *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } >/dev/null && {
10258          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10259          test ! -s conftest.err
10260        }; then
10261   ac_header_preproc=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266   ac_header_preproc=no
10267 fi
10268
10269 rm -f conftest.err conftest.$ac_ext
10270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6; }
10272
10273 # So?  What about this header?
10274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275   yes:no: )
10276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280     ac_header_preproc=yes
10281     ;;
10282   no:yes:* )
10283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10295     ( cat <<\_ASBOX
10296 ## ---------------------------------------- ##
10297 ## Report this to pgsql-bugs@postgresql.org ##
10298 ## ---------------------------------------- ##
10299 _ASBOX
10300      ) | sed "s/^/$as_me: WARNING:     /" >&2
10301     ;;
10302 esac
10303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   eval "$as_ac_Header=\$ac_header_preproc"
10309 fi
10310 ac_res=`eval echo '${'$as_ac_Header'}'`
10311                { echo "$as_me:$LINENO: result: $ac_res" >&5
10312 echo "${ECHO_T}$ac_res" >&6; }
10313
10314 fi
10315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10316   cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318 _ACEOF
10319
10320 else
10321   { { echo "$as_me:$LINENO: error: readline header not found
10322 If you have libedit already installed, see config.log for details on the
10323 failure.  It is possible the compiler isn't looking in the proper directory.
10324 Use --without-readline to disable libedit support." >&5
10325 echo "$as_me: error: readline header not found
10326 If you have libedit already installed, see config.log for details on the
10327 failure.  It is possible the compiler isn't looking in the proper directory.
10328 Use --without-readline to disable libedit support." >&2;}
10329    { (exit 1); exit 1; }; }
10330 fi
10331
10332 done
10333
10334 fi
10335
10336 done
10337
10338 fi
10339
10340 done
10341
10342 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10343 # not be there at all.  Hence, don't complain if not found.  We must check
10344 # though, since in yet other versions it is an independent header.
10345
10346 for ac_header in editline/history.h
10347 do
10348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 fi
10355 ac_res=`eval echo '${'$as_ac_Header'}'`
10356                { echo "$as_me:$LINENO: result: $ac_res" >&5
10357 echo "${ECHO_T}$ac_res" >&6; }
10358 else
10359   # Is the header compilable?
10360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h.  */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h.  */
10368 $ac_includes_default
10369 #include <$ac_header>
10370 _ACEOF
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_compile") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && {
10385          test -z "$ac_c_werror_flag" ||
10386          test ! -s conftest.err
10387        } && test -s conftest.$ac_objext; then
10388   ac_header_compiler=yes
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393         ac_header_compiler=no
10394 fi
10395
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10398 echo "${ECHO_T}$ac_header_compiler" >&6; }
10399
10400 # Is the header present?
10401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409 #include <$ac_header>
10410 _ACEOF
10411 if { (ac_try="$ac_cpp conftest.$ac_ext"
10412 case "(($ac_try" in
10413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414   *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } >/dev/null && {
10424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425          test ! -s conftest.err
10426        }; then
10427   ac_header_preproc=yes
10428 else
10429   echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10431
10432   ac_header_preproc=no
10433 fi
10434
10435 rm -f conftest.err conftest.$ac_ext
10436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 echo "${ECHO_T}$ac_header_preproc" >&6; }
10438
10439 # So?  What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441   yes:no: )
10442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446     ac_header_preproc=yes
10447     ;;
10448   no:yes:* )
10449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461     ( cat <<\_ASBOX
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10465 _ASBOX
10466      ) | sed "s/^/$as_me: WARNING:     /" >&2
10467     ;;
10468 esac
10469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   eval "$as_ac_Header=\$ac_header_preproc"
10475 fi
10476 ac_res=`eval echo '${'$as_ac_Header'}'`
10477                { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10479
10480 fi
10481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10482   cat >>confdefs.h <<_ACEOF
10483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10484 _ACEOF
10485
10486 else
10487
10488 for ac_header in history.h
10489 do
10490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10492   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 fi
10497 ac_res=`eval echo '${'$as_ac_Header'}'`
10498                { echo "$as_me:$LINENO: result: $ac_res" >&5
10499 echo "${ECHO_T}$ac_res" >&6; }
10500 else
10501   # Is the header compilable?
10502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510 $ac_includes_default
10511 #include <$ac_header>
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517   *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520   (eval "$ac_compile") 2>conftest.er1
10521   ac_status=$?
10522   grep -v '^ *+' conftest.er1 >conftest.err
10523   rm -f conftest.er1
10524   cat conftest.err >&5
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } && {
10527          test -z "$ac_c_werror_flag" ||
10528          test ! -s conftest.err
10529        } && test -s conftest.$ac_objext; then
10530   ac_header_compiler=yes
10531 else
10532   echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535         ac_header_compiler=no
10536 fi
10537
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10540 echo "${ECHO_T}$ac_header_compiler" >&6; }
10541
10542 # Is the header present?
10543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551 #include <$ac_header>
10552 _ACEOF
10553 if { (ac_try="$ac_cpp conftest.$ac_ext"
10554 case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10560   ac_status=$?
10561   grep -v '^ *+' conftest.er1 >conftest.err
10562   rm -f conftest.er1
10563   cat conftest.err >&5
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } >/dev/null && {
10566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10567          test ! -s conftest.err
10568        }; then
10569   ac_header_preproc=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574   ac_header_preproc=no
10575 fi
10576
10577 rm -f conftest.err conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579 echo "${ECHO_T}$ac_header_preproc" >&6; }
10580
10581 # So?  What about this header?
10582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583   yes:no: )
10584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588     ac_header_preproc=yes
10589     ;;
10590   no:yes:* )
10591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603     ( cat <<\_ASBOX
10604 ## ---------------------------------------- ##
10605 ## Report this to pgsql-bugs@postgresql.org ##
10606 ## ---------------------------------------- ##
10607 _ASBOX
10608      ) | sed "s/^/$as_me: WARNING:     /" >&2
10609     ;;
10610 esac
10611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10614   echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616   eval "$as_ac_Header=\$ac_header_preproc"
10617 fi
10618 ac_res=`eval echo '${'$as_ac_Header'}'`
10619                { echo "$as_me:$LINENO: result: $ac_res" >&5
10620 echo "${ECHO_T}$ac_res" >&6; }
10621
10622 fi
10623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10624   cat >>confdefs.h <<_ACEOF
10625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626 _ACEOF
10627
10628 else
10629
10630 for ac_header in readline/history.h
10631 do
10632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637   echo $ECHO_N "(cached) $ECHO_C" >&6
10638 fi
10639 ac_res=`eval echo '${'$as_ac_Header'}'`
10640                { echo "$as_me:$LINENO: result: $ac_res" >&5
10641 echo "${ECHO_T}$ac_res" >&6; }
10642 else
10643   # Is the header compilable?
10644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 $ac_includes_default
10653 #include <$ac_header>
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662   (eval "$ac_compile") 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } && {
10669          test -z "$ac_c_werror_flag" ||
10670          test ! -s conftest.err
10671        } && test -s conftest.$ac_objext; then
10672   ac_header_compiler=yes
10673 else
10674   echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677         ac_header_compiler=no
10678 fi
10679
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10682 echo "${ECHO_T}$ac_header_compiler" >&6; }
10683
10684 # Is the header present?
10685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h.  */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h.  */
10693 #include <$ac_header>
10694 _ACEOF
10695 if { (ac_try="$ac_cpp conftest.$ac_ext"
10696 case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } >/dev/null && {
10708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10709          test ! -s conftest.err
10710        }; then
10711   ac_header_preproc=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716   ac_header_preproc=no
10717 fi
10718
10719 rm -f conftest.err conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10721 echo "${ECHO_T}$ac_header_preproc" >&6; }
10722
10723 # So?  What about this header?
10724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10725   yes:no: )
10726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10730     ac_header_preproc=yes
10731     ;;
10732   no:yes:* )
10733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10745     ( cat <<\_ASBOX
10746 ## ---------------------------------------- ##
10747 ## Report this to pgsql-bugs@postgresql.org ##
10748 ## ---------------------------------------- ##
10749 _ASBOX
10750      ) | sed "s/^/$as_me: WARNING:     /" >&2
10751     ;;
10752 esac
10753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   eval "$as_ac_Header=\$ac_header_preproc"
10759 fi
10760 ac_res=`eval echo '${'$as_ac_Header'}'`
10761                { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10763
10764 fi
10765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10766   cat >>confdefs.h <<_ACEOF
10767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768 _ACEOF
10769
10770 fi
10771
10772 done
10773
10774 fi
10775
10776 done
10777
10778 fi
10779
10780 done
10781
10782 fi
10783
10784 if test "$with_zlib" = yes; then
10785   if test "${ac_cv_header_zlib_h+set}" = set; then
10786   { echo "$as_me:$LINENO: checking for zlib.h" >&5
10787 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10788 if test "${ac_cv_header_zlib_h+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 fi
10791 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10792 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10793 else
10794   # Is the header compilable?
10795 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10796 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803 $ac_includes_default
10804 #include <zlib.h>
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (ac_try="$ac_compile"
10808 case "(($ac_try" in
10809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810   *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813   (eval "$ac_compile") 2>conftest.er1
10814   ac_status=$?
10815   grep -v '^ *+' conftest.er1 >conftest.err
10816   rm -f conftest.er1
10817   cat conftest.err >&5
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } && {
10820          test -z "$ac_c_werror_flag" ||
10821          test ! -s conftest.err
10822        } && test -s conftest.$ac_objext; then
10823   ac_header_compiler=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828         ac_header_compiler=no
10829 fi
10830
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834
10835 # Is the header present?
10836 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10837 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 #include <zlib.h>
10845 _ACEOF
10846 if { (ac_try="$ac_cpp conftest.$ac_ext"
10847 case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853   ac_status=$?
10854   grep -v '^ *+' conftest.er1 >conftest.err
10855   rm -f conftest.er1
10856   cat conftest.err >&5
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); } >/dev/null && {
10859          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10860          test ! -s conftest.err
10861        }; then
10862   ac_header_preproc=yes
10863 else
10864   echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867   ac_header_preproc=no
10868 fi
10869
10870 rm -f conftest.err conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10872 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873
10874 # So?  What about this header?
10875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876   yes:no: )
10877     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10878 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10879     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10880 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10881     ac_header_preproc=yes
10882     ;;
10883   no:yes:* )
10884     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10889 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10890     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
10891 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10892     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10893 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10894     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10895 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10896     ( cat <<\_ASBOX
10897 ## ---------------------------------------- ##
10898 ## Report this to pgsql-bugs@postgresql.org ##
10899 ## ---------------------------------------- ##
10900 _ASBOX
10901      ) | sed "s/^/$as_me: WARNING:     /" >&2
10902     ;;
10903 esac
10904 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10905 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10906 if test "${ac_cv_header_zlib_h+set}" = set; then
10907   echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909   ac_cv_header_zlib_h=$ac_header_preproc
10910 fi
10911 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10912 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10913
10914 fi
10915 if test $ac_cv_header_zlib_h = yes; then
10916   :
10917 else
10918   { { echo "$as_me:$LINENO: error: zlib header not found
10919 If you have zlib already installed, see config.log for details on the
10920 failure.  It is possible the compiler isn't looking in the proper directory.
10921 Use --without-zlib to disable zlib support." >&5
10922 echo "$as_me: error: zlib header not found
10923 If you have zlib already installed, see config.log for details on the
10924 failure.  It is possible the compiler isn't looking in the proper directory.
10925 Use --without-zlib to disable zlib support." >&2;}
10926    { (exit 1); exit 1; }; }
10927 fi
10928
10929
10930 fi
10931
10932 if test "$with_gssapi" = yes ; then
10933
10934 for ac_header in gssapi/gssapi.h
10935 do
10936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 fi
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944                { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10946 else
10947   # Is the header compilable?
10948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 $ac_includes_default
10957 #include <$ac_header>
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_compile") 2>conftest.er1
10967   ac_status=$?
10968   grep -v '^ *+' conftest.er1 >conftest.err
10969   rm -f conftest.er1
10970   cat conftest.err >&5
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } && {
10973          test -z "$ac_c_werror_flag" ||
10974          test ! -s conftest.err
10975        } && test -s conftest.$ac_objext; then
10976   ac_header_compiler=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981         ac_header_compiler=no
10982 fi
10983
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10986 echo "${ECHO_T}$ac_header_compiler" >&6; }
10987
10988 # Is the header present?
10989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 #include <$ac_header>
10998 _ACEOF
10999 if { (ac_try="$ac_cpp conftest.$ac_ext"
11000 case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } >/dev/null && {
11012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11013          test ! -s conftest.err
11014        }; then
11015   ac_header_preproc=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020   ac_header_preproc=no
11021 fi
11022
11023 rm -f conftest.err conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025 echo "${ECHO_T}$ac_header_preproc" >&6; }
11026
11027 # So?  What about this header?
11028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029   yes:no: )
11030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11034     ac_header_preproc=yes
11035     ;;
11036   no:yes:* )
11037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11049     ( cat <<\_ASBOX
11050 ## ---------------------------------------- ##
11051 ## Report this to pgsql-bugs@postgresql.org ##
11052 ## ---------------------------------------- ##
11053 _ASBOX
11054      ) | sed "s/^/$as_me: WARNING:     /" >&2
11055     ;;
11056 esac
11057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   eval "$as_ac_Header=\$ac_header_preproc"
11063 fi
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065                { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11067
11068 fi
11069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11070   cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11072 _ACEOF
11073
11074 else
11075
11076 for ac_header in gssapi.h
11077 do
11078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083   echo $ECHO_N "(cached) $ECHO_C" >&6
11084 fi
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086                { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11088 else
11089   # Is the header compilable?
11090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 $ac_includes_default
11099 #include <$ac_header>
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_compile") 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } && {
11115          test -z "$ac_c_werror_flag" ||
11116          test ! -s conftest.err
11117        } && test -s conftest.$ac_objext; then
11118   ac_header_compiler=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123         ac_header_compiler=no
11124 fi
11125
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11128 echo "${ECHO_T}$ac_header_compiler" >&6; }
11129
11130 # Is the header present?
11131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h.  */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h.  */
11139 #include <$ac_header>
11140 _ACEOF
11141 if { (ac_try="$ac_cpp conftest.$ac_ext"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } >/dev/null && {
11154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11155          test ! -s conftest.err
11156        }; then
11157   ac_header_preproc=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162   ac_header_preproc=no
11163 fi
11164
11165 rm -f conftest.err conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6; }
11168
11169 # So?  What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171   yes:no: )
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176     ac_header_preproc=yes
11177     ;;
11178   no:yes:* )
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191     ( cat <<\_ASBOX
11192 ## ---------------------------------------- ##
11193 ## Report this to pgsql-bugs@postgresql.org ##
11194 ## ---------------------------------------- ##
11195 _ASBOX
11196      ) | sed "s/^/$as_me: WARNING:     /" >&2
11197     ;;
11198 esac
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   eval "$as_ac_Header=\$ac_header_preproc"
11205 fi
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207                { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209
11210 fi
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212   cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 _ACEOF
11215
11216 else
11217   { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11218 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11219    { (exit 1); exit 1; }; }
11220 fi
11221
11222 done
11223
11224 fi
11225
11226 done
11227
11228 fi
11229
11230 if test "$with_krb5" = yes ; then
11231   if test "${ac_cv_header_krb5_h+set}" = set; then
11232   { echo "$as_me:$LINENO: checking for krb5.h" >&5
11233 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11234 if test "${ac_cv_header_krb5_h+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 fi
11237 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11238 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11239 else
11240   # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11242 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 $ac_includes_default
11250 #include <krb5.h>
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } && {
11266          test -z "$ac_c_werror_flag" ||
11267          test ! -s conftest.err
11268        } && test -s conftest.$ac_objext; then
11269   ac_header_compiler=yes
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274         ac_header_compiler=no
11275 fi
11276
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 echo "${ECHO_T}$ac_header_compiler" >&6; }
11280
11281 # Is the header present?
11282 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11283 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 #include <krb5.h>
11291 _ACEOF
11292 if { (ac_try="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11299   ac_status=$?
11300   grep -v '^ *+' conftest.er1 >conftest.err
11301   rm -f conftest.er1
11302   cat conftest.err >&5
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } >/dev/null && {
11305          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11306          test ! -s conftest.err
11307        }; then
11308   ac_header_preproc=yes
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313   ac_header_preproc=no
11314 fi
11315
11316 rm -f conftest.err conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11318 echo "${ECHO_T}$ac_header_preproc" >&6; }
11319
11320 # So?  What about this header?
11321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11322   yes:no: )
11323     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11324 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11326 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11327     ac_header_preproc=yes
11328     ;;
11329   no:yes:* )
11330     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11331 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11332     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
11333 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
11334     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11335 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11336     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
11337 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11338     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11339 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11340     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11341 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11342     ( cat <<\_ASBOX
11343 ## ---------------------------------------- ##
11344 ## Report this to pgsql-bugs@postgresql.org ##
11345 ## ---------------------------------------- ##
11346 _ASBOX
11347      ) | sed "s/^/$as_me: WARNING:     /" >&2
11348     ;;
11349 esac
11350 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11351 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11352 if test "${ac_cv_header_krb5_h+set}" = set; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355   ac_cv_header_krb5_h=$ac_header_preproc
11356 fi
11357 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11359
11360 fi
11361 if test $ac_cv_header_krb5_h = yes; then
11362   :
11363 else
11364   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11365 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11366    { (exit 1); exit 1; }; }
11367 fi
11368
11369
11370 fi
11371
11372 if test "$with_openssl" = yes ; then
11373   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11374   { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11375 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11376 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 fi
11379 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11380 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11381 else
11382   # Is the header compilable?
11383 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11384 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 $ac_includes_default
11392 #include <openssl/ssl.h>
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_compile") 2>conftest.er1
11402   ac_status=$?
11403   grep -v '^ *+' conftest.er1 >conftest.err
11404   rm -f conftest.er1
11405   cat conftest.err >&5
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } && {
11408          test -z "$ac_c_werror_flag" ||
11409          test ! -s conftest.err
11410        } && test -s conftest.$ac_objext; then
11411   ac_header_compiler=yes
11412 else
11413   echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11415
11416         ac_header_compiler=no
11417 fi
11418
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11421 echo "${ECHO_T}$ac_header_compiler" >&6; }
11422
11423 # Is the header present?
11424 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11425 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432 #include <openssl/ssl.h>
11433 _ACEOF
11434 if { (ac_try="$ac_cpp conftest.$ac_ext"
11435 case "(($ac_try" in
11436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437   *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441   ac_status=$?
11442   grep -v '^ *+' conftest.er1 >conftest.err
11443   rm -f conftest.er1
11444   cat conftest.err >&5
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); } >/dev/null && {
11447          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11448          test ! -s conftest.err
11449        }; then
11450   ac_header_preproc=yes
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455   ac_header_preproc=no
11456 fi
11457
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11461
11462 # So?  What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464   yes:no: )
11465     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11469     ac_header_preproc=yes
11470     ;;
11471   no:yes:* )
11472     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11482     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11484     ( cat <<\_ASBOX
11485 ## ---------------------------------------- ##
11486 ## Report this to pgsql-bugs@postgresql.org ##
11487 ## ---------------------------------------- ##
11488 _ASBOX
11489      ) | sed "s/^/$as_me: WARNING:     /" >&2
11490     ;;
11491 esac
11492 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11493 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11494 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   ac_cv_header_openssl_ssl_h=$ac_header_preproc
11498 fi
11499 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11500 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11501
11502 fi
11503 if test $ac_cv_header_openssl_ssl_h = yes; then
11504   :
11505 else
11506   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11507 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11508    { (exit 1); exit 1; }; }
11509 fi
11510
11511
11512   if test "${ac_cv_header_openssl_err_h+set}" = set; then
11513   { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11514 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11515 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 fi
11518 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11519 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11520 else
11521   # Is the header compilable?
11522 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11523 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11530 $ac_includes_default
11531 #include <openssl/err.h>
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_compile") 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } && {
11547          test -z "$ac_c_werror_flag" ||
11548          test ! -s conftest.err
11549        } && test -s conftest.$ac_objext; then
11550   ac_header_compiler=yes
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555         ac_header_compiler=no
11556 fi
11557
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 echo "${ECHO_T}$ac_header_compiler" >&6; }
11561
11562 # Is the header present?
11563 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11564 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 #include <openssl/err.h>
11572 _ACEOF
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580   ac_status=$?
11581   grep -v '^ *+' conftest.er1 >conftest.err
11582   rm -f conftest.er1
11583   cat conftest.err >&5
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } >/dev/null && {
11586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11587          test ! -s conftest.err
11588        }; then
11589   ac_header_preproc=yes
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594   ac_header_preproc=no
11595 fi
11596
11597 rm -f conftest.err conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599 echo "${ECHO_T}$ac_header_preproc" >&6; }
11600
11601 # So?  What about this header?
11602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603   yes:no: )
11604     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11605 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11607 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11608     ac_header_preproc=yes
11609     ;;
11610   no:yes:* )
11611     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11612 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11613     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
11614 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
11615     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11616 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
11618 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11622 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11623     ( cat <<\_ASBOX
11624 ## ---------------------------------------- ##
11625 ## Report this to pgsql-bugs@postgresql.org ##
11626 ## ---------------------------------------- ##
11627 _ASBOX
11628      ) | sed "s/^/$as_me: WARNING:     /" >&2
11629     ;;
11630 esac
11631 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11632 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11633 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   ac_cv_header_openssl_err_h=$ac_header_preproc
11637 fi
11638 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11639 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11640
11641 fi
11642 if test $ac_cv_header_openssl_err_h = yes; then
11643   :
11644 else
11645   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11646 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11647    { (exit 1); exit 1; }; }
11648 fi
11649
11650
11651
11652 for ac_func in ERR_set_mark
11653 do
11654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660   cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11668 #define $ac_func innocuous_$ac_func
11669
11670 /* System header to define __stub macros and hopefully few prototypes,
11671     which can conflict with char $ac_func (); below.
11672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673     <limits.h> exists even on freestanding compilers.  */
11674
11675 #ifdef __STDC__
11676 # include <limits.h>
11677 #else
11678 # include <assert.h>
11679 #endif
11680
11681 #undef $ac_func
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684    Use char because int might match the return type of a GCC
11685    builtin and then its argument prototype would still apply.  */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char $ac_func ();
11690 /* The GNU C library defines this for functions which it implements
11691     to always fail with ENOSYS.  Some functions are actually named
11692     something starting with __ and the normal name is an alias.  */
11693 #if defined __stub_$ac_func || defined __stub___$ac_func
11694 choke me
11695 #endif
11696
11697 int
11698 main ()
11699 {
11700 return $ac_func ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_link") 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } && {
11719          test -z "$ac_c_werror_flag" ||
11720          test ! -s conftest.err
11721        } && test -s conftest$ac_exeext &&
11722        $as_test_x conftest$ac_exeext; then
11723   eval "$as_ac_var=yes"
11724 else
11725   echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11727
11728         eval "$as_ac_var=no"
11729 fi
11730
11731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11732       conftest$ac_exeext conftest.$ac_ext
11733 fi
11734 ac_res=`eval echo '${'$as_ac_var'}'`
11735                { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
11738   cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 _ACEOF
11741
11742 fi
11743 done
11744
11745 fi
11746
11747 if test "$with_pam" = yes ; then
11748
11749 for ac_header in security/pam_appl.h
11750 do
11751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 fi
11758 ac_res=`eval echo '${'$as_ac_Header'}'`
11759                { echo "$as_me:$LINENO: result: $ac_res" >&5
11760 echo "${ECHO_T}$ac_res" >&6; }
11761 else
11762   # Is the header compilable?
11763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 $ac_includes_default
11772 #include <$ac_header>
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (ac_try="$ac_compile"
11776 case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_compile") 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } && {
11788          test -z "$ac_c_werror_flag" ||
11789          test ! -s conftest.err
11790        } && test -s conftest.$ac_objext; then
11791   ac_header_compiler=yes
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796         ac_header_compiler=no
11797 fi
11798
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 echo "${ECHO_T}$ac_header_compiler" >&6; }
11802
11803 # Is the header present?
11804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h.  */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h.  */
11812 #include <$ac_header>
11813 _ACEOF
11814 if { (ac_try="$ac_cpp conftest.$ac_ext"
11815 case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11821   ac_status=$?
11822   grep -v '^ *+' conftest.er1 >conftest.err
11823   rm -f conftest.er1
11824   cat conftest.err >&5
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } >/dev/null && {
11827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828          test ! -s conftest.err
11829        }; then
11830   ac_header_preproc=yes
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835   ac_header_preproc=no
11836 fi
11837
11838 rm -f conftest.err conftest.$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 echo "${ECHO_T}$ac_header_preproc" >&6; }
11841
11842 # So?  What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844   yes:no: )
11845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11849     ac_header_preproc=yes
11850     ;;
11851   no:yes:* )
11852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11864     ( cat <<\_ASBOX
11865 ## ---------------------------------------- ##
11866 ## Report this to pgsql-bugs@postgresql.org ##
11867 ## ---------------------------------------- ##
11868 _ASBOX
11869      ) | sed "s/^/$as_me: WARNING:     /" >&2
11870     ;;
11871 esac
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875   echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877   eval "$as_ac_Header=\$ac_header_preproc"
11878 fi
11879 ac_res=`eval echo '${'$as_ac_Header'}'`
11880                { echo "$as_me:$LINENO: result: $ac_res" >&5
11881 echo "${ECHO_T}$ac_res" >&6; }
11882
11883 fi
11884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11885   cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 else
11890
11891 for ac_header in pam/pam_appl.h
11892 do
11893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 fi
11900 ac_res=`eval echo '${'$as_ac_Header'}'`
11901                { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 else
11904   # Is the header compilable?
11905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 $ac_includes_default
11914 #include <$ac_header>
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_compile") 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } && {
11930          test -z "$ac_c_werror_flag" ||
11931          test ! -s conftest.err
11932        } && test -s conftest.$ac_objext; then
11933   ac_header_compiler=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938         ac_header_compiler=no
11939 fi
11940
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11944
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 #include <$ac_header>
11955 _ACEOF
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } >/dev/null && {
11969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11970          test ! -s conftest.err
11971        }; then
11972   ac_header_preproc=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977   ac_header_preproc=no
11978 fi
11979
11980 rm -f conftest.err conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11983
11984 # So?  What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986   yes:no: )
11987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991     ac_header_preproc=yes
11992     ;;
11993   no:yes:* )
11994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12006     ( cat <<\_ASBOX
12007 ## ---------------------------------------- ##
12008 ## Report this to pgsql-bugs@postgresql.org ##
12009 ## ---------------------------------------- ##
12010 _ASBOX
12011      ) | sed "s/^/$as_me: WARNING:     /" >&2
12012     ;;
12013 esac
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017   echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019   eval "$as_ac_Header=\$ac_header_preproc"
12020 fi
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022                { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12024
12025 fi
12026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12027   cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12029 _ACEOF
12030
12031 else
12032   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12033 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12034    { (exit 1); exit 1; }; }
12035 fi
12036
12037 done
12038
12039 fi
12040
12041 done
12042
12043 fi
12044
12045 if test "$with_libxml" = yes ; then
12046   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12047   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12048 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12049 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 fi
12052 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12053 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12054 else
12055   # Is the header compilable?
12056 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12057 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h.  */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h.  */
12064 $ac_includes_default
12065 #include <libxml/parser.h>
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (ac_try="$ac_compile"
12069 case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_compile") 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } && {
12081          test -z "$ac_c_werror_flag" ||
12082          test ! -s conftest.err
12083        } && test -s conftest.$ac_objext; then
12084   ac_header_compiler=yes
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089         ac_header_compiler=no
12090 fi
12091
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12094 echo "${ECHO_T}$ac_header_compiler" >&6; }
12095
12096 # Is the header present?
12097 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12098 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h.  */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h.  */
12105 #include <libxml/parser.h>
12106 _ACEOF
12107 if { (ac_try="$ac_cpp conftest.$ac_ext"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } >/dev/null && {
12120          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12121          test ! -s conftest.err
12122        }; then
12123   ac_header_preproc=yes
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128   ac_header_preproc=no
12129 fi
12130
12131 rm -f conftest.err conftest.$ac_ext
12132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12133 echo "${ECHO_T}$ac_header_preproc" >&6; }
12134
12135 # So?  What about this header?
12136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12137   yes:no: )
12138     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12140     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12141 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12142     ac_header_preproc=yes
12143     ;;
12144   no:yes:* )
12145     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12146 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12147     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
12148 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
12149     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12150 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12151     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
12152 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12153     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12154 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12155     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12156 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12157     ( cat <<\_ASBOX
12158 ## ---------------------------------------- ##
12159 ## Report this to pgsql-bugs@postgresql.org ##
12160 ## ---------------------------------------- ##
12161 _ASBOX
12162      ) | sed "s/^/$as_me: WARNING:     /" >&2
12163     ;;
12164 esac
12165 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12166 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12167 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   ac_cv_header_libxml_parser_h=$ac_header_preproc
12171 fi
12172 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12173 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12174
12175 fi
12176 if test $ac_cv_header_libxml_parser_h = yes; then
12177   :
12178 else
12179   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12180 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12181    { (exit 1); exit 1; }; }
12182 fi
12183
12184
12185 fi
12186
12187 if test "$with_libxslt" = yes ; then
12188   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12189   { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12190 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12191 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 fi
12194 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12195 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12196 else
12197   # Is the header compilable?
12198 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12199 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206 $ac_includes_default
12207 #include <libxslt/xslt.h>
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_compile") 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } && {
12223          test -z "$ac_c_werror_flag" ||
12224          test ! -s conftest.err
12225        } && test -s conftest.$ac_objext; then
12226   ac_header_compiler=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_header_compiler=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6; }
12237
12238 # Is the header present?
12239 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12240 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 #include <libxslt/xslt.h>
12248 _ACEOF
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256   ac_status=$?
12257   grep -v '^ *+' conftest.er1 >conftest.err
12258   rm -f conftest.er1
12259   cat conftest.err >&5
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } >/dev/null && {
12262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12263          test ! -s conftest.err
12264        }; then
12265   ac_header_preproc=yes
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270   ac_header_preproc=no
12271 fi
12272
12273 rm -f conftest.err conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12276
12277 # So?  What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279   yes:no: )
12280     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12284     ac_header_preproc=yes
12285     ;;
12286   no:yes:* )
12287     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12289     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
12291     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12293     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12295     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12297     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12299     ( cat <<\_ASBOX
12300 ## ---------------------------------------- ##
12301 ## Report this to pgsql-bugs@postgresql.org ##
12302 ## ---------------------------------------- ##
12303 _ASBOX
12304      ) | sed "s/^/$as_me: WARNING:     /" >&2
12305     ;;
12306 esac
12307 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12308 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12309 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12313 fi
12314 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12315 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12316
12317 fi
12318 if test $ac_cv_header_libxslt_xslt_h = yes; then
12319   :
12320 else
12321   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12322 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12323    { (exit 1); exit 1; }; }
12324 fi
12325
12326
12327 fi
12328
12329 if test "$with_ldap" = yes ; then
12330   if test "$PORTNAME" != "win32"; then
12331
12332 for ac_header in ldap.h
12333 do
12334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 fi
12341 ac_res=`eval echo '${'$as_ac_Header'}'`
12342                { echo "$as_me:$LINENO: result: $ac_res" >&5
12343 echo "${ECHO_T}$ac_res" >&6; }
12344 else
12345   # Is the header compilable?
12346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h.  */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h.  */
12354 $ac_includes_default
12355 #include <$ac_header>
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364   (eval "$ac_compile") 2>conftest.er1
12365   ac_status=$?
12366   grep -v '^ *+' conftest.er1 >conftest.err
12367   rm -f conftest.er1
12368   cat conftest.err >&5
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } && {
12371          test -z "$ac_c_werror_flag" ||
12372          test ! -s conftest.err
12373        } && test -s conftest.$ac_objext; then
12374   ac_header_compiler=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379         ac_header_compiler=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 echo "${ECHO_T}$ac_header_compiler" >&6; }
12385
12386 # Is the header present?
12387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 #include <$ac_header>
12396 _ACEOF
12397 if { (ac_try="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12404   ac_status=$?
12405   grep -v '^ *+' conftest.er1 >conftest.err
12406   rm -f conftest.er1
12407   cat conftest.err >&5
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); } >/dev/null && {
12410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12411          test ! -s conftest.err
12412        }; then
12413   ac_header_preproc=yes
12414 else
12415   echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418   ac_header_preproc=no
12419 fi
12420
12421 rm -f conftest.err conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6; }
12424
12425 # So?  What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427   yes:no: )
12428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432     ac_header_preproc=yes
12433     ;;
12434   no:yes:* )
12435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447     ( cat <<\_ASBOX
12448 ## ---------------------------------------- ##
12449 ## Report this to pgsql-bugs@postgresql.org ##
12450 ## ---------------------------------------- ##
12451 _ASBOX
12452      ) | sed "s/^/$as_me: WARNING:     /" >&2
12453     ;;
12454 esac
12455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   eval "$as_ac_Header=\$ac_header_preproc"
12461 fi
12462 ac_res=`eval echo '${'$as_ac_Header'}'`
12463                { echo "$as_me:$LINENO: result: $ac_res" >&5
12464 echo "${ECHO_T}$ac_res" >&6; }
12465
12466 fi
12467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12468   cat >>confdefs.h <<_ACEOF
12469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12470 _ACEOF
12471
12472 else
12473   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12474 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12475    { (exit 1); exit 1; }; }
12476 fi
12477
12478 done
12479
12480   else
12481
12482 for ac_header in winldap.h
12483 do
12484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12488   echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490   cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496 $ac_includes_default
12497 #include <windows.h>
12498
12499
12500 #include <$ac_header>
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (ac_try="$ac_compile"
12504 case "(($ac_try" in
12505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506   *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509   (eval "$ac_compile") 2>conftest.er1
12510   ac_status=$?
12511   grep -v '^ *+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } && {
12516          test -z "$ac_c_werror_flag" ||
12517          test ! -s conftest.err
12518        } && test -s conftest.$ac_objext; then
12519   eval "$as_ac_Header=yes"
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524         eval "$as_ac_Header=no"
12525 fi
12526
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 fi
12529 ac_res=`eval echo '${'$as_ac_Header'}'`
12530                { echo "$as_me:$LINENO: result: $ac_res" >&5
12531 echo "${ECHO_T}$ac_res" >&6; }
12532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12533   cat >>confdefs.h <<_ACEOF
12534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12535 _ACEOF
12536
12537 else
12538   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12539 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12540    { (exit 1); exit 1; }; }
12541 fi
12542
12543 done
12544
12545   fi
12546 fi
12547
12548 if test "$with_bonjour" = yes ; then
12549   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12550   { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12551 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12552 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 fi
12555 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12556 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12557 else
12558   # Is the header compilable?
12559 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12560 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 $ac_includes_default
12568 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (ac_try="$ac_compile"
12572 case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_compile") 2>conftest.er1
12578   ac_status=$?
12579   grep -v '^ *+' conftest.er1 >conftest.err
12580   rm -f conftest.er1
12581   cat conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } && {
12584          test -z "$ac_c_werror_flag" ||
12585          test ! -s conftest.err
12586        } && test -s conftest.$ac_objext; then
12587   ac_header_compiler=yes
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592         ac_header_compiler=no
12593 fi
12594
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12597 echo "${ECHO_T}$ac_header_compiler" >&6; }
12598
12599 # Is the header present?
12600 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12601 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12609 _ACEOF
12610 if { (ac_try="$ac_cpp conftest.$ac_ext"
12611 case "(($ac_try" in
12612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613   *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } >/dev/null && {
12623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12624          test ! -s conftest.err
12625        }; then
12626   ac_header_preproc=yes
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631   ac_header_preproc=no
12632 fi
12633
12634 rm -f conftest.err conftest.$ac_ext
12635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12636 echo "${ECHO_T}$ac_header_preproc" >&6; }
12637
12638 # So?  What about this header?
12639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12640   yes:no: )
12641     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12643     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12644 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12645     ac_header_preproc=yes
12646     ;;
12647   no:yes:* )
12648     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12649 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12650     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
12651 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
12652     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12653 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12654     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
12655 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12656     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12657 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12658     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12659 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12660     ( cat <<\_ASBOX
12661 ## ---------------------------------------- ##
12662 ## Report this to pgsql-bugs@postgresql.org ##
12663 ## ---------------------------------------- ##
12664 _ASBOX
12665      ) | sed "s/^/$as_me: WARNING:     /" >&2
12666     ;;
12667 esac
12668 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12669 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12670 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12671   echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12674 fi
12675 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12676 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12677
12678 fi
12679 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12680   :
12681 else
12682   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12683 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12684    { (exit 1); exit 1; }; }
12685 fi
12686
12687
12688 fi
12689
12690 # for contrib/uuid-ossp
12691 if test "$with_ossp_uuid" = yes ; then
12692
12693 for ac_header in ossp/uuid.h
12694 do
12695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700   echo $ECHO_N "(cached) $ECHO_C" >&6
12701 fi
12702 ac_res=`eval echo '${'$as_ac_Header'}'`
12703                { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12705 else
12706   # Is the header compilable?
12707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h.  */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h.  */
12715 $ac_includes_default
12716 #include <$ac_header>
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (ac_try="$ac_compile"
12720 case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_compile") 2>conftest.er1
12726   ac_status=$?
12727   grep -v '^ *+' conftest.er1 >conftest.err
12728   rm -f conftest.er1
12729   cat conftest.err >&5
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } && {
12732          test -z "$ac_c_werror_flag" ||
12733          test ! -s conftest.err
12734        } && test -s conftest.$ac_objext; then
12735   ac_header_compiler=yes
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740         ac_header_compiler=no
12741 fi
12742
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12745 echo "${ECHO_T}$ac_header_compiler" >&6; }
12746
12747 # Is the header present?
12748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756 #include <$ac_header>
12757 _ACEOF
12758 if { (ac_try="$ac_cpp conftest.$ac_ext"
12759 case "(($ac_try" in
12760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761   *) ac_try_echo=$ac_try;;
12762 esac
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12765   ac_status=$?
12766   grep -v '^ *+' conftest.er1 >conftest.err
12767   rm -f conftest.er1
12768   cat conftest.err >&5
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } >/dev/null && {
12771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12772          test ! -s conftest.err
12773        }; then
12774   ac_header_preproc=yes
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779   ac_header_preproc=no
12780 fi
12781
12782 rm -f conftest.err conftest.$ac_ext
12783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12784 echo "${ECHO_T}$ac_header_preproc" >&6; }
12785
12786 # So?  What about this header?
12787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12788   yes:no: )
12789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12793     ac_header_preproc=yes
12794     ;;
12795   no:yes:* )
12796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12808     ( cat <<\_ASBOX
12809 ## ---------------------------------------- ##
12810 ## Report this to pgsql-bugs@postgresql.org ##
12811 ## ---------------------------------------- ##
12812 _ASBOX
12813      ) | sed "s/^/$as_me: WARNING:     /" >&2
12814     ;;
12815 esac
12816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821   eval "$as_ac_Header=\$ac_header_preproc"
12822 fi
12823 ac_res=`eval echo '${'$as_ac_Header'}'`
12824                { echo "$as_me:$LINENO: result: $ac_res" >&5
12825 echo "${ECHO_T}$ac_res" >&6; }
12826
12827 fi
12828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12829   cat >>confdefs.h <<_ACEOF
12830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12831 _ACEOF
12832
12833 else
12834
12835
12836 for ac_header in uuid.h
12837 do
12838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12843   echo $ECHO_N "(cached) $ECHO_C" >&6
12844 fi
12845 ac_res=`eval echo '${'$as_ac_Header'}'`
12846                { echo "$as_me:$LINENO: result: $ac_res" >&5
12847 echo "${ECHO_T}$ac_res" >&6; }
12848 else
12849   # Is the header compilable?
12850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858 $ac_includes_default
12859 #include <$ac_header>
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (ac_try="$ac_compile"
12863 case "(($ac_try" in
12864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865   *) ac_try_echo=$ac_try;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868   (eval "$ac_compile") 2>conftest.er1
12869   ac_status=$?
12870   grep -v '^ *+' conftest.er1 >conftest.err
12871   rm -f conftest.er1
12872   cat conftest.err >&5
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); } && {
12875          test -z "$ac_c_werror_flag" ||
12876          test ! -s conftest.err
12877        } && test -s conftest.$ac_objext; then
12878   ac_header_compiler=yes
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883         ac_header_compiler=no
12884 fi
12885
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12888 echo "${ECHO_T}$ac_header_compiler" >&6; }
12889
12890 # Is the header present?
12891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h.  */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h.  */
12899 #include <$ac_header>
12900 _ACEOF
12901 if { (ac_try="$ac_cpp conftest.$ac_ext"
12902 case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12908   ac_status=$?
12909   grep -v '^ *+' conftest.er1 >conftest.err
12910   rm -f conftest.er1
12911   cat conftest.err >&5
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } >/dev/null && {
12914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12915          test ! -s conftest.err
12916        }; then
12917   ac_header_preproc=yes
12918 else
12919   echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12921
12922   ac_header_preproc=no
12923 fi
12924
12925 rm -f conftest.err conftest.$ac_ext
12926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12927 echo "${ECHO_T}$ac_header_preproc" >&6; }
12928
12929 # So?  What about this header?
12930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12931   yes:no: )
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12936     ac_header_preproc=yes
12937     ;;
12938   no:yes:* )
12939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12951     ( cat <<\_ASBOX
12952 ## ---------------------------------------- ##
12953 ## Report this to pgsql-bugs@postgresql.org ##
12954 ## ---------------------------------------- ##
12955 _ASBOX
12956      ) | sed "s/^/$as_me: WARNING:     /" >&2
12957     ;;
12958 esac
12959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12962   echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964   eval "$as_ac_Header=\$ac_header_preproc"
12965 fi
12966 ac_res=`eval echo '${'$as_ac_Header'}'`
12967                { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969
12970 fi
12971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12972   cat >>confdefs.h <<_ACEOF
12973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12974 _ACEOF
12975
12976 else
12977   { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12978 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12979    { (exit 1); exit 1; }; }
12980 fi
12981
12982 done
12983
12984 fi
12985
12986 done
12987
12988 fi
12989
12990
12991 ##
12992 ## Types, structures, compiler characteristics
12993 ##
12994
12995  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12996 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12997 if test "${ac_cv_c_bigendian+set}" = set; then
12998   echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000   # See if sys/param.h defines the BYTE_ORDER macro.
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 #include <sys/types.h>
13008 #include <sys/param.h>
13009
13010 int
13011 main ()
13012 {
13013 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13014         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13015  bogus endian macros
13016 #endif
13017
13018   ;
13019   return 0;
13020 }
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026   *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029   (eval "$ac_compile") 2>conftest.er1
13030   ac_status=$?
13031   grep -v '^ *+' conftest.er1 >conftest.err
13032   rm -f conftest.er1
13033   cat conftest.err >&5
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); } && {
13036          test -z "$ac_c_werror_flag" ||
13037          test ! -s conftest.err
13038        } && test -s conftest.$ac_objext; then
13039   # It does; now see whether it defined to BIG_ENDIAN or not.
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 #include <sys/types.h>
13047 #include <sys/param.h>
13048
13049 int
13050 main ()
13051 {
13052 #if BYTE_ORDER != BIG_ENDIAN
13053  not big endian
13054 #endif
13055
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_compile") 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } && {
13074          test -z "$ac_c_werror_flag" ||
13075          test ! -s conftest.err
13076        } && test -s conftest.$ac_objext; then
13077   ac_cv_c_bigendian=yes
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082         ac_cv_c_bigendian=no
13083 fi
13084
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 else
13087   echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090         # It does not; compile a test program.
13091 if test "$cross_compiling" = yes; then
13092   # try to guess the endianness by grepping values into an object file
13093   ac_cv_c_bigendian=unknown
13094   cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13101 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13103 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13104 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13106 int
13107 main ()
13108 {
13109  _ascii (); _ebcdic ();
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (ac_try="$ac_compile"
13116 case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_compile") 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } && {
13128          test -z "$ac_c_werror_flag" ||
13129          test ! -s conftest.err
13130        } && test -s conftest.$ac_objext; then
13131   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13132   ac_cv_c_bigendian=yes
13133 fi
13134 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13135   if test "$ac_cv_c_bigendian" = unknown; then
13136     ac_cv_c_bigendian=no
13137   else
13138     # finding both strings is unlikely to happen, but who knows?
13139     ac_cv_c_bigendian=unknown
13140   fi
13141 fi
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146
13147 fi
13148
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 else
13151   cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157 $ac_includes_default
13158 int
13159 main ()
13160 {
13161
13162   /* Are we little or big endian?  From Harbison&Steele.  */
13163   union
13164   {
13165     long int l;
13166     char c[sizeof (long int)];
13167   } u;
13168   u.l = 1;
13169   return u.c[sizeof (long int) - 1] == 1;
13170
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_link") 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186   { (case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_try") 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195   ac_cv_c_bigendian=no
13196 else
13197   echo "$as_me: program exited with status $ac_status" >&5
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 ( exit $ac_status )
13202 ac_cv_c_bigendian=yes
13203 fi
13204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13205 fi
13206
13207
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 fi
13212 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13213 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13214 case $ac_cv_c_bigendian in
13215   yes)
13216
13217 cat >>confdefs.h <<\_ACEOF
13218 #define WORDS_BIGENDIAN 1
13219 _ACEOF
13220  ;;
13221   no)
13222      ;;
13223   *)
13224     { { echo "$as_me:$LINENO: error: unknown endianness
13225 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13226 echo "$as_me: error: unknown endianness
13227 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13228    { (exit 1); exit 1; }; } ;;
13229 esac
13230
13231 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13233 if test "${ac_cv_c_const+set}" = set; then
13234   echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236   cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h.  */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h.  */
13242
13243 int
13244 main ()
13245 {
13246 /* FIXME: Include the comments suggested by Paul. */
13247 #ifndef __cplusplus
13248   /* Ultrix mips cc rejects this.  */
13249   typedef int charset[2];
13250   const charset cs;
13251   /* SunOS 4.1.1 cc rejects this.  */
13252   char const *const *pcpcc;
13253   char **ppc;
13254   /* NEC SVR4.0.2 mips cc rejects this.  */
13255   struct point {int x, y;};
13256   static struct point const zero = {0,0};
13257   /* AIX XL C 1.02.0.0 rejects this.
13258      It does not let you subtract one const X* pointer from another in
13259      an arm of an if-expression whose if-part is not a constant
13260      expression */
13261   const char *g = "string";
13262   pcpcc = &g + (g ? g-g : 0);
13263   /* HPUX 7.0 cc rejects these. */
13264   ++pcpcc;
13265   ppc = (char**) pcpcc;
13266   pcpcc = (char const *const *) ppc;
13267   { /* SCO 3.2v4 cc rejects this.  */
13268     char *t;
13269     char const *s = 0 ? (char *) 0 : (char const *) 0;
13270
13271     *t++ = 0;
13272     if (s) return 0;
13273   }
13274   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13275     int x[] = {25, 17};
13276     const int *foo = &x[0];
13277     ++foo;
13278   }
13279   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13280     typedef const int *iptr;
13281     iptr p = 0;
13282     ++p;
13283   }
13284   { /* AIX XL C 1.02.0.0 rejects this saying
13285        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13286     struct s { int j; const int *ap[3]; };
13287     struct s *b; b->j = 5;
13288   }
13289   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13290     const int foo = 10;
13291     if (!foo) return 0;
13292   }
13293   return !cs[0] && !zero.x;
13294 #endif
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (ac_try="$ac_compile"
13302 case "(($ac_try" in
13303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304   *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307   (eval "$ac_compile") 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } && {
13314          test -z "$ac_c_werror_flag" ||
13315          test ! -s conftest.err
13316        } && test -s conftest.$ac_objext; then
13317   ac_cv_c_const=yes
13318 else
13319   echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322         ac_cv_c_const=no
13323 fi
13324
13325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13326 fi
13327 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13328 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13329 if test $ac_cv_c_const = no; then
13330
13331 cat >>confdefs.h <<\_ACEOF
13332 #define const
13333 _ACEOF
13334
13335 fi
13336
13337 { echo "$as_me:$LINENO: checking for inline" >&5
13338 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13339 if test "${ac_cv_c_inline+set}" = set; then
13340   echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342   ac_cv_c_inline=no
13343 for ac_kw in inline __inline__ __inline; do
13344   cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350 #ifndef __cplusplus
13351 typedef int foo_t;
13352 static $ac_kw foo_t static_foo () {return 0; }
13353 $ac_kw foo_t foo () {return 0; }
13354 #endif
13355
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (ac_try="$ac_compile"
13359 case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364   (eval "$ac_compile") 2>conftest.er1
13365   ac_status=$?
13366   grep -v '^ *+' conftest.er1 >conftest.err
13367   rm -f conftest.er1
13368   cat conftest.err >&5
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); } && {
13371          test -z "$ac_c_werror_flag" ||
13372          test ! -s conftest.err
13373        } && test -s conftest.$ac_objext; then
13374   ac_cv_c_inline=$ac_kw
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379
13380 fi
13381
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383   test "$ac_cv_c_inline" != no && break
13384 done
13385
13386 fi
13387 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13388 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13389
13390
13391 case $ac_cv_c_inline in
13392   inline | yes) ;;
13393   *)
13394     case $ac_cv_c_inline in
13395       no) ac_val=;;
13396       *) ac_val=$ac_cv_c_inline;;
13397     esac
13398     cat >>confdefs.h <<_ACEOF
13399 #ifndef __cplusplus
13400 #define inline $ac_val
13401 #endif
13402 _ACEOF
13403     ;;
13404 esac
13405
13406 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13407 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13408 if test "${ac_cv_c_stringize+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 #define x(y) #y
13418
13419 char *s = x(teststring);
13420 _ACEOF
13421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422   $EGREP "#teststring" >/dev/null 2>&1; then
13423   ac_cv_c_stringize=no
13424 else
13425   ac_cv_c_stringize=yes
13426 fi
13427 rm -f conftest*
13428
13429 fi
13430 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13431 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13432 if test $ac_cv_c_stringize = yes; then
13433
13434 cat >>confdefs.h <<\_ACEOF
13435 #define HAVE_STRINGIZE 1
13436 _ACEOF
13437
13438 fi
13439
13440 { echo "$as_me:$LINENO: checking for signed types" >&5
13441 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13442 if test "${pgac_cv_c_signed+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451
13452 int
13453 main ()
13454 {
13455 signed char c; signed short s; signed int i;
13456   ;
13457   return 0;
13458 }
13459 _ACEOF
13460 rm -f conftest.$ac_objext
13461 if { (ac_try="$ac_compile"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_compile") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } && {
13474          test -z "$ac_c_werror_flag" ||
13475          test ! -s conftest.err
13476        } && test -s conftest.$ac_objext; then
13477   pgac_cv_c_signed=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482         pgac_cv_c_signed=no
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 fi
13487 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13488 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13489 if test x"$pgac_cv_c_signed" = xno ; then
13490
13491 cat >>confdefs.h <<\_ACEOF
13492 #define signed
13493 _ACEOF
13494
13495 fi
13496 { echo "$as_me:$LINENO: checking for working volatile" >&5
13497 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13498 if test "${ac_cv_c_volatile+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501   cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507
13508 int
13509 main ()
13510 {
13511
13512 volatile int x;
13513 int * volatile y = (int *) 0;
13514 return !x && !y;
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (ac_try="$ac_compile"
13521 case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_compile") 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } && {
13533          test -z "$ac_c_werror_flag" ||
13534          test ! -s conftest.err
13535        } && test -s conftest.$ac_objext; then
13536   ac_cv_c_volatile=yes
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541         ac_cv_c_volatile=no
13542 fi
13543
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 fi
13546 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13547 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13548 if test $ac_cv_c_volatile = no; then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define volatile
13552 _ACEOF
13553
13554 fi
13555
13556 { echo "$as_me:$LINENO: checking for __func__" >&5
13557 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13558 if test "${pgac_cv_funcname_func_support+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 #include <stdio.h>
13568 int
13569 main ()
13570 {
13571 printf("%s\n", __func__);
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_compile") 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } && {
13590          test -z "$ac_c_werror_flag" ||
13591          test ! -s conftest.err
13592        } && test -s conftest.$ac_objext; then
13593   pgac_cv_funcname_func_support=yes
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598         pgac_cv_funcname_func_support=no
13599 fi
13600
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13604 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13605 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13606
13607 cat >>confdefs.h <<\_ACEOF
13608 #define HAVE_FUNCNAME__FUNC 1
13609 _ACEOF
13610
13611 else
13612 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13613 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13614 if test "${pgac_cv_funcname_function_support+set}" = set; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 #include <stdio.h>
13624 int
13625 main ()
13626 {
13627 printf("%s\n", __FUNCTION__);
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_compile") 2>conftest.er1
13640   ac_status=$?
13641   grep -v '^ *+' conftest.er1 >conftest.err
13642   rm -f conftest.er1
13643   cat conftest.err >&5
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } && {
13646          test -z "$ac_c_werror_flag" ||
13647          test ! -s conftest.err
13648        } && test -s conftest.$ac_objext; then
13649   pgac_cv_funcname_function_support=yes
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654         pgac_cv_funcname_function_support=no
13655 fi
13656
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 fi
13659 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13660 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13661 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13662
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_FUNCNAME__FUNCTION 1
13665 _ACEOF
13666
13667 fi
13668 fi
13669 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13670 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13671 if test "${ac_cv_struct_tm+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680 #include <sys/types.h>
13681 #include <time.h>
13682
13683 int
13684 main ()
13685 {
13686 struct tm tm;
13687                                      int *p = &tm.tm_sec;
13688                                      return !p;
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (ac_try="$ac_compile"
13695 case "(($ac_try" in
13696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697   *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700   (eval "$ac_compile") 2>conftest.er1
13701   ac_status=$?
13702   grep -v '^ *+' conftest.er1 >conftest.err
13703   rm -f conftest.er1
13704   cat conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } && {
13707          test -z "$ac_c_werror_flag" ||
13708          test ! -s conftest.err
13709        } && test -s conftest.$ac_objext; then
13710   ac_cv_struct_tm=time.h
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715         ac_cv_struct_tm=sys/time.h
13716 fi
13717
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 fi
13720 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13721 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13722 if test $ac_cv_struct_tm = sys/time.h; then
13723
13724 cat >>confdefs.h <<\_ACEOF
13725 #define TM_IN_SYS_TIME 1
13726 _ACEOF
13727
13728 fi
13729
13730 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13731 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13732 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h.  */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h.  */
13741 #include <sys/types.h>
13742 #include <$ac_cv_struct_tm>
13743
13744
13745 int
13746 main ()
13747 {
13748 static struct tm ac_aggr;
13749 if (ac_aggr.tm_zone)
13750 return 0;
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 rm -f conftest.$ac_objext
13756 if { (ac_try="$ac_compile"
13757 case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_compile") 2>conftest.er1
13763   ac_status=$?
13764   grep -v '^ *+' conftest.er1 >conftest.err
13765   rm -f conftest.er1
13766   cat conftest.err >&5
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); } && {
13769          test -z "$ac_c_werror_flag" ||
13770          test ! -s conftest.err
13771        } && test -s conftest.$ac_objext; then
13772   ac_cv_member_struct_tm_tm_zone=yes
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777         cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783 #include <sys/types.h>
13784 #include <$ac_cv_struct_tm>
13785
13786
13787 int
13788 main ()
13789 {
13790 static struct tm ac_aggr;
13791 if (sizeof ac_aggr.tm_zone)
13792 return 0;
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (ac_try="$ac_compile"
13799 case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_compile") 2>conftest.er1
13805   ac_status=$?
13806   grep -v '^ *+' conftest.er1 >conftest.err
13807   rm -f conftest.er1
13808   cat conftest.err >&5
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } && {
13811          test -z "$ac_c_werror_flag" ||
13812          test ! -s conftest.err
13813        } && test -s conftest.$ac_objext; then
13814   ac_cv_member_struct_tm_tm_zone=yes
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819         ac_cv_member_struct_tm_tm_zone=no
13820 fi
13821
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 fi
13824
13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 fi
13827 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13828 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13829 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_STRUCT_TM_TM_ZONE 1
13833 _ACEOF
13834
13835
13836 fi
13837
13838 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_TM_ZONE 1
13842 _ACEOF
13843
13844 fi
13845 { echo "$as_me:$LINENO: checking for tzname" >&5
13846 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13847 if test "${ac_cv_var_tzname+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 #include <time.h>
13857 #ifndef tzname /* For SGI.  */
13858 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
13859 #endif
13860
13861 int
13862 main ()
13863 {
13864 atoi(*tzname);
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873   *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876   (eval "$ac_link") 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } && {
13883          test -z "$ac_c_werror_flag" ||
13884          test ! -s conftest.err
13885        } && test -s conftest$ac_exeext &&
13886        $as_test_x conftest$ac_exeext; then
13887   ac_cv_var_tzname=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892         ac_cv_var_tzname=no
13893 fi
13894
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896       conftest$ac_exeext conftest.$ac_ext
13897 fi
13898 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13899 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13900 if test $ac_cv_var_tzname = yes; then
13901
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_TZNAME 1
13904 _ACEOF
13905
13906 fi
13907
13908 { echo "$as_me:$LINENO: checking for union semun" >&5
13909 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13910 if test "${ac_cv_type_union_semun+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 #include <sys/types.h>
13920 #include <sys/ipc.h>
13921 #include <sys/sem.h>
13922
13923 typedef union semun ac__type_new_;
13924 int
13925 main ()
13926 {
13927 if ((ac__type_new_ *) 0)
13928   return 0;
13929 if (sizeof (ac__type_new_))
13930   return 0;
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (ac_try="$ac_compile"
13937 case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942   (eval "$ac_compile") 2>conftest.er1
13943   ac_status=$?
13944   grep -v '^ *+' conftest.er1 >conftest.err
13945   rm -f conftest.er1
13946   cat conftest.err >&5
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } && {
13949          test -z "$ac_c_werror_flag" ||
13950          test ! -s conftest.err
13951        } && test -s conftest.$ac_objext; then
13952   ac_cv_type_union_semun=yes
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957         ac_cv_type_union_semun=no
13958 fi
13959
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 fi
13962 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13963 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13964 if test $ac_cv_type_union_semun = yes; then
13965
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_UNION_SEMUN 1
13968 _ACEOF
13969
13970
13971 fi
13972
13973 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13974 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13975 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #include <sys/types.h>
13985 #ifdef HAVE_SYS_UN_H
13986 #include <sys/un.h>
13987 #endif
13988
13989
13990 typedef struct sockaddr_un ac__type_new_;
13991 int
13992 main ()
13993 {
13994 if ((ac__type_new_ *) 0)
13995   return 0;
13996 if (sizeof (ac__type_new_))
13997   return 0;
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (ac_try="$ac_compile"
14004 case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_compile") 2>conftest.er1
14010   ac_status=$?
14011   grep -v '^ *+' conftest.er1 >conftest.err
14012   rm -f conftest.er1
14013   cat conftest.err >&5
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } && {
14016          test -z "$ac_c_werror_flag" ||
14017          test ! -s conftest.err
14018        } && test -s conftest.$ac_objext; then
14019   ac_cv_type_struct_sockaddr_un=yes
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024         ac_cv_type_struct_sockaddr_un=no
14025 fi
14026
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14030 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14031 if test $ac_cv_type_struct_sockaddr_un = yes; then
14032
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_STRUCT_SOCKADDR_UN 1
14035 _ACEOF
14036
14037
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_UNIX_SOCKETS 1
14040 _ACEOF
14041
14042 fi
14043
14044 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14045 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14046 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 #include <sys/types.h>
14056 #ifdef HAVE_SYS_SOCKET_H
14057 #include <sys/socket.h>
14058 #endif
14059
14060
14061 typedef struct sockaddr_storage ac__type_new_;
14062 int
14063 main ()
14064 {
14065 if ((ac__type_new_ *) 0)
14066   return 0;
14067 if (sizeof (ac__type_new_))
14068   return 0;
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (ac_try="$ac_compile"
14075 case "(($ac_try" in
14076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077   *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080   (eval "$ac_compile") 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } && {
14087          test -z "$ac_c_werror_flag" ||
14088          test ! -s conftest.err
14089        } && test -s conftest.$ac_objext; then
14090   ac_cv_type_struct_sockaddr_storage=yes
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095         ac_cv_type_struct_sockaddr_storage=no
14096 fi
14097
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14101 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14102 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14103
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14106 _ACEOF
14107
14108
14109 fi
14110
14111 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14112 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14113 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14114   echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116   cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122 #include <sys/types.h>
14123 #ifdef HAVE_SYS_SOCKET_H
14124 #include <sys/socket.h>
14125 #endif
14126
14127
14128 int
14129 main ()
14130 {
14131 static struct sockaddr_storage ac_aggr;
14132 if (ac_aggr.ss_family)
14133 return 0;
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_compile") 2>conftest.er1
14146   ac_status=$?
14147   grep -v '^ *+' conftest.er1 >conftest.err
14148   rm -f conftest.er1
14149   cat conftest.err >&5
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } && {
14152          test -z "$ac_c_werror_flag" ||
14153          test ! -s conftest.err
14154        } && test -s conftest.$ac_objext; then
14155   ac_cv_member_struct_sockaddr_storage_ss_family=yes
14156 else
14157   echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160         cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166 #include <sys/types.h>
14167 #ifdef HAVE_SYS_SOCKET_H
14168 #include <sys/socket.h>
14169 #endif
14170
14171
14172 int
14173 main ()
14174 {
14175 static struct sockaddr_storage ac_aggr;
14176 if (sizeof ac_aggr.ss_family)
14177 return 0;
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (ac_try="$ac_compile"
14184 case "(($ac_try" in
14185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186   *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189   (eval "$ac_compile") 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } && {
14196          test -z "$ac_c_werror_flag" ||
14197          test ! -s conftest.err
14198        } && test -s conftest.$ac_objext; then
14199   ac_cv_member_struct_sockaddr_storage_ss_family=yes
14200 else
14201   echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204         ac_cv_member_struct_sockaddr_storage_ss_family=no
14205 fi
14206
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 fi
14209
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 fi
14212 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14213 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14214 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14215
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14218 _ACEOF
14219
14220
14221 fi
14222 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14223 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14224 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 #include <sys/types.h>
14234 #ifdef HAVE_SYS_SOCKET_H
14235 #include <sys/socket.h>
14236 #endif
14237
14238
14239 int
14240 main ()
14241 {
14242 static struct sockaddr_storage ac_aggr;
14243 if (ac_aggr.__ss_family)
14244 return 0;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253   *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256   (eval "$ac_compile") 2>conftest.er1
14257   ac_status=$?
14258   grep -v '^ *+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } && {
14263          test -z "$ac_c_werror_flag" ||
14264          test ! -s conftest.err
14265        } && test -s conftest.$ac_objext; then
14266   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271         cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h.  */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h.  */
14277 #include <sys/types.h>
14278 #ifdef HAVE_SYS_SOCKET_H
14279 #include <sys/socket.h>
14280 #endif
14281
14282
14283 int
14284 main ()
14285 {
14286 static struct sockaddr_storage ac_aggr;
14287 if (sizeof ac_aggr.__ss_family)
14288 return 0;
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_compile") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } && {
14307          test -z "$ac_c_werror_flag" ||
14308          test ! -s conftest.err
14309        } && test -s conftest.$ac_objext; then
14310   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315         ac_cv_member_struct_sockaddr_storage___ss_family=no
14316 fi
14317
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14325 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14326
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14329 _ACEOF
14330
14331
14332 fi
14333 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14334 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14335 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14336   echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338   cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h.  */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h.  */
14344 #include <sys/types.h>
14345 #ifdef HAVE_SYS_SOCKET_H
14346 #include <sys/socket.h>
14347 #endif
14348
14349
14350 int
14351 main ()
14352 {
14353 static struct sockaddr_storage ac_aggr;
14354 if (ac_aggr.ss_len)
14355 return 0;
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_compile") 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } && {
14374          test -z "$ac_c_werror_flag" ||
14375          test ! -s conftest.err
14376        } && test -s conftest.$ac_objext; then
14377   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382         cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 #include <sys/types.h>
14389 #ifdef HAVE_SYS_SOCKET_H
14390 #include <sys/socket.h>
14391 #endif
14392
14393
14394 int
14395 main ()
14396 {
14397 static struct sockaddr_storage ac_aggr;
14398 if (sizeof ac_aggr.ss_len)
14399 return 0;
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_compile") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } && {
14418          test -z "$ac_c_werror_flag" ||
14419          test ! -s conftest.err
14420        } && test -s conftest.$ac_objext; then
14421   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426         ac_cv_member_struct_sockaddr_storage_ss_len=no
14427 fi
14428
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 fi
14431
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14435 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14436 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14437
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14440 _ACEOF
14441
14442
14443 fi
14444 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14445 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14446 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h.  */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h.  */
14455 #include <sys/types.h>
14456 #ifdef HAVE_SYS_SOCKET_H
14457 #include <sys/socket.h>
14458 #endif
14459
14460
14461 int
14462 main ()
14463 {
14464 static struct sockaddr_storage ac_aggr;
14465 if (ac_aggr.__ss_len)
14466 return 0;
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_compile") 2>conftest.er1
14479   ac_status=$?
14480   grep -v '^ *+' conftest.er1 >conftest.err
14481   rm -f conftest.er1
14482   cat conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } && {
14485          test -z "$ac_c_werror_flag" ||
14486          test ! -s conftest.err
14487        } && test -s conftest.$ac_objext; then
14488   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14489 else
14490   echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493         cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 #include <sys/types.h>
14500 #ifdef HAVE_SYS_SOCKET_H
14501 #include <sys/socket.h>
14502 #endif
14503
14504
14505 int
14506 main ()
14507 {
14508 static struct sockaddr_storage ac_aggr;
14509 if (sizeof ac_aggr.__ss_len)
14510 return 0;
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522   (eval "$ac_compile") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest.$ac_objext; then
14532   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537         ac_cv_member_struct_sockaddr_storage___ss_len=no
14538 fi
14539
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 fi
14545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14546 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14547 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14548
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14551 _ACEOF
14552
14553
14554 fi
14555 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14556 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14557 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <sys/types.h>
14567 #ifdef HAVE_SYS_SOCKET_H
14568 #include <sys/socket.h>
14569 #endif
14570
14571
14572 int
14573 main ()
14574 {
14575 static struct sockaddr ac_aggr;
14576 if (ac_aggr.sa_len)
14577 return 0;
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_compile") 2>conftest.er1
14590   ac_status=$?
14591   grep -v '^ *+' conftest.er1 >conftest.err
14592   rm -f conftest.er1
14593   cat conftest.err >&5
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } && {
14596          test -z "$ac_c_werror_flag" ||
14597          test ! -s conftest.err
14598        } && test -s conftest.$ac_objext; then
14599   ac_cv_member_struct_sockaddr_sa_len=yes
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604         cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 #include <sys/types.h>
14611 #ifdef HAVE_SYS_SOCKET_H
14612 #include <sys/socket.h>
14613 #endif
14614
14615
14616 int
14617 main ()
14618 {
14619 static struct sockaddr ac_aggr;
14620 if (sizeof ac_aggr.sa_len)
14621 return 0;
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_compile") 2>conftest.er1
14634   ac_status=$?
14635   grep -v '^ *+' conftest.er1 >conftest.err
14636   rm -f conftest.er1
14637   cat conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } && {
14640          test -z "$ac_c_werror_flag" ||
14641          test ! -s conftest.err
14642        } && test -s conftest.$ac_objext; then
14643   ac_cv_member_struct_sockaddr_sa_len=yes
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648         ac_cv_member_struct_sockaddr_sa_len=no
14649 fi
14650
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 fi
14653
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 fi
14656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14657 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14658 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14659
14660 cat >>confdefs.h <<_ACEOF
14661 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14662 _ACEOF
14663
14664
14665 fi
14666
14667 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14668 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14669 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 #include <sys/types.h>
14679 #include <sys/socket.h>
14680 #include <netdb.h>
14681
14682
14683 typedef struct addrinfo ac__type_new_;
14684 int
14685 main ()
14686 {
14687 if ((ac__type_new_ *) 0)
14688   return 0;
14689 if (sizeof (ac__type_new_))
14690   return 0;
14691   ;
14692   return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (ac_try="$ac_compile"
14697 case "(($ac_try" in
14698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699   *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702   (eval "$ac_compile") 2>conftest.er1
14703   ac_status=$?
14704   grep -v '^ *+' conftest.er1 >conftest.err
14705   rm -f conftest.er1
14706   cat conftest.err >&5
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } && {
14709          test -z "$ac_c_werror_flag" ||
14710          test ! -s conftest.err
14711        } && test -s conftest.$ac_objext; then
14712   ac_cv_type_struct_addrinfo=yes
14713 else
14714   echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717         ac_cv_type_struct_addrinfo=no
14718 fi
14719
14720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 fi
14722 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14723 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14724 if test $ac_cv_type_struct_addrinfo = yes; then
14725
14726 cat >>confdefs.h <<_ACEOF
14727 #define HAVE_STRUCT_ADDRINFO 1
14728 _ACEOF
14729
14730
14731 fi
14732
14733
14734 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14735 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14736 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739   cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 #include <sys/param.h>
14746 #include <sys/types.h>
14747 #include <sys/socket.h>
14748 #include <sys/ucred.h>
14749
14750 typedef struct cmsgcred ac__type_new_;
14751 int
14752 main ()
14753 {
14754 if ((ac__type_new_ *) 0)
14755   return 0;
14756 if (sizeof (ac__type_new_))
14757   return 0;
14758   ;
14759   return 0;
14760 }
14761 _ACEOF
14762 rm -f conftest.$ac_objext
14763 if { (ac_try="$ac_compile"
14764 case "(($ac_try" in
14765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766   *) ac_try_echo=$ac_try;;
14767 esac
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769   (eval "$ac_compile") 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } && {
14776          test -z "$ac_c_werror_flag" ||
14777          test ! -s conftest.err
14778        } && test -s conftest.$ac_objext; then
14779   ac_cv_type_struct_cmsgcred=yes
14780 else
14781   echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784         ac_cv_type_struct_cmsgcred=no
14785 fi
14786
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 fi
14789 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14790 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14791 if test $ac_cv_type_struct_cmsgcred = yes; then
14792
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_STRUCT_CMSGCRED 1
14795 _ACEOF
14796
14797
14798 fi
14799 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14800 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14801 if test "${ac_cv_type_struct_fcred+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h.  */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h.  */
14810 #include <sys/param.h>
14811 #include <sys/types.h>
14812 #include <sys/socket.h>
14813 #include <sys/ucred.h>
14814
14815 typedef struct fcred ac__type_new_;
14816 int
14817 main ()
14818 {
14819 if ((ac__type_new_ *) 0)
14820   return 0;
14821 if (sizeof (ac__type_new_))
14822   return 0;
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834   (eval "$ac_compile") 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } && {
14841          test -z "$ac_c_werror_flag" ||
14842          test ! -s conftest.err
14843        } && test -s conftest.$ac_objext; then
14844   ac_cv_type_struct_fcred=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849         ac_cv_type_struct_fcred=no
14850 fi
14851
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 fi
14854 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14855 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14856 if test $ac_cv_type_struct_fcred = yes; then
14857
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_STRUCT_FCRED 1
14860 _ACEOF
14861
14862
14863 fi
14864 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14865 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14866 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14867   echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869   cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 #include <sys/param.h>
14876 #include <sys/types.h>
14877 #include <sys/socket.h>
14878 #include <sys/ucred.h>
14879
14880 typedef struct sockcred ac__type_new_;
14881 int
14882 main ()
14883 {
14884 if ((ac__type_new_ *) 0)
14885   return 0;
14886 if (sizeof (ac__type_new_))
14887   return 0;
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899   (eval "$ac_compile") 2>conftest.er1
14900   ac_status=$?
14901   grep -v '^ *+' conftest.er1 >conftest.err
14902   rm -f conftest.er1
14903   cat conftest.err >&5
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); } && {
14906          test -z "$ac_c_werror_flag" ||
14907          test ! -s conftest.err
14908        } && test -s conftest.$ac_objext; then
14909   ac_cv_type_struct_sockcred=yes
14910 else
14911   echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914         ac_cv_type_struct_sockcred=no
14915 fi
14916
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 fi
14919 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14920 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14921 if test $ac_cv_type_struct_sockcred = yes; then
14922
14923 cat >>confdefs.h <<_ACEOF
14924 #define HAVE_STRUCT_SOCKCRED 1
14925 _ACEOF
14926
14927
14928 fi
14929
14930
14931 { echo "$as_me:$LINENO: checking for struct option" >&5
14932 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14933 if test "${ac_cv_type_struct_option+set}" = set; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936   cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942 #ifdef HAVE_GETOPT_H
14943 #include <getopt.h>
14944 #endif
14945
14946 typedef struct option ac__type_new_;
14947 int
14948 main ()
14949 {
14950 if ((ac__type_new_ *) 0)
14951   return 0;
14952 if (sizeof (ac__type_new_))
14953   return 0;
14954   ;
14955   return 0;
14956 }
14957 _ACEOF
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962   *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965   (eval "$ac_compile") 2>conftest.er1
14966   ac_status=$?
14967   grep -v '^ *+' conftest.er1 >conftest.err
14968   rm -f conftest.er1
14969   cat conftest.err >&5
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } && {
14972          test -z "$ac_c_werror_flag" ||
14973          test ! -s conftest.err
14974        } && test -s conftest.$ac_objext; then
14975   ac_cv_type_struct_option=yes
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980         ac_cv_type_struct_option=no
14981 fi
14982
14983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 fi
14985 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14986 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14987 if test $ac_cv_type_struct_option = yes; then
14988
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_STRUCT_OPTION 1
14991 _ACEOF
14992
14993
14994 fi
14995
14996
14997 if test "$with_zlib" = yes; then
14998   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14999   # did not).  While we could work around the lack of z_streamp, it
15000   # seems unwise to encourage people to use such old zlib versions...
15001   { echo "$as_me:$LINENO: checking for z_streamp" >&5
15002 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15003 if test "${ac_cv_type_z_streamp+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 #include <zlib.h>
15013
15014 typedef z_streamp ac__type_new_;
15015 int
15016 main ()
15017 {
15018 if ((ac__type_new_ *) 0)
15019   return 0;
15020 if (sizeof (ac__type_new_))
15021   return 0;
15022   ;
15023   return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_compile") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_c_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest.$ac_objext; then
15043   ac_cv_type_z_streamp=yes
15044 else
15045   echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048         ac_cv_type_z_streamp=no
15049 fi
15050
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15054 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15055 if test $ac_cv_type_z_streamp = yes; then
15056   :
15057 else
15058   { { echo "$as_me:$LINENO: error: zlib version is too old
15059 Use --without-zlib to disable zlib support." >&5
15060 echo "$as_me: error: zlib version is too old
15061 Use --without-zlib to disable zlib support." >&2;}
15062    { (exit 1); exit 1; }; }
15063 fi
15064
15065 fi
15066
15067 if test "$with_krb5" = yes; then
15068 # Check for differences between MIT and Heimdal (KTH) releases
15069   { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15070 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15071 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #include <krb5.h>
15081
15082 int
15083 main ()
15084 {
15085 static krb5_ticket ac_aggr;
15086 if (ac_aggr.enc_part2)
15087 return 0;
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (ac_try="$ac_compile"
15094 case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_compile") 2>conftest.er1
15100   ac_status=$?
15101   grep -v '^ *+' conftest.er1 >conftest.err
15102   rm -f conftest.er1
15103   cat conftest.err >&5
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } && {
15106          test -z "$ac_c_werror_flag" ||
15107          test ! -s conftest.err
15108        } && test -s conftest.$ac_objext; then
15109   ac_cv_member_krb5_ticket_enc_part2=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114         cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 #include <krb5.h>
15121
15122 int
15123 main ()
15124 {
15125 static krb5_ticket ac_aggr;
15126 if (sizeof ac_aggr.enc_part2)
15127 return 0;
15128   ;
15129   return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   ac_cv_member_krb5_ticket_enc_part2=yes
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154         ac_cv_member_krb5_ticket_enc_part2=no
15155 fi
15156
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 fi
15159
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 fi
15162 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15163 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15164 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15165
15166 cat >>confdefs.h <<_ACEOF
15167 #define HAVE_KRB5_TICKET_ENC_PART2 1
15168 _ACEOF
15169
15170
15171 else
15172   { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15173 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15174 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177   cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 #include <krb5.h>
15184
15185 int
15186 main ()
15187 {
15188 static krb5_ticket ac_aggr;
15189 if (ac_aggr.client)
15190 return 0;
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199   *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202   (eval "$ac_compile") 2>conftest.er1
15203   ac_status=$?
15204   grep -v '^ *+' conftest.er1 >conftest.err
15205   rm -f conftest.er1
15206   cat conftest.err >&5
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } && {
15209          test -z "$ac_c_werror_flag" ||
15210          test ! -s conftest.err
15211        } && test -s conftest.$ac_objext; then
15212   ac_cv_member_krb5_ticket_client=yes
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217         cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h.  */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h.  */
15223 #include <krb5.h>
15224
15225 int
15226 main ()
15227 {
15228 static krb5_ticket ac_aggr;
15229 if (sizeof ac_aggr.client)
15230 return 0;
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (ac_try="$ac_compile"
15237 case "(($ac_try" in
15238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239   *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242   (eval "$ac_compile") 2>conftest.er1
15243   ac_status=$?
15244   grep -v '^ *+' conftest.er1 >conftest.err
15245   rm -f conftest.er1
15246   cat conftest.err >&5
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } && {
15249          test -z "$ac_c_werror_flag" ||
15250          test ! -s conftest.err
15251        } && test -s conftest.$ac_objext; then
15252   ac_cv_member_krb5_ticket_client=yes
15253 else
15254   echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15256
15257         ac_cv_member_krb5_ticket_client=no
15258 fi
15259
15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 fi
15262
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 fi
15265 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15266 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15267 if test $ac_cv_member_krb5_ticket_client = yes; then
15268
15269 cat >>confdefs.h <<_ACEOF
15270 #define HAVE_KRB5_TICKET_CLIENT 1
15271 _ACEOF
15272
15273
15274 else
15275   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15276 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15277    { (exit 1); exit 1; }; }
15278 fi
15279
15280 fi
15281
15282   { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15283 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15284 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293 #include <krb5.h>
15294
15295 int
15296 main ()
15297 {
15298 static krb5_error ac_aggr;
15299 if (ac_aggr.text.data)
15300 return 0;
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } && {
15319          test -z "$ac_c_werror_flag" ||
15320          test ! -s conftest.err
15321        } && test -s conftest.$ac_objext; then
15322   ac_cv_member_krb5_error_text_data=yes
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327         cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h.  */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h.  */
15333 #include <krb5.h>
15334
15335 int
15336 main ()
15337 {
15338 static krb5_error ac_aggr;
15339 if (sizeof ac_aggr.text.data)
15340 return 0;
15341   ;
15342   return 0;
15343 }
15344 _ACEOF
15345 rm -f conftest.$ac_objext
15346 if { (ac_try="$ac_compile"
15347 case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_compile") 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } && {
15359          test -z "$ac_c_werror_flag" ||
15360          test ! -s conftest.err
15361        } && test -s conftest.$ac_objext; then
15362   ac_cv_member_krb5_error_text_data=yes
15363 else
15364   echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367         ac_cv_member_krb5_error_text_data=no
15368 fi
15369
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 fi
15375 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15376 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15377 if test $ac_cv_member_krb5_error_text_data = yes; then
15378
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15381 _ACEOF
15382
15383
15384 else
15385   { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15386 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15387 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390   cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 #include <krb5.h>
15397
15398 int
15399 main ()
15400 {
15401 static krb5_error ac_aggr;
15402 if (ac_aggr.e_data)
15403 return 0;
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_compile") 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } && {
15422          test -z "$ac_c_werror_flag" ||
15423          test ! -s conftest.err
15424        } && test -s conftest.$ac_objext; then
15425   ac_cv_member_krb5_error_e_data=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430         cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 #include <krb5.h>
15437
15438 int
15439 main ()
15440 {
15441 static krb5_error ac_aggr;
15442 if (sizeof ac_aggr.e_data)
15443 return 0;
15444   ;
15445   return 0;
15446 }
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (ac_try="$ac_compile"
15450 case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_compile") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } && {
15462          test -z "$ac_c_werror_flag" ||
15463          test ! -s conftest.err
15464        } && test -s conftest.$ac_objext; then
15465   ac_cv_member_krb5_error_e_data=yes
15466 else
15467   echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470         ac_cv_member_krb5_error_e_data=no
15471 fi
15472
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 fi
15475
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 fi
15478 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15479 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15480 if test $ac_cv_member_krb5_error_e_data = yes; then
15481
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_KRB5_ERROR_E_DATA 1
15484 _ACEOF
15485
15486
15487 else
15488   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15489 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15490    { (exit 1); exit 1; }; }
15491 fi
15492
15493 fi
15494
15495
15496 # Win32 requires headers to be loaded for __stdcall, so can't use
15497 # AC_CHECK_FUNCS here.
15498   { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15499 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15500   cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 #include <krb5.h>
15507 int
15508 main ()
15509 {
15510 krb5_free_unparsed_name(NULL,NULL);
15511   ;
15512   return 0;
15513 }
15514 _ACEOF
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_link") 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } && {
15529          test -z "$ac_c_werror_flag" ||
15530          test ! -s conftest.err
15531        } && test -s conftest$ac_exeext &&
15532        $as_test_x conftest$ac_exeext; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15536 _ACEOF
15537
15538 { echo "$as_me:$LINENO: result: yes" >&5
15539 echo "${ECHO_T}yes" >&6; }
15540 else
15541   echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544         { echo "$as_me:$LINENO: result: no" >&5
15545 echo "${ECHO_T}no" >&6; }
15546 fi
15547
15548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549       conftest$ac_exeext conftest.$ac_ext
15550 fi
15551
15552
15553 ##
15554 ## Functions, global variables
15555 ##
15556
15557 { echo "$as_me:$LINENO: checking for int timezone" >&5
15558 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15559 if test "${pgac_cv_var_int_timezone+set}" = set; then
15560   echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562   cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15568 #include <time.h>
15569 int res;
15570 int
15571 main ()
15572 {
15573 #ifndef __CYGWIN__
15574 res = timezone / 60;
15575 #else
15576 res = _timezone / 60;
15577 #endif
15578   ;
15579   return 0;
15580 }
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_link") 2>conftest.er1
15590   ac_status=$?
15591   grep -v '^ *+' conftest.er1 >conftest.err
15592   rm -f conftest.er1
15593   cat conftest.err >&5
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } && {
15596          test -z "$ac_c_werror_flag" ||
15597          test ! -s conftest.err
15598        } && test -s conftest$ac_exeext &&
15599        $as_test_x conftest$ac_exeext; then
15600   pgac_cv_var_int_timezone=yes
15601 else
15602   echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15604
15605         pgac_cv_var_int_timezone=no
15606 fi
15607
15608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609       conftest$ac_exeext conftest.$ac_ext
15610 fi
15611 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15612 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15613 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15614
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_INT_TIMEZONE
15617 _ACEOF
15618
15619 fi
15620 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15621 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15622  if test "${ac_cv_func_accept_return+set}" = set; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625    if test "${ac_cv_func_accept_arg1+set}" = set; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628     if test "${ac_cv_func_accept_arg2+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631      if test "${ac_cv_func_accept_arg3+set}" = set; then
15632   echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15635       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15636        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15637         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15638          cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #ifdef HAVE_SYS_TYPES_H
15645 #include <sys/types.h>
15646 #endif
15647 #ifdef HAVE_SYS_SOCKET_H
15648 #include <sys/socket.h>
15649 #endif
15650 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15651 int
15652 main ()
15653 {
15654
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (ac_try="$ac_compile"
15661 case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_compile") 2>conftest.er1
15667   ac_status=$?
15668   grep -v '^ *+' conftest.er1 >conftest.err
15669   rm -f conftest.er1
15670   cat conftest.err >&5
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); } && {
15673          test -z "$ac_c_werror_flag" ||
15674          test ! -s conftest.err
15675        } && test -s conftest.$ac_objext; then
15676   ac_not_found=no; break 4
15677 else
15678   echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681         ac_not_found=yes
15682 fi
15683
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685        done
15686       done
15687      done
15688     done
15689     if test "$ac_not_found" = yes; then
15690       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15691 echo "$as_me: error: could not determine argument types" >&2;}
15692    { (exit 1); exit 1; }; }
15693     fi
15694     if test "$ac_cv_func_accept_arg3" = "void"; then
15695       ac_cv_func_accept_arg3=int
15696     fi
15697
15698 fi
15699
15700 fi
15701
15702 fi
15703
15704 fi
15705  { 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
15706 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15707
15708 cat >>confdefs.h <<_ACEOF
15709 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15710 _ACEOF
15711
15712
15713 cat >>confdefs.h <<_ACEOF
15714 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15715 _ACEOF
15716
15717
15718 cat >>confdefs.h <<_ACEOF
15719 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15720 _ACEOF
15721
15722
15723 cat >>confdefs.h <<_ACEOF
15724 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15725 _ACEOF
15726
15727
15728 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15729 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15730 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739 #include <sys/time.h>
15740 int
15741 main ()
15742 {
15743 struct timeval *tp;
15744 struct timezone *tzp;
15745 gettimeofday(tp,tzp);
15746   ;
15747   return 0;
15748 }
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754   *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757   (eval "$ac_compile") 2>conftest.er1
15758   ac_status=$?
15759   grep -v '^ *+' conftest.er1 >conftest.err
15760   rm -f conftest.er1
15761   cat conftest.err >&5
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } && {
15764          test -z "$ac_c_werror_flag" ||
15765          test ! -s conftest.err
15766        } && test -s conftest.$ac_objext; then
15767   pgac_cv_func_gettimeofday_1arg=no
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772         pgac_cv_func_gettimeofday_1arg=yes
15773 fi
15774
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 fi
15777 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15778 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15779 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15780
15781 cat >>confdefs.h <<\_ACEOF
15782 #define GETTIMEOFDAY_1ARG
15783 _ACEOF
15784
15785 fi
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15811 do
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h.  */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h.  */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15826 #define $ac_func innocuous_$ac_func
15827
15828 /* System header to define __stub macros and hopefully few prototypes,
15829     which can conflict with char $ac_func (); below.
15830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831     <limits.h> exists even on freestanding compilers.  */
15832
15833 #ifdef __STDC__
15834 # include <limits.h>
15835 #else
15836 # include <assert.h>
15837 #endif
15838
15839 #undef $ac_func
15840
15841 /* Override any GCC internal prototype to avoid an error.
15842    Use char because int might match the return type of a GCC
15843    builtin and then its argument prototype would still apply.  */
15844 #ifdef __cplusplus
15845 extern "C"
15846 #endif
15847 char $ac_func ();
15848 /* The GNU C library defines this for functions which it implements
15849     to always fail with ENOSYS.  Some functions are actually named
15850     something starting with __ and the normal name is an alias.  */
15851 #if defined __stub_$ac_func || defined __stub___$ac_func
15852 choke me
15853 #endif
15854
15855 int
15856 main ()
15857 {
15858 return $ac_func ();
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_link") 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } && {
15877          test -z "$ac_c_werror_flag" ||
15878          test ! -s conftest.err
15879        } && test -s conftest$ac_exeext &&
15880        $as_test_x conftest$ac_exeext; then
15881   eval "$as_ac_var=yes"
15882 else
15883   echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15885
15886         eval "$as_ac_var=no"
15887 fi
15888
15889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15890       conftest$ac_exeext conftest.$ac_ext
15891 fi
15892 ac_res=`eval echo '${'$as_ac_var'}'`
15893                { echo "$as_me:$LINENO: result: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15895 if test `eval echo '${'$as_ac_var'}'` = yes; then
15896   cat >>confdefs.h <<_ACEOF
15897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15898 _ACEOF
15899
15900 fi
15901 done
15902
15903
15904 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15905 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15906 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15907   echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909   cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915 #include <unistd.h>
15916
15917 int
15918 main ()
15919 {
15920 #ifndef fdatasync
15921   (void) fdatasync;
15922 #endif
15923
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (ac_try="$ac_compile"
15930 case "(($ac_try" in
15931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932   *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935   (eval "$ac_compile") 2>conftest.er1
15936   ac_status=$?
15937   grep -v '^ *+' conftest.er1 >conftest.err
15938   rm -f conftest.er1
15939   cat conftest.err >&5
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); } && {
15942          test -z "$ac_c_werror_flag" ||
15943          test ! -s conftest.err
15944        } && test -s conftest.$ac_objext; then
15945   ac_cv_have_decl_fdatasync=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950         ac_cv_have_decl_fdatasync=no
15951 fi
15952
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 fi
15955 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15956 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15957 if test $ac_cv_have_decl_fdatasync = yes; then
15958
15959 cat >>confdefs.h <<_ACEOF
15960 #define HAVE_DECL_FDATASYNC 1
15961 _ACEOF
15962
15963
15964 else
15965   cat >>confdefs.h <<_ACEOF
15966 #define HAVE_DECL_FDATASYNC 0
15967 _ACEOF
15968
15969
15970 fi
15971
15972
15973 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15974 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15975 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984 #include <fcntl.h>
15985
15986 int
15987 main ()
15988 {
15989 #ifndef posix_fadvise
15990   (void) posix_fadvise;
15991 #endif
15992
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_compile") 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } && {
16011          test -z "$ac_c_werror_flag" ||
16012          test ! -s conftest.err
16013        } && test -s conftest.$ac_objext; then
16014   ac_cv_have_decl_posix_fadvise=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_cv_have_decl_posix_fadvise=no
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 fi
16024 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16025 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16026 if test $ac_cv_have_decl_posix_fadvise = yes; then
16027
16028 cat >>confdefs.h <<_ACEOF
16029 #define HAVE_DECL_POSIX_FADVISE 1
16030 _ACEOF
16031
16032
16033 else
16034   cat >>confdefs.h <<_ACEOF
16035 #define HAVE_DECL_POSIX_FADVISE 0
16036 _ACEOF
16037
16038
16039 fi
16040
16041
16042 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16043 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16044 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16045   echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047   cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053 $ac_includes_default
16054 int
16055 main ()
16056 {
16057 #ifndef strlcat
16058   (void) strlcat;
16059 #endif
16060
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext
16066 if { (ac_try="$ac_compile"
16067 case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_compile") 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } && {
16079          test -z "$ac_c_werror_flag" ||
16080          test ! -s conftest.err
16081        } && test -s conftest.$ac_objext; then
16082   ac_cv_have_decl_strlcat=yes
16083 else
16084   echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087         ac_cv_have_decl_strlcat=no
16088 fi
16089
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 fi
16092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16093 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16094 if test $ac_cv_have_decl_strlcat = yes; then
16095
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_STRLCAT 1
16098 _ACEOF
16099
16100
16101 else
16102   cat >>confdefs.h <<_ACEOF
16103 #define HAVE_DECL_STRLCAT 0
16104 _ACEOF
16105
16106
16107 fi
16108 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16109 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16110 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16111   echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113   cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119 $ac_includes_default
16120 int
16121 main ()
16122 {
16123 #ifndef strlcpy
16124   (void) strlcpy;
16125 #endif
16126
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext
16132 if { (ac_try="$ac_compile"
16133 case "(($ac_try" in
16134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135   *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138   (eval "$ac_compile") 2>conftest.er1
16139   ac_status=$?
16140   grep -v '^ *+' conftest.er1 >conftest.err
16141   rm -f conftest.er1
16142   cat conftest.err >&5
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); } && {
16145          test -z "$ac_c_werror_flag" ||
16146          test ! -s conftest.err
16147        } && test -s conftest.$ac_objext; then
16148   ac_cv_have_decl_strlcpy=yes
16149 else
16150   echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16152
16153         ac_cv_have_decl_strlcpy=no
16154 fi
16155
16156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 fi
16158 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16159 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16160 if test $ac_cv_have_decl_strlcpy = yes; then
16161
16162 cat >>confdefs.h <<_ACEOF
16163 #define HAVE_DECL_STRLCPY 1
16164 _ACEOF
16165
16166
16167 else
16168   cat >>confdefs.h <<_ACEOF
16169 #define HAVE_DECL_STRLCPY 0
16170 _ACEOF
16171
16172
16173 fi
16174
16175
16176 # This is probably only present on Darwin, but may as well check always
16177 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16178 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16179 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182   cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h.  */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h.  */
16188 #include <fcntl.h>
16189
16190 int
16191 main ()
16192 {
16193 #ifndef F_FULLFSYNC
16194   (void) F_FULLFSYNC;
16195 #endif
16196
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205   *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208   (eval "$ac_compile") 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } && {
16215          test -z "$ac_c_werror_flag" ||
16216          test ! -s conftest.err
16217        } && test -s conftest.$ac_objext; then
16218   ac_cv_have_decl_F_FULLFSYNC=yes
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223         ac_cv_have_decl_F_FULLFSYNC=no
16224 fi
16225
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 fi
16228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16229 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16230 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16231
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_DECL_F_FULLFSYNC 1
16234 _ACEOF
16235
16236
16237 else
16238   cat >>confdefs.h <<_ACEOF
16239 #define HAVE_DECL_F_FULLFSYNC 0
16240 _ACEOF
16241
16242
16243 fi
16244
16245
16246
16247 HAVE_IPV6=no
16248 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16249 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16250 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253   cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259 $ac_includes_default
16260 #include <netinet/in.h>
16261
16262 typedef struct sockaddr_in6 ac__type_new_;
16263 int
16264 main ()
16265 {
16266 if ((ac__type_new_ *) 0)
16267   return 0;
16268 if (sizeof (ac__type_new_))
16269   return 0;
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (ac_try="$ac_compile"
16276 case "(($ac_try" in
16277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278   *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281   (eval "$ac_compile") 2>conftest.er1
16282   ac_status=$?
16283   grep -v '^ *+' conftest.er1 >conftest.err
16284   rm -f conftest.er1
16285   cat conftest.err >&5
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } && {
16288          test -z "$ac_c_werror_flag" ||
16289          test ! -s conftest.err
16290        } && test -s conftest.$ac_objext; then
16291   ac_cv_type_struct_sockaddr_in6=yes
16292 else
16293   echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296         ac_cv_type_struct_sockaddr_in6=no
16297 fi
16298
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16302 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16303 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16304
16305 cat >>confdefs.h <<\_ACEOF
16306 #define HAVE_IPV6 1
16307 _ACEOF
16308
16309          HAVE_IPV6=yes
16310 fi
16311
16312
16313
16314 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16315 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16316 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 #include <machine/vmparam.h>
16326 #include <sys/exec.h>
16327
16328 int
16329 main ()
16330 {
16331 PS_STRINGS->ps_nargvstr = 1;
16332 PS_STRINGS->ps_argvstr = "foo";
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_link") 2>conftest.er1
16345   ac_status=$?
16346   grep -v '^ *+' conftest.er1 >conftest.err
16347   rm -f conftest.er1
16348   cat conftest.err >&5
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); } && {
16351          test -z "$ac_c_werror_flag" ||
16352          test ! -s conftest.err
16353        } && test -s conftest$ac_exeext &&
16354        $as_test_x conftest$ac_exeext; then
16355   pgac_cv_var_PS_STRINGS=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360         pgac_cv_var_PS_STRINGS=no
16361 fi
16362
16363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16364       conftest$ac_exeext conftest.$ac_ext
16365 fi
16366 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16367 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16368 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16369
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_PS_STRINGS
16372 _ACEOF
16373
16374 fi
16375
16376
16377 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16378 # is missing.  Yes, there are machines that have only one.  We may
16379 # also decide to use snprintf.c if snprintf() is present but does not
16380 # have all the features we need --- see below.
16381
16382 if test "$PORTNAME" = "win32"; then
16383   # Win32 gets snprintf.c built unconditionally.
16384   #
16385   # To properly translate all NLS languages strings, we must support the
16386   # *printf() %$ format, which allows *printf() arguments to be selected
16387   # by position in the translated string.
16388   #
16389   # libintl versions < 0.13 use the native *printf() functions, and Win32
16390   # *printf() doesn't understand %$, so we must use our /port versions,
16391   # which do understand %$. libintl versions >= 0.13 include their own
16392   # *printf versions on Win32.  The libintl 0.13 release note text is:
16393   #
16394   #   C format strings with positions, as they arise when a translator
16395   #   needs to reorder a sentence, are now supported on all platforms.
16396   #   On those few platforms (NetBSD and Woe32) for which the native
16397   #   printf()/fprintf()/... functions don't support such format
16398   #   strings, replacements are provided through <libintl.h>.
16399   #
16400   # We could use libintl >= 0.13's *printf() if we were sure that we had
16401   # a litint >= 0.13 at runtime, but seeing that there is no clean way
16402   # to guarantee that, it is best to just use our own, so we are sure to
16403   # get %$ support. In include/port.h we disable the *printf() macros
16404   # that might have been defined by libintl.
16405   #
16406   # We do this unconditionally whether NLS is used or not so we are sure
16407   # that all Win32 libraries and binaries behave the same.
16408   pgac_need_repl_snprintf=yes
16409 else
16410   pgac_need_repl_snprintf=no
16411
16412 for ac_func in snprintf
16413 do
16414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420   cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16428 #define $ac_func innocuous_$ac_func
16429
16430 /* System header to define __stub macros and hopefully few prototypes,
16431     which can conflict with char $ac_func (); below.
16432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16433     <limits.h> exists even on freestanding compilers.  */
16434
16435 #ifdef __STDC__
16436 # include <limits.h>
16437 #else
16438 # include <assert.h>
16439 #endif
16440
16441 #undef $ac_func
16442
16443 /* Override any GCC internal prototype to avoid an error.
16444    Use char because int might match the return type of a GCC
16445    builtin and then its argument prototype would still apply.  */
16446 #ifdef __cplusplus
16447 extern "C"
16448 #endif
16449 char $ac_func ();
16450 /* The GNU C library defines this for functions which it implements
16451     to always fail with ENOSYS.  Some functions are actually named
16452     something starting with __ and the normal name is an alias.  */
16453 #if defined __stub_$ac_func || defined __stub___$ac_func
16454 choke me
16455 #endif
16456
16457 int
16458 main ()
16459 {
16460 return $ac_func ();
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469   *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472   (eval "$ac_link") 2>conftest.er1
16473   ac_status=$?
16474   grep -v '^ *+' conftest.er1 >conftest.err
16475   rm -f conftest.er1
16476   cat conftest.err >&5
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } && {
16479          test -z "$ac_c_werror_flag" ||
16480          test ! -s conftest.err
16481        } && test -s conftest$ac_exeext &&
16482        $as_test_x conftest$ac_exeext; then
16483   eval "$as_ac_var=yes"
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16487
16488         eval "$as_ac_var=no"
16489 fi
16490
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492       conftest$ac_exeext conftest.$ac_ext
16493 fi
16494 ac_res=`eval echo '${'$as_ac_var'}'`
16495                { echo "$as_me:$LINENO: result: $ac_res" >&5
16496 echo "${ECHO_T}$ac_res" >&6; }
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498   cat >>confdefs.h <<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500 _ACEOF
16501
16502 else
16503   pgac_need_repl_snprintf=yes
16504 fi
16505 done
16506
16507
16508 for ac_func in vsnprintf
16509 do
16510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16514   echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516   cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16524 #define $ac_func innocuous_$ac_func
16525
16526 /* System header to define __stub macros and hopefully few prototypes,
16527     which can conflict with char $ac_func (); below.
16528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16529     <limits.h> exists even on freestanding compilers.  */
16530
16531 #ifdef __STDC__
16532 # include <limits.h>
16533 #else
16534 # include <assert.h>
16535 #endif
16536
16537 #undef $ac_func
16538
16539 /* Override any GCC internal prototype to avoid an error.
16540    Use char because int might match the return type of a GCC
16541    builtin and then its argument prototype would still apply.  */
16542 #ifdef __cplusplus
16543 extern "C"
16544 #endif
16545 char $ac_func ();
16546 /* The GNU C library defines this for functions which it implements
16547     to always fail with ENOSYS.  Some functions are actually named
16548     something starting with __ and the normal name is an alias.  */
16549 #if defined __stub_$ac_func || defined __stub___$ac_func
16550 choke me
16551 #endif
16552
16553 int
16554 main ()
16555 {
16556 return $ac_func ();
16557   ;
16558   return 0;
16559 }
16560 _ACEOF
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_link") 2>conftest.er1
16569   ac_status=$?
16570   grep -v '^ *+' conftest.er1 >conftest.err
16571   rm -f conftest.er1
16572   cat conftest.err >&5
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); } && {
16575          test -z "$ac_c_werror_flag" ||
16576          test ! -s conftest.err
16577        } && test -s conftest$ac_exeext &&
16578        $as_test_x conftest$ac_exeext; then
16579   eval "$as_ac_var=yes"
16580 else
16581   echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16583
16584         eval "$as_ac_var=no"
16585 fi
16586
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588       conftest$ac_exeext conftest.$ac_ext
16589 fi
16590 ac_res=`eval echo '${'$as_ac_var'}'`
16591                { echo "$as_me:$LINENO: result: $ac_res" >&5
16592 echo "${ECHO_T}$ac_res" >&6; }
16593 if test `eval echo '${'$as_ac_var'}'` = yes; then
16594   cat >>confdefs.h <<_ACEOF
16595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596 _ACEOF
16597
16598 else
16599   pgac_need_repl_snprintf=yes
16600 fi
16601 done
16602
16603 fi
16604
16605
16606 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16607 # include/c.h will provide declarations.  Note this is a separate test
16608 # from whether the functions exist in the C library --- there are
16609 # systems that have the functions but don't bother to declare them :-(
16610
16611 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16612 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16613 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 $ac_includes_default
16623 int
16624 main ()
16625 {
16626 #ifndef snprintf
16627   (void) snprintf;
16628 #endif
16629
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_compile") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } && {
16648          test -z "$ac_c_werror_flag" ||
16649          test ! -s conftest.err
16650        } && test -s conftest.$ac_objext; then
16651   ac_cv_have_decl_snprintf=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656         ac_cv_have_decl_snprintf=no
16657 fi
16658
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 fi
16661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16662 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16663 if test $ac_cv_have_decl_snprintf = yes; then
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_DECL_SNPRINTF 1
16667 _ACEOF
16668
16669
16670 else
16671   cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_SNPRINTF 0
16673 _ACEOF
16674
16675
16676 fi
16677 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16678 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16679 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h.  */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h.  */
16688 $ac_includes_default
16689 int
16690 main ()
16691 {
16692 #ifndef vsnprintf
16693   (void) vsnprintf;
16694 #endif
16695
16696   ;
16697   return 0;
16698 }
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (ac_try="$ac_compile"
16702 case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_compile") 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } && {
16714          test -z "$ac_c_werror_flag" ||
16715          test ! -s conftest.err
16716        } && test -s conftest.$ac_objext; then
16717   ac_cv_have_decl_vsnprintf=yes
16718 else
16719   echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16721
16722         ac_cv_have_decl_vsnprintf=no
16723 fi
16724
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 fi
16727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16728 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16729 if test $ac_cv_have_decl_vsnprintf = yes; then
16730
16731 cat >>confdefs.h <<_ACEOF
16732 #define HAVE_DECL_VSNPRINTF 1
16733 _ACEOF
16734
16735
16736 else
16737   cat >>confdefs.h <<_ACEOF
16738 #define HAVE_DECL_VSNPRINTF 0
16739 _ACEOF
16740
16741
16742 fi
16743
16744
16745
16746
16747 { echo "$as_me:$LINENO: checking for isinf" >&5
16748 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16749 if test "${ac_cv_func_isinf+set}" = set; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758
16759 #include <math.h>
16760 double glob_double;
16761
16762 int
16763 main ()
16764 {
16765 return isinf(glob_double) ? 0 : 1;
16766   ;
16767   return 0;
16768 }
16769 _ACEOF
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (ac_try="$ac_link"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_link") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } && {
16784          test -z "$ac_c_werror_flag" ||
16785          test ! -s conftest.err
16786        } && test -s conftest$ac_exeext &&
16787        $as_test_x conftest$ac_exeext; then
16788   ac_cv_func_isinf=yes
16789 else
16790   echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793         ac_cv_func_isinf=no
16794 fi
16795
16796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16797       conftest$ac_exeext conftest.$ac_ext
16798 fi
16799 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16800 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16801
16802 if test $ac_cv_func_isinf = yes ; then
16803
16804 cat >>confdefs.h <<\_ACEOF
16805 #define HAVE_ISINF 1
16806 _ACEOF
16807
16808 else
16809   case " $LIBOBJS " in
16810   *" isinf.$ac_objext "* ) ;;
16811   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16812  ;;
16813 esac
16814
16815   # Look for a way to implement a substitute for isinf()
16816
16817
16818
16819
16820 for ac_func in fpclass fp_class fp_class_d class
16821 do
16822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h.  */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h.  */
16834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16836 #define $ac_func innocuous_$ac_func
16837
16838 /* System header to define __stub macros and hopefully few prototypes,
16839     which can conflict with char $ac_func (); below.
16840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16841     <limits.h> exists even on freestanding compilers.  */
16842
16843 #ifdef __STDC__
16844 # include <limits.h>
16845 #else
16846 # include <assert.h>
16847 #endif
16848
16849 #undef $ac_func
16850
16851 /* Override any GCC internal prototype to avoid an error.
16852    Use char because int might match the return type of a GCC
16853    builtin and then its argument prototype would still apply.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 char $ac_func ();
16858 /* The GNU C library defines this for functions which it implements
16859     to always fail with ENOSYS.  Some functions are actually named
16860     something starting with __ and the normal name is an alias.  */
16861 #if defined __stub_$ac_func || defined __stub___$ac_func
16862 choke me
16863 #endif
16864
16865 int
16866 main ()
16867 {
16868 return $ac_func ();
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_link") 2>conftest.er1
16881   ac_status=$?
16882   grep -v '^ *+' conftest.er1 >conftest.err
16883   rm -f conftest.er1
16884   cat conftest.err >&5
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } && {
16887          test -z "$ac_c_werror_flag" ||
16888          test ! -s conftest.err
16889        } && test -s conftest$ac_exeext &&
16890        $as_test_x conftest$ac_exeext; then
16891   eval "$as_ac_var=yes"
16892 else
16893   echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896         eval "$as_ac_var=no"
16897 fi
16898
16899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16900       conftest$ac_exeext conftest.$ac_ext
16901 fi
16902 ac_res=`eval echo '${'$as_ac_var'}'`
16903                { echo "$as_me:$LINENO: result: $ac_res" >&5
16904 echo "${ECHO_T}$ac_res" >&6; }
16905 if test `eval echo '${'$as_ac_var'}'` = yes; then
16906   cat >>confdefs.h <<_ACEOF
16907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16908 _ACEOF
16909  break
16910 fi
16911 done
16912
16913 fi
16914
16915 # Some versions of libedit contain strlcpy(); so disregard that library while
16916 # checking for these standard libc functions.
16917 pgac_save_LIBS="$LIBS"
16918 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16935 do
16936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16940   echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942   cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16950 #define $ac_func innocuous_$ac_func
16951
16952 /* System header to define __stub macros and hopefully few prototypes,
16953     which can conflict with char $ac_func (); below.
16954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955     <limits.h> exists even on freestanding compilers.  */
16956
16957 #ifdef __STDC__
16958 # include <limits.h>
16959 #else
16960 # include <assert.h>
16961 #endif
16962
16963 #undef $ac_func
16964
16965 /* Override any GCC internal prototype to avoid an error.
16966    Use char because int might match the return type of a GCC
16967    builtin and then its argument prototype would still apply.  */
16968 #ifdef __cplusplus
16969 extern "C"
16970 #endif
16971 char $ac_func ();
16972 /* The GNU C library defines this for functions which it implements
16973     to always fail with ENOSYS.  Some functions are actually named
16974     something starting with __ and the normal name is an alias.  */
16975 #if defined __stub_$ac_func || defined __stub___$ac_func
16976 choke me
16977 #endif
16978
16979 int
16980 main ()
16981 {
16982 return $ac_func ();
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_link") 2>conftest.er1
16995   ac_status=$?
16996   grep -v '^ *+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } && {
17001          test -z "$ac_c_werror_flag" ||
17002          test ! -s conftest.err
17003        } && test -s conftest$ac_exeext &&
17004        $as_test_x conftest$ac_exeext; then
17005   eval "$as_ac_var=yes"
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010         eval "$as_ac_var=no"
17011 fi
17012
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014       conftest$ac_exeext conftest.$ac_ext
17015 fi
17016 ac_res=`eval echo '${'$as_ac_var'}'`
17017                { echo "$as_me:$LINENO: result: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17019 if test `eval echo '${'$as_ac_var'}'` = yes; then
17020   cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17022 _ACEOF
17023
17024 else
17025   case " $LIBOBJS " in
17026   *" $ac_func.$ac_objext "* ) ;;
17027   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17028  ;;
17029 esac
17030
17031 fi
17032 done
17033
17034
17035
17036 LIBS="$pgac_save_LIBS"
17037
17038 # System's version of getaddrinfo(), if any, may be used only if we found
17039 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17040 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17041 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
17042 # because we want to use our own getaddrinfo.c on Windows anyway.)
17043 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17044
17045 for ac_func in getaddrinfo
17046 do
17047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h.  */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h.  */
17059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17061 #define $ac_func innocuous_$ac_func
17062
17063 /* System header to define __stub macros and hopefully few prototypes,
17064     which can conflict with char $ac_func (); below.
17065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066     <limits.h> exists even on freestanding compilers.  */
17067
17068 #ifdef __STDC__
17069 # include <limits.h>
17070 #else
17071 # include <assert.h>
17072 #endif
17073
17074 #undef $ac_func
17075
17076 /* Override any GCC internal prototype to avoid an error.
17077    Use char because int might match the return type of a GCC
17078    builtin and then its argument prototype would still apply.  */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char $ac_func ();
17083 /* The GNU C library defines this for functions which it implements
17084     to always fail with ENOSYS.  Some functions are actually named
17085     something starting with __ and the normal name is an alias.  */
17086 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 choke me
17088 #endif
17089
17090 int
17091 main ()
17092 {
17093 return $ac_func ();
17094   ;
17095   return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102   *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105   (eval "$ac_link") 2>conftest.er1
17106   ac_status=$?
17107   grep -v '^ *+' conftest.er1 >conftest.err
17108   rm -f conftest.er1
17109   cat conftest.err >&5
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } && {
17112          test -z "$ac_c_werror_flag" ||
17113          test ! -s conftest.err
17114        } && test -s conftest$ac_exeext &&
17115        $as_test_x conftest$ac_exeext; then
17116   eval "$as_ac_var=yes"
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121         eval "$as_ac_var=no"
17122 fi
17123
17124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17125       conftest$ac_exeext conftest.$ac_ext
17126 fi
17127 ac_res=`eval echo '${'$as_ac_var'}'`
17128                { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131   cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133 _ACEOF
17134
17135 else
17136   case " $LIBOBJS " in
17137   *" $ac_func.$ac_objext "* ) ;;
17138   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17139  ;;
17140 esac
17141
17142 fi
17143 done
17144
17145
17146 else
17147   case " $LIBOBJS " in
17148   *" getaddrinfo.$ac_objext "* ) ;;
17149   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17150  ;;
17151 esac
17152
17153 fi
17154
17155 # Similarly, use system's getopt_long() only if system provides struct option.
17156 # Solaris' getopt() doesn't do what we want for long options, so always use
17157 # our versions on that platform.
17158 if test "$PORTNAME" = "solaris"; then
17159   case " $LIBOBJS " in
17160   *" getopt.$ac_objext "* ) ;;
17161   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17162  ;;
17163 esac
17164
17165   case " $LIBOBJS " in
17166   *" getopt_long.$ac_objext "* ) ;;
17167   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17168  ;;
17169 esac
17170
17171 elif test x"$ac_cv_type_struct_option" = xyes ; then
17172
17173 for ac_func in getopt_long
17174 do
17175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181   cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h.  */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h.  */
17187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17189 #define $ac_func innocuous_$ac_func
17190
17191 /* System header to define __stub macros and hopefully few prototypes,
17192     which can conflict with char $ac_func (); below.
17193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17194     <limits.h> exists even on freestanding compilers.  */
17195
17196 #ifdef __STDC__
17197 # include <limits.h>
17198 #else
17199 # include <assert.h>
17200 #endif
17201
17202 #undef $ac_func
17203
17204 /* Override any GCC internal prototype to avoid an error.
17205    Use char because int might match the return type of a GCC
17206    builtin and then its argument prototype would still apply.  */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char $ac_func ();
17211 /* The GNU C library defines this for functions which it implements
17212     to always fail with ENOSYS.  Some functions are actually named
17213     something starting with __ and the normal name is an alias.  */
17214 #if defined __stub_$ac_func || defined __stub___$ac_func
17215 choke me
17216 #endif
17217
17218 int
17219 main ()
17220 {
17221 return $ac_func ();
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_link") 2>conftest.er1
17234   ac_status=$?
17235   grep -v '^ *+' conftest.er1 >conftest.err
17236   rm -f conftest.er1
17237   cat conftest.err >&5
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } && {
17240          test -z "$ac_c_werror_flag" ||
17241          test ! -s conftest.err
17242        } && test -s conftest$ac_exeext &&
17243        $as_test_x conftest$ac_exeext; then
17244   eval "$as_ac_var=yes"
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249         eval "$as_ac_var=no"
17250 fi
17251
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253       conftest$ac_exeext conftest.$ac_ext
17254 fi
17255 ac_res=`eval echo '${'$as_ac_var'}'`
17256                { echo "$as_me:$LINENO: result: $ac_res" >&5
17257 echo "${ECHO_T}$ac_res" >&6; }
17258 if test `eval echo '${'$as_ac_var'}'` = yes; then
17259   cat >>confdefs.h <<_ACEOF
17260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17261 _ACEOF
17262
17263 else
17264   case " $LIBOBJS " in
17265   *" $ac_func.$ac_objext "* ) ;;
17266   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17267  ;;
17268 esac
17269
17270 fi
17271 done
17272
17273
17274 else
17275   case " $LIBOBJS " in
17276   *" getopt_long.$ac_objext "* ) ;;
17277   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17278  ;;
17279 esac
17280
17281 fi
17282
17283 # Win32 support
17284 if test "$PORTNAME" = "win32"; then
17285
17286 for ac_func in gettimeofday
17287 do
17288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17302 #define $ac_func innocuous_$ac_func
17303
17304 /* System header to define __stub macros and hopefully few prototypes,
17305     which can conflict with char $ac_func (); below.
17306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307     <limits.h> exists even on freestanding compilers.  */
17308
17309 #ifdef __STDC__
17310 # include <limits.h>
17311 #else
17312 # include <assert.h>
17313 #endif
17314
17315 #undef $ac_func
17316
17317 /* Override any GCC internal prototype to avoid an error.
17318    Use char because int might match the return type of a GCC
17319    builtin and then its argument prototype would still apply.  */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 char $ac_func ();
17324 /* The GNU C library defines this for functions which it implements
17325     to always fail with ENOSYS.  Some functions are actually named
17326     something starting with __ and the normal name is an alias.  */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17328 choke me
17329 #endif
17330
17331 int
17332 main ()
17333 {
17334 return $ac_func ();
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_link") 2>conftest.er1
17347   ac_status=$?
17348   grep -v '^ *+' conftest.er1 >conftest.err
17349   rm -f conftest.er1
17350   cat conftest.err >&5
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } && {
17353          test -z "$ac_c_werror_flag" ||
17354          test ! -s conftest.err
17355        } && test -s conftest$ac_exeext &&
17356        $as_test_x conftest$ac_exeext; then
17357   eval "$as_ac_var=yes"
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362         eval "$as_ac_var=no"
17363 fi
17364
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366       conftest$ac_exeext conftest.$ac_ext
17367 fi
17368 ac_res=`eval echo '${'$as_ac_var'}'`
17369                { echo "$as_me:$LINENO: result: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17371 if test `eval echo '${'$as_ac_var'}'` = yes; then
17372   cat >>confdefs.h <<_ACEOF
17373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17374 _ACEOF
17375
17376 else
17377   case " $LIBOBJS " in
17378   *" $ac_func.$ac_objext "* ) ;;
17379   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17380  ;;
17381 esac
17382
17383 fi
17384 done
17385
17386
17387 case " $LIBOBJS " in
17388   *" kill.$ac_objext "* ) ;;
17389   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17390  ;;
17391 esac
17392
17393 case " $LIBOBJS " in
17394   *" open.$ac_objext "* ) ;;
17395   *) LIBOBJS="$LIBOBJS open.$ac_objext"
17396  ;;
17397 esac
17398
17399 case " $LIBOBJS " in
17400   *" rand.$ac_objext "* ) ;;
17401   *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17402  ;;
17403 esac
17404
17405 case " $LIBOBJS " in
17406   *" win32error.$ac_objext "* ) ;;
17407   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17408  ;;
17409 esac
17410
17411
17412 cat >>confdefs.h <<\_ACEOF
17413 #define HAVE_SYMLINK 1
17414 _ACEOF
17415
17416 fi
17417
17418 if test "$with_readline" = yes; then
17419   { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17420 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17421 cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h.  */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h.  */
17427 #include <stdio.h>
17428 #ifdef HAVE_READLINE_READLINE_H
17429 # include <readline/readline.h>
17430 #elif defined(HAVE_READLINE_H)
17431 # include <readline.h>
17432 #endif
17433
17434 int
17435 main ()
17436 {
17437 rl_completion_append_character = 'x';
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_link") 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } && {
17456          test -z "$ac_c_werror_flag" ||
17457          test ! -s conftest.err
17458        } && test -s conftest$ac_exeext &&
17459        $as_test_x conftest$ac_exeext; then
17460   { echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6; }
17462
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17465 _ACEOF
17466
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471         { echo "$as_me:$LINENO: result: no" >&5
17472 echo "${ECHO_T}no" >&6; }
17473 fi
17474
17475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17476       conftest$ac_exeext conftest.$ac_ext
17477
17478
17479 for ac_func in rl_completion_matches rl_filename_completion_function
17480 do
17481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17485   echo $ECHO_N "(cached) $ECHO_C" >&6
17486 else
17487   cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17495 #define $ac_func innocuous_$ac_func
17496
17497 /* System header to define __stub macros and hopefully few prototypes,
17498     which can conflict with char $ac_func (); below.
17499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500     <limits.h> exists even on freestanding compilers.  */
17501
17502 #ifdef __STDC__
17503 # include <limits.h>
17504 #else
17505 # include <assert.h>
17506 #endif
17507
17508 #undef $ac_func
17509
17510 /* Override any GCC internal prototype to avoid an error.
17511    Use char because int might match the return type of a GCC
17512    builtin and then its argument prototype would still apply.  */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 char $ac_func ();
17517 /* The GNU C library defines this for functions which it implements
17518     to always fail with ENOSYS.  Some functions are actually named
17519     something starting with __ and the normal name is an alias.  */
17520 #if defined __stub_$ac_func || defined __stub___$ac_func
17521 choke me
17522 #endif
17523
17524 int
17525 main ()
17526 {
17527 return $ac_func ();
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_link") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && {
17546          test -z "$ac_c_werror_flag" ||
17547          test ! -s conftest.err
17548        } && test -s conftest$ac_exeext &&
17549        $as_test_x conftest$ac_exeext; then
17550   eval "$as_ac_var=yes"
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555         eval "$as_ac_var=no"
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559       conftest$ac_exeext conftest.$ac_ext
17560 fi
17561 ac_res=`eval echo '${'$as_ac_var'}'`
17562                { echo "$as_me:$LINENO: result: $ac_res" >&5
17563 echo "${ECHO_T}$ac_res" >&6; }
17564 if test `eval echo '${'$as_ac_var'}'` = yes; then
17565   cat >>confdefs.h <<_ACEOF
17566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17567 _ACEOF
17568
17569 fi
17570 done
17571
17572
17573 for ac_func in replace_history_entry
17574 do
17575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17579   echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581   cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17589 #define $ac_func innocuous_$ac_func
17590
17591 /* System header to define __stub macros and hopefully few prototypes,
17592     which can conflict with char $ac_func (); below.
17593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594     <limits.h> exists even on freestanding compilers.  */
17595
17596 #ifdef __STDC__
17597 # include <limits.h>
17598 #else
17599 # include <assert.h>
17600 #endif
17601
17602 #undef $ac_func
17603
17604 /* Override any GCC internal prototype to avoid an error.
17605    Use char because int might match the return type of a GCC
17606    builtin and then its argument prototype would still apply.  */
17607 #ifdef __cplusplus
17608 extern "C"
17609 #endif
17610 char $ac_func ();
17611 /* The GNU C library defines this for functions which it implements
17612     to always fail with ENOSYS.  Some functions are actually named
17613     something starting with __ and the normal name is an alias.  */
17614 #if defined __stub_$ac_func || defined __stub___$ac_func
17615 choke me
17616 #endif
17617
17618 int
17619 main ()
17620 {
17621 return $ac_func ();
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_link") 2>conftest.er1
17634   ac_status=$?
17635   grep -v '^ *+' conftest.er1 >conftest.err
17636   rm -f conftest.er1
17637   cat conftest.err >&5
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } && {
17640          test -z "$ac_c_werror_flag" ||
17641          test ! -s conftest.err
17642        } && test -s conftest$ac_exeext &&
17643        $as_test_x conftest$ac_exeext; then
17644   eval "$as_ac_var=yes"
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649         eval "$as_ac_var=no"
17650 fi
17651
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653       conftest$ac_exeext conftest.$ac_ext
17654 fi
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656                { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659   cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17662
17663 fi
17664 done
17665
17666 fi
17667
17668
17669 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17670 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677 #include <setjmp.h>
17678 int
17679 main ()
17680 {
17681 sigjmp_buf x; sigsetjmp(x, 1);
17682   ;
17683   return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690   *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693   (eval "$ac_link") 2>conftest.er1
17694   ac_status=$?
17695   grep -v '^ *+' conftest.er1 >conftest.err
17696   rm -f conftest.er1
17697   cat conftest.err >&5
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); } && {
17700          test -z "$ac_c_werror_flag" ||
17701          test ! -s conftest.err
17702        } && test -s conftest$ac_exeext &&
17703        $as_test_x conftest$ac_exeext; then
17704
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_SIGSETJMP 1
17707 _ACEOF
17708
17709 { echo "$as_me:$LINENO: result: yes" >&5
17710 echo "${ECHO_T}yes" >&6; }
17711 else
17712   echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715         { echo "$as_me:$LINENO: result: no" >&5
17716 echo "${ECHO_T}no" >&6; }
17717 fi
17718
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720       conftest$ac_exeext conftest.$ac_ext
17721
17722 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17723 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17724 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 #include <signal.h>
17734 /* NetBSD declares sys_siglist in unistd.h.  */
17735 #ifdef HAVE_UNISTD_H
17736 # include <unistd.h>
17737 #endif
17738
17739
17740 int
17741 main ()
17742 {
17743 #ifndef sys_siglist
17744   (void) sys_siglist;
17745 #endif
17746
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758   (eval "$ac_compile") 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } && {
17765          test -z "$ac_c_werror_flag" ||
17766          test ! -s conftest.err
17767        } && test -s conftest.$ac_objext; then
17768   ac_cv_have_decl_sys_siglist=yes
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773         ac_cv_have_decl_sys_siglist=no
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 fi
17778 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17779 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17780 if test $ac_cv_have_decl_sys_siglist = yes; then
17781
17782 cat >>confdefs.h <<_ACEOF
17783 #define HAVE_DECL_SYS_SIGLIST 1
17784 _ACEOF
17785
17786
17787 else
17788   cat >>confdefs.h <<_ACEOF
17789 #define HAVE_DECL_SYS_SIGLIST 0
17790 _ACEOF
17791
17792
17793 fi
17794
17795
17796
17797
17798 { echo "$as_me:$LINENO: checking for syslog" >&5
17799 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17800 if test "${ac_cv_func_syslog+set}" = set; then
17801   echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803   cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17811 #define syslog innocuous_syslog
17812
17813 /* System header to define __stub macros and hopefully few prototypes,
17814     which can conflict with char syslog (); below.
17815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17816     <limits.h> exists even on freestanding compilers.  */
17817
17818 #ifdef __STDC__
17819 # include <limits.h>
17820 #else
17821 # include <assert.h>
17822 #endif
17823
17824 #undef syslog
17825
17826 /* Override any GCC internal prototype to avoid an error.
17827    Use char because int might match the return type of a GCC
17828    builtin and then its argument prototype would still apply.  */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char syslog ();
17833 /* The GNU C library defines this for functions which it implements
17834     to always fail with ENOSYS.  Some functions are actually named
17835     something starting with __ and the normal name is an alias.  */
17836 #if defined __stub_syslog || defined __stub___syslog
17837 choke me
17838 #endif
17839
17840 int
17841 main ()
17842 {
17843 return syslog ();
17844   ;
17845   return 0;
17846 }
17847 _ACEOF
17848 rm -f conftest.$ac_objext conftest$ac_exeext
17849 if { (ac_try="$ac_link"
17850 case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_link") 2>conftest.er1
17856   ac_status=$?
17857   grep -v '^ *+' conftest.er1 >conftest.err
17858   rm -f conftest.er1
17859   cat conftest.err >&5
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); } && {
17862          test -z "$ac_c_werror_flag" ||
17863          test ! -s conftest.err
17864        } && test -s conftest$ac_exeext &&
17865        $as_test_x conftest$ac_exeext; then
17866   ac_cv_func_syslog=yes
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871         ac_cv_func_syslog=no
17872 fi
17873
17874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17875       conftest$ac_exeext conftest.$ac_ext
17876 fi
17877 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17878 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17879 if test $ac_cv_func_syslog = yes; then
17880   if test "${ac_cv_header_syslog_h+set}" = set; then
17881   { echo "$as_me:$LINENO: checking for syslog.h" >&5
17882 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17883 if test "${ac_cv_header_syslog_h+set}" = set; then
17884   echo $ECHO_N "(cached) $ECHO_C" >&6
17885 fi
17886 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17887 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17888 else
17889   # Is the header compilable?
17890 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17891 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17892 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 $ac_includes_default
17899 #include <syslog.h>
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905   *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908   (eval "$ac_compile") 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } && {
17915          test -z "$ac_c_werror_flag" ||
17916          test ! -s conftest.err
17917        } && test -s conftest.$ac_objext; then
17918   ac_header_compiler=yes
17919 else
17920   echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17922
17923         ac_header_compiler=no
17924 fi
17925
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17928 echo "${ECHO_T}$ac_header_compiler" >&6; }
17929
17930 # Is the header present?
17931 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17932 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17933 cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939 #include <syslog.h>
17940 _ACEOF
17941 if { (ac_try="$ac_cpp conftest.$ac_ext"
17942 case "(($ac_try" in
17943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944   *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17948   ac_status=$?
17949   grep -v '^ *+' conftest.er1 >conftest.err
17950   rm -f conftest.er1
17951   cat conftest.err >&5
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); } >/dev/null && {
17954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17955          test ! -s conftest.err
17956        }; then
17957   ac_header_preproc=yes
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962   ac_header_preproc=no
17963 fi
17964
17965 rm -f conftest.err conftest.$ac_ext
17966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17967 echo "${ECHO_T}$ac_header_preproc" >&6; }
17968
17969 # So?  What about this header?
17970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17971   yes:no: )
17972     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17973 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17974     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17975 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17976     ac_header_preproc=yes
17977     ;;
17978   no:yes:* )
17979     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17980 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17981     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
17982 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
17983     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17984 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17985     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
17986 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17987     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17989     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17990 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17991     ( cat <<\_ASBOX
17992 ## ---------------------------------------- ##
17993 ## Report this to pgsql-bugs@postgresql.org ##
17994 ## ---------------------------------------- ##
17995 _ASBOX
17996      ) | sed "s/^/$as_me: WARNING:     /" >&2
17997     ;;
17998 esac
17999 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18000 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18001 if test "${ac_cv_header_syslog_h+set}" = set; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   ac_cv_header_syslog_h=$ac_header_preproc
18005 fi
18006 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18007 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18008
18009 fi
18010 if test $ac_cv_header_syslog_h = yes; then
18011
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_SYSLOG 1
18014 _ACEOF
18015
18016 fi
18017
18018
18019 fi
18020
18021
18022 { echo "$as_me:$LINENO: checking for optreset" >&5
18023 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18024 if test "${pgac_cv_var_int_optreset+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 #include <unistd.h>
18034 int
18035 main ()
18036 {
18037 extern int optreset; optreset = 1;
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046   *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049   (eval "$ac_link") 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } && {
18056          test -z "$ac_c_werror_flag" ||
18057          test ! -s conftest.err
18058        } && test -s conftest$ac_exeext &&
18059        $as_test_x conftest$ac_exeext; then
18060   pgac_cv_var_int_optreset=yes
18061 else
18062   echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065         pgac_cv_var_int_optreset=no
18066 fi
18067
18068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18069       conftest$ac_exeext conftest.$ac_ext
18070 fi
18071 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18072 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18073 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18074
18075 cat >>confdefs.h <<\_ACEOF
18076 #define HAVE_INT_OPTRESET 1
18077 _ACEOF
18078
18079 fi
18080
18081
18082
18083 for ac_func in strtoll strtoq
18084 do
18085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18099 #define $ac_func innocuous_$ac_func
18100
18101 /* System header to define __stub macros and hopefully few prototypes,
18102     which can conflict with char $ac_func (); below.
18103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104     <limits.h> exists even on freestanding compilers.  */
18105
18106 #ifdef __STDC__
18107 # include <limits.h>
18108 #else
18109 # include <assert.h>
18110 #endif
18111
18112 #undef $ac_func
18113
18114 /* Override any GCC internal prototype to avoid an error.
18115    Use char because int might match the return type of a GCC
18116    builtin and then its argument prototype would still apply.  */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 char $ac_func ();
18121 /* The GNU C library defines this for functions which it implements
18122     to always fail with ENOSYS.  Some functions are actually named
18123     something starting with __ and the normal name is an alias.  */
18124 #if defined __stub_$ac_func || defined __stub___$ac_func
18125 choke me
18126 #endif
18127
18128 int
18129 main ()
18130 {
18131 return $ac_func ();
18132   ;
18133   return 0;
18134 }
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_link") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } && {
18150          test -z "$ac_c_werror_flag" ||
18151          test ! -s conftest.err
18152        } && test -s conftest$ac_exeext &&
18153        $as_test_x conftest$ac_exeext; then
18154   eval "$as_ac_var=yes"
18155 else
18156   echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159         eval "$as_ac_var=no"
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163       conftest$ac_exeext conftest.$ac_ext
18164 fi
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166                { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169   cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18172  break
18173 fi
18174 done
18175
18176
18177
18178 for ac_func in strtoull strtouq
18179 do
18180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184   echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186   cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18194 #define $ac_func innocuous_$ac_func
18195
18196 /* System header to define __stub macros and hopefully few prototypes,
18197     which can conflict with char $ac_func (); below.
18198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199     <limits.h> exists even on freestanding compilers.  */
18200
18201 #ifdef __STDC__
18202 # include <limits.h>
18203 #else
18204 # include <assert.h>
18205 #endif
18206
18207 #undef $ac_func
18208
18209 /* Override any GCC internal prototype to avoid an error.
18210    Use char because int might match the return type of a GCC
18211    builtin and then its argument prototype would still apply.  */
18212 #ifdef __cplusplus
18213 extern "C"
18214 #endif
18215 char $ac_func ();
18216 /* The GNU C library defines this for functions which it implements
18217     to always fail with ENOSYS.  Some functions are actually named
18218     something starting with __ and the normal name is an alias.  */
18219 #if defined __stub_$ac_func || defined __stub___$ac_func
18220 choke me
18221 #endif
18222
18223 int
18224 main ()
18225 {
18226 return $ac_func ();
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_link") 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } && {
18245          test -z "$ac_c_werror_flag" ||
18246          test ! -s conftest.err
18247        } && test -s conftest$ac_exeext &&
18248        $as_test_x conftest$ac_exeext; then
18249   eval "$as_ac_var=yes"
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254         eval "$as_ac_var=no"
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18258       conftest$ac_exeext conftest.$ac_ext
18259 fi
18260 ac_res=`eval echo '${'$as_ac_var'}'`
18261                { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264   cat >>confdefs.h <<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 _ACEOF
18267  break
18268 fi
18269 done
18270
18271
18272 # Check for one of atexit() or on_exit()
18273
18274 for ac_func in atexit
18275 do
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18290 #define $ac_func innocuous_$ac_func
18291
18292 /* System header to define __stub macros and hopefully few prototypes,
18293     which can conflict with char $ac_func (); below.
18294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295     <limits.h> exists even on freestanding compilers.  */
18296
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18302
18303 #undef $ac_func
18304
18305 /* Override any GCC internal prototype to avoid an error.
18306    Use char because int might match the return type of a GCC
18307    builtin and then its argument prototype would still apply.  */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char $ac_func ();
18312 /* The GNU C library defines this for functions which it implements
18313     to always fail with ENOSYS.  Some functions are actually named
18314     something starting with __ and the normal name is an alias.  */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18316 choke me
18317 #endif
18318
18319 int
18320 main ()
18321 {
18322 return $ac_func ();
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331   *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334   (eval "$ac_link") 2>conftest.er1
18335   ac_status=$?
18336   grep -v '^ *+' conftest.er1 >conftest.err
18337   rm -f conftest.er1
18338   cat conftest.err >&5
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); } && {
18341          test -z "$ac_c_werror_flag" ||
18342          test ! -s conftest.err
18343        } && test -s conftest$ac_exeext &&
18344        $as_test_x conftest$ac_exeext; then
18345   eval "$as_ac_var=yes"
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350         eval "$as_ac_var=no"
18351 fi
18352
18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354       conftest$ac_exeext conftest.$ac_ext
18355 fi
18356 ac_res=`eval echo '${'$as_ac_var'}'`
18357                { echo "$as_me:$LINENO: result: $ac_res" >&5
18358 echo "${ECHO_T}$ac_res" >&6; }
18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
18360   cat >>confdefs.h <<_ACEOF
18361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18362 _ACEOF
18363
18364 else
18365
18366 for ac_func in on_exit
18367 do
18368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374   cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h.  */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h.  */
18380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18382 #define $ac_func innocuous_$ac_func
18383
18384 /* System header to define __stub macros and hopefully few prototypes,
18385     which can conflict with char $ac_func (); below.
18386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18387     <limits.h> exists even on freestanding compilers.  */
18388
18389 #ifdef __STDC__
18390 # include <limits.h>
18391 #else
18392 # include <assert.h>
18393 #endif
18394
18395 #undef $ac_func
18396
18397 /* Override any GCC internal prototype to avoid an error.
18398    Use char because int might match the return type of a GCC
18399    builtin and then its argument prototype would still apply.  */
18400 #ifdef __cplusplus
18401 extern "C"
18402 #endif
18403 char $ac_func ();
18404 /* The GNU C library defines this for functions which it implements
18405     to always fail with ENOSYS.  Some functions are actually named
18406     something starting with __ and the normal name is an alias.  */
18407 #if defined __stub_$ac_func || defined __stub___$ac_func
18408 choke me
18409 #endif
18410
18411 int
18412 main ()
18413 {
18414 return $ac_func ();
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_link") 2>conftest.er1
18427   ac_status=$?
18428   grep -v '^ *+' conftest.er1 >conftest.err
18429   rm -f conftest.er1
18430   cat conftest.err >&5
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } && {
18433          test -z "$ac_c_werror_flag" ||
18434          test ! -s conftest.err
18435        } && test -s conftest$ac_exeext &&
18436        $as_test_x conftest$ac_exeext; then
18437   eval "$as_ac_var=yes"
18438 else
18439   echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442         eval "$as_ac_var=no"
18443 fi
18444
18445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18446       conftest$ac_exeext conftest.$ac_ext
18447 fi
18448 ac_res=`eval echo '${'$as_ac_var'}'`
18449                { echo "$as_me:$LINENO: result: $ac_res" >&5
18450 echo "${ECHO_T}$ac_res" >&6; }
18451 if test `eval echo '${'$as_ac_var'}'` = yes; then
18452   cat >>confdefs.h <<_ACEOF
18453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18454 _ACEOF
18455
18456 else
18457   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18458 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18459    { (exit 1); exit 1; }; }
18460 fi
18461 done
18462
18463 fi
18464 done
18465
18466
18467
18468 for ac_func in fseeko
18469 do
18470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18484 #define $ac_func innocuous_$ac_func
18485
18486 /* System header to define __stub macros and hopefully few prototypes,
18487     which can conflict with char $ac_func (); below.
18488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489     <limits.h> exists even on freestanding compilers.  */
18490
18491 #ifdef __STDC__
18492 # include <limits.h>
18493 #else
18494 # include <assert.h>
18495 #endif
18496
18497 #undef $ac_func
18498
18499 /* Override any GCC internal prototype to avoid an error.
18500    Use char because int might match the return type of a GCC
18501    builtin and then its argument prototype would still apply.  */
18502 #ifdef __cplusplus
18503 extern "C"
18504 #endif
18505 char $ac_func ();
18506 /* The GNU C library defines this for functions which it implements
18507     to always fail with ENOSYS.  Some functions are actually named
18508     something starting with __ and the normal name is an alias.  */
18509 #if defined __stub_$ac_func || defined __stub___$ac_func
18510 choke me
18511 #endif
18512
18513 int
18514 main ()
18515 {
18516 return $ac_func ();
18517   ;
18518   return 0;
18519 }
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (ac_try="$ac_link"
18523 case "(($ac_try" in
18524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525   *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528   (eval "$ac_link") 2>conftest.er1
18529   ac_status=$?
18530   grep -v '^ *+' conftest.er1 >conftest.err
18531   rm -f conftest.er1
18532   cat conftest.err >&5
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); } && {
18535          test -z "$ac_c_werror_flag" ||
18536          test ! -s conftest.err
18537        } && test -s conftest$ac_exeext &&
18538        $as_test_x conftest$ac_exeext; then
18539   eval "$as_ac_var=yes"
18540 else
18541   echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18543
18544         eval "$as_ac_var=no"
18545 fi
18546
18547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18548       conftest$ac_exeext conftest.$ac_ext
18549 fi
18550 ac_res=`eval echo '${'$as_ac_var'}'`
18551                { echo "$as_me:$LINENO: result: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18553 if test `eval echo '${'$as_ac_var'}'` = yes; then
18554   cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18556 _ACEOF
18557
18558 else
18559   case " $LIBOBJS " in
18560   *" $ac_func.$ac_objext "* ) ;;
18561   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18562  ;;
18563 esac
18564
18565 fi
18566 done
18567
18568
18569 case $host_os in
18570         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18571         bsdi*|netbsd*)
18572
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_FSEEKO 1
18575 _ACEOF
18576
18577                 ac_cv_func_fseeko=yes;;
18578         *)
18579                 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18580 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18581 if test "${ac_cv_sys_largefile_source+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   while :; do
18585   cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591 #include <sys/types.h> /* for off_t */
18592      #include <stdio.h>
18593 int
18594 main ()
18595 {
18596 int (*fp) (FILE *, off_t, int) = fseeko;
18597      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609   (eval "$ac_link") 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } && {
18616          test -z "$ac_c_werror_flag" ||
18617          test ! -s conftest.err
18618        } && test -s conftest$ac_exeext &&
18619        $as_test_x conftest$ac_exeext; then
18620   ac_cv_sys_largefile_source=no; break
18621 else
18622   echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18624
18625
18626 fi
18627
18628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18629       conftest$ac_exeext conftest.$ac_ext
18630   cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636 #define _LARGEFILE_SOURCE 1
18637 #include <sys/types.h> /* for off_t */
18638      #include <stdio.h>
18639 int
18640 main ()
18641 {
18642 int (*fp) (FILE *, off_t, int) = fseeko;
18643      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652   *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655   (eval "$ac_link") 2>conftest.er1
18656   ac_status=$?
18657   grep -v '^ *+' conftest.er1 >conftest.err
18658   rm -f conftest.er1
18659   cat conftest.err >&5
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } && {
18662          test -z "$ac_c_werror_flag" ||
18663          test ! -s conftest.err
18664        } && test -s conftest$ac_exeext &&
18665        $as_test_x conftest$ac_exeext; then
18666   ac_cv_sys_largefile_source=1; break
18667 else
18668   echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671
18672 fi
18673
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675       conftest$ac_exeext conftest.$ac_ext
18676   ac_cv_sys_largefile_source=unknown
18677   break
18678 done
18679 fi
18680 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18681 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18682 case $ac_cv_sys_largefile_source in #(
18683   no | unknown) ;;
18684   *)
18685 cat >>confdefs.h <<_ACEOF
18686 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18687 _ACEOF
18688 ;;
18689 esac
18690 rm -f conftest*
18691
18692 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18693 # in glibc 2.1.3, but that breaks too many other things.
18694 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18695 if test $ac_cv_sys_largefile_source != unknown; then
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_FSEEKO 1
18699 _ACEOF
18700
18701 fi
18702 ;;
18703 esac
18704
18705
18706 #
18707 # Pthreads
18708 #
18709 # For each platform, we need to know about any special compile and link
18710 # libraries, and whether the normal C function names are thread-safe.
18711 # See the comment at the top of src/port/thread.c for more information.
18712 # WIN32 doesn't need the pthread tests;  it always uses threads
18713 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18714
18715
18716
18717 ac_ext=c
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723 acx_pthread_ok=no
18724
18725 # We used to check for pthread.h first, but this fails if pthread.h
18726 # requires special compiler flags (e.g. on True64 or Sequent).
18727 # It gets checked for in the link test anyway.
18728
18729 # First of all, check if the user has set any of the PTHREAD_LIBS,
18730 # etcetera environment variables, and if threads linking works using
18731 # them:
18732 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18733         save_CFLAGS="$CFLAGS"
18734         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18735         save_LIBS="$LIBS"
18736         LIBS="$PTHREAD_LIBS $LIBS"
18737         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18738 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18739         cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745
18746 /* Override any GCC internal prototype to avoid an error.
18747    Use char because int might match the return type of a GCC
18748    builtin and then its argument prototype would still apply.  */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char pthread_join ();
18753 int
18754 main ()
18755 {
18756 return pthread_join ();
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_link") 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } && {
18775          test -z "$ac_c_werror_flag" ||
18776          test ! -s conftest.err
18777        } && test -s conftest$ac_exeext &&
18778        $as_test_x conftest$ac_exeext; then
18779   acx_pthread_ok=yes
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784
18785 fi
18786
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788       conftest$ac_exeext conftest.$ac_ext
18789         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18790 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18791         if test x"$acx_pthread_ok" = xno; then
18792                 PTHREAD_LIBS=""
18793                 PTHREAD_CFLAGS=""
18794         fi
18795         LIBS="$save_LIBS"
18796         CFLAGS="$save_CFLAGS"
18797 fi
18798
18799 # We must check for the threads library under a number of different
18800 # names; the ordering is very important because some systems
18801 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18802 # libraries is broken (non-POSIX).
18803
18804 # Create a list of thread flags to try.  Items starting with a "-" are
18805 # C compiler flags, and other items are library names, except for "none"
18806 # which indicates that we try without any flags at all, and "pthread-config"
18807 # which is a program returning the flags for the Pth emulation library.
18808
18809 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18810
18811 # The ordering *is* (sometimes) important.  Some notes on the
18812 # individual items follow:
18813
18814 # pthreads: AIX (must check this before -lpthread)
18815 # none: in case threads are in libc; should be tried before -Kthread and
18816 #       other compiler flags to prevent continual compiler warnings
18817 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18818 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18819 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18820 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18821 # -pthreads: Solaris/gcc
18822 # -mthreads: Mingw32/gcc, Lynx/gcc
18823 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18824 #      doesn't hurt to check since this sometimes defines pthreads too;
18825 #      also defines -D_REENTRANT)
18826 # pthread: Linux, etcetera
18827 # --thread-safe: KAI C++
18828 # pthread-config: use pthread-config program (for GNU Pth library)
18829
18830 case "${host_cpu}-${host_os}" in
18831         *solaris*)
18832
18833         # On Solaris (at least, for some versions), libc contains stubbed
18834         # (non-functional) versions of the pthreads routines, so link-based
18835         # tests will erroneously succeed.  (We need to link with -pthread or
18836         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18837         # a function called by this macro, so we could check for that, but
18838         # who knows whether they'll stub that too in a future libc.)  So,
18839         # we'll just look for -pthreads and -lpthread first:
18840
18841         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18842         ;;
18843 esac
18844
18845 if test x"$acx_pthread_ok" = xno; then
18846 for flag in $acx_pthread_flags; do
18847
18848         tryPTHREAD_CFLAGS=""
18849         tryPTHREAD_LIBS=""
18850         case $flag in
18851                 none)
18852                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18853 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18854                 ;;
18855
18856                 -*)
18857                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18858 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18859                 tryPTHREAD_CFLAGS="$flag"
18860                 ;;
18861
18862                 pthread-config)
18863                 # skip this if we already have flags defined, for PostgreSQL
18864                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18865                 # Extract the first word of "pthread-config", so it can be a program name with args.
18866 set dummy pthread-config; ac_word=$2
18867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18869 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   if test -n "$acx_pthread_config"; then
18873   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18874 else
18875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18876 for as_dir in $PATH
18877 do
18878   IFS=$as_save_IFS
18879   test -z "$as_dir" && as_dir=.
18880   for ac_exec_ext in '' $ac_executable_extensions; do
18881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18882     ac_cv_prog_acx_pthread_config="yes"
18883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18884     break 2
18885   fi
18886 done
18887 done
18888 IFS=$as_save_IFS
18889
18890   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18891 fi
18892 fi
18893 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18894 if test -n "$acx_pthread_config"; then
18895   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18896 echo "${ECHO_T}$acx_pthread_config" >&6; }
18897 else
18898   { echo "$as_me:$LINENO: result: no" >&5
18899 echo "${ECHO_T}no" >&6; }
18900 fi
18901
18902
18903                 if test x"$acx_pthread_config" = xno; then continue; fi
18904                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18905                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18906                 ;;
18907
18908                 *)
18909                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18910 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18911                 tryPTHREAD_LIBS="-l$flag"
18912                 ;;
18913         esac
18914
18915         save_LIBS="$LIBS"
18916         save_CFLAGS="$CFLAGS"
18917         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18918         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18919
18920         # Check for various functions.  We must include pthread.h,
18921         # since some functions may be macros.  (On the Sequent, we
18922         # need a special flag -Kthread to make this header compile.)
18923         # We check for pthread_join because it is in -lpthread on IRIX
18924         # while pthread_create is in libc.  We check for pthread_attr_init
18925         # due to DEC craziness with -lpthreads.  We check for
18926         # pthread_cleanup_push because it is one of the few pthread
18927         # functions on Solaris that doesn't have a non-functional libc stub.
18928         # We try pthread_create on general principles.
18929         cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 #include <pthread.h>
18936 int
18937 main ()
18938 {
18939 pthread_t th; pthread_join(th, 0);
18940                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18941                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_link") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } && {
18960          test -z "$ac_c_werror_flag" ||
18961          test ! -s conftest.err
18962        } && test -s conftest$ac_exeext &&
18963        $as_test_x conftest$ac_exeext; then
18964   acx_pthread_ok=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969         acx_pthread_ok=no
18970 fi
18971
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973       conftest$ac_exeext conftest.$ac_ext
18974
18975         if test "x$acx_pthread_ok" = xyes; then
18976             # Don't use options that are ignored by the compiler.
18977             # We find them by checking stderror.
18978             cat >conftest.$ac_ext <<_ACEOF
18979 int
18980 main (int argc, char **argv)
18981 {
18982   (void) argc;
18983   (void) argv;
18984   return 0;
18985 }
18986 _ACEOF
18987             rm -f conftest.$ac_objext conftest$ac_exeext
18988             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18989                 # we continue with more flags because Linux needs -lpthread
18990                 # for libpq builds on PostgreSQL.  The test above only
18991                 # tests for building binaries, not shared libraries.
18992                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18993                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18994             else   acx_pthread_ok=no
18995             fi
18996         fi
18997
18998         LIBS="$save_LIBS"
18999         CFLAGS="$save_CFLAGS"
19000
19001         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19002 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19003 done
19004 fi
19005
19006 # Various other checks:
19007 if test "x$acx_pthread_ok" = xyes; then
19008         save_LIBS="$LIBS"
19009         LIBS="$PTHREAD_LIBS $LIBS"
19010         save_CFLAGS="$CFLAGS"
19011         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19012
19013         # Detect AIX lossage: threads are created detached by default
19014         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19015         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19016 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19017         cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 #include <pthread.h>
19024 int
19025 main ()
19026 {
19027 int attr=PTHREAD_CREATE_JOINABLE;
19028   ;
19029   return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (ac_try="$ac_link"
19034 case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_link") 2>conftest.er1
19040   ac_status=$?
19041   grep -v '^ *+' conftest.er1 >conftest.err
19042   rm -f conftest.er1
19043   cat conftest.err >&5
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); } && {
19046          test -z "$ac_c_werror_flag" ||
19047          test ! -s conftest.err
19048        } && test -s conftest$ac_exeext &&
19049        $as_test_x conftest$ac_exeext; then
19050   ok=PTHREAD_CREATE_JOINABLE
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055         ok=unknown
19056 fi
19057
19058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19059       conftest$ac_exeext conftest.$ac_ext
19060         if test x"$ok" = xunknown; then
19061                 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h.  */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h.  */
19067 #include <pthread.h>
19068 int
19069 main ()
19070 {
19071 int attr=PTHREAD_CREATE_UNDETACHED;
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080   *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083   (eval "$ac_link") 2>conftest.er1
19084   ac_status=$?
19085   grep -v '^ *+' conftest.er1 >conftest.err
19086   rm -f conftest.er1
19087   cat conftest.err >&5
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } && {
19090          test -z "$ac_c_werror_flag" ||
19091          test ! -s conftest.err
19092        } && test -s conftest$ac_exeext &&
19093        $as_test_x conftest$ac_exeext; then
19094   ok=PTHREAD_CREATE_UNDETACHED
19095 else
19096   echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099         ok=unknown
19100 fi
19101
19102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19103       conftest$ac_exeext conftest.$ac_ext
19104         fi
19105         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19106
19107 cat >>confdefs.h <<\_ACEOF
19108 #define PTHREAD_CREATE_JOINABLE $ok
19109 _ACEOF
19110
19111         fi
19112         { echo "$as_me:$LINENO: result: ${ok}" >&5
19113 echo "${ECHO_T}${ok}" >&6; }
19114         if test x"$ok" = xunknown; then
19115                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19116 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19117         fi
19118
19119         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19120 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19121         flag=no
19122 # We always add these in PostgreSQL
19123 #       case "${host_cpu}-${host_os}" in
19124 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19125 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19126 #       esac
19127         { echo "$as_me:$LINENO: result: ${flag}" >&5
19128 echo "${ECHO_T}${flag}" >&6; }
19129         if test "x$flag" != xno; then
19130                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19131         fi
19132
19133         LIBS="$save_LIBS"
19134         CFLAGS="$save_CFLAGS"
19135
19136 # Supporting cc_r would require a special CC in all places that
19137 # use libpq, and that is ugly, so we don't do it.  Users can still
19138 # define their compiler as cc_r to do thread builds of everything.
19139         # More AIX lossage: must compile with cc_r
19140         # Extract the first word of "cc_r", so it can be a program name with args.
19141 set dummy cc_r; ac_word=$2
19142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19144 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19145   echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147   if test -n "$PTHREAD_CC"; then
19148   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19149 else
19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19152 do
19153   IFS=$as_save_IFS
19154   test -z "$as_dir" && as_dir=.
19155   for ac_exec_ext in '' $ac_executable_extensions; do
19156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19157     ac_cv_prog_PTHREAD_CC="cc_r"
19158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19159     break 2
19160   fi
19161 done
19162 done
19163 IFS=$as_save_IFS
19164
19165   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19166 fi
19167 fi
19168 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19169 if test -n "$PTHREAD_CC"; then
19170   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19171 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19172 else
19173   { echo "$as_me:$LINENO: result: no" >&5
19174 echo "${ECHO_T}no" >&6; }
19175 fi
19176
19177
19178 else
19179         PTHREAD_CC="$CC"
19180 fi
19181
19182
19183
19184
19185
19186 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19187 if test x"$acx_pthread_ok" = xyes; then
19188
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_PTHREAD 1
19191 _ACEOF
19192
19193         :
19194 else
19195         acx_pthread_ok=no
19196
19197 fi
19198 ac_ext=c
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19203
19204         # set thread flags
19205
19206 # Some platforms use these, so just define them.  They can't hurt if they
19207 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19208 # enables 5-arg getpwuid_r, among other things.
19209 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19210
19211
19212 # At this point, we don't want to muck with the compiler name for threading.
19213 # Let's see who fails, perhaps AIX.  2004-04-23
19214 if test "$PTHREAD_CC" != "$CC"; then
19215 { { echo "$as_me:$LINENO: error:
19216 PostgreSQL does not support platforms that require a special compiler
19217 for thread safety." >&5
19218 echo "$as_me: error:
19219 PostgreSQL does not support platforms that require a special compiler
19220 for thread safety." >&2;}
19221    { (exit 1); exit 1; }; }
19222 fi
19223
19224 if test "$THREAD_SUPPORT" = no; then
19225 { { echo "$as_me:$LINENO: 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." >&5
19228 echo "$as_me: error: cannot enable threads on this platform
19229 This platform is known to not support thread-safe programs.  For details,
19230 compile and run src/bin/pg_thread_test." >&2;}
19231    { (exit 1); exit 1; }; }
19232 fi
19233
19234 # Check for *_r functions
19235 _CFLAGS="$CFLAGS"
19236 _LIBS="$LIBS"
19237 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19238 LIBS="$LIBS $PTHREAD_LIBS"
19239
19240 if test "$PORTNAME" != "win32"; then
19241 if test "${ac_cv_header_pthread_h+set}" = set; then
19242   { echo "$as_me:$LINENO: checking for pthread.h" >&5
19243 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19244 if test "${ac_cv_header_pthread_h+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 fi
19247 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19248 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19249 else
19250   # Is the header compilable?
19251 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19252 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259 $ac_includes_default
19260 #include <pthread.h>
19261 _ACEOF
19262 rm -f conftest.$ac_objext
19263 if { (ac_try="$ac_compile"
19264 case "(($ac_try" in
19265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266   *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269   (eval "$ac_compile") 2>conftest.er1
19270   ac_status=$?
19271   grep -v '^ *+' conftest.er1 >conftest.err
19272   rm -f conftest.er1
19273   cat conftest.err >&5
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); } && {
19276          test -z "$ac_c_werror_flag" ||
19277          test ! -s conftest.err
19278        } && test -s conftest.$ac_objext; then
19279   ac_header_compiler=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284         ac_header_compiler=no
19285 fi
19286
19287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19289 echo "${ECHO_T}$ac_header_compiler" >&6; }
19290
19291 # Is the header present?
19292 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19293 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300 #include <pthread.h>
19301 _ACEOF
19302 if { (ac_try="$ac_cpp conftest.$ac_ext"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } >/dev/null && {
19315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19316          test ! -s conftest.err
19317        }; then
19318   ac_header_preproc=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323   ac_header_preproc=no
19324 fi
19325
19326 rm -f conftest.err conftest.$ac_ext
19327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6; }
19329
19330 # So?  What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19332   yes:no: )
19333     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19337     ac_header_preproc=yes
19338     ;;
19339   no:yes:* )
19340     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19342     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
19344     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19346     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19348     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19350     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19352     ( cat <<\_ASBOX
19353 ## ---------------------------------------- ##
19354 ## Report this to pgsql-bugs@postgresql.org ##
19355 ## ---------------------------------------- ##
19356 _ASBOX
19357      ) | sed "s/^/$as_me: WARNING:     /" >&2
19358     ;;
19359 esac
19360 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19361 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19362 if test "${ac_cv_header_pthread_h+set}" = set; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365   ac_cv_header_pthread_h=$ac_header_preproc
19366 fi
19367 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19368 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19369
19370 fi
19371 if test $ac_cv_header_pthread_h = yes; then
19372   :
19373 else
19374   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19375 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19376    { (exit 1); exit 1; }; }
19377 fi
19378
19379
19380 fi
19381
19382
19383
19384
19385 for ac_func in strerror_r getpwuid_r gethostbyname_r
19386 do
19387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19391   echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393   cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h.  */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h.  */
19399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19401 #define $ac_func innocuous_$ac_func
19402
19403 /* System header to define __stub macros and hopefully few prototypes,
19404     which can conflict with char $ac_func (); below.
19405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19406     <limits.h> exists even on freestanding compilers.  */
19407
19408 #ifdef __STDC__
19409 # include <limits.h>
19410 #else
19411 # include <assert.h>
19412 #endif
19413
19414 #undef $ac_func
19415
19416 /* Override any GCC internal prototype to avoid an error.
19417    Use char because int might match the return type of a GCC
19418    builtin and then its argument prototype would still apply.  */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char $ac_func ();
19423 /* The GNU C library defines this for functions which it implements
19424     to always fail with ENOSYS.  Some functions are actually named
19425     something starting with __ and the normal name is an alias.  */
19426 #if defined __stub_$ac_func || defined __stub___$ac_func
19427 choke me
19428 #endif
19429
19430 int
19431 main ()
19432 {
19433 return $ac_func ();
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442   *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445   (eval "$ac_link") 2>conftest.er1
19446   ac_status=$?
19447   grep -v '^ *+' conftest.er1 >conftest.err
19448   rm -f conftest.er1
19449   cat conftest.err >&5
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); } && {
19452          test -z "$ac_c_werror_flag" ||
19453          test ! -s conftest.err
19454        } && test -s conftest$ac_exeext &&
19455        $as_test_x conftest$ac_exeext; then
19456   eval "$as_ac_var=yes"
19457 else
19458   echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461         eval "$as_ac_var=no"
19462 fi
19463
19464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19465       conftest$ac_exeext conftest.$ac_ext
19466 fi
19467 ac_res=`eval echo '${'$as_ac_var'}'`
19468                { echo "$as_me:$LINENO: result: $ac_res" >&5
19469 echo "${ECHO_T}$ac_res" >&6; }
19470 if test `eval echo '${'$as_ac_var'}'` = yes; then
19471   cat >>confdefs.h <<_ACEOF
19472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19473 _ACEOF
19474
19475 fi
19476 done
19477
19478
19479 # Do test here with the proper thread flags
19480 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19481 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19482 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485   cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h.  */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h.  */
19491 #include <sys/types.h>
19492 #include <pwd.h>
19493 int
19494 main ()
19495 {
19496 uid_t uid;
19497 struct passwd *space;
19498 char *buf;
19499 size_t bufsize;
19500 struct passwd **result;
19501 getpwuid_r(uid, space, buf, bufsize, result);
19502   ;
19503   return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_compile") 2>conftest.er1
19514   ac_status=$?
19515   grep -v '^ *+' conftest.er1 >conftest.err
19516   rm -f conftest.er1
19517   cat conftest.err >&5
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); } && {
19520          test -z "$ac_c_werror_flag" ||
19521          test ! -s conftest.err
19522        } && test -s conftest.$ac_objext; then
19523   pgac_cv_func_getpwuid_r_5arg=yes
19524 else
19525   echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528         pgac_cv_func_getpwuid_r_5arg=no
19529 fi
19530
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19532 fi
19533 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19534 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19535 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define GETPWUID_R_5ARG
19539 _ACEOF
19540
19541 fi
19542
19543 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19544 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19545 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548   cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #include <string.h>
19555 int
19556 main ()
19557 {
19558 #ifndef _AIX
19559 int strerror_r(int, char *, size_t);
19560 #else
19561 /* Older AIX has 'int' for the third argument so we don't test the args. */
19562 int strerror_r();
19563 #endif
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_compile") 2>conftest.er1
19576   ac_status=$?
19577   grep -v '^ *+' conftest.er1 >conftest.err
19578   rm -f conftest.er1
19579   cat conftest.err >&5
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } && {
19582          test -z "$ac_c_werror_flag" ||
19583          test ! -s conftest.err
19584        } && test -s conftest.$ac_objext; then
19585   pgac_cv_func_strerror_r_int=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590         pgac_cv_func_strerror_r_int=no
19591 fi
19592
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 fi
19595 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19596 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19597 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define STRERROR_R_INT
19601 _ACEOF
19602
19603 fi
19604
19605
19606 CFLAGS="$_CFLAGS"
19607 LIBS="$_LIBS"
19608
19609 else
19610 # do not use values from template file
19611 PTHREAD_CFLAGS=
19612 PTHREAD_LIBS=
19613 fi
19614
19615
19616
19617
19618
19619 # We can test for libldap_r only after we know PTHREAD_LIBS
19620 if test "$with_ldap" = yes ; then
19621   _LIBS="$LIBS"
19622   if test "$PORTNAME" != "win32"; then
19623
19624 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19625 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19626 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19627   echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629   ac_check_lib_save_LIBS=$LIBS
19630 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19631 cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637
19638 /* Override any GCC internal prototype to avoid an error.
19639    Use char because int might match the return type of a GCC
19640    builtin and then its argument prototype would still apply.  */
19641 #ifdef __cplusplus
19642 extern "C"
19643 #endif
19644 char ldap_bind ();
19645 int
19646 main ()
19647 {
19648 return ldap_bind ();
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (ac_try="$ac_link"
19655 case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_link") 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } && {
19667          test -z "$ac_c_werror_flag" ||
19668          test ! -s conftest.err
19669        } && test -s conftest$ac_exeext &&
19670        $as_test_x conftest$ac_exeext; then
19671   ac_cv_lib_ldap_ldap_bind=yes
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676         ac_cv_lib_ldap_ldap_bind=no
19677 fi
19678
19679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19680       conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19682 fi
19683 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19684 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19685 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19686   cat >>confdefs.h <<_ACEOF
19687 #define HAVE_LIBLDAP 1
19688 _ACEOF
19689
19690   LIBS="-lldap $LIBS"
19691
19692 else
19693   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19694 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19695    { (exit 1); exit 1; }; }
19696 fi
19697
19698     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19699     if test "$enable_thread_safety" = yes; then
19700       # on some platforms ldap_r fails to link without PTHREAD_LIBS
19701
19702 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19703 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715
19716 /* Override any GCC internal prototype to avoid an error.
19717    Use char because int might match the return type of a GCC
19718    builtin and then its argument prototype would still apply.  */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char ldap_simple_bind ();
19723 int
19724 main ()
19725 {
19726 return ldap_simple_bind ();
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_link") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest$ac_exeext &&
19748        $as_test_x conftest$ac_exeext; then
19749   ac_cv_lib_ldap_r_ldap_simple_bind=yes
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754         ac_cv_lib_ldap_r_ldap_simple_bind=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758       conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19760 fi
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19762 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19763 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19764   cat >>confdefs.h <<_ACEOF
19765 #define HAVE_LIBLDAP_R 1
19766 _ACEOF
19767
19768   LIBS="-lldap_r $LIBS"
19769
19770 else
19771   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19772 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19773    { (exit 1); exit 1; }; }
19774 fi
19775
19776       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19777     else
19778       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19779     fi
19780   else
19781
19782 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19783 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19784 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lwldap32  $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795
19796 /* Override any GCC internal prototype to avoid an error.
19797    Use char because int might match the return type of a GCC
19798    builtin and then its argument prototype would still apply.  */
19799 #ifdef __cplusplus
19800 extern "C"
19801 #endif
19802 char ldap_bind ();
19803 int
19804 main ()
19805 {
19806 return ldap_bind ();
19807   ;
19808   return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_link") 2>conftest.er1
19819   ac_status=$?
19820   grep -v '^ *+' conftest.er1 >conftest.err
19821   rm -f conftest.er1
19822   cat conftest.err >&5
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } && {
19825          test -z "$ac_c_werror_flag" ||
19826          test ! -s conftest.err
19827        } && test -s conftest$ac_exeext &&
19828        $as_test_x conftest$ac_exeext; then
19829   ac_cv_lib_wldap32_ldap_bind=yes
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834         ac_cv_lib_wldap32_ldap_bind=no
19835 fi
19836
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838       conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19840 fi
19841 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19842 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19843 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19844   cat >>confdefs.h <<_ACEOF
19845 #define HAVE_LIBWLDAP32 1
19846 _ACEOF
19847
19848   LIBS="-lwldap32 $LIBS"
19849
19850 else
19851   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19852 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19853    { (exit 1); exit 1; }; }
19854 fi
19855
19856     LDAP_LIBS_FE="-lwldap32"
19857     LDAP_LIBS_BE="-lwldap32"
19858   fi
19859   LIBS="$_LIBS"
19860 fi
19861
19862
19863
19864
19865 # This test makes sure that run tests work at all.  Sometimes a shared
19866 # library is found by the linker, but the runtime linker can't find it.
19867 # This check should come after all modifications of compiler or linker
19868 # variables, and before any other run tests.
19869 { echo "$as_me:$LINENO: checking test program" >&5
19870 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19871 if test "$cross_compiling" = yes; then
19872   { echo "$as_me:$LINENO: result: cross-compiling" >&5
19873 echo "${ECHO_T}cross-compiling" >&6; }
19874 else
19875   cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h.  */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h.  */
19881 int main() { return 0; }
19882 _ACEOF
19883 rm -f conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_link") 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19894   { (case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_try") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; }; then
19903   { echo "$as_me:$LINENO: result: ok" >&5
19904 echo "${ECHO_T}ok" >&6; }
19905 else
19906   echo "$as_me: program exited with status $ac_status" >&5
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910 ( exit $ac_status )
19911 { echo "$as_me:$LINENO: result: failed" >&5
19912 echo "${ECHO_T}failed" >&6; }
19913 { { echo "$as_me:$LINENO: error:
19914 Could not execute a simple test program.  This may be a problem
19915 related to locating shared libraries.  Check the file 'config.log'
19916 for the exact reason." >&5
19917 echo "$as_me: error:
19918 Could not execute a simple test program.  This may be a problem
19919 related to locating shared libraries.  Check the file 'config.log'
19920 for the exact reason." >&2;}
19921    { (exit 1); exit 1; }; }
19922 fi
19923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19924 fi
19925
19926
19927
19928 # --------------------
19929 # Run tests below here
19930 # --------------------
19931
19932 # Force use of our snprintf if system's doesn't do arg control
19933 # See comment above at snprintf test for details.
19934 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19935   { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19936 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19937 if test "${pgac_cv_printf_arg_control+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   if test "$cross_compiling" = yes; then
19941   pgac_cv_printf_arg_control=cross
19942 else
19943   cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h.  */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h.  */
19949 #include <stdio.h>
19950 #include <string.h>
19951
19952 int main()
19953 {
19954   char buf[100];
19955
19956   /* can it swap arguments? */
19957   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19958   if (strcmp(buf, "4 3") != 0)
19959     return 1;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_link") 2>&5
19971   ac_status=$?
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19974   { (case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_try") 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; }; then
19983   pgac_cv_printf_arg_control=yes
19984 else
19985   echo "$as_me: program exited with status $ac_status" >&5
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ( exit $ac_status )
19990 pgac_cv_printf_arg_control=no
19991 fi
19992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19993 fi
19994
19995
19996
19997 fi
19998 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19999 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20000
20001   if test $pgac_cv_printf_arg_control != yes ; then
20002     pgac_need_repl_snprintf=yes
20003   fi
20004 fi
20005
20006
20007
20008 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20009 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20010 if test "${pgac_cv_type_long_int_64+set}" = set; then
20011   echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013   if test "$cross_compiling" = yes; then
20014   # If cross-compiling, check the size reported by the compiler and
20015 # trust that the arithmetic works.
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h.  */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h.  */
20022
20023 int
20024 main ()
20025 {
20026 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20027 test_array [0] = 0
20028
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037   *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040   (eval "$ac_compile") 2>conftest.er1
20041   ac_status=$?
20042   grep -v '^ *+' conftest.er1 >conftest.err
20043   rm -f conftest.er1
20044   cat conftest.err >&5
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); } && {
20047          test -z "$ac_c_werror_flag" ||
20048          test ! -s conftest.err
20049        } && test -s conftest.$ac_objext; then
20050   pgac_cv_type_long_int_64=yes
20051 else
20052   echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055         pgac_cv_type_long_int_64=no
20056 fi
20057
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 else
20060   cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 typedef long int ac_int64;
20067
20068 /*
20069  * These are globals to discourage the compiler from folding all the
20070  * arithmetic tests down to compile-time constants.
20071  */
20072 ac_int64 a = 20000001;
20073 ac_int64 b = 40000005;
20074
20075 int does_int64_work()
20076 {
20077   ac_int64 c,d;
20078
20079   if (sizeof(ac_int64) != 8)
20080     return 0;                   /* definitely not the right size */
20081
20082   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20083   c = a * b;
20084   d = (c + b) / b;
20085   if (d != a+1)
20086     return 0;
20087   return 1;
20088 }
20089 main() {
20090   exit(! does_int64_work());
20091 }
20092 _ACEOF
20093 rm -f conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_link") 2>&5
20101   ac_status=$?
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20104   { (case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_try") 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; }; then
20113   pgac_cv_type_long_int_64=yes
20114 else
20115   echo "$as_me: program exited with status $ac_status" >&5
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ( exit $ac_status )
20120 pgac_cv_type_long_int_64=no
20121 fi
20122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20123 fi
20124
20125
20126 fi
20127 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20128 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20129
20130 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20131 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20132
20133 cat >>confdefs.h <<\_ACEOF
20134 #define HAVE_LONG_INT_64 1
20135 _ACEOF
20136
20137 fi
20138
20139
20140 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20141   { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20142 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20143 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   if test "$cross_compiling" = yes; then
20147   # If cross-compiling, check the size reported by the compiler and
20148 # trust that the arithmetic works.
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155
20156 int
20157 main ()
20158 {
20159 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20160 test_array [0] = 0
20161
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (ac_try="$ac_compile"
20168 case "(($ac_try" in
20169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170   *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173   (eval "$ac_compile") 2>conftest.er1
20174   ac_status=$?
20175   grep -v '^ *+' conftest.er1 >conftest.err
20176   rm -f conftest.er1
20177   cat conftest.err >&5
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); } && {
20180          test -z "$ac_c_werror_flag" ||
20181          test ! -s conftest.err
20182        } && test -s conftest.$ac_objext; then
20183   pgac_cv_type_long_long_int_64=yes
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188         pgac_cv_type_long_long_int_64=no
20189 fi
20190
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 else
20193   cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 typedef long long int ac_int64;
20200
20201 /*
20202  * These are globals to discourage the compiler from folding all the
20203  * arithmetic tests down to compile-time constants.
20204  */
20205 ac_int64 a = 20000001;
20206 ac_int64 b = 40000005;
20207
20208 int does_int64_work()
20209 {
20210   ac_int64 c,d;
20211
20212   if (sizeof(ac_int64) != 8)
20213     return 0;                   /* definitely not the right size */
20214
20215   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20216   c = a * b;
20217   d = (c + b) / b;
20218   if (d != a+1)
20219     return 0;
20220   return 1;
20221 }
20222 main() {
20223   exit(! does_int64_work());
20224 }
20225 _ACEOF
20226 rm -f conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_link") 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20237   { (case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_try") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   pgac_cv_type_long_long_int_64=yes
20247 else
20248   echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ( exit $ac_status )
20253 pgac_cv_type_long_long_int_64=no
20254 fi
20255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20256 fi
20257
20258
20259 fi
20260 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20261 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20262
20263 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20264 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20265
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_LONG_LONG_INT_64 1
20268 _ACEOF
20269
20270 fi
20271
20272 fi
20273
20274
20275
20276 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20277   cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283
20284 #define INT64CONST(x)  x##LL
20285 long long int foo = INT64CONST(0x1234567890123456);
20286
20287 int
20288 main ()
20289 {
20290
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext
20296 if { (ac_try="$ac_compile"
20297 case "(($ac_try" in
20298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299   *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302   (eval "$ac_compile") 2>conftest.er1
20303   ac_status=$?
20304   grep -v '^ *+' conftest.er1 >conftest.err
20305   rm -f conftest.er1
20306   cat conftest.err >&5
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } && {
20309          test -z "$ac_c_werror_flag" ||
20310          test ! -s conftest.err
20311        } && test -s conftest.$ac_objext; then
20312
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_LL_CONSTANTS 1
20315 _ACEOF
20316
20317 else
20318   echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321
20322 fi
20323
20324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325 fi
20326
20327
20328 # If we found "long int" is 64 bits, assume snprintf handles it.  If
20329 # we found we need to use "long long int", better check.  We cope with
20330 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
20331 # work, fall back to our own snprintf emulation (which we know uses %lld).
20332
20333 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20334   if test $pgac_need_repl_snprintf = no; then
20335     { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20336 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20337 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20338   echo $ECHO_N "(cached) $ECHO_C" >&6
20339 else
20340   for pgac_format in '%lld' '%qd' '%I64d'; do
20341 if test "$cross_compiling" = yes; then
20342   pgac_cv_snprintf_long_long_int_format=cross; break
20343 else
20344   cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 #include <stdio.h>
20351 typedef long long int ac_int64;
20352 #define INT64_FORMAT "$pgac_format"
20353
20354 ac_int64 a = 20000001;
20355 ac_int64 b = 40000005;
20356
20357 int does_int64_snprintf_work()
20358 {
20359   ac_int64 c;
20360   char buf[100];
20361
20362   if (sizeof(ac_int64) != 8)
20363     return 0;                   /* doesn't look like the right size */
20364
20365   c = a * b;
20366   snprintf(buf, 100, INT64_FORMAT, c);
20367   if (strcmp(buf, "800000140000005") != 0)
20368     return 0;                   /* either multiply or snprintf is busted */
20369   return 1;
20370 }
20371 main() {
20372   exit(! does_int64_snprintf_work());
20373 }
20374 _ACEOF
20375 rm -f conftest$ac_exeext
20376 if { (ac_try="$ac_link"
20377 case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_link") 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20386   { (case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_try") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; }; then
20395   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20396 else
20397   echo "$as_me: program exited with status $ac_status" >&5
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 fi
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 fi
20404
20405
20406 done
20407 fi
20408
20409 LONG_LONG_INT_FORMAT=''
20410
20411 case $pgac_cv_snprintf_long_long_int_format in
20412   cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20413 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20414   ?*)    { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20415 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20416          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20417   *)     { echo "$as_me:$LINENO: result: none" >&5
20418 echo "${ECHO_T}none" >&6; };;
20419 esac
20420     if test "$LONG_LONG_INT_FORMAT" = ""; then
20421       # Force usage of our own snprintf, since system snprintf is broken
20422       pgac_need_repl_snprintf=yes
20423       LONG_LONG_INT_FORMAT='%lld'
20424     fi
20425   else
20426     # Here if we previously decided we needed to use our own snprintf
20427     LONG_LONG_INT_FORMAT='%lld'
20428   fi
20429   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20430   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20431   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20432 else
20433   # Here if we are not using 'long long int' at all
20434   INT64_FORMAT='"%ld"'
20435   UINT64_FORMAT='"%lu"'
20436 fi
20437
20438
20439 cat >>confdefs.h <<_ACEOF
20440 #define INT64_FORMAT $INT64_FORMAT
20441 _ACEOF
20442
20443
20444
20445 cat >>confdefs.h <<_ACEOF
20446 #define UINT64_FORMAT $UINT64_FORMAT
20447 _ACEOF
20448
20449
20450 # Now we have checked all the reasons to replace snprintf
20451 if test $pgac_need_repl_snprintf = yes; then
20452
20453 cat >>confdefs.h <<\_ACEOF
20454 #define USE_REPL_SNPRINTF 1
20455 _ACEOF
20456
20457   case " $LIBOBJS " in
20458   *" snprintf.$ac_objext "* ) ;;
20459   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20460  ;;
20461 esac
20462
20463 fi
20464
20465 # Need a #define for the size of Datum (unsigned long)
20466 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20467 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20468 if test "${ac_cv_type_unsigned_long+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471   cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h.  */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h.  */
20477 $ac_includes_default
20478 typedef unsigned long ac__type_new_;
20479 int
20480 main ()
20481 {
20482 if ((ac__type_new_ *) 0)
20483   return 0;
20484 if (sizeof (ac__type_new_))
20485   return 0;
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_compile") 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } && {
20504          test -z "$ac_c_werror_flag" ||
20505          test ! -s conftest.err
20506        } && test -s conftest.$ac_objext; then
20507   ac_cv_type_unsigned_long=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_cv_type_unsigned_long=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 fi
20517 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20518 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20519
20520 # The cast to long int works around a bug in the HP C Compiler
20521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20523 # This bug is HP SR number 8606223364.
20524 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20525 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20526 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   if test "$cross_compiling" = yes; then
20530   # Depending upon the size, compute the lo and hi bounds.
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538    typedef unsigned long ac__type_sizeof_;
20539 int
20540 main ()
20541 {
20542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20543 test_array [0] = 0
20544
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext
20550 if { (ac_try="$ac_compile"
20551 case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556   (eval "$ac_compile") 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } && {
20563          test -z "$ac_c_werror_flag" ||
20564          test ! -s conftest.err
20565        } && test -s conftest.$ac_objext; then
20566   ac_lo=0 ac_mid=0
20567   while :; do
20568     cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 $ac_includes_default
20575    typedef unsigned long ac__type_sizeof_;
20576 int
20577 main ()
20578 {
20579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20580 test_array [0] = 0
20581
20582   ;
20583   return 0;
20584 }
20585 _ACEOF
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590   *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593   (eval "$ac_compile") 2>conftest.er1
20594   ac_status=$?
20595   grep -v '^ *+' conftest.er1 >conftest.err
20596   rm -f conftest.er1
20597   cat conftest.err >&5
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); } && {
20600          test -z "$ac_c_werror_flag" ||
20601          test ! -s conftest.err
20602        } && test -s conftest.$ac_objext; then
20603   ac_hi=$ac_mid; break
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608         ac_lo=`expr $ac_mid + 1`
20609                         if test $ac_lo -le $ac_mid; then
20610                           ac_lo= ac_hi=
20611                           break
20612                         fi
20613                         ac_mid=`expr 2 '*' $ac_mid + 1`
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617   done
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622         cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 $ac_includes_default
20629    typedef unsigned long ac__type_sizeof_;
20630 int
20631 main ()
20632 {
20633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20634 test_array [0] = 0
20635
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_compile") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } && {
20654          test -z "$ac_c_werror_flag" ||
20655          test ! -s conftest.err
20656        } && test -s conftest.$ac_objext; then
20657   ac_hi=-1 ac_mid=-1
20658   while :; do
20659     cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h.  */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h.  */
20665 $ac_includes_default
20666    typedef unsigned long ac__type_sizeof_;
20667 int
20668 main ()
20669 {
20670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20671 test_array [0] = 0
20672
20673   ;
20674   return 0;
20675 }
20676 _ACEOF
20677 rm -f conftest.$ac_objext
20678 if { (ac_try="$ac_compile"
20679 case "(($ac_try" in
20680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681   *) ac_try_echo=$ac_try;;
20682 esac
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684   (eval "$ac_compile") 2>conftest.er1
20685   ac_status=$?
20686   grep -v '^ *+' conftest.er1 >conftest.err
20687   rm -f conftest.er1
20688   cat conftest.err >&5
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); } && {
20691          test -z "$ac_c_werror_flag" ||
20692          test ! -s conftest.err
20693        } && test -s conftest.$ac_objext; then
20694   ac_lo=$ac_mid; break
20695 else
20696   echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20698
20699         ac_hi=`expr '(' $ac_mid ')' - 1`
20700                         if test $ac_mid -le $ac_hi; then
20701                           ac_lo= ac_hi=
20702                           break
20703                         fi
20704                         ac_mid=`expr 2 '*' $ac_mid`
20705 fi
20706
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708   done
20709 else
20710   echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713         ac_lo= ac_hi=
20714 fi
20715
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 fi
20718
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 # Binary search between lo and hi bounds.
20721 while test "x$ac_lo" != "x$ac_hi"; do
20722   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20723   cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 $ac_includes_default
20730    typedef unsigned long ac__type_sizeof_;
20731 int
20732 main ()
20733 {
20734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20735 test_array [0] = 0
20736
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_compile") 2>conftest.er1
20749   ac_status=$?
20750   grep -v '^ *+' conftest.er1 >conftest.err
20751   rm -f conftest.er1
20752   cat conftest.err >&5
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } && {
20755          test -z "$ac_c_werror_flag" ||
20756          test ! -s conftest.err
20757        } && test -s conftest.$ac_objext; then
20758   ac_hi=$ac_mid
20759 else
20760   echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763         ac_lo=`expr '(' $ac_mid ')' + 1`
20764 fi
20765
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 done
20768 case $ac_lo in
20769 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20770 '') if test "$ac_cv_type_unsigned_long" = yes; then
20771      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20772 See \`config.log' for more details." >&5
20773 echo "$as_me: error: cannot compute sizeof (unsigned long)
20774 See \`config.log' for more details." >&2;}
20775    { (exit 77); exit 77; }; }
20776    else
20777      ac_cv_sizeof_unsigned_long=0
20778    fi ;;
20779 esac
20780 else
20781   cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 $ac_includes_default
20788    typedef unsigned long ac__type_sizeof_;
20789 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20790 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20791 #include <stdio.h>
20792 #include <stdlib.h>
20793 int
20794 main ()
20795 {
20796
20797   FILE *f = fopen ("conftest.val", "w");
20798   if (! f)
20799     return 1;
20800   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20801     {
20802       long int i = longval ();
20803       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20804         return 1;
20805       fprintf (f, "%ld\n", i);
20806     }
20807   else
20808     {
20809       unsigned long int i = ulongval ();
20810       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20811         return 1;
20812       fprintf (f, "%lu\n", i);
20813     }
20814   return ferror (f) || fclose (f) != 0;
20815
20816   ;
20817   return 0;
20818 }
20819 _ACEOF
20820 rm -f conftest$ac_exeext
20821 if { (ac_try="$ac_link"
20822 case "(($ac_try" in
20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824   *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827   (eval "$ac_link") 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20831   { (case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_try") 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; }; then
20840   ac_cv_sizeof_unsigned_long=`cat conftest.val`
20841 else
20842   echo "$as_me: program exited with status $ac_status" >&5
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ( exit $ac_status )
20847 if test "$ac_cv_type_unsigned_long" = yes; then
20848      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20849 See \`config.log' for more details." >&5
20850 echo "$as_me: error: cannot compute sizeof (unsigned long)
20851 See \`config.log' for more details." >&2;}
20852    { (exit 77); exit 77; }; }
20853    else
20854      ac_cv_sizeof_unsigned_long=0
20855    fi
20856 fi
20857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20858 fi
20859 rm -f conftest.val
20860 fi
20861 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20862 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20863
20864
20865
20866 cat >>confdefs.h <<_ACEOF
20867 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20868 _ACEOF
20869
20870
20871
20872 # And one for the size of size_t (enables tweaks for > 32bit address space)
20873 { echo "$as_me:$LINENO: checking for size_t" >&5
20874 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20875 if test "${ac_cv_type_size_t+set}" = set; then
20876   echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878   cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884 $ac_includes_default
20885 typedef size_t ac__type_new_;
20886 int
20887 main ()
20888 {
20889 if ((ac__type_new_ *) 0)
20890   return 0;
20891 if (sizeof (ac__type_new_))
20892   return 0;
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 rm -f conftest.$ac_objext
20898 if { (ac_try="$ac_compile"
20899 case "(($ac_try" in
20900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901   *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904   (eval "$ac_compile") 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } && {
20911          test -z "$ac_c_werror_flag" ||
20912          test ! -s conftest.err
20913        } && test -s conftest.$ac_objext; then
20914   ac_cv_type_size_t=yes
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919         ac_cv_type_size_t=no
20920 fi
20921
20922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20923 fi
20924 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20925 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20926
20927 # The cast to long int works around a bug in the HP C Compiler
20928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20930 # This bug is HP SR number 8606223364.
20931 { echo "$as_me:$LINENO: checking size of size_t" >&5
20932 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20933 if test "${ac_cv_sizeof_size_t+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936   if test "$cross_compiling" = yes; then
20937   # Depending upon the size, compute the lo and hi bounds.
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 $ac_includes_default
20945    typedef size_t ac__type_sizeof_;
20946 int
20947 main ()
20948 {
20949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20950 test_array [0] = 0
20951
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960   *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963   (eval "$ac_compile") 2>conftest.er1
20964   ac_status=$?
20965   grep -v '^ *+' conftest.er1 >conftest.err
20966   rm -f conftest.er1
20967   cat conftest.err >&5
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } && {
20970          test -z "$ac_c_werror_flag" ||
20971          test ! -s conftest.err
20972        } && test -s conftest.$ac_objext; then
20973   ac_lo=0 ac_mid=0
20974   while :; do
20975     cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 $ac_includes_default
20982    typedef size_t ac__type_sizeof_;
20983 int
20984 main ()
20985 {
20986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20987 test_array [0] = 0
20988
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_compile") 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } && {
21007          test -z "$ac_c_werror_flag" ||
21008          test ! -s conftest.err
21009        } && test -s conftest.$ac_objext; then
21010   ac_hi=$ac_mid; break
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015         ac_lo=`expr $ac_mid + 1`
21016                         if test $ac_lo -le $ac_mid; then
21017                           ac_lo= ac_hi=
21018                           break
21019                         fi
21020                         ac_mid=`expr 2 '*' $ac_mid + 1`
21021 fi
21022
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024   done
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h.  */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h.  */
21035 $ac_includes_default
21036    typedef size_t ac__type_sizeof_;
21037 int
21038 main ()
21039 {
21040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21041 test_array [0] = 0
21042
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_compile") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && {
21061          test -z "$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        } && test -s conftest.$ac_objext; then
21064   ac_hi=-1 ac_mid=-1
21065   while :; do
21066     cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h.  */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h.  */
21072 $ac_includes_default
21073    typedef size_t ac__type_sizeof_;
21074 int
21075 main ()
21076 {
21077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21078 test_array [0] = 0
21079
21080   ;
21081   return 0;
21082 }
21083 _ACEOF
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091   (eval "$ac_compile") 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } && {
21098          test -z "$ac_c_werror_flag" ||
21099          test ! -s conftest.err
21100        } && test -s conftest.$ac_objext; then
21101   ac_lo=$ac_mid; break
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_hi=`expr '(' $ac_mid ')' - 1`
21107                         if test $ac_mid -le $ac_hi; then
21108                           ac_lo= ac_hi=
21109                           break
21110                         fi
21111                         ac_mid=`expr 2 '*' $ac_mid`
21112 fi
21113
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115   done
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120         ac_lo= ac_hi=
21121 fi
21122
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 fi
21125
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 # Binary search between lo and hi bounds.
21128 while test "x$ac_lo" != "x$ac_hi"; do
21129   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21130   cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h.  */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h.  */
21136 $ac_includes_default
21137    typedef size_t ac__type_sizeof_;
21138 int
21139 main ()
21140 {
21141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21142 test_array [0] = 0
21143
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_compile") 2>conftest.er1
21156   ac_status=$?
21157   grep -v '^ *+' conftest.er1 >conftest.err
21158   rm -f conftest.er1
21159   cat conftest.err >&5
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); } && {
21162          test -z "$ac_c_werror_flag" ||
21163          test ! -s conftest.err
21164        } && test -s conftest.$ac_objext; then
21165   ac_hi=$ac_mid
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170         ac_lo=`expr '(' $ac_mid ')' + 1`
21171 fi
21172
21173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21174 done
21175 case $ac_lo in
21176 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21177 '') if test "$ac_cv_type_size_t" = yes; then
21178      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21179 See \`config.log' for more details." >&5
21180 echo "$as_me: error: cannot compute sizeof (size_t)
21181 See \`config.log' for more details." >&2;}
21182    { (exit 77); exit 77; }; }
21183    else
21184      ac_cv_sizeof_size_t=0
21185    fi ;;
21186 esac
21187 else
21188   cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h.  */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h.  */
21194 $ac_includes_default
21195    typedef size_t ac__type_sizeof_;
21196 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21197 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21198 #include <stdio.h>
21199 #include <stdlib.h>
21200 int
21201 main ()
21202 {
21203
21204   FILE *f = fopen ("conftest.val", "w");
21205   if (! f)
21206     return 1;
21207   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21208     {
21209       long int i = longval ();
21210       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21211         return 1;
21212       fprintf (f, "%ld\n", i);
21213     }
21214   else
21215     {
21216       unsigned long int i = ulongval ();
21217       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21218         return 1;
21219       fprintf (f, "%lu\n", i);
21220     }
21221   return ferror (f) || fclose (f) != 0;
21222
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 rm -f conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_link") 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21238   { (case "(($ac_try" in
21239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240   *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243   (eval "$ac_try") 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; }; then
21247   ac_cv_sizeof_size_t=`cat conftest.val`
21248 else
21249   echo "$as_me: program exited with status $ac_status" >&5
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 ( exit $ac_status )
21254 if test "$ac_cv_type_size_t" = yes; then
21255      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21256 See \`config.log' for more details." >&5
21257 echo "$as_me: error: cannot compute sizeof (size_t)
21258 See \`config.log' for more details." >&2;}
21259    { (exit 77); exit 77; }; }
21260    else
21261      ac_cv_sizeof_size_t=0
21262    fi
21263 fi
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21265 fi
21266 rm -f conftest.val
21267 fi
21268 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21269 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21270
21271
21272
21273 cat >>confdefs.h <<_ACEOF
21274 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21275 _ACEOF
21276
21277
21278
21279 # Decide whether float4 is passed by value: user-selectable, enabled by default
21280 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21281 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21282
21283 pgac_args="$pgac_args enable_float4_byval"
21284
21285 # Check whether --enable-float4-byval was given.
21286 if test "${enable_float4_byval+set}" = set; then
21287   enableval=$enable_float4_byval;
21288   case $enableval in
21289     yes)
21290
21291 cat >>confdefs.h <<\_ACEOF
21292 #define USE_FLOAT4_BYVAL 1
21293 _ACEOF
21294
21295                float4passbyval=true
21296       ;;
21297     no)
21298       float4passbyval=false
21299       ;;
21300     *)
21301       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21302 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21303    { (exit 1); exit 1; }; }
21304       ;;
21305   esac
21306
21307 else
21308   enable_float4_byval=yes
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define USE_FLOAT4_BYVAL 1
21312 _ACEOF
21313
21314                float4passbyval=true
21315 fi
21316
21317
21318 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21319 echo "${ECHO_T}$enable_float4_byval" >&6; }
21320
21321 cat >>confdefs.h <<_ACEOF
21322 #define FLOAT4PASSBYVAL $float4passbyval
21323 _ACEOF
21324
21325
21326 # Decide whether float8 is passed by value.
21327 # Note: this setting also controls int8 and related types such as timestamp.
21328 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21329 # If not, trying to select it is an error.
21330 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21331 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21332 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21333
21334 pgac_args="$pgac_args enable_float8_byval"
21335
21336 # Check whether --enable-float8-byval was given.
21337 if test "${enable_float8_byval+set}" = set; then
21338   enableval=$enable_float8_byval;
21339   case $enableval in
21340     yes)
21341       :
21342       ;;
21343     no)
21344       :
21345       ;;
21346     *)
21347       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21348 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21349    { (exit 1); exit 1; }; }
21350       ;;
21351   esac
21352
21353 else
21354   enable_float8_byval=yes
21355
21356 fi
21357
21358
21359 else
21360
21361 pgac_args="$pgac_args enable_float8_byval"
21362
21363 # Check whether --enable-float8-byval was given.
21364 if test "${enable_float8_byval+set}" = set; then
21365   enableval=$enable_float8_byval;
21366   case $enableval in
21367     yes)
21368       :
21369       ;;
21370     no)
21371       :
21372       ;;
21373     *)
21374       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21375 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21376    { (exit 1); exit 1; }; }
21377       ;;
21378   esac
21379
21380 else
21381   enable_float8_byval=no
21382
21383 fi
21384
21385
21386   if test "$enable_float8_byval" = yes ; then
21387     { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21388 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21389    { (exit 1); exit 1; }; }
21390   fi
21391 fi
21392 if test "$enable_float8_byval" = yes ; then
21393
21394 cat >>confdefs.h <<\_ACEOF
21395 #define USE_FLOAT8_BYVAL 1
21396 _ACEOF
21397
21398   float8passbyval=true
21399 else
21400   float8passbyval=false
21401 fi
21402 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21403 echo "${ECHO_T}$enable_float8_byval" >&6; }
21404
21405 cat >>confdefs.h <<_ACEOF
21406 #define FLOAT8PASSBYVAL $float8passbyval
21407 _ACEOF
21408
21409
21410 # Determine memory alignment requirements for the basic C data types.
21411
21412 { echo "$as_me:$LINENO: checking for short" >&5
21413 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21414 if test "${ac_cv_type_short+set}" = set; then
21415   echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 $ac_includes_default
21424 typedef short ac__type_new_;
21425 int
21426 main ()
21427 {
21428 if ((ac__type_new_ *) 0)
21429   return 0;
21430 if (sizeof (ac__type_new_))
21431   return 0;
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_compile") 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } && {
21450          test -z "$ac_c_werror_flag" ||
21451          test ! -s conftest.err
21452        } && test -s conftest.$ac_objext; then
21453   ac_cv_type_short=yes
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458         ac_cv_type_short=no
21459 fi
21460
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 fi
21463 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21464 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21465
21466 # The cast to long int works around a bug in the HP C Compiler,
21467 # see AC_CHECK_SIZEOF for more information.
21468 { echo "$as_me:$LINENO: checking alignment of short" >&5
21469 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21470 if test "${ac_cv_alignof_short+set}" = set; then
21471   echo $ECHO_N "(cached) $ECHO_C" >&6
21472 else
21473   if test "$cross_compiling" = yes; then
21474   # Depending upon the size, compute the lo and hi bounds.
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481 $ac_includes_default
21482 #ifndef offsetof
21483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21484 #endif
21485 typedef struct { char x; short y; } ac__type_alignof_;
21486 int
21487 main ()
21488 {
21489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21490 test_array [0] = 0
21491
21492   ;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext
21497 if { (ac_try="$ac_compile"
21498 case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503   (eval "$ac_compile") 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } && {
21510          test -z "$ac_c_werror_flag" ||
21511          test ! -s conftest.err
21512        } && test -s conftest.$ac_objext; then
21513   ac_lo=0 ac_mid=0
21514   while :; do
21515     cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 $ac_includes_default
21522 #ifndef offsetof
21523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21524 #endif
21525 typedef struct { char x; short y; } ac__type_alignof_;
21526 int
21527 main ()
21528 {
21529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21530 test_array [0] = 0
21531
21532   ;
21533   return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540   *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543   (eval "$ac_compile") 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } && {
21550          test -z "$ac_c_werror_flag" ||
21551          test ! -s conftest.err
21552        } && test -s conftest.$ac_objext; then
21553   ac_hi=$ac_mid; break
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558         ac_lo=`expr $ac_mid + 1`
21559                         if test $ac_lo -le $ac_mid; then
21560                           ac_lo= ac_hi=
21561                           break
21562                         fi
21563                         ac_mid=`expr 2 '*' $ac_mid + 1`
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567   done
21568 else
21569   echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572         cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h.  */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h.  */
21578 $ac_includes_default
21579 #ifndef offsetof
21580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21581 #endif
21582 typedef struct { char x; short y; } ac__type_alignof_;
21583 int
21584 main ()
21585 {
21586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21587 test_array [0] = 0
21588
21589   ;
21590   return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_compile") 2>conftest.er1
21601   ac_status=$?
21602   grep -v '^ *+' conftest.er1 >conftest.err
21603   rm -f conftest.er1
21604   cat conftest.err >&5
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } && {
21607          test -z "$ac_c_werror_flag" ||
21608          test ! -s conftest.err
21609        } && test -s conftest.$ac_objext; then
21610   ac_hi=-1 ac_mid=-1
21611   while :; do
21612     cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 $ac_includes_default
21619 #ifndef offsetof
21620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21621 #endif
21622 typedef struct { char x; short y; } ac__type_alignof_;
21623 int
21624 main ()
21625 {
21626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21627 test_array [0] = 0
21628
21629   ;
21630   return 0;
21631 }
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637   *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640   (eval "$ac_compile") 2>conftest.er1
21641   ac_status=$?
21642   grep -v '^ *+' conftest.er1 >conftest.err
21643   rm -f conftest.er1
21644   cat conftest.err >&5
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); } && {
21647          test -z "$ac_c_werror_flag" ||
21648          test ! -s conftest.err
21649        } && test -s conftest.$ac_objext; then
21650   ac_lo=$ac_mid; break
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655         ac_hi=`expr '(' $ac_mid ')' - 1`
21656                         if test $ac_mid -le $ac_hi; then
21657                           ac_lo= ac_hi=
21658                           break
21659                         fi
21660                         ac_mid=`expr 2 '*' $ac_mid`
21661 fi
21662
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664   done
21665 else
21666   echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669         ac_lo= ac_hi=
21670 fi
21671
21672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673 fi
21674
21675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 # Binary search between lo and hi bounds.
21677 while test "x$ac_lo" != "x$ac_hi"; do
21678   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21679   cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685 $ac_includes_default
21686 #ifndef offsetof
21687 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21688 #endif
21689 typedef struct { char x; short y; } ac__type_alignof_;
21690 int
21691 main ()
21692 {
21693 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21694 test_array [0] = 0
21695
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707   (eval "$ac_compile") 2>conftest.er1
21708   ac_status=$?
21709   grep -v '^ *+' conftest.er1 >conftest.err
21710   rm -f conftest.er1
21711   cat conftest.err >&5
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } && {
21714          test -z "$ac_c_werror_flag" ||
21715          test ! -s conftest.err
21716        } && test -s conftest.$ac_objext; then
21717   ac_hi=$ac_mid
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         ac_lo=`expr '(' $ac_mid ')' + 1`
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 done
21727 case $ac_lo in
21728 ?*) ac_cv_alignof_short=$ac_lo;;
21729 '') if test "$ac_cv_type_short" = yes; then
21730      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21731 See \`config.log' for more details." >&5
21732 echo "$as_me: error: cannot compute alignment of short
21733 See \`config.log' for more details." >&2;}
21734    { (exit 77); exit 77; }; }
21735    else
21736      ac_cv_alignof_short=0
21737    fi ;;
21738 esac
21739 else
21740   cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h.  */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h.  */
21746 $ac_includes_default
21747 #ifndef offsetof
21748 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21749 #endif
21750 typedef struct { char x; short y; } ac__type_alignof_;
21751 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21752 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21753 #include <stdio.h>
21754 #include <stdlib.h>
21755 int
21756 main ()
21757 {
21758
21759   FILE *f = fopen ("conftest.val", "w");
21760   if (! f)
21761     return 1;
21762   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21763     {
21764       long int i = longval ();
21765       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21766         return 1;
21767       fprintf (f, "%ld\n", i);
21768     }
21769   else
21770     {
21771       unsigned long int i = ulongval ();
21772       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21773         return 1;
21774       fprintf (f, "%lu\n", i);
21775     }
21776   return ferror (f) || fclose (f) != 0;
21777
21778   ;
21779   return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest$ac_exeext
21783 if { (ac_try="$ac_link"
21784 case "(($ac_try" in
21785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786   *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789   (eval "$ac_link") 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21793   { (case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798   (eval "$ac_try") 2>&5
21799   ac_status=$?
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); }; }; then
21802   ac_cv_alignof_short=`cat conftest.val`
21803 else
21804   echo "$as_me: program exited with status $ac_status" >&5
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808 ( exit $ac_status )
21809 if test "$ac_cv_type_short" = yes; then
21810      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21811 See \`config.log' for more details." >&5
21812 echo "$as_me: error: cannot compute alignment of short
21813 See \`config.log' for more details." >&2;}
21814    { (exit 77); exit 77; }; }
21815    else
21816      ac_cv_alignof_short=0
21817    fi
21818 fi
21819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21820 fi
21821 rm -f conftest.val
21822 fi
21823 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21824 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21825
21826
21827
21828 cat >>confdefs.h <<_ACEOF
21829 #define ALIGNOF_SHORT $ac_cv_alignof_short
21830 _ACEOF
21831
21832
21833 { echo "$as_me:$LINENO: checking for int" >&5
21834 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21835 if test "${ac_cv_type_int+set}" = set; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h.  */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h.  */
21844 $ac_includes_default
21845 typedef int ac__type_new_;
21846 int
21847 main ()
21848 {
21849 if ((ac__type_new_ *) 0)
21850   return 0;
21851 if (sizeof (ac__type_new_))
21852   return 0;
21853   ;
21854   return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861   *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864   (eval "$ac_compile") 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && {
21871          test -z "$ac_c_werror_flag" ||
21872          test ! -s conftest.err
21873        } && test -s conftest.$ac_objext; then
21874   ac_cv_type_int=yes
21875 else
21876   echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21878
21879         ac_cv_type_int=no
21880 fi
21881
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 fi
21884 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21885 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21886
21887 # The cast to long int works around a bug in the HP C Compiler,
21888 # see AC_CHECK_SIZEOF for more information.
21889 { echo "$as_me:$LINENO: checking alignment of int" >&5
21890 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21891 if test "${ac_cv_alignof_int+set}" = set; then
21892   echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894   if test "$cross_compiling" = yes; then
21895   # Depending upon the size, compute the lo and hi bounds.
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 $ac_includes_default
21903 #ifndef offsetof
21904 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21905 #endif
21906 typedef struct { char x; int y; } ac__type_alignof_;
21907 int
21908 main ()
21909 {
21910 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21911 test_array [0] = 0
21912
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_compile") 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } && {
21931          test -z "$ac_c_werror_flag" ||
21932          test ! -s conftest.err
21933        } && test -s conftest.$ac_objext; then
21934   ac_lo=0 ac_mid=0
21935   while :; do
21936     cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 $ac_includes_default
21943 #ifndef offsetof
21944 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21945 #endif
21946 typedef struct { char x; int y; } ac__type_alignof_;
21947 int
21948 main ()
21949 {
21950 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21951 test_array [0] = 0
21952
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_compile") 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } && {
21971          test -z "$ac_c_werror_flag" ||
21972          test ! -s conftest.err
21973        } && test -s conftest.$ac_objext; then
21974   ac_hi=$ac_mid; break
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979         ac_lo=`expr $ac_mid + 1`
21980                         if test $ac_lo -le $ac_mid; then
21981                           ac_lo= ac_hi=
21982                           break
21983                         fi
21984                         ac_mid=`expr 2 '*' $ac_mid + 1`
21985 fi
21986
21987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21988   done
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993         cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 $ac_includes_default
22000 #ifndef offsetof
22001 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22002 #endif
22003 typedef struct { char x; int y; } ac__type_alignof_;
22004 int
22005 main ()
22006 {
22007 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22008 test_array [0] = 0
22009
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_compile") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } && {
22028          test -z "$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        } && test -s conftest.$ac_objext; then
22031   ac_hi=-1 ac_mid=-1
22032   while :; do
22033     cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040 #ifndef offsetof
22041 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22042 #endif
22043 typedef struct { char x; int y; } ac__type_alignof_;
22044 int
22045 main ()
22046 {
22047 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22048 test_array [0] = 0
22049
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_compile") 2>conftest.er1
22062   ac_status=$?
22063   grep -v '^ *+' conftest.er1 >conftest.err
22064   rm -f conftest.er1
22065   cat conftest.err >&5
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } && {
22068          test -z "$ac_c_werror_flag" ||
22069          test ! -s conftest.err
22070        } && test -s conftest.$ac_objext; then
22071   ac_lo=$ac_mid; break
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076         ac_hi=`expr '(' $ac_mid ')' - 1`
22077                         if test $ac_mid -le $ac_hi; then
22078                           ac_lo= ac_hi=
22079                           break
22080                         fi
22081                         ac_mid=`expr 2 '*' $ac_mid`
22082 fi
22083
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085   done
22086 else
22087   echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22089
22090         ac_lo= ac_hi=
22091 fi
22092
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 fi
22095
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 # Binary search between lo and hi bounds.
22098 while test "x$ac_lo" != "x$ac_hi"; do
22099   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22100   cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h.  */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h.  */
22106 $ac_includes_default
22107 #ifndef offsetof
22108 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22109 #endif
22110 typedef struct { char x; int y; } ac__type_alignof_;
22111 int
22112 main ()
22113 {
22114 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22115 test_array [0] = 0
22116
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_compile") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } && {
22135          test -z "$ac_c_werror_flag" ||
22136          test ! -s conftest.err
22137        } && test -s conftest.$ac_objext; then
22138   ac_hi=$ac_mid
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143         ac_lo=`expr '(' $ac_mid ')' + 1`
22144 fi
22145
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 done
22148 case $ac_lo in
22149 ?*) ac_cv_alignof_int=$ac_lo;;
22150 '') if test "$ac_cv_type_int" = yes; then
22151      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22152 See \`config.log' for more details." >&5
22153 echo "$as_me: error: cannot compute alignment of int
22154 See \`config.log' for more details." >&2;}
22155    { (exit 77); exit 77; }; }
22156    else
22157      ac_cv_alignof_int=0
22158    fi ;;
22159 esac
22160 else
22161   cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 $ac_includes_default
22168 #ifndef offsetof
22169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22170 #endif
22171 typedef struct { char x; int y; } ac__type_alignof_;
22172 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22173 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22174 #include <stdio.h>
22175 #include <stdlib.h>
22176 int
22177 main ()
22178 {
22179
22180   FILE *f = fopen ("conftest.val", "w");
22181   if (! f)
22182     return 1;
22183   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22184     {
22185       long int i = longval ();
22186       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22187         return 1;
22188       fprintf (f, "%ld\n", i);
22189     }
22190   else
22191     {
22192       unsigned long int i = ulongval ();
22193       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22194         return 1;
22195       fprintf (f, "%lu\n", i);
22196     }
22197   return ferror (f) || fclose (f) != 0;
22198
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest$ac_exeext
22204 if { (ac_try="$ac_link"
22205 case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_link") 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22214   { (case "(($ac_try" in
22215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216   *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219   (eval "$ac_try") 2>&5
22220   ac_status=$?
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); }; }; then
22223   ac_cv_alignof_int=`cat conftest.val`
22224 else
22225   echo "$as_me: program exited with status $ac_status" >&5
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 ( exit $ac_status )
22230 if test "$ac_cv_type_int" = yes; then
22231      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22232 See \`config.log' for more details." >&5
22233 echo "$as_me: error: cannot compute alignment of int
22234 See \`config.log' for more details." >&2;}
22235    { (exit 77); exit 77; }; }
22236    else
22237      ac_cv_alignof_int=0
22238    fi
22239 fi
22240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 fi
22242 rm -f conftest.val
22243 fi
22244 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22245 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22246
22247
22248
22249 cat >>confdefs.h <<_ACEOF
22250 #define ALIGNOF_INT $ac_cv_alignof_int
22251 _ACEOF
22252
22253
22254 { echo "$as_me:$LINENO: checking for long" >&5
22255 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22256 if test "${ac_cv_type_long+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h.  */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h.  */
22265 $ac_includes_default
22266 typedef long ac__type_new_;
22267 int
22268 main ()
22269 {
22270 if ((ac__type_new_ *) 0)
22271   return 0;
22272 if (sizeof (ac__type_new_))
22273   return 0;
22274   ;
22275   return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest.$ac_objext
22279 if { (ac_try="$ac_compile"
22280 case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285   (eval "$ac_compile") 2>conftest.er1
22286   ac_status=$?
22287   grep -v '^ *+' conftest.er1 >conftest.err
22288   rm -f conftest.er1
22289   cat conftest.err >&5
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); } && {
22292          test -z "$ac_c_werror_flag" ||
22293          test ! -s conftest.err
22294        } && test -s conftest.$ac_objext; then
22295   ac_cv_type_long=yes
22296 else
22297   echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22299
22300         ac_cv_type_long=no
22301 fi
22302
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 fi
22305 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22306 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22307
22308 # The cast to long int works around a bug in the HP C Compiler,
22309 # see AC_CHECK_SIZEOF for more information.
22310 { echo "$as_me:$LINENO: checking alignment of long" >&5
22311 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22312 if test "${ac_cv_alignof_long+set}" = set; then
22313   echo $ECHO_N "(cached) $ECHO_C" >&6
22314 else
22315   if test "$cross_compiling" = yes; then
22316   # Depending upon the size, compute the lo and hi bounds.
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 $ac_includes_default
22324 #ifndef offsetof
22325 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22326 #endif
22327 typedef struct { char x; long y; } ac__type_alignof_;
22328 int
22329 main ()
22330 {
22331 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22332 test_array [0] = 0
22333
22334   ;
22335   return 0;
22336 }
22337 _ACEOF
22338 rm -f conftest.$ac_objext
22339 if { (ac_try="$ac_compile"
22340 case "(($ac_try" in
22341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342   *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345   (eval "$ac_compile") 2>conftest.er1
22346   ac_status=$?
22347   grep -v '^ *+' conftest.er1 >conftest.err
22348   rm -f conftest.er1
22349   cat conftest.err >&5
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); } && {
22352          test -z "$ac_c_werror_flag" ||
22353          test ! -s conftest.err
22354        } && test -s conftest.$ac_objext; then
22355   ac_lo=0 ac_mid=0
22356   while :; do
22357     cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363 $ac_includes_default
22364 #ifndef offsetof
22365 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22366 #endif
22367 typedef struct { char x; long y; } ac__type_alignof_;
22368 int
22369 main ()
22370 {
22371 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22372 test_array [0] = 0
22373
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385   (eval "$ac_compile") 2>conftest.er1
22386   ac_status=$?
22387   grep -v '^ *+' conftest.er1 >conftest.err
22388   rm -f conftest.er1
22389   cat conftest.err >&5
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } && {
22392          test -z "$ac_c_werror_flag" ||
22393          test ! -s conftest.err
22394        } && test -s conftest.$ac_objext; then
22395   ac_hi=$ac_mid; break
22396 else
22397   echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400         ac_lo=`expr $ac_mid + 1`
22401                         if test $ac_lo -le $ac_mid; then
22402                           ac_lo= ac_hi=
22403                           break
22404                         fi
22405                         ac_mid=`expr 2 '*' $ac_mid + 1`
22406 fi
22407
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409   done
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414         cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 $ac_includes_default
22421 #ifndef offsetof
22422 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22423 #endif
22424 typedef struct { char x; long y; } ac__type_alignof_;
22425 int
22426 main ()
22427 {
22428 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22429 test_array [0] = 0
22430
22431   ;
22432   return 0;
22433 }
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439   *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442   (eval "$ac_compile") 2>conftest.er1
22443   ac_status=$?
22444   grep -v '^ *+' conftest.er1 >conftest.err
22445   rm -f conftest.er1
22446   cat conftest.err >&5
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); } && {
22449          test -z "$ac_c_werror_flag" ||
22450          test ! -s conftest.err
22451        } && test -s conftest.$ac_objext; then
22452   ac_hi=-1 ac_mid=-1
22453   while :; do
22454     cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h.  */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h.  */
22460 $ac_includes_default
22461 #ifndef offsetof
22462 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22463 #endif
22464 typedef struct { char x; long y; } ac__type_alignof_;
22465 int
22466 main ()
22467 {
22468 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22469 test_array [0] = 0
22470
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_compile") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } && {
22489          test -z "$ac_c_werror_flag" ||
22490          test ! -s conftest.err
22491        } && test -s conftest.$ac_objext; then
22492   ac_lo=$ac_mid; break
22493 else
22494   echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497         ac_hi=`expr '(' $ac_mid ')' - 1`
22498                         if test $ac_mid -le $ac_hi; then
22499                           ac_lo= ac_hi=
22500                           break
22501                         fi
22502                         ac_mid=`expr 2 '*' $ac_mid`
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506   done
22507 else
22508   echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511         ac_lo= ac_hi=
22512 fi
22513
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 fi
22516
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 # Binary search between lo and hi bounds.
22519 while test "x$ac_lo" != "x$ac_hi"; do
22520   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22521   cat >conftest.$ac_ext <<_ACEOF
22522 /* confdefs.h.  */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h.  */
22527 $ac_includes_default
22528 #ifndef offsetof
22529 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22530 #endif
22531 typedef struct { char x; long y; } ac__type_alignof_;
22532 int
22533 main ()
22534 {
22535 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22536 test_array [0] = 0
22537
22538   ;
22539   return 0;
22540 }
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546   *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549   (eval "$ac_compile") 2>conftest.er1
22550   ac_status=$?
22551   grep -v '^ *+' conftest.er1 >conftest.err
22552   rm -f conftest.er1
22553   cat conftest.err >&5
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } && {
22556          test -z "$ac_c_werror_flag" ||
22557          test ! -s conftest.err
22558        } && test -s conftest.$ac_objext; then
22559   ac_hi=$ac_mid
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564         ac_lo=`expr '(' $ac_mid ')' + 1`
22565 fi
22566
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 done
22569 case $ac_lo in
22570 ?*) ac_cv_alignof_long=$ac_lo;;
22571 '') if test "$ac_cv_type_long" = yes; then
22572      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22573 See \`config.log' for more details." >&5
22574 echo "$as_me: error: cannot compute alignment of long
22575 See \`config.log' for more details." >&2;}
22576    { (exit 77); exit 77; }; }
22577    else
22578      ac_cv_alignof_long=0
22579    fi ;;
22580 esac
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 $ac_includes_default
22589 #ifndef offsetof
22590 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22591 #endif
22592 typedef struct { char x; long y; } ac__type_alignof_;
22593 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22594 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22595 #include <stdio.h>
22596 #include <stdlib.h>
22597 int
22598 main ()
22599 {
22600
22601   FILE *f = fopen ("conftest.val", "w");
22602   if (! f)
22603     return 1;
22604   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22605     {
22606       long int i = longval ();
22607       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22608         return 1;
22609       fprintf (f, "%ld\n", i);
22610     }
22611   else
22612     {
22613       unsigned long int i = ulongval ();
22614       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22615         return 1;
22616       fprintf (f, "%lu\n", i);
22617     }
22618   return ferror (f) || fclose (f) != 0;
22619
22620   ;
22621   return 0;
22622 }
22623 _ACEOF
22624 rm -f conftest$ac_exeext
22625 if { (ac_try="$ac_link"
22626 case "(($ac_try" in
22627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628   *) ac_try_echo=$ac_try;;
22629 esac
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631   (eval "$ac_link") 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22635   { (case "(($ac_try" in
22636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637   *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640   (eval "$ac_try") 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }; then
22644   ac_cv_alignof_long=`cat conftest.val`
22645 else
22646   echo "$as_me: program exited with status $ac_status" >&5
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650 ( exit $ac_status )
22651 if test "$ac_cv_type_long" = yes; then
22652      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22653 See \`config.log' for more details." >&5
22654 echo "$as_me: error: cannot compute alignment of long
22655 See \`config.log' for more details." >&2;}
22656    { (exit 77); exit 77; }; }
22657    else
22658      ac_cv_alignof_long=0
22659    fi
22660 fi
22661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22662 fi
22663 rm -f conftest.val
22664 fi
22665 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22666 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22667
22668
22669
22670 cat >>confdefs.h <<_ACEOF
22671 #define ALIGNOF_LONG $ac_cv_alignof_long
22672 _ACEOF
22673
22674
22675 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22676   { echo "$as_me:$LINENO: checking for long long int" >&5
22677 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22678 if test "${ac_cv_type_long_long_int+set}" = set; then
22679   echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681   cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688 typedef long long int ac__type_new_;
22689 int
22690 main ()
22691 {
22692 if ((ac__type_new_ *) 0)
22693   return 0;
22694 if (sizeof (ac__type_new_))
22695   return 0;
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704   *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707   (eval "$ac_compile") 2>conftest.er1
22708   ac_status=$?
22709   grep -v '^ *+' conftest.er1 >conftest.err
22710   rm -f conftest.er1
22711   cat conftest.err >&5
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } && {
22714          test -z "$ac_c_werror_flag" ||
22715          test ! -s conftest.err
22716        } && test -s conftest.$ac_objext; then
22717   ac_cv_type_long_long_int=yes
22718 else
22719   echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722         ac_cv_type_long_long_int=no
22723 fi
22724
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 fi
22727 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22728 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22729
22730 # The cast to long int works around a bug in the HP C Compiler,
22731 # see AC_CHECK_SIZEOF for more information.
22732 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22733 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22734 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22735   echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737   if test "$cross_compiling" = yes; then
22738   # Depending upon the size, compute the lo and hi bounds.
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745 $ac_includes_default
22746 #ifndef offsetof
22747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22748 #endif
22749 typedef struct { char x; long long int y; } ac__type_alignof_;
22750 int
22751 main ()
22752 {
22753 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22754 test_array [0] = 0
22755
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest.$ac_objext
22761 if { (ac_try="$ac_compile"
22762 case "(($ac_try" in
22763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764   *) ac_try_echo=$ac_try;;
22765 esac
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767   (eval "$ac_compile") 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } && {
22774          test -z "$ac_c_werror_flag" ||
22775          test ! -s conftest.err
22776        } && test -s conftest.$ac_objext; then
22777   ac_lo=0 ac_mid=0
22778   while :; do
22779     cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785 $ac_includes_default
22786 #ifndef offsetof
22787 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22788 #endif
22789 typedef struct { char x; long long int y; } ac__type_alignof_;
22790 int
22791 main ()
22792 {
22793 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22794 test_array [0] = 0
22795
22796   ;
22797   return 0;
22798 }
22799 _ACEOF
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804   *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807   (eval "$ac_compile") 2>conftest.er1
22808   ac_status=$?
22809   grep -v '^ *+' conftest.er1 >conftest.err
22810   rm -f conftest.er1
22811   cat conftest.err >&5
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } && {
22814          test -z "$ac_c_werror_flag" ||
22815          test ! -s conftest.err
22816        } && test -s conftest.$ac_objext; then
22817   ac_hi=$ac_mid; break
22818 else
22819   echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22821
22822         ac_lo=`expr $ac_mid + 1`
22823                         if test $ac_lo -le $ac_mid; then
22824                           ac_lo= ac_hi=
22825                           break
22826                         fi
22827                         ac_mid=`expr 2 '*' $ac_mid + 1`
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831   done
22832 else
22833   echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22835
22836         cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 $ac_includes_default
22843 #ifndef offsetof
22844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22845 #endif
22846 typedef struct { char x; long long int y; } ac__type_alignof_;
22847 int
22848 main ()
22849 {
22850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22851 test_array [0] = 0
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (ac_try="$ac_compile"
22859 case "(($ac_try" in
22860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861   *) ac_try_echo=$ac_try;;
22862 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864   (eval "$ac_compile") 2>conftest.er1
22865   ac_status=$?
22866   grep -v '^ *+' conftest.er1 >conftest.err
22867   rm -f conftest.er1
22868   cat conftest.err >&5
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); } && {
22871          test -z "$ac_c_werror_flag" ||
22872          test ! -s conftest.err
22873        } && test -s conftest.$ac_objext; then
22874   ac_hi=-1 ac_mid=-1
22875   while :; do
22876     cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h.  */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h.  */
22882 $ac_includes_default
22883 #ifndef offsetof
22884 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22885 #endif
22886 typedef struct { char x; long long int y; } ac__type_alignof_;
22887 int
22888 main ()
22889 {
22890 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22891 test_array [0] = 0
22892
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext
22898 if { (ac_try="$ac_compile"
22899 case "(($ac_try" in
22900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901   *) ac_try_echo=$ac_try;;
22902 esac
22903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904   (eval "$ac_compile") 2>conftest.er1
22905   ac_status=$?
22906   grep -v '^ *+' conftest.er1 >conftest.err
22907   rm -f conftest.er1
22908   cat conftest.err >&5
22909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910   (exit $ac_status); } && {
22911          test -z "$ac_c_werror_flag" ||
22912          test ! -s conftest.err
22913        } && test -s conftest.$ac_objext; then
22914   ac_lo=$ac_mid; break
22915 else
22916   echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22918
22919         ac_hi=`expr '(' $ac_mid ')' - 1`
22920                         if test $ac_mid -le $ac_hi; then
22921                           ac_lo= ac_hi=
22922                           break
22923                         fi
22924                         ac_mid=`expr 2 '*' $ac_mid`
22925 fi
22926
22927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928   done
22929 else
22930   echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22932
22933         ac_lo= ac_hi=
22934 fi
22935
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 fi
22938
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 # Binary search between lo and hi bounds.
22941 while test "x$ac_lo" != "x$ac_hi"; do
22942   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22943   cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h.  */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h.  */
22949 $ac_includes_default
22950 #ifndef offsetof
22951 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22952 #endif
22953 typedef struct { char x; long long int y; } ac__type_alignof_;
22954 int
22955 main ()
22956 {
22957 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22958 test_array [0] = 0
22959
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (ac_try="$ac_compile"
22966 case "(($ac_try" in
22967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968   *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971   (eval "$ac_compile") 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } && {
22978          test -z "$ac_c_werror_flag" ||
22979          test ! -s conftest.err
22980        } && test -s conftest.$ac_objext; then
22981   ac_hi=$ac_mid
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986         ac_lo=`expr '(' $ac_mid ')' + 1`
22987 fi
22988
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 done
22991 case $ac_lo in
22992 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22993 '') if test "$ac_cv_type_long_long_int" = yes; then
22994      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22995 See \`config.log' for more details." >&5
22996 echo "$as_me: error: cannot compute alignment of long long int
22997 See \`config.log' for more details." >&2;}
22998    { (exit 77); exit 77; }; }
22999    else
23000      ac_cv_alignof_long_long_int=0
23001    fi ;;
23002 esac
23003 else
23004   cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 $ac_includes_default
23011 #ifndef offsetof
23012 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23013 #endif
23014 typedef struct { char x; long long int y; } ac__type_alignof_;
23015 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23016 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23017 #include <stdio.h>
23018 #include <stdlib.h>
23019 int
23020 main ()
23021 {
23022
23023   FILE *f = fopen ("conftest.val", "w");
23024   if (! f)
23025     return 1;
23026   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23027     {
23028       long int i = longval ();
23029       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23030         return 1;
23031       fprintf (f, "%ld\n", i);
23032     }
23033   else
23034     {
23035       unsigned long int i = ulongval ();
23036       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23037         return 1;
23038       fprintf (f, "%lu\n", i);
23039     }
23040   return ferror (f) || fclose (f) != 0;
23041
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050   *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053   (eval "$ac_link") 2>&5
23054   ac_status=$?
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057   { (case "(($ac_try" in
23058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059   *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062   (eval "$ac_try") 2>&5
23063   ac_status=$?
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); }; }; then
23066   ac_cv_alignof_long_long_int=`cat conftest.val`
23067 else
23068   echo "$as_me: program exited with status $ac_status" >&5
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23071
23072 ( exit $ac_status )
23073 if test "$ac_cv_type_long_long_int" = yes; then
23074      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23075 See \`config.log' for more details." >&5
23076 echo "$as_me: error: cannot compute alignment of long long int
23077 See \`config.log' for more details." >&2;}
23078    { (exit 77); exit 77; }; }
23079    else
23080      ac_cv_alignof_long_long_int=0
23081    fi
23082 fi
23083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23084 fi
23085 rm -f conftest.val
23086 fi
23087 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23088 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23089
23090
23091
23092 cat >>confdefs.h <<_ACEOF
23093 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23094 _ACEOF
23095
23096
23097 fi
23098 { echo "$as_me:$LINENO: checking for double" >&5
23099 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23100 if test "${ac_cv_type_double+set}" = set; then
23101   echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103   cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h.  */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h.  */
23109 $ac_includes_default
23110 typedef double ac__type_new_;
23111 int
23112 main ()
23113 {
23114 if ((ac__type_new_ *) 0)
23115   return 0;
23116 if (sizeof (ac__type_new_))
23117   return 0;
23118   ;
23119   return 0;
23120 }
23121 _ACEOF
23122 rm -f conftest.$ac_objext
23123 if { (ac_try="$ac_compile"
23124 case "(($ac_try" in
23125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126   *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129   (eval "$ac_compile") 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } && {
23136          test -z "$ac_c_werror_flag" ||
23137          test ! -s conftest.err
23138        } && test -s conftest.$ac_objext; then
23139   ac_cv_type_double=yes
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144         ac_cv_type_double=no
23145 fi
23146
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 fi
23149 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23150 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23151
23152 # The cast to long int works around a bug in the HP C Compiler,
23153 # see AC_CHECK_SIZEOF for more information.
23154 { echo "$as_me:$LINENO: checking alignment of double" >&5
23155 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23156 if test "${ac_cv_alignof_double+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   if test "$cross_compiling" = yes; then
23160   # Depending upon the size, compute the lo and hi bounds.
23161 cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167 $ac_includes_default
23168 #ifndef offsetof
23169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23170 #endif
23171 typedef struct { char x; double y; } ac__type_alignof_;
23172 int
23173 main ()
23174 {
23175 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23176 test_array [0] = 0
23177
23178   ;
23179   return 0;
23180 }
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186   *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189   (eval "$ac_compile") 2>conftest.er1
23190   ac_status=$?
23191   grep -v '^ *+' conftest.er1 >conftest.err
23192   rm -f conftest.er1
23193   cat conftest.err >&5
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); } && {
23196          test -z "$ac_c_werror_flag" ||
23197          test ! -s conftest.err
23198        } && test -s conftest.$ac_objext; then
23199   ac_lo=0 ac_mid=0
23200   while :; do
23201     cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207 $ac_includes_default
23208 #ifndef offsetof
23209 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23210 #endif
23211 typedef struct { char x; double y; } ac__type_alignof_;
23212 int
23213 main ()
23214 {
23215 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23216 test_array [0] = 0
23217
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226   *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229   (eval "$ac_compile") 2>conftest.er1
23230   ac_status=$?
23231   grep -v '^ *+' conftest.er1 >conftest.err
23232   rm -f conftest.er1
23233   cat conftest.err >&5
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); } && {
23236          test -z "$ac_c_werror_flag" ||
23237          test ! -s conftest.err
23238        } && test -s conftest.$ac_objext; then
23239   ac_hi=$ac_mid; break
23240 else
23241   echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244         ac_lo=`expr $ac_mid + 1`
23245                         if test $ac_lo -le $ac_mid; then
23246                           ac_lo= ac_hi=
23247                           break
23248                         fi
23249                         ac_mid=`expr 2 '*' $ac_mid + 1`
23250 fi
23251
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253   done
23254 else
23255   echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23257
23258         cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h.  */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h.  */
23264 $ac_includes_default
23265 #ifndef offsetof
23266 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23267 #endif
23268 typedef struct { char x; double y; } ac__type_alignof_;
23269 int
23270 main ()
23271 {
23272 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23273 test_array [0] = 0
23274
23275   ;
23276   return 0;
23277 }
23278 _ACEOF
23279 rm -f conftest.$ac_objext
23280 if { (ac_try="$ac_compile"
23281 case "(($ac_try" in
23282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283   *) ac_try_echo=$ac_try;;
23284 esac
23285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286   (eval "$ac_compile") 2>conftest.er1
23287   ac_status=$?
23288   grep -v '^ *+' conftest.er1 >conftest.err
23289   rm -f conftest.er1
23290   cat conftest.err >&5
23291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292   (exit $ac_status); } && {
23293          test -z "$ac_c_werror_flag" ||
23294          test ! -s conftest.err
23295        } && test -s conftest.$ac_objext; then
23296   ac_hi=-1 ac_mid=-1
23297   while :; do
23298     cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h.  */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h.  */
23304 $ac_includes_default
23305 #ifndef offsetof
23306 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23307 #endif
23308 typedef struct { char x; double y; } ac__type_alignof_;
23309 int
23310 main ()
23311 {
23312 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23313 test_array [0] = 0
23314
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_compile") 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } && {
23333          test -z "$ac_c_werror_flag" ||
23334          test ! -s conftest.err
23335        } && test -s conftest.$ac_objext; then
23336   ac_lo=$ac_mid; break
23337 else
23338   echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341         ac_hi=`expr '(' $ac_mid ')' - 1`
23342                         if test $ac_mid -le $ac_hi; then
23343                           ac_lo= ac_hi=
23344                           break
23345                         fi
23346                         ac_mid=`expr 2 '*' $ac_mid`
23347 fi
23348
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350   done
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355         ac_lo= ac_hi=
23356 fi
23357
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 fi
23360
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 # Binary search between lo and hi bounds.
23363 while test "x$ac_lo" != "x$ac_hi"; do
23364   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23365   cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371 $ac_includes_default
23372 #ifndef offsetof
23373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23374 #endif
23375 typedef struct { char x; double y; } ac__type_alignof_;
23376 int
23377 main ()
23378 {
23379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23380 test_array [0] = 0
23381
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_compile") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && {
23400          test -z "$ac_c_werror_flag" ||
23401          test ! -s conftest.err
23402        } && test -s conftest.$ac_objext; then
23403   ac_hi=$ac_mid
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ac_lo=`expr '(' $ac_mid ')' + 1`
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412 done
23413 case $ac_lo in
23414 ?*) ac_cv_alignof_double=$ac_lo;;
23415 '') if test "$ac_cv_type_double" = yes; then
23416      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23417 See \`config.log' for more details." >&5
23418 echo "$as_me: error: cannot compute alignment of double
23419 See \`config.log' for more details." >&2;}
23420    { (exit 77); exit 77; }; }
23421    else
23422      ac_cv_alignof_double=0
23423    fi ;;
23424 esac
23425 else
23426   cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h.  */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h.  */
23432 $ac_includes_default
23433 #ifndef offsetof
23434 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23435 #endif
23436 typedef struct { char x; double y; } ac__type_alignof_;
23437 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23438 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23439 #include <stdio.h>
23440 #include <stdlib.h>
23441 int
23442 main ()
23443 {
23444
23445   FILE *f = fopen ("conftest.val", "w");
23446   if (! f)
23447     return 1;
23448   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23449     {
23450       long int i = longval ();
23451       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23452         return 1;
23453       fprintf (f, "%ld\n", i);
23454     }
23455   else
23456     {
23457       unsigned long int i = ulongval ();
23458       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23459         return 1;
23460       fprintf (f, "%lu\n", i);
23461     }
23462   return ferror (f) || fclose (f) != 0;
23463
23464   ;
23465   return 0;
23466 }
23467 _ACEOF
23468 rm -f conftest$ac_exeext
23469 if { (ac_try="$ac_link"
23470 case "(($ac_try" in
23471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472   *) ac_try_echo=$ac_try;;
23473 esac
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475   (eval "$ac_link") 2>&5
23476   ac_status=$?
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23479   { (case "(($ac_try" in
23480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481   *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484   (eval "$ac_try") 2>&5
23485   ac_status=$?
23486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); }; }; then
23488   ac_cv_alignof_double=`cat conftest.val`
23489 else
23490   echo "$as_me: program exited with status $ac_status" >&5
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 ( exit $ac_status )
23495 if test "$ac_cv_type_double" = yes; then
23496      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23497 See \`config.log' for more details." >&5
23498 echo "$as_me: error: cannot compute alignment of double
23499 See \`config.log' for more details." >&2;}
23500    { (exit 77); exit 77; }; }
23501    else
23502      ac_cv_alignof_double=0
23503    fi
23504 fi
23505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23506 fi
23507 rm -f conftest.val
23508 fi
23509 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23510 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23511
23512
23513
23514 cat >>confdefs.h <<_ACEOF
23515 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23516 _ACEOF
23517
23518
23519
23520 # Compute maximum alignment of any basic type.
23521 # We assume long's alignment is at least as strong as char, short, or int;
23522 # but we must check long long (if it exists) and double.
23523
23524 MAX_ALIGNOF=$ac_cv_alignof_long
23525 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23526   MAX_ALIGNOF=$ac_cv_alignof_double
23527 fi
23528 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23529   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23530 fi
23531
23532 cat >>confdefs.h <<_ACEOF
23533 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23534 _ACEOF
23535
23536
23537
23538 # Some platforms predefine the types int8, int16, etc.  Only check
23539 # a (hopefully) representative subset.
23540 { echo "$as_me:$LINENO: checking for int8" >&5
23541 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23542 if test "${ac_cv_type_int8+set}" = set; then
23543   echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545   cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h.  */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h.  */
23551 #include <stdio.h>
23552 #ifdef HAVE_SUPPORTDEFS_H
23553 #include <SupportDefs.h>
23554 #endif
23555
23556 typedef int8 ac__type_new_;
23557 int
23558 main ()
23559 {
23560 if ((ac__type_new_ *) 0)
23561   return 0;
23562 if (sizeof (ac__type_new_))
23563   return 0;
23564   ;
23565   return 0;
23566 }
23567 _ACEOF
23568 rm -f conftest.$ac_objext
23569 if { (ac_try="$ac_compile"
23570 case "(($ac_try" in
23571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572   *) ac_try_echo=$ac_try;;
23573 esac
23574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23575   (eval "$ac_compile") 2>conftest.er1
23576   ac_status=$?
23577   grep -v '^ *+' conftest.er1 >conftest.err
23578   rm -f conftest.er1
23579   cat conftest.err >&5
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); } && {
23582          test -z "$ac_c_werror_flag" ||
23583          test ! -s conftest.err
23584        } && test -s conftest.$ac_objext; then
23585   ac_cv_type_int8=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590         ac_cv_type_int8=no
23591 fi
23592
23593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23594 fi
23595 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23596 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23597 if test $ac_cv_type_int8 = yes; then
23598
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_INT8 1
23601 _ACEOF
23602
23603
23604 fi
23605 { echo "$as_me:$LINENO: checking for uint8" >&5
23606 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23607 if test "${ac_cv_type_uint8+set}" = set; then
23608   echo $ECHO_N "(cached) $ECHO_C" >&6
23609 else
23610   cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616 #include <stdio.h>
23617 #ifdef HAVE_SUPPORTDEFS_H
23618 #include <SupportDefs.h>
23619 #endif
23620
23621 typedef uint8 ac__type_new_;
23622 int
23623 main ()
23624 {
23625 if ((ac__type_new_ *) 0)
23626   return 0;
23627 if (sizeof (ac__type_new_))
23628   return 0;
23629   ;
23630   return 0;
23631 }
23632 _ACEOF
23633 rm -f conftest.$ac_objext
23634 if { (ac_try="$ac_compile"
23635 case "(($ac_try" in
23636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637   *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640   (eval "$ac_compile") 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } && {
23647          test -z "$ac_c_werror_flag" ||
23648          test ! -s conftest.err
23649        } && test -s conftest.$ac_objext; then
23650   ac_cv_type_uint8=yes
23651 else
23652   echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23654
23655         ac_cv_type_uint8=no
23656 fi
23657
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23659 fi
23660 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23661 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23662 if test $ac_cv_type_uint8 = yes; then
23663
23664 cat >>confdefs.h <<_ACEOF
23665 #define HAVE_UINT8 1
23666 _ACEOF
23667
23668
23669 fi
23670 { echo "$as_me:$LINENO: checking for int64" >&5
23671 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23672 if test "${ac_cv_type_int64+set}" = set; then
23673   echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675   cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h.  */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h.  */
23681 #include <stdio.h>
23682 #ifdef HAVE_SUPPORTDEFS_H
23683 #include <SupportDefs.h>
23684 #endif
23685
23686 typedef int64 ac__type_new_;
23687 int
23688 main ()
23689 {
23690 if ((ac__type_new_ *) 0)
23691   return 0;
23692 if (sizeof (ac__type_new_))
23693   return 0;
23694   ;
23695   return 0;
23696 }
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_compile") 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } && {
23712          test -z "$ac_c_werror_flag" ||
23713          test ! -s conftest.err
23714        } && test -s conftest.$ac_objext; then
23715   ac_cv_type_int64=yes
23716 else
23717   echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720         ac_cv_type_int64=no
23721 fi
23722
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 fi
23725 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23726 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23727 if test $ac_cv_type_int64 = yes; then
23728
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_INT64 1
23731 _ACEOF
23732
23733
23734 fi
23735 { echo "$as_me:$LINENO: checking for uint64" >&5
23736 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23737 if test "${ac_cv_type_uint64+set}" = set; then
23738   echo $ECHO_N "(cached) $ECHO_C" >&6
23739 else
23740   cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h.  */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h.  */
23746 #include <stdio.h>
23747 #ifdef HAVE_SUPPORTDEFS_H
23748 #include <SupportDefs.h>
23749 #endif
23750
23751 typedef uint64 ac__type_new_;
23752 int
23753 main ()
23754 {
23755 if ((ac__type_new_ *) 0)
23756   return 0;
23757 if (sizeof (ac__type_new_))
23758   return 0;
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 rm -f conftest.$ac_objext
23764 if { (ac_try="$ac_compile"
23765 case "(($ac_try" in
23766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767   *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770   (eval "$ac_compile") 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && {
23777          test -z "$ac_c_werror_flag" ||
23778          test ! -s conftest.err
23779        } && test -s conftest.$ac_objext; then
23780   ac_cv_type_uint64=yes
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785         ac_cv_type_uint64=no
23786 fi
23787
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 fi
23790 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23791 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23792 if test $ac_cv_type_uint64 = yes; then
23793
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_UINT64 1
23796 _ACEOF
23797
23798
23799 fi
23800
23801
23802 # We also check for sig_atomic_t, which *should* be defined per ANSI
23803 # C, but is missing on some old platforms.
23804 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23805 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23806 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23807   echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
23809   cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 #include <signal.h>
23816
23817 typedef sig_atomic_t ac__type_new_;
23818 int
23819 main ()
23820 {
23821 if ((ac__type_new_ *) 0)
23822   return 0;
23823 if (sizeof (ac__type_new_))
23824   return 0;
23825   ;
23826   return 0;
23827 }
23828 _ACEOF
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836   (eval "$ac_compile") 2>conftest.er1
23837   ac_status=$?
23838   grep -v '^ *+' conftest.er1 >conftest.err
23839   rm -f conftest.er1
23840   cat conftest.err >&5
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } && {
23843          test -z "$ac_c_werror_flag" ||
23844          test ! -s conftest.err
23845        } && test -s conftest.$ac_objext; then
23846   ac_cv_type_sig_atomic_t=yes
23847 else
23848   echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23850
23851         ac_cv_type_sig_atomic_t=no
23852 fi
23853
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 fi
23856 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23857 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23858 if test $ac_cv_type_sig_atomic_t = yes; then
23859
23860 cat >>confdefs.h <<_ACEOF
23861 #define HAVE_SIG_ATOMIC_T 1
23862 _ACEOF
23863
23864
23865 fi
23866
23867
23868
23869 # If the user did not disable integer datetimes, check that
23870 # there is a working 64-bit integral type to use.
23871 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23872    test x"$HAVE_LONG_INT_64" = x"no" &&
23873    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23874    test x"$HAVE_INT64" = x"no" ; then
23875   { { echo "$as_me:$LINENO: error:
23876 Integer-based datetime support requires a 64-bit integer type,
23877 but no such type could be found. The --disable-integer-datetimes
23878 configure option can be used to disable integer-based storage
23879 of datetime values." >&5
23880 echo "$as_me: error:
23881 Integer-based datetime support requires a 64-bit integer type,
23882 but no such type could be found. The --disable-integer-datetimes
23883 configure option can be used to disable integer-based storage
23884 of datetime values." >&2;}
23885    { (exit 1); exit 1; }; }
23886 fi
23887
23888
23889 if test "$PORTNAME" != "win32"
23890 then
23891 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23892 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23893 if test "${pgac_cv_func_posix_signals+set}" = set; then
23894   echo $ECHO_N "(cached) $ECHO_C" >&6
23895 else
23896   cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 #include <signal.h>
23903
23904 int
23905 main ()
23906 {
23907 struct sigaction act, oact;
23908 sigemptyset(&act.sa_mask);
23909 act.sa_flags = SA_RESTART;
23910 sigaction(0, &act, &oact);
23911   ;
23912   return 0;
23913 }
23914 _ACEOF
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (ac_try="$ac_link"
23917 case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922   (eval "$ac_link") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } && {
23929          test -z "$ac_c_werror_flag" ||
23930          test ! -s conftest.err
23931        } && test -s conftest$ac_exeext &&
23932        $as_test_x conftest$ac_exeext; then
23933   pgac_cv_func_posix_signals=yes
23934 else
23935   echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938         pgac_cv_func_posix_signals=no
23939 fi
23940
23941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23942       conftest$ac_exeext conftest.$ac_ext
23943 fi
23944 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23945 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23946 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23947
23948 cat >>confdefs.h <<\_ACEOF
23949 #define HAVE_POSIX_SIGNALS
23950 _ACEOF
23951
23952 fi
23953 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23954
23955 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23956   { { echo "$as_me:$LINENO: error:
23957 Thread-safety requires POSIX signals, which are not supported by this
23958 operating system." >&5
23959 echo "$as_me: error:
23960 Thread-safety requires POSIX signals, which are not supported by this
23961 operating system." >&2;}
23962    { (exit 1); exit 1; }; }
23963 fi
23964 fi
23965
23966 if test $ac_cv_func_fseeko = yes; then
23967 # Check whether --enable-largefile was given.
23968 if test "${enable_largefile+set}" = set; then
23969   enableval=$enable_largefile;
23970 fi
23971
23972 if test "$enable_largefile" != no; then
23973
23974   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23975 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23976 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23977   echo $ECHO_N "(cached) $ECHO_C" >&6
23978 else
23979   ac_cv_sys_largefile_CC=no
23980      if test "$GCC" != yes; then
23981        ac_save_CC=$CC
23982        while :; do
23983          # IRIX 6.2 and later do not support large files by default,
23984          # so use the C compiler's -n32 option if that helps.
23985          cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h.  */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h.  */
23991 #include <sys/types.h>
23992  /* Check that off_t can represent 2**63 - 1 correctly.
23993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23994     since some C++ compilers masquerading as C compilers
23995     incorrectly reject 9223372036854775807.  */
23996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23998                        && LARGE_OFF_T % 2147483647 == 1)
23999                       ? 1 : -1];
24000 int
24001 main ()
24002 {
24003
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008          rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012   *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015   (eval "$ac_compile") 2>conftest.er1
24016   ac_status=$?
24017   grep -v '^ *+' conftest.er1 >conftest.err
24018   rm -f conftest.er1
24019   cat conftest.err >&5
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && {
24022          test -z "$ac_c_werror_flag" ||
24023          test ! -s conftest.err
24024        } && test -s conftest.$ac_objext; then
24025   break
24026 else
24027   echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24029
24030
24031 fi
24032
24033 rm -f core conftest.err conftest.$ac_objext
24034          CC="$CC -n32"
24035          rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039   *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042   (eval "$ac_compile") 2>conftest.er1
24043   ac_status=$?
24044   grep -v '^ *+' conftest.er1 >conftest.err
24045   rm -f conftest.er1
24046   cat conftest.err >&5
24047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048   (exit $ac_status); } && {
24049          test -z "$ac_c_werror_flag" ||
24050          test ! -s conftest.err
24051        } && test -s conftest.$ac_objext; then
24052   ac_cv_sys_largefile_CC=' -n32'; break
24053 else
24054   echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24056
24057
24058 fi
24059
24060 rm -f core conftest.err conftest.$ac_objext
24061          break
24062        done
24063        CC=$ac_save_CC
24064        rm -f conftest.$ac_ext
24065     fi
24066 fi
24067 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24068 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24069   if test "$ac_cv_sys_largefile_CC" != no; then
24070     CC=$CC$ac_cv_sys_largefile_CC
24071   fi
24072
24073   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24074 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24076   echo $ECHO_N "(cached) $ECHO_C" >&6
24077 else
24078   while :; do
24079   cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h.  */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h.  */
24085 #include <sys/types.h>
24086  /* Check that off_t can represent 2**63 - 1 correctly.
24087     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24088     since some C++ compilers masquerading as C compilers
24089     incorrectly reject 9223372036854775807.  */
24090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24091   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24092                        && LARGE_OFF_T % 2147483647 == 1)
24093                       ? 1 : -1];
24094 int
24095 main ()
24096 {
24097
24098   ;
24099   return 0;
24100 }
24101 _ACEOF
24102 rm -f conftest.$ac_objext
24103 if { (ac_try="$ac_compile"
24104 case "(($ac_try" in
24105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106   *) ac_try_echo=$ac_try;;
24107 esac
24108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24109   (eval "$ac_compile") 2>conftest.er1
24110   ac_status=$?
24111   grep -v '^ *+' conftest.er1 >conftest.err
24112   rm -f conftest.er1
24113   cat conftest.err >&5
24114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); } && {
24116          test -z "$ac_c_werror_flag" ||
24117          test ! -s conftest.err
24118        } && test -s conftest.$ac_objext; then
24119   ac_cv_sys_file_offset_bits=no; break
24120 else
24121   echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24123
24124
24125 fi
24126
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128   cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 #define _FILE_OFFSET_BITS 64
24135 #include <sys/types.h>
24136  /* Check that off_t can represent 2**63 - 1 correctly.
24137     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24138     since some C++ compilers masquerading as C compilers
24139     incorrectly reject 9223372036854775807.  */
24140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24141   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24142                        && LARGE_OFF_T % 2147483647 == 1)
24143                       ? 1 : -1];
24144 int
24145 main ()
24146 {
24147
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156   *) ac_try_echo=$ac_try;;
24157 esac
24158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159   (eval "$ac_compile") 2>conftest.er1
24160   ac_status=$?
24161   grep -v '^ *+' conftest.er1 >conftest.err
24162   rm -f conftest.er1
24163   cat conftest.err >&5
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); } && {
24166          test -z "$ac_c_werror_flag" ||
24167          test ! -s conftest.err
24168        } && test -s conftest.$ac_objext; then
24169   ac_cv_sys_file_offset_bits=64; break
24170 else
24171   echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24173
24174
24175 fi
24176
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178   ac_cv_sys_file_offset_bits=unknown
24179   break
24180 done
24181 fi
24182 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24184 case $ac_cv_sys_file_offset_bits in #(
24185   no | unknown) ;;
24186   *)
24187 cat >>confdefs.h <<_ACEOF
24188 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24189 _ACEOF
24190 ;;
24191 esac
24192 rm -f conftest*
24193   if test $ac_cv_sys_file_offset_bits = unknown; then
24194     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24195 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24196 if test "${ac_cv_sys_large_files+set}" = set; then
24197   echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199   while :; do
24200   cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h.  */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h.  */
24206 #include <sys/types.h>
24207  /* Check that off_t can represent 2**63 - 1 correctly.
24208     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24209     since some C++ compilers masquerading as C compilers
24210     incorrectly reject 9223372036854775807.  */
24211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24212   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24213                        && LARGE_OFF_T % 2147483647 == 1)
24214                       ? 1 : -1];
24215 int
24216 main ()
24217 {
24218
24219   ;
24220   return 0;
24221 }
24222 _ACEOF
24223 rm -f conftest.$ac_objext
24224 if { (ac_try="$ac_compile"
24225 case "(($ac_try" in
24226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227   *) ac_try_echo=$ac_try;;
24228 esac
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230   (eval "$ac_compile") 2>conftest.er1
24231   ac_status=$?
24232   grep -v '^ *+' conftest.er1 >conftest.err
24233   rm -f conftest.er1
24234   cat conftest.err >&5
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); } && {
24237          test -z "$ac_c_werror_flag" ||
24238          test ! -s conftest.err
24239        } && test -s conftest.$ac_objext; then
24240   ac_cv_sys_large_files=no; break
24241 else
24242   echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24244
24245
24246 fi
24247
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249   cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h.  */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h.  */
24255 #define _LARGE_FILES 1
24256 #include <sys/types.h>
24257  /* Check that off_t can represent 2**63 - 1 correctly.
24258     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24259     since some C++ compilers masquerading as C compilers
24260     incorrectly reject 9223372036854775807.  */
24261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24262   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24263                        && LARGE_OFF_T % 2147483647 == 1)
24264                       ? 1 : -1];
24265 int
24266 main ()
24267 {
24268
24269   ;
24270   return 0;
24271 }
24272 _ACEOF
24273 rm -f conftest.$ac_objext
24274 if { (ac_try="$ac_compile"
24275 case "(($ac_try" in
24276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277   *) ac_try_echo=$ac_try;;
24278 esac
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280   (eval "$ac_compile") 2>conftest.er1
24281   ac_status=$?
24282   grep -v '^ *+' conftest.er1 >conftest.err
24283   rm -f conftest.er1
24284   cat conftest.err >&5
24285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286   (exit $ac_status); } && {
24287          test -z "$ac_c_werror_flag" ||
24288          test ! -s conftest.err
24289        } && test -s conftest.$ac_objext; then
24290   ac_cv_sys_large_files=1; break
24291 else
24292   echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24294
24295
24296 fi
24297
24298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24299   ac_cv_sys_large_files=unknown
24300   break
24301 done
24302 fi
24303 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24304 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24305 case $ac_cv_sys_large_files in #(
24306   no | unknown) ;;
24307   *)
24308 cat >>confdefs.h <<_ACEOF
24309 #define _LARGE_FILES $ac_cv_sys_large_files
24310 _ACEOF
24311 ;;
24312 esac
24313 rm -f conftest*
24314   fi
24315 fi
24316
24317 fi
24318
24319 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24320 { echo "$as_me:$LINENO: checking for off_t" >&5
24321 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24322 if test "${ac_cv_type_off_t+set}" = set; then
24323   echo $ECHO_N "(cached) $ECHO_C" >&6
24324 else
24325   cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331 $ac_includes_default
24332 typedef off_t ac__type_new_;
24333 int
24334 main ()
24335 {
24336 if ((ac__type_new_ *) 0)
24337   return 0;
24338 if (sizeof (ac__type_new_))
24339   return 0;
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348   *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351   (eval "$ac_compile") 2>conftest.er1
24352   ac_status=$?
24353   grep -v '^ *+' conftest.er1 >conftest.err
24354   rm -f conftest.er1
24355   cat conftest.err >&5
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); } && {
24358          test -z "$ac_c_werror_flag" ||
24359          test ! -s conftest.err
24360        } && test -s conftest.$ac_objext; then
24361   ac_cv_type_off_t=yes
24362 else
24363   echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24365
24366         ac_cv_type_off_t=no
24367 fi
24368
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370 fi
24371 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24372 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24373
24374 # The cast to long int works around a bug in the HP C Compiler
24375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24377 # This bug is HP SR number 8606223364.
24378 { echo "$as_me:$LINENO: checking size of off_t" >&5
24379 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24380 if test "${ac_cv_sizeof_off_t+set}" = set; then
24381   echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383   if test "$cross_compiling" = yes; then
24384   # Depending upon the size, compute the lo and hi bounds.
24385 cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h.  */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h.  */
24391 $ac_includes_default
24392    typedef off_t ac__type_sizeof_;
24393 int
24394 main ()
24395 {
24396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24397 test_array [0] = 0
24398
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407   *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410   (eval "$ac_compile") 2>conftest.er1
24411   ac_status=$?
24412   grep -v '^ *+' conftest.er1 >conftest.err
24413   rm -f conftest.er1
24414   cat conftest.err >&5
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); } && {
24417          test -z "$ac_c_werror_flag" ||
24418          test ! -s conftest.err
24419        } && test -s conftest.$ac_objext; then
24420   ac_lo=0 ac_mid=0
24421   while :; do
24422     cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428 $ac_includes_default
24429    typedef off_t ac__type_sizeof_;
24430 int
24431 main ()
24432 {
24433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24434 test_array [0] = 0
24435
24436   ;
24437   return 0;
24438 }
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444   *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447   (eval "$ac_compile") 2>conftest.er1
24448   ac_status=$?
24449   grep -v '^ *+' conftest.er1 >conftest.err
24450   rm -f conftest.er1
24451   cat conftest.err >&5
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); } && {
24454          test -z "$ac_c_werror_flag" ||
24455          test ! -s conftest.err
24456        } && test -s conftest.$ac_objext; then
24457   ac_hi=$ac_mid; break
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462         ac_lo=`expr $ac_mid + 1`
24463                         if test $ac_lo -le $ac_mid; then
24464                           ac_lo= ac_hi=
24465                           break
24466                         fi
24467                         ac_mid=`expr 2 '*' $ac_mid + 1`
24468 fi
24469
24470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471   done
24472 else
24473   echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24475
24476         cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h.  */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h.  */
24482 $ac_includes_default
24483    typedef off_t ac__type_sizeof_;
24484 int
24485 main ()
24486 {
24487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24488 test_array [0] = 0
24489
24490   ;
24491   return 0;
24492 }
24493 _ACEOF
24494 rm -f conftest.$ac_objext
24495 if { (ac_try="$ac_compile"
24496 case "(($ac_try" in
24497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498   *) ac_try_echo=$ac_try;;
24499 esac
24500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24501   (eval "$ac_compile") 2>conftest.er1
24502   ac_status=$?
24503   grep -v '^ *+' conftest.er1 >conftest.err
24504   rm -f conftest.er1
24505   cat conftest.err >&5
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); } && {
24508          test -z "$ac_c_werror_flag" ||
24509          test ! -s conftest.err
24510        } && test -s conftest.$ac_objext; then
24511   ac_hi=-1 ac_mid=-1
24512   while :; do
24513     cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h.  */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h.  */
24519 $ac_includes_default
24520    typedef off_t ac__type_sizeof_;
24521 int
24522 main ()
24523 {
24524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24525 test_array [0] = 0
24526
24527   ;
24528   return 0;
24529 }
24530 _ACEOF
24531 rm -f conftest.$ac_objext
24532 if { (ac_try="$ac_compile"
24533 case "(($ac_try" in
24534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535   *) ac_try_echo=$ac_try;;
24536 esac
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538   (eval "$ac_compile") 2>conftest.er1
24539   ac_status=$?
24540   grep -v '^ *+' conftest.er1 >conftest.err
24541   rm -f conftest.er1
24542   cat conftest.err >&5
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); } && {
24545          test -z "$ac_c_werror_flag" ||
24546          test ! -s conftest.err
24547        } && test -s conftest.$ac_objext; then
24548   ac_lo=$ac_mid; break
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553         ac_hi=`expr '(' $ac_mid ')' - 1`
24554                         if test $ac_mid -le $ac_hi; then
24555                           ac_lo= ac_hi=
24556                           break
24557                         fi
24558                         ac_mid=`expr 2 '*' $ac_mid`
24559 fi
24560
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562   done
24563 else
24564   echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567         ac_lo= ac_hi=
24568 fi
24569
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 fi
24572
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 # Binary search between lo and hi bounds.
24575 while test "x$ac_lo" != "x$ac_hi"; do
24576   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24577   cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 $ac_includes_default
24584    typedef off_t ac__type_sizeof_;
24585 int
24586 main ()
24587 {
24588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24589 test_array [0] = 0
24590
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
24597 case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602   (eval "$ac_compile") 2>conftest.er1
24603   ac_status=$?
24604   grep -v '^ *+' conftest.er1 >conftest.err
24605   rm -f conftest.er1
24606   cat conftest.err >&5
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } && {
24609          test -z "$ac_c_werror_flag" ||
24610          test ! -s conftest.err
24611        } && test -s conftest.$ac_objext; then
24612   ac_hi=$ac_mid
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617         ac_lo=`expr '(' $ac_mid ')' + 1`
24618 fi
24619
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24621 done
24622 case $ac_lo in
24623 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24624 '') if test "$ac_cv_type_off_t" = yes; then
24625      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24626 See \`config.log' for more details." >&5
24627 echo "$as_me: error: cannot compute sizeof (off_t)
24628 See \`config.log' for more details." >&2;}
24629    { (exit 77); exit 77; }; }
24630    else
24631      ac_cv_sizeof_off_t=0
24632    fi ;;
24633 esac
24634 else
24635   cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641 $ac_includes_default
24642    typedef off_t ac__type_sizeof_;
24643 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24644 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24645 #include <stdio.h>
24646 #include <stdlib.h>
24647 int
24648 main ()
24649 {
24650
24651   FILE *f = fopen ("conftest.val", "w");
24652   if (! f)
24653     return 1;
24654   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24655     {
24656       long int i = longval ();
24657       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24658         return 1;
24659       fprintf (f, "%ld\n", i);
24660     }
24661   else
24662     {
24663       unsigned long int i = ulongval ();
24664       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24665         return 1;
24666       fprintf (f, "%lu\n", i);
24667     }
24668   return ferror (f) || fclose (f) != 0;
24669
24670   ;
24671   return 0;
24672 }
24673 _ACEOF
24674 rm -f conftest$ac_exeext
24675 if { (ac_try="$ac_link"
24676 case "(($ac_try" in
24677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678   *) ac_try_echo=$ac_try;;
24679 esac
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681   (eval "$ac_link") 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24685   { (case "(($ac_try" in
24686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687   *) ac_try_echo=$ac_try;;
24688 esac
24689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24690   (eval "$ac_try") 2>&5
24691   ac_status=$?
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); }; }; then
24694   ac_cv_sizeof_off_t=`cat conftest.val`
24695 else
24696   echo "$as_me: program exited with status $ac_status" >&5
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24699
24700 ( exit $ac_status )
24701 if test "$ac_cv_type_off_t" = yes; then
24702      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24703 See \`config.log' for more details." >&5
24704 echo "$as_me: error: cannot compute sizeof (off_t)
24705 See \`config.log' for more details." >&2;}
24706    { (exit 77); exit 77; }; }
24707    else
24708      ac_cv_sizeof_off_t=0
24709    fi
24710 fi
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24712 fi
24713 rm -f conftest.val
24714 fi
24715 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24716 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24717
24718
24719
24720 cat >>confdefs.h <<_ACEOF
24721 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24722 _ACEOF
24723
24724
24725
24726 # If we don't have largefile support, can't handle segsize >= 2GB.
24727 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24728    { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24729 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24730    { (exit 1); exit 1; }; }
24731 fi
24732
24733 # SunOS doesn't handle negative byte comparisons properly with +/- return
24734 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24735 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24736 if test "${ac_cv_func_memcmp_working+set}" = set; then
24737   echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739   if test "$cross_compiling" = yes; then
24740   ac_cv_func_memcmp_working=no
24741 else
24742   cat >conftest.$ac_ext <<_ACEOF
24743 /* confdefs.h.  */
24744 _ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h.  */
24748 $ac_includes_default
24749 int
24750 main ()
24751 {
24752
24753   /* Some versions of memcmp are not 8-bit clean.  */
24754   char c0 = '\100', c1 = '\200', c2 = '\201';
24755   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24756     return 1;
24757
24758   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24759      or more and with at least one buffer not starting on a 4-byte boundary.
24760      William Lewis provided this test program.   */
24761   {
24762     char foo[21];
24763     char bar[21];
24764     int i;
24765     for (i = 0; i < 4; i++)
24766       {
24767         char *a = foo + i;
24768         char *b = bar + i;
24769         strcpy (a, "--------01111111");
24770         strcpy (b, "--------10000000");
24771         if (memcmp (a, b, 16) >= 0)
24772           return 1;
24773       }
24774     return 0;
24775   }
24776
24777   ;
24778   return 0;
24779 }
24780 _ACEOF
24781 rm -f conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785   *) ac_try_echo=$ac_try;;
24786 esac
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788   (eval "$ac_link") 2>&5
24789   ac_status=$?
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24792   { (case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797   (eval "$ac_try") 2>&5
24798   ac_status=$?
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); }; }; then
24801   ac_cv_func_memcmp_working=yes
24802 else
24803   echo "$as_me: program exited with status $ac_status" >&5
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807 ( exit $ac_status )
24808 ac_cv_func_memcmp_working=no
24809 fi
24810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24811 fi
24812
24813
24814 fi
24815 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24816 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24817 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24818   *" memcmp.$ac_objext "* ) ;;
24819   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24820  ;;
24821 esac
24822
24823
24824
24825
24826 # Select semaphore implementation type.
24827 if test "$PORTNAME" != "win32"; then
24828   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24829
24830 cat >>confdefs.h <<\_ACEOF
24831 #define USE_NAMED_POSIX_SEMAPHORES 1
24832 _ACEOF
24833
24834     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24835   else
24836     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24837
24838 cat >>confdefs.h <<\_ACEOF
24839 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24840 _ACEOF
24841
24842       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24843     else
24844
24845 cat >>confdefs.h <<\_ACEOF
24846 #define USE_SYSV_SEMAPHORES 1
24847 _ACEOF
24848
24849       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24850     fi
24851   fi
24852 else
24853
24854 cat >>confdefs.h <<\_ACEOF
24855 #define USE_WIN32_SEMAPHORES 1
24856 _ACEOF
24857
24858   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24859 fi
24860
24861
24862 # Select shared-memory implementation type.
24863 if test "$PORTNAME" != "win32"; then
24864
24865 cat >>confdefs.h <<\_ACEOF
24866 #define USE_SYSV_SHARED_MEMORY 1
24867 _ACEOF
24868
24869   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24870 else
24871
24872 cat >>confdefs.h <<\_ACEOF
24873 #define USE_WIN32_SHARED_MEMORY 1
24874 _ACEOF
24875
24876   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24877 fi
24878
24879 # If not set in template file, set bytes to use libc memset()
24880 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24881   MEMSET_LOOP_LIMIT=1024
24882 fi
24883
24884 cat >>confdefs.h <<_ACEOF
24885 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24886 _ACEOF
24887
24888
24889
24890 if test "$enable_nls" = yes ; then
24891
24892   { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24893 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24894 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24895   echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897   ac_func_search_save_LIBS=$LIBS
24898 cat >conftest.$ac_ext <<_ACEOF
24899 /* confdefs.h.  */
24900 _ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h.  */
24904
24905 /* Override any GCC internal prototype to avoid an error.
24906    Use char because int might match the return type of a GCC
24907    builtin and then its argument prototype would still apply.  */
24908 #ifdef __cplusplus
24909 extern "C"
24910 #endif
24911 char bind_textdomain_codeset ();
24912 int
24913 main ()
24914 {
24915 return bind_textdomain_codeset ();
24916   ;
24917   return 0;
24918 }
24919 _ACEOF
24920 for ac_lib in '' intl; do
24921   if test -z "$ac_lib"; then
24922     ac_res="none required"
24923   else
24924     ac_res=-l$ac_lib
24925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24926   fi
24927   rm -f conftest.$ac_objext conftest$ac_exeext
24928 if { (ac_try="$ac_link"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934   (eval "$ac_link") 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } && {
24941          test -z "$ac_c_werror_flag" ||
24942          test ! -s conftest.err
24943        } && test -s conftest$ac_exeext &&
24944        $as_test_x conftest$ac_exeext; then
24945   ac_cv_search_bind_textdomain_codeset=$ac_res
24946 else
24947   echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950
24951 fi
24952
24953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24954       conftest$ac_exeext
24955   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24956   break
24957 fi
24958 done
24959 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24960   :
24961 else
24962   ac_cv_search_bind_textdomain_codeset=no
24963 fi
24964 rm conftest.$ac_ext
24965 LIBS=$ac_func_search_save_LIBS
24966 fi
24967 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24968 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24969 ac_res=$ac_cv_search_bind_textdomain_codeset
24970 if test "$ac_res" != no; then
24971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24972
24973 else
24974   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24975 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24976    { (exit 1); exit 1; }; }
24977 fi
24978
24979   if test "${ac_cv_header_libintl_h+set}" = set; then
24980   { echo "$as_me:$LINENO: checking for libintl.h" >&5
24981 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24982 if test "${ac_cv_header_libintl_h+set}" = set; then
24983   echo $ECHO_N "(cached) $ECHO_C" >&6
24984 fi
24985 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24986 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24987 else
24988   # Is the header compilable?
24989 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24990 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997 $ac_includes_default
24998 #include <libintl.h>
24999 _ACEOF
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004   *) ac_try_echo=$ac_try;;
25005 esac
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007   (eval "$ac_compile") 2>conftest.er1
25008   ac_status=$?
25009   grep -v '^ *+' conftest.er1 >conftest.err
25010   rm -f conftest.er1
25011   cat conftest.err >&5
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); } && {
25014          test -z "$ac_c_werror_flag" ||
25015          test ! -s conftest.err
25016        } && test -s conftest.$ac_objext; then
25017   ac_header_compiler=yes
25018 else
25019   echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022         ac_header_compiler=no
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25027 echo "${ECHO_T}$ac_header_compiler" >&6; }
25028
25029 # Is the header present?
25030 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25031 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25032 cat >conftest.$ac_ext <<_ACEOF
25033 /* confdefs.h.  */
25034 _ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h.  */
25038 #include <libintl.h>
25039 _ACEOF
25040 if { (ac_try="$ac_cpp conftest.$ac_ext"
25041 case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25047   ac_status=$?
25048   grep -v '^ *+' conftest.er1 >conftest.err
25049   rm -f conftest.er1
25050   cat conftest.err >&5
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } >/dev/null && {
25053          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25054          test ! -s conftest.err
25055        }; then
25056   ac_header_preproc=yes
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061   ac_header_preproc=no
25062 fi
25063
25064 rm -f conftest.err conftest.$ac_ext
25065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25066 echo "${ECHO_T}$ac_header_preproc" >&6; }
25067
25068 # So?  What about this header?
25069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25070   yes:no: )
25071     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25072 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25073     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25074 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25075     ac_header_preproc=yes
25076     ;;
25077   no:yes:* )
25078     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25079 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25080     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
25081 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
25082     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25083 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25084     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
25085 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25086     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25087 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25088     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25089 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25090     ( cat <<\_ASBOX
25091 ## ---------------------------------------- ##
25092 ## Report this to pgsql-bugs@postgresql.org ##
25093 ## ---------------------------------------- ##
25094 _ASBOX
25095      ) | sed "s/^/$as_me: WARNING:     /" >&2
25096     ;;
25097 esac
25098 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25099 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25100 if test "${ac_cv_header_libintl_h+set}" = set; then
25101   echo $ECHO_N "(cached) $ECHO_C" >&6
25102 else
25103   ac_cv_header_libintl_h=$ac_header_preproc
25104 fi
25105 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25106 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25107
25108 fi
25109 if test $ac_cv_header_libintl_h = yes; then
25110   :
25111 else
25112   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25113 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25114    { (exit 1); exit 1; }; }
25115 fi
25116
25117
25118   for ac_prog in msgfmt
25119 do
25120   # Extract the first word of "$ac_prog", so it can be a program name with args.
25121 set dummy $ac_prog; ac_word=$2
25122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25124 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25125   echo $ECHO_N "(cached) $ECHO_C" >&6
25126 else
25127   if test -n "$MSGFMT"; then
25128   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25129 else
25130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25131 for as_dir in $PATH
25132 do
25133   IFS=$as_save_IFS
25134   test -z "$as_dir" && as_dir=.
25135   for ac_exec_ext in '' $ac_executable_extensions; do
25136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25137     ac_cv_prog_MSGFMT="$ac_prog"
25138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25139     break 2
25140   fi
25141 done
25142 done
25143 IFS=$as_save_IFS
25144
25145 fi
25146 fi
25147 MSGFMT=$ac_cv_prog_MSGFMT
25148 if test -n "$MSGFMT"; then
25149   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25150 echo "${ECHO_T}$MSGFMT" >&6; }
25151 else
25152   { echo "$as_me:$LINENO: result: no" >&5
25153 echo "${ECHO_T}no" >&6; }
25154 fi
25155
25156
25157   test -n "$MSGFMT" && break
25158 done
25159
25160   if test -z "$MSGFMT"; then
25161     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25162 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25163    { (exit 1); exit 1; }; }
25164   fi
25165   for ac_prog in msgmerge
25166 do
25167   # Extract the first word of "$ac_prog", so it can be a program name with args.
25168 set dummy $ac_prog; ac_word=$2
25169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25171 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25172   echo $ECHO_N "(cached) $ECHO_C" >&6
25173 else
25174   if test -n "$MSGMERGE"; then
25175   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25176 else
25177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25178 for as_dir in $PATH
25179 do
25180   IFS=$as_save_IFS
25181   test -z "$as_dir" && as_dir=.
25182   for ac_exec_ext in '' $ac_executable_extensions; do
25183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25184     ac_cv_prog_MSGMERGE="$ac_prog"
25185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25186     break 2
25187   fi
25188 done
25189 done
25190 IFS=$as_save_IFS
25191
25192 fi
25193 fi
25194 MSGMERGE=$ac_cv_prog_MSGMERGE
25195 if test -n "$MSGMERGE"; then
25196   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25197 echo "${ECHO_T}$MSGMERGE" >&6; }
25198 else
25199   { echo "$as_me:$LINENO: result: no" >&5
25200 echo "${ECHO_T}no" >&6; }
25201 fi
25202
25203
25204   test -n "$MSGMERGE" && break
25205 done
25206
25207   for ac_prog in xgettext
25208 do
25209   # Extract the first word of "$ac_prog", so it can be a program name with args.
25210 set dummy $ac_prog; ac_word=$2
25211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25213 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25214   echo $ECHO_N "(cached) $ECHO_C" >&6
25215 else
25216   if test -n "$XGETTEXT"; then
25217   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25218 else
25219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25220 for as_dir in $PATH
25221 do
25222   IFS=$as_save_IFS
25223   test -z "$as_dir" && as_dir=.
25224   for ac_exec_ext in '' $ac_executable_extensions; do
25225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25226     ac_cv_prog_XGETTEXT="$ac_prog"
25227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25228     break 2
25229   fi
25230 done
25231 done
25232 IFS=$as_save_IFS
25233
25234 fi
25235 fi
25236 XGETTEXT=$ac_cv_prog_XGETTEXT
25237 if test -n "$XGETTEXT"; then
25238   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25239 echo "${ECHO_T}$XGETTEXT" >&6; }
25240 else
25241   { echo "$as_me:$LINENO: result: no" >&5
25242 echo "${ECHO_T}no" >&6; }
25243 fi
25244
25245
25246   test -n "$XGETTEXT" && break
25247 done
25248
25249
25250 fi
25251
25252 # Check for Tcl configuration script tclConfig.sh
25253 if test "$with_tcl" = yes; then
25254     for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25255 do
25256   # Extract the first word of "$ac_prog", so it can be a program name with args.
25257 set dummy $ac_prog; ac_word=$2
25258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25260 if test "${ac_cv_path_TCLSH+set}" = set; then
25261   echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263   case $TCLSH in
25264   [\\/]* | ?:[\\/]*)
25265   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25266   ;;
25267   *)
25268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25269 for as_dir in $PATH
25270 do
25271   IFS=$as_save_IFS
25272   test -z "$as_dir" && as_dir=.
25273   for ac_exec_ext in '' $ac_executable_extensions; do
25274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25275     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25277     break 2
25278   fi
25279 done
25280 done
25281 IFS=$as_save_IFS
25282
25283   ;;
25284 esac
25285 fi
25286 TCLSH=$ac_cv_path_TCLSH
25287 if test -n "$TCLSH"; then
25288   { echo "$as_me:$LINENO: result: $TCLSH" >&5
25289 echo "${ECHO_T}$TCLSH" >&6; }
25290 else
25291   { echo "$as_me:$LINENO: result: no" >&5
25292 echo "${ECHO_T}no" >&6; }
25293 fi
25294
25295
25296   test -n "$TCLSH" && break
25297 done
25298
25299 if test x"$TCLSH" = x""; then
25300   { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25301 echo "$as_me: error: Tcl shell not found" >&2;}
25302    { (exit 1); exit 1; }; }
25303 fi
25304
25305 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25306 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25307 # Let user override test
25308 if test -z "$TCL_CONFIG_SH"; then
25309     pgac_test_dirs="$with_tclconfig"
25310
25311     set X $pgac_test_dirs; shift
25312     if test $# -eq 0; then
25313         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25314 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25315    { (exit 1); exit 1; }; }
25316         set X `echo 'puts $auto_path' | $TCLSH`; shift
25317     fi
25318
25319     for pgac_dir do
25320         if test -r "$pgac_dir/tclConfig.sh"; then
25321             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25322             break
25323         fi
25324     done
25325 fi
25326
25327 if test -z "$TCL_CONFIG_SH"; then
25328     { echo "$as_me:$LINENO: result: no" >&5
25329 echo "${ECHO_T}no" >&6; }
25330     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25331 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25332    { (exit 1); exit 1; }; }
25333 else
25334     { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25335 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25336 fi
25337
25338
25339
25340     . "$TCL_CONFIG_SH"
25341 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25342 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25343 eval TCL_LIBS=\"$TCL_LIBS\"
25344 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25345 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25346
25347         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25348     ac_save_CPPFLAGS=$CPPFLAGS
25349     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25350     if test "${ac_cv_header_tcl_h+set}" = set; then
25351   { echo "$as_me:$LINENO: checking for tcl.h" >&5
25352 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25353 if test "${ac_cv_header_tcl_h+set}" = set; then
25354   echo $ECHO_N "(cached) $ECHO_C" >&6
25355 fi
25356 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25357 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25358 else
25359   # Is the header compilable?
25360 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25361 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25362 cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368 $ac_includes_default
25369 #include <tcl.h>
25370 _ACEOF
25371 rm -f conftest.$ac_objext
25372 if { (ac_try="$ac_compile"
25373 case "(($ac_try" in
25374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25375   *) ac_try_echo=$ac_try;;
25376 esac
25377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25378   (eval "$ac_compile") 2>conftest.er1
25379   ac_status=$?
25380   grep -v '^ *+' conftest.er1 >conftest.err
25381   rm -f conftest.er1
25382   cat conftest.err >&5
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } && {
25385          test -z "$ac_c_werror_flag" ||
25386          test ! -s conftest.err
25387        } && test -s conftest.$ac_objext; then
25388   ac_header_compiler=yes
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393         ac_header_compiler=no
25394 fi
25395
25396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25398 echo "${ECHO_T}$ac_header_compiler" >&6; }
25399
25400 # Is the header present?
25401 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25402 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25403 cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409 #include <tcl.h>
25410 _ACEOF
25411 if { (ac_try="$ac_cpp conftest.$ac_ext"
25412 case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25418   ac_status=$?
25419   grep -v '^ *+' conftest.er1 >conftest.err
25420   rm -f conftest.er1
25421   cat conftest.err >&5
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); } >/dev/null && {
25424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25425          test ! -s conftest.err
25426        }; then
25427   ac_header_preproc=yes
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432   ac_header_preproc=no
25433 fi
25434
25435 rm -f conftest.err conftest.$ac_ext
25436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25437 echo "${ECHO_T}$ac_header_preproc" >&6; }
25438
25439 # So?  What about this header?
25440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25441   yes:no: )
25442     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25443 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25444     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25445 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25446     ac_header_preproc=yes
25447     ;;
25448   no:yes:* )
25449     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25450 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25451     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
25452 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
25453     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25454 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25455     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
25456 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25457     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25458 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25459     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25460 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25461     ( cat <<\_ASBOX
25462 ## ---------------------------------------- ##
25463 ## Report this to pgsql-bugs@postgresql.org ##
25464 ## ---------------------------------------- ##
25465 _ASBOX
25466      ) | sed "s/^/$as_me: WARNING:     /" >&2
25467     ;;
25468 esac
25469 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25470 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25471 if test "${ac_cv_header_tcl_h+set}" = set; then
25472   echo $ECHO_N "(cached) $ECHO_C" >&6
25473 else
25474   ac_cv_header_tcl_h=$ac_header_preproc
25475 fi
25476 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25477 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25478
25479 fi
25480 if test $ac_cv_header_tcl_h = yes; then
25481   :
25482 else
25483   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25484 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25485    { (exit 1); exit 1; }; }
25486 fi
25487
25488
25489     CPPFLAGS=$ac_save_CPPFLAGS
25490 fi
25491
25492 #
25493 # Check for DocBook and tools
25494 #
25495 for ac_prog in onsgmls nsgmls
25496 do
25497   # Extract the first word of "$ac_prog", so it can be a program name with args.
25498 set dummy $ac_prog; ac_word=$2
25499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25501 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25502   echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504   if test -n "$NSGMLS"; then
25505   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25506 else
25507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25508 for as_dir in $PATH
25509 do
25510   IFS=$as_save_IFS
25511   test -z "$as_dir" && as_dir=.
25512   for ac_exec_ext in '' $ac_executable_extensions; do
25513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25514     ac_cv_prog_NSGMLS="$ac_prog"
25515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25516     break 2
25517   fi
25518 done
25519 done
25520 IFS=$as_save_IFS
25521
25522 fi
25523 fi
25524 NSGMLS=$ac_cv_prog_NSGMLS
25525 if test -n "$NSGMLS"; then
25526   { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25527 echo "${ECHO_T}$NSGMLS" >&6; }
25528 else
25529   { echo "$as_me:$LINENO: result: no" >&5
25530 echo "${ECHO_T}no" >&6; }
25531 fi
25532
25533
25534   test -n "$NSGMLS" && break
25535 done
25536
25537 for ac_prog in openjade jade
25538 do
25539   # Extract the first word of "$ac_prog", so it can be a program name with args.
25540 set dummy $ac_prog; ac_word=$2
25541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25543 if test "${ac_cv_prog_JADE+set}" = set; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546   if test -n "$JADE"; then
25547   ac_cv_prog_JADE="$JADE" # Let the user override the test.
25548 else
25549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25550 for as_dir in $PATH
25551 do
25552   IFS=$as_save_IFS
25553   test -z "$as_dir" && as_dir=.
25554   for ac_exec_ext in '' $ac_executable_extensions; do
25555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25556     ac_cv_prog_JADE="$ac_prog"
25557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25558     break 2
25559   fi
25560 done
25561 done
25562 IFS=$as_save_IFS
25563
25564 fi
25565 fi
25566 JADE=$ac_cv_prog_JADE
25567 if test -n "$JADE"; then
25568   { echo "$as_me:$LINENO: result: $JADE" >&5
25569 echo "${ECHO_T}$JADE" >&6; }
25570 else
25571   { echo "$as_me:$LINENO: result: no" >&5
25572 echo "${ECHO_T}no" >&6; }
25573 fi
25574
25575
25576   test -n "$JADE" && break
25577 done
25578
25579
25580 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25581 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25582 if test "${pgac_cv_check_docbook+set}" = set; then
25583   echo $ECHO_N "(cached) $ECHO_C" >&6
25584 else
25585   cat >conftest.sgml <<EOF
25586 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25587 <book>
25588  <title>test</title>
25589  <chapter>
25590   <title>random</title>
25591    <sect1>
25592     <title>testsect</title>
25593     <para>text</para>
25594   </sect1>
25595  </chapter>
25596 </book>
25597 EOF
25598
25599 pgac_cv_check_docbook=no
25600
25601 if test -n "$NSGMLS"; then
25602   $NSGMLS -s conftest.sgml 1>&5 2>&1
25603   if test $? -eq 0; then
25604     pgac_cv_check_docbook=yes
25605   fi
25606 fi
25607 rm -f conftest.sgml
25608 fi
25609 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25610 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25611
25612 have_docbook=$pgac_cv_check_docbook
25613
25614
25615 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25616 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25617 if test "${pgac_cv_path_stylesheets+set}" = set; then
25618   echo $ECHO_N "(cached) $ECHO_C" >&6
25619 else
25620   if test -n "$DOCBOOKSTYLE"; then
25621   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25622 else
25623   for pgac_prefix in /usr /usr/local /opt /sw; do
25624     for pgac_infix in share lib; do
25625       for pgac_postfix in \
25626         sgml/stylesheets/nwalsh-modular \
25627         sgml/stylesheets/docbook \
25628         sgml/stylesheets/dsssl/docbook \
25629         sgml/docbook-dsssl \
25630         sgml/docbook/dsssl/modular \
25631         sgml/docbook/stylesheet/dsssl/modular \
25632         sgml/docbook/dsssl-stylesheets \
25633         sgml/dsssl/docbook-dsssl-nwalsh
25634       do
25635         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25636         if test -r "$pgac_candidate/html/docbook.dsl" \
25637            && test -r "$pgac_candidate/print/docbook.dsl"
25638         then
25639           pgac_cv_path_stylesheets=$pgac_candidate
25640           break 3
25641         fi
25642       done
25643     done
25644   done
25645 fi
25646 fi
25647
25648 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25649
25650 if test -n "$DOCBOOKSTYLE"; then
25651   { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25652 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25653 else
25654   { echo "$as_me:$LINENO: result: no" >&5
25655 echo "${ECHO_T}no" >&6; }
25656 fi
25657 if test -n "$DOCBOOKSTYLE"; then
25658   for ac_prog in collateindex.pl
25659 do
25660   # Extract the first word of "$ac_prog", so it can be a program name with args.
25661 set dummy $ac_prog; ac_word=$2
25662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25664 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667   case $COLLATEINDEX in
25668   [\\/]* | ?:[\\/]*)
25669   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25670   ;;
25671   *)
25672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25673 for as_dir in $DOCBOOKSTYLE/bin $PATH
25674 do
25675   IFS=$as_save_IFS
25676   test -z "$as_dir" && as_dir=.
25677   for ac_exec_ext in '' $ac_executable_extensions; do
25678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25679     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25681     break 2
25682   fi
25683 done
25684 done
25685 IFS=$as_save_IFS
25686
25687   ;;
25688 esac
25689 fi
25690 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25691 if test -n "$COLLATEINDEX"; then
25692   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25693 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25694 else
25695   { echo "$as_me:$LINENO: result: no" >&5
25696 echo "${ECHO_T}no" >&6; }
25697 fi
25698
25699
25700   test -n "$COLLATEINDEX" && break
25701 done
25702
25703 else
25704   for ac_prog in collateindex.pl
25705 do
25706   # Extract the first word of "$ac_prog", so it can be a program name with args.
25707 set dummy $ac_prog; ac_word=$2
25708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25710 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25711   echo $ECHO_N "(cached) $ECHO_C" >&6
25712 else
25713   case $COLLATEINDEX in
25714   [\\/]* | ?:[\\/]*)
25715   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25716   ;;
25717   *)
25718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25719 for as_dir in $PATH
25720 do
25721   IFS=$as_save_IFS
25722   test -z "$as_dir" && as_dir=.
25723   for ac_exec_ext in '' $ac_executable_extensions; do
25724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25725     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25727     break 2
25728   fi
25729 done
25730 done
25731 IFS=$as_save_IFS
25732
25733   ;;
25734 esac
25735 fi
25736 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25737 if test -n "$COLLATEINDEX"; then
25738   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25739 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25740 else
25741   { echo "$as_me:$LINENO: result: no" >&5
25742 echo "${ECHO_T}no" >&6; }
25743 fi
25744
25745
25746   test -n "$COLLATEINDEX" && break
25747 done
25748
25749 fi
25750 for ac_prog in sgmlspl
25751 do
25752   # Extract the first word of "$ac_prog", so it can be a program name with args.
25753 set dummy $ac_prog; ac_word=$2
25754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25756 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25757   echo $ECHO_N "(cached) $ECHO_C" >&6
25758 else
25759   if test -n "$SGMLSPL"; then
25760   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25761 else
25762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25763 for as_dir in $PATH
25764 do
25765   IFS=$as_save_IFS
25766   test -z "$as_dir" && as_dir=.
25767   for ac_exec_ext in '' $ac_executable_extensions; do
25768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25769     ac_cv_prog_SGMLSPL="$ac_prog"
25770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25771     break 2
25772   fi
25773 done
25774 done
25775 IFS=$as_save_IFS
25776
25777 fi
25778 fi
25779 SGMLSPL=$ac_cv_prog_SGMLSPL
25780 if test -n "$SGMLSPL"; then
25781   { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25782 echo "${ECHO_T}$SGMLSPL" >&6; }
25783 else
25784   { echo "$as_me:$LINENO: result: no" >&5
25785 echo "${ECHO_T}no" >&6; }
25786 fi
25787
25788
25789   test -n "$SGMLSPL" && break
25790 done
25791
25792 { echo "$as_me:$LINENO: checking for docbook2man" >&5
25793 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
25794 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
25795   echo $ECHO_N "(cached) $ECHO_C" >&6
25796 else
25797   if test -z "$DOCBOOK2MAN"; then
25798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25799 for as_dir in $PATH
25800 do
25801   IFS=$as_save_IFS
25802   test -z "$as_dir" && as_dir=.
25803   for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
25804     ac_path="$as_dir/$ac_prog"
25805     { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
25806     if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
25807       ac_cv_path_DOCBOOK2MAN=$ac_path
25808       break
25809     fi
25810   done
25811 done
25812 IFS=$as_save_IFS
25813
25814 else
25815   ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
25816 fi
25817 fi
25818 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
25819 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
25820 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
25821
25822
25823
25824 # Thread testing
25825
25826 # We have to run the thread test near the end so we have all our symbols
25827 # defined.  Cross compiling throws a warning.
25828 #
25829 if test "$enable_thread_safety_force" = yes; then
25830 if test "$PORTNAME" != "win32"
25831 then
25832   { echo "$as_me:$LINENO: WARNING:
25833 *** Skipping thread test program.  --enable-thread-safety-force was used.
25834 *** Run the program in src/test/thread on the your machine and add proper
25835 *** locking function calls to your applications to guarantee thread safety.
25836 " >&5
25837 echo "$as_me: WARNING:
25838 *** Skipping thread test program.  --enable-thread-safety-force was used.
25839 *** Run the program in src/test/thread on the your machine and add proper
25840 *** locking function calls to your applications to guarantee thread safety.
25841 " >&2;}
25842 else
25843 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25844 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25845 fi
25846 elif test "$enable_thread_safety" = yes; then
25847 if test "$PORTNAME" != "win32"
25848 then
25849 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25850 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25851
25852 _CFLAGS="$CFLAGS"
25853 _LIBS="$LIBS"
25854 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25855 LIBS="$LIBS $PTHREAD_LIBS"
25856 if test "$cross_compiling" = yes; then
25857   { echo "$as_me:$LINENO: result: maybe" >&5
25858 echo "${ECHO_T}maybe" >&6; }
25859   { echo "$as_me:$LINENO: WARNING:
25860 *** Skipping thread test program because of cross-compile build.
25861 *** Run the program in src/test/thread on the target machine.
25862 " >&5
25863 echo "$as_me: WARNING:
25864 *** Skipping thread test program because of cross-compile build.
25865 *** Run the program in src/test/thread on the target machine.
25866 " >&2;}
25867 else
25868   cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h.  */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h.  */
25874 #include "$srcdir/src/test/thread/thread_test.c"
25875 _ACEOF
25876 rm -f conftest$ac_exeext
25877 if { (ac_try="$ac_link"
25878 case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883   (eval "$ac_link") 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25887   { (case "(($ac_try" in
25888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25889   *) ac_try_echo=$ac_try;;
25890 esac
25891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25892   (eval "$ac_try") 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; }; then
25896   { echo "$as_me:$LINENO: result: yes" >&5
25897 echo "${ECHO_T}yes" >&6; }
25898 else
25899   echo "$as_me: program exited with status $ac_status" >&5
25900 echo "$as_me: failed program was:" >&5
25901 sed 's/^/| /' conftest.$ac_ext >&5
25902
25903 ( exit $ac_status )
25904 { echo "$as_me:$LINENO: result: no" >&5
25905 echo "${ECHO_T}no" >&6; }
25906   { { echo "$as_me:$LINENO: error: thread test program failed
25907 This platform is not thread-safe.  Check the file 'config.log' for the
25908 exact reason.
25909
25910 You can use the configure option --enable-thread-safety-force to force
25911 threads to be enabled.  But you must then run the program in
25912 src/test/thread and add locking function calls to your applications to
25913 guarantee thread safety." >&5
25914 echo "$as_me: error: thread test program failed
25915 This platform is not thread-safe.  Check the file 'config.log' for the
25916 exact reason.
25917
25918 You can use the configure option --enable-thread-safety-force to force
25919 threads to be enabled.  But you must then run the program in
25920 src/test/thread and add locking function calls to your applications to
25921 guarantee thread safety." >&2;}
25922    { (exit 1); exit 1; }; }
25923 fi
25924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25925 fi
25926
25927
25928 CFLAGS="$_CFLAGS"
25929 LIBS="$_LIBS"
25930 else
25931 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25932 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25933 fi
25934 fi
25935
25936 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25937 # This is much easier than trying to filter LIBS to the minimum for each
25938 # executable.  (Note that shared library links won't use this switch, though.)
25939 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25940 # libreadline; therefore we postpone testing it until we know what library
25941 # dependencies readline has.  The test code will try to link with $LIBS.
25942 if test "$with_readline" = yes; then
25943   link_test_func=readline
25944 else
25945   link_test_func=exit
25946 fi
25947 if test "$PORTNAME" != "darwin"; then
25948   { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25949 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25950 pgac_save_LDFLAGS=$LDFLAGS
25951 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25952 if test "$cross_compiling" = yes; then
25953   LDFLAGS="$pgac_save_LDFLAGS"
25954                { echo "$as_me:$LINENO: result: assuming no" >&5
25955 echo "${ECHO_T}assuming no" >&6; }
25956 else
25957   cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25964 int
25965 main ()
25966 {
25967
25968   ;
25969   return 0;
25970 }
25971 _ACEOF
25972 rm -f conftest$ac_exeext
25973 if { (ac_try="$ac_link"
25974 case "(($ac_try" in
25975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976   *) ac_try_echo=$ac_try;;
25977 esac
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979   (eval "$ac_link") 2>&5
25980   ac_status=$?
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25983   { (case "(($ac_try" in
25984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25985   *) ac_try_echo=$ac_try;;
25986 esac
25987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25988   (eval "$ac_try") 2>&5
25989   ac_status=$?
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); }; }; then
25992   { echo "$as_me:$LINENO: result: yes" >&5
25993 echo "${ECHO_T}yes" >&6; }
25994 else
25995   echo "$as_me: program exited with status $ac_status" >&5
25996 echo "$as_me: failed program was:" >&5
25997 sed 's/^/| /' conftest.$ac_ext >&5
25998
25999 ( exit $ac_status )
26000 LDFLAGS="$pgac_save_LDFLAGS"
26001                { echo "$as_me:$LINENO: result: no" >&5
26002 echo "${ECHO_T}no" >&6; }
26003 fi
26004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26005 fi
26006
26007
26008
26009 else
26010   # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26011   { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26012 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26013 pgac_save_LDFLAGS=$LDFLAGS
26014 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26015 if test "$cross_compiling" = yes; then
26016   LDFLAGS="$pgac_save_LDFLAGS"
26017                { echo "$as_me:$LINENO: result: assuming no" >&5
26018 echo "${ECHO_T}assuming no" >&6; }
26019 else
26020   cat >conftest.$ac_ext <<_ACEOF
26021 /* confdefs.h.  */
26022 _ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h.  */
26026 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26027 int
26028 main ()
26029 {
26030
26031   ;
26032   return 0;
26033 }
26034 _ACEOF
26035 rm -f conftest$ac_exeext
26036 if { (ac_try="$ac_link"
26037 case "(($ac_try" in
26038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26039   *) ac_try_echo=$ac_try;;
26040 esac
26041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26042   (eval "$ac_link") 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26046   { (case "(($ac_try" in
26047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048   *) ac_try_echo=$ac_try;;
26049 esac
26050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051   (eval "$ac_try") 2>&5
26052   ac_status=$?
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; }; then
26055   { echo "$as_me:$LINENO: result: yes" >&5
26056 echo "${ECHO_T}yes" >&6; }
26057 else
26058   echo "$as_me: program exited with status $ac_status" >&5
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26061
26062 ( exit $ac_status )
26063 LDFLAGS="$pgac_save_LDFLAGS"
26064                { echo "$as_me:$LINENO: result: no" >&5
26065 echo "${ECHO_T}no" >&6; }
26066 fi
26067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26068 fi
26069
26070
26071
26072 fi
26073
26074
26075 # Begin output steps
26076
26077 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26078 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26079 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26080 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26081 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26082 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26083
26084 # prepare build tree if outside source tree
26085 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26086 # Note 2: /bin/pwd might be better than shell's built-in at getting
26087 #         a symlink-free name.
26088 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26089   vpath_build=no
26090 else
26091   vpath_build=yes
26092   if test "$no_create" != yes; then
26093     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26094     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26095     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26096       || { { echo "$as_me:$LINENO: error: failed" >&5
26097 echo "$as_me: error: failed" >&2;}
26098    { (exit 1); exit 1; }; }
26099     { echo "$as_me:$LINENO: result: done" >&5
26100 echo "${ECHO_T}done" >&6; }
26101   fi
26102 fi
26103
26104
26105
26106 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26107
26108
26109 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}"
26110
26111
26112 if test "$PORTNAME" = "win32"; then
26113 ac_config_commands="$ac_config_commands check_win32_symlinks"
26114
26115 fi
26116
26117 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26118
26119
26120 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26121
26122
26123 cat >confcache <<\_ACEOF
26124 # This file is a shell script that caches the results of configure
26125 # tests run on this system so they can be shared between configure
26126 # scripts and configure runs, see configure's option --config-cache.
26127 # It is not useful on other systems.  If it contains results you don't
26128 # want to keep, you may remove or edit it.
26129 #
26130 # config.status only pays attention to the cache file if you give it
26131 # the --recheck option to rerun configure.
26132 #
26133 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26134 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26135 # following values.
26136
26137 _ACEOF
26138
26139 # The following way of writing the cache mishandles newlines in values,
26140 # but we know of no workaround that is simple, portable, and efficient.
26141 # So, we kill variables containing newlines.
26142 # Ultrix sh set writes to stderr and can't be redirected directly,
26143 # and sets the high bit in the cache file unless we assign to the vars.
26144 (
26145   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26146     eval ac_val=\$$ac_var
26147     case $ac_val in #(
26148     *${as_nl}*)
26149       case $ac_var in #(
26150       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26151 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26152       esac
26153       case $ac_var in #(
26154       _ | IFS | as_nl) ;; #(
26155       *) $as_unset $ac_var ;;
26156       esac ;;
26157     esac
26158   done
26159
26160   (set) 2>&1 |
26161     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26162     *${as_nl}ac_space=\ *)
26163       # `set' does not quote correctly, so add quotes (double-quote
26164       # substitution turns \\\\ into \\, and sed turns \\ into \).
26165       sed -n \
26166         "s/'/'\\\\''/g;
26167           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26168       ;; #(
26169     *)
26170       # `set' quotes correctly as required by POSIX, so do not add quotes.
26171       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26172       ;;
26173     esac |
26174     sort
26175 ) |
26176   sed '
26177      /^ac_cv_env_/b end
26178      t clear
26179      :clear
26180      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26181      t end
26182      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26183      :end' >>confcache
26184 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26185   if test -w "$cache_file"; then
26186     test "x$cache_file" != "x/dev/null" &&
26187       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26188 echo "$as_me: updating cache $cache_file" >&6;}
26189     cat confcache >$cache_file
26190   else
26191     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26192 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26193   fi
26194 fi
26195 rm -f confcache
26196
26197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26198 # Let make expand exec_prefix.
26199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26200
26201 DEFS=-DHAVE_CONFIG_H
26202
26203 ac_libobjs=
26204 ac_ltlibobjs=
26205 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26206   # 1. Remove the extension, and $U if already installed.
26207   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26208   ac_i=`echo "$ac_i" | sed "$ac_script"`
26209   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26210   #    will be set to the directory where LIBOBJS objects are built.
26211   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26212   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26213 done
26214 LIBOBJS=$ac_libobjs
26215
26216 LTLIBOBJS=$ac_ltlibobjs
26217
26218
26219
26220 : ${CONFIG_STATUS=./config.status}
26221 ac_clean_files_save=$ac_clean_files
26222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26223 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26224 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26225 cat >$CONFIG_STATUS <<_ACEOF
26226 #! $SHELL
26227 # Generated by $as_me.
26228 # Run this file to recreate the current configuration.
26229 # Compiler output produced by configure, useful for debugging
26230 # configure, is in config.log if it exists.
26231
26232 debug=false
26233 ac_cs_recheck=false
26234 ac_cs_silent=false
26235 SHELL=\${CONFIG_SHELL-$SHELL}
26236 _ACEOF
26237
26238 cat >>$CONFIG_STATUS <<\_ACEOF
26239 ## --------------------- ##
26240 ## M4sh Initialization.  ##
26241 ## --------------------- ##
26242
26243 # Be more Bourne compatible
26244 DUALCASE=1; export DUALCASE # for MKS sh
26245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26246   emulate sh
26247   NULLCMD=:
26248   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26249   # is contrary to our usage.  Disable this feature.
26250   alias -g '${1+"$@"}'='"$@"'
26251   setopt NO_GLOB_SUBST
26252 else
26253   case `(set -o) 2>/dev/null` in
26254   *posix*) set -o posix ;;
26255 esac
26256
26257 fi
26258
26259
26260
26261
26262 # PATH needs CR
26263 # Avoid depending upon Character Ranges.
26264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26267 as_cr_digits='0123456789'
26268 as_cr_alnum=$as_cr_Letters$as_cr_digits
26269
26270 # The user is always right.
26271 if test "${PATH_SEPARATOR+set}" != set; then
26272   echo "#! /bin/sh" >conf$$.sh
26273   echo  "exit 0"   >>conf$$.sh
26274   chmod +x conf$$.sh
26275   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26276     PATH_SEPARATOR=';'
26277   else
26278     PATH_SEPARATOR=:
26279   fi
26280   rm -f conf$$.sh
26281 fi
26282
26283 # Support unset when possible.
26284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26285   as_unset=unset
26286 else
26287   as_unset=false
26288 fi
26289
26290
26291 # IFS
26292 # We need space, tab and new line, in precisely that order.  Quoting is
26293 # there to prevent editors from complaining about space-tab.
26294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26295 # splitting by setting IFS to empty value.)
26296 as_nl='
26297 '
26298 IFS=" ""        $as_nl"
26299
26300 # Find who we are.  Look in the path if we contain no directory separator.
26301 case $0 in
26302   *[\\/]* ) as_myself=$0 ;;
26303   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26304 for as_dir in $PATH
26305 do
26306   IFS=$as_save_IFS
26307   test -z "$as_dir" && as_dir=.
26308   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26309 done
26310 IFS=$as_save_IFS
26311
26312      ;;
26313 esac
26314 # We did not find ourselves, most probably we were run as `sh COMMAND'
26315 # in which case we are not to be found in the path.
26316 if test "x$as_myself" = x; then
26317   as_myself=$0
26318 fi
26319 if test ! -f "$as_myself"; then
26320   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26321   { (exit 1); exit 1; }
26322 fi
26323
26324 # Work around bugs in pre-3.0 UWIN ksh.
26325 for as_var in ENV MAIL MAILPATH
26326 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26327 done
26328 PS1='$ '
26329 PS2='> '
26330 PS4='+ '
26331
26332 # NLS nuisances.
26333 for as_var in \
26334   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26335   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26336   LC_TELEPHONE LC_TIME
26337 do
26338   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26339     eval $as_var=C; export $as_var
26340   else
26341     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26342   fi
26343 done
26344
26345 # Required to use basename.
26346 if expr a : '\(a\)' >/dev/null 2>&1 &&
26347    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26348   as_expr=expr
26349 else
26350   as_expr=false
26351 fi
26352
26353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26354   as_basename=basename
26355 else
26356   as_basename=false
26357 fi
26358
26359
26360 # Name of the executable.
26361 as_me=`$as_basename -- "$0" ||
26362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26363          X"$0" : 'X\(//\)$' \| \
26364          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26365 echo X/"$0" |
26366     sed '/^.*\/\([^/][^/]*\)\/*$/{
26367             s//\1/
26368             q
26369           }
26370           /^X\/\(\/\/\)$/{
26371             s//\1/
26372             q
26373           }
26374           /^X\/\(\/\).*/{
26375             s//\1/
26376             q
26377           }
26378           s/.*/./; q'`
26379
26380 # CDPATH.
26381 $as_unset CDPATH
26382
26383
26384
26385   as_lineno_1=$LINENO
26386   as_lineno_2=$LINENO
26387   test "x$as_lineno_1" != "x$as_lineno_2" &&
26388   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26389
26390   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26391   # uniformly replaced by the line number.  The first 'sed' inserts a
26392   # line-number line after each line using $LINENO; the second 'sed'
26393   # does the real work.  The second script uses 'N' to pair each
26394   # line-number line with the line containing $LINENO, and appends
26395   # trailing '-' during substitution so that $LINENO is not a special
26396   # case at line end.
26397   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26398   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26399   # E. McMahon (1931-1989) for sed's syntax.  :-)
26400   sed -n '
26401     p
26402     /[$]LINENO/=
26403   ' <$as_myself |
26404     sed '
26405       s/[$]LINENO.*/&-/
26406       t lineno
26407       b
26408       :lineno
26409       N
26410       :loop
26411       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26412       t loop
26413       s/-\n.*//
26414     ' >$as_me.lineno &&
26415   chmod +x "$as_me.lineno" ||
26416     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26417    { (exit 1); exit 1; }; }
26418
26419   # Don't try to exec as it changes $[0], causing all sort of problems
26420   # (the dirname of $[0] is not the place where we might find the
26421   # original and so on.  Autoconf is especially sensitive to this).
26422   . "./$as_me.lineno"
26423   # Exit status is that of the last command.
26424   exit
26425 }
26426
26427
26428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26429   as_dirname=dirname
26430 else
26431   as_dirname=false
26432 fi
26433
26434 ECHO_C= ECHO_N= ECHO_T=
26435 case `echo -n x` in
26436 -n*)
26437   case `echo 'x\c'` in
26438   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26439   *)   ECHO_C='\c';;
26440   esac;;
26441 *)
26442   ECHO_N='-n';;
26443 esac
26444
26445 if expr a : '\(a\)' >/dev/null 2>&1 &&
26446    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26447   as_expr=expr
26448 else
26449   as_expr=false
26450 fi
26451
26452 rm -f conf$$ conf$$.exe conf$$.file
26453 if test -d conf$$.dir; then
26454   rm -f conf$$.dir/conf$$.file
26455 else
26456   rm -f conf$$.dir
26457   mkdir conf$$.dir
26458 fi
26459 echo >conf$$.file
26460 if ln -s conf$$.file conf$$ 2>/dev/null; then
26461   as_ln_s='ln -s'
26462   # ... but there are two gotchas:
26463   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26464   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26465   # In both cases, we have to default to `cp -p'.
26466   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26467     as_ln_s='cp -p'
26468 elif ln conf$$.file conf$$ 2>/dev/null; then
26469   as_ln_s=ln
26470 else
26471   as_ln_s='cp -p'
26472 fi
26473 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26474 rmdir conf$$.dir 2>/dev/null
26475
26476 if mkdir -p . 2>/dev/null; then
26477   as_mkdir_p=:
26478 else
26479   test -d ./-p && rmdir ./-p
26480   as_mkdir_p=false
26481 fi
26482
26483 if test -x / >/dev/null 2>&1; then
26484   as_test_x='test -x'
26485 else
26486   if ls -dL / >/dev/null 2>&1; then
26487     as_ls_L_option=L
26488   else
26489     as_ls_L_option=
26490   fi
26491   as_test_x='
26492     eval sh -c '\''
26493       if test -d "$1"; then
26494         test -d "$1/.";
26495       else
26496         case $1 in
26497         -*)set "./$1";;
26498         esac;
26499         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26500         ???[sx]*):;;*)false;;esac;fi
26501     '\'' sh
26502   '
26503 fi
26504 as_executable_p=$as_test_x
26505
26506 # Sed expression to map a string onto a valid CPP name.
26507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26508
26509 # Sed expression to map a string onto a valid variable name.
26510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26511
26512
26513 exec 6>&1
26514
26515 # Save the log message, to keep $[0] and so on meaningful, and to
26516 # report actual input values of CONFIG_FILES etc. instead of their
26517 # values after options handling.
26518 ac_log="
26519 This file was extended by PostgreSQL $as_me 8.4devel, which was
26520 generated by GNU Autoconf 2.61.  Invocation command line was
26521
26522   CONFIG_FILES    = $CONFIG_FILES
26523   CONFIG_HEADERS  = $CONFIG_HEADERS
26524   CONFIG_LINKS    = $CONFIG_LINKS
26525   CONFIG_COMMANDS = $CONFIG_COMMANDS
26526   $ $0 $@
26527
26528 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26529 "
26530
26531 _ACEOF
26532
26533 cat >>$CONFIG_STATUS <<_ACEOF
26534 # Files that config.status was made for.
26535 config_files="$ac_config_files"
26536 config_headers="$ac_config_headers"
26537 config_links="$ac_config_links"
26538 config_commands="$ac_config_commands"
26539
26540 _ACEOF
26541
26542 cat >>$CONFIG_STATUS <<\_ACEOF
26543 ac_cs_usage="\
26544 \`$as_me' instantiates files from templates according to the
26545 current configuration.
26546
26547 Usage: $0 [OPTIONS] [FILE]...
26548
26549   -h, --help       print this help, then exit
26550   -V, --version    print version number and configuration settings, then exit
26551   -q, --quiet      do not print progress messages
26552   -d, --debug      don't remove temporary files
26553       --recheck    update $as_me by reconfiguring in the same conditions
26554   --file=FILE[:TEMPLATE]
26555                    instantiate the configuration file FILE
26556   --header=FILE[:TEMPLATE]
26557                    instantiate the configuration header FILE
26558
26559 Configuration files:
26560 $config_files
26561
26562 Configuration headers:
26563 $config_headers
26564
26565 Configuration links:
26566 $config_links
26567
26568 Configuration commands:
26569 $config_commands
26570
26571 Report bugs to <bug-autoconf@gnu.org>."
26572
26573 _ACEOF
26574 cat >>$CONFIG_STATUS <<_ACEOF
26575 ac_cs_version="\\
26576 PostgreSQL config.status 8.4devel
26577 configured by $0, generated by GNU Autoconf 2.61,
26578   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26579
26580 Copyright (C) 2006 Free Software Foundation, Inc.
26581 This config.status script is free software; the Free Software Foundation
26582 gives unlimited permission to copy, distribute and modify it."
26583
26584 ac_pwd='$ac_pwd'
26585 srcdir='$srcdir'
26586 _ACEOF
26587
26588 cat >>$CONFIG_STATUS <<\_ACEOF
26589 # If no file are specified by the user, then we need to provide default
26590 # value.  By we need to know if files were specified by the user.
26591 ac_need_defaults=:
26592 while test $# != 0
26593 do
26594   case $1 in
26595   --*=*)
26596     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26597     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26598     ac_shift=:
26599     ;;
26600   *)
26601     ac_option=$1
26602     ac_optarg=$2
26603     ac_shift=shift
26604     ;;
26605   esac
26606
26607   case $ac_option in
26608   # Handling of the options.
26609   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26610     ac_cs_recheck=: ;;
26611   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26612     echo "$ac_cs_version"; exit ;;
26613   --debug | --debu | --deb | --de | --d | -d )
26614     debug=: ;;
26615   --file | --fil | --fi | --f )
26616     $ac_shift
26617     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26618     ac_need_defaults=false;;
26619   --header | --heade | --head | --hea )
26620     $ac_shift
26621     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26622     ac_need_defaults=false;;
26623   --he | --h)
26624     # Conflict between --help and --header
26625     { echo "$as_me: error: ambiguous option: $1
26626 Try \`$0 --help' for more information." >&2
26627    { (exit 1); exit 1; }; };;
26628   --help | --hel | -h )
26629     echo "$ac_cs_usage"; exit ;;
26630   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26631   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26632     ac_cs_silent=: ;;
26633
26634   # This is an error.
26635   -*) { echo "$as_me: error: unrecognized option: $1
26636 Try \`$0 --help' for more information." >&2
26637    { (exit 1); exit 1; }; } ;;
26638
26639   *) ac_config_targets="$ac_config_targets $1"
26640      ac_need_defaults=false ;;
26641
26642   esac
26643   shift
26644 done
26645
26646 ac_configure_extra_args=
26647
26648 if $ac_cs_silent; then
26649   exec 6>/dev/null
26650   ac_configure_extra_args="$ac_configure_extra_args --silent"
26651 fi
26652
26653 _ACEOF
26654 cat >>$CONFIG_STATUS <<_ACEOF
26655 if \$ac_cs_recheck; then
26656   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26657   CONFIG_SHELL=$SHELL
26658   export CONFIG_SHELL
26659   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26660 fi
26661
26662 _ACEOF
26663 cat >>$CONFIG_STATUS <<\_ACEOF
26664 exec 5>>config.log
26665 {
26666   echo
26667   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26668 ## Running $as_me. ##
26669 _ASBOX
26670   echo "$ac_log"
26671 } >&5
26672
26673 _ACEOF
26674 cat >>$CONFIG_STATUS <<_ACEOF
26675 _ACEOF
26676
26677 cat >>$CONFIG_STATUS <<\_ACEOF
26678
26679 # Handling of arguments.
26680 for ac_config_target in $ac_config_targets
26681 do
26682   case $ac_config_target in
26683     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26684     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26685     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26686     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26687     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26688     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26689     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26690     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26691     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26692     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26693     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26694     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26695
26696   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26697 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26698    { (exit 1); exit 1; }; };;
26699   esac
26700 done
26701
26702
26703 # If the user did not use the arguments to specify the items to instantiate,
26704 # then the envvar interface is used.  Set only those that are not.
26705 # We use the long form for the default assignment because of an extremely
26706 # bizarre bug on SunOS 4.1.3.
26707 if $ac_need_defaults; then
26708   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26709   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26710   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26711   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26712 fi
26713
26714 # Have a temporary directory for convenience.  Make it in the build tree
26715 # simply because there is no reason against having it here, and in addition,
26716 # creating and moving files from /tmp can sometimes cause problems.
26717 # Hook for its removal unless debugging.
26718 # Note that there is a small window in which the directory will not be cleaned:
26719 # after its creation but before its name has been assigned to `$tmp'.
26720 $debug ||
26721 {
26722   tmp=
26723   trap 'exit_status=$?
26724   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26725 ' 0
26726   trap '{ (exit 1); exit 1; }' 1 2 13 15
26727 }
26728 # Create a (secure) tmp directory for tmp files.
26729
26730 {
26731   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26732   test -n "$tmp" && test -d "$tmp"
26733 }  ||
26734 {
26735   tmp=./conf$$-$RANDOM
26736   (umask 077 && mkdir "$tmp")
26737 } ||
26738 {
26739    echo "$me: cannot create a temporary directory in ." >&2
26740    { (exit 1); exit 1; }
26741 }
26742
26743 #
26744 # Set up the sed scripts for CONFIG_FILES section.
26745 #
26746
26747 # No need to generate the scripts if there are no CONFIG_FILES.
26748 # This happens for instance when ./config.status config.h
26749 if test -n "$CONFIG_FILES"; then
26750
26751 _ACEOF
26752
26753
26754
26755 ac_delim='%!_!# '
26756 for ac_last_try in false false false false false :; do
26757   cat >conf$$subs.sed <<_ACEOF
26758 SHELL!$SHELL$ac_delim
26759 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26760 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26761 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26762 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26763 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26764 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26765 exec_prefix!$exec_prefix$ac_delim
26766 prefix!$prefix$ac_delim
26767 program_transform_name!$program_transform_name$ac_delim
26768 bindir!$bindir$ac_delim
26769 sbindir!$sbindir$ac_delim
26770 libexecdir!$libexecdir$ac_delim
26771 datarootdir!$datarootdir$ac_delim
26772 datadir!$datadir$ac_delim
26773 sysconfdir!$sysconfdir$ac_delim
26774 sharedstatedir!$sharedstatedir$ac_delim
26775 localstatedir!$localstatedir$ac_delim
26776 includedir!$includedir$ac_delim
26777 oldincludedir!$oldincludedir$ac_delim
26778 docdir!$docdir$ac_delim
26779 infodir!$infodir$ac_delim
26780 htmldir!$htmldir$ac_delim
26781 dvidir!$dvidir$ac_delim
26782 pdfdir!$pdfdir$ac_delim
26783 psdir!$psdir$ac_delim
26784 libdir!$libdir$ac_delim
26785 localedir!$localedir$ac_delim
26786 mandir!$mandir$ac_delim
26787 DEFS!$DEFS$ac_delim
26788 ECHO_C!$ECHO_C$ac_delim
26789 ECHO_N!$ECHO_N$ac_delim
26790 ECHO_T!$ECHO_T$ac_delim
26791 LIBS!$LIBS$ac_delim
26792 build_alias!$build_alias$ac_delim
26793 host_alias!$host_alias$ac_delim
26794 target_alias!$target_alias$ac_delim
26795 configure_args!$configure_args$ac_delim
26796 build!$build$ac_delim
26797 build_cpu!$build_cpu$ac_delim
26798 build_vendor!$build_vendor$ac_delim
26799 build_os!$build_os$ac_delim
26800 host!$host$ac_delim
26801 host_cpu!$host_cpu$ac_delim
26802 host_vendor!$host_vendor$ac_delim
26803 host_os!$host_os$ac_delim
26804 PORTNAME!$PORTNAME$ac_delim
26805 enable_nls!$enable_nls$ac_delim
26806 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26807 default_port!$default_port$ac_delim
26808 enable_shared!$enable_shared$ac_delim
26809 enable_rpath!$enable_rpath$ac_delim
26810 enable_debug!$enable_debug$ac_delim
26811 enable_profiling!$enable_profiling$ac_delim
26812 GCOV!$GCOV$ac_delim
26813 LCOV!$LCOV$ac_delim
26814 GENHTML!$GENHTML$ac_delim
26815 enable_coverage!$enable_coverage$ac_delim
26816 DTRACE!$DTRACE$ac_delim
26817 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26818 enable_dtrace!$enable_dtrace$ac_delim
26819 CC!$CC$ac_delim
26820 CFLAGS!$CFLAGS$ac_delim
26821 LDFLAGS!$LDFLAGS$ac_delim
26822 CPPFLAGS!$CPPFLAGS$ac_delim
26823 ac_ct_CC!$ac_ct_CC$ac_delim
26824 EXEEXT!$EXEEXT$ac_delim
26825 OBJEXT!$OBJEXT$ac_delim
26826 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26827 CPP!$CPP$ac_delim
26828 GCC!$GCC$ac_delim
26829 TAS!$TAS$ac_delim
26830 autodepend!$autodepend$ac_delim
26831 INCLUDES!$INCLUDES$ac_delim
26832 enable_thread_safety!$enable_thread_safety$ac_delim
26833 with_tcl!$with_tcl$ac_delim
26834 with_perl!$with_perl$ac_delim
26835 with_python!$with_python$ac_delim
26836 with_gssapi!$with_gssapi$ac_delim
26837 with_krb5!$with_krb5$ac_delim
26838 krb_srvtab!$krb_srvtab$ac_delim
26839 with_pam!$with_pam$ac_delim
26840 with_ldap!$with_ldap$ac_delim
26841 with_bonjour!$with_bonjour$ac_delim
26842 with_openssl!$with_openssl$ac_delim
26843 with_ossp_uuid!$with_ossp_uuid$ac_delim
26844 XML2_CONFIG!$XML2_CONFIG$ac_delim
26845 with_libxml!$with_libxml$ac_delim
26846 with_libxslt!$with_libxslt$ac_delim
26847 with_system_tzdata!$with_system_tzdata$ac_delim
26848 with_zlib!$with_zlib$ac_delim
26849 GREP!$GREP$ac_delim
26850 EGREP!$EGREP$ac_delim
26851 ELF_SYS!$ELF_SYS$ac_delim
26852 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26853 LD!$LD$ac_delim
26854 with_gnu_ld!$with_gnu_ld$ac_delim
26855 _ACEOF
26856
26857   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26858     break
26859   elif $ac_last_try; then
26860     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26861 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26862    { (exit 1); exit 1; }; }
26863   else
26864     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26865   fi
26866 done
26867
26868 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26869 if test -n "$ac_eof"; then
26870   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26871   ac_eof=`expr $ac_eof + 1`
26872 fi
26873
26874 cat >>$CONFIG_STATUS <<_ACEOF
26875 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26877 _ACEOF
26878 sed '
26879 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26880 s/^/s,@/; s/!/@,|#_!!_#|/
26881 :n
26882 t n
26883 s/'"$ac_delim"'$/,g/; t
26884 s/$/\\/; p
26885 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26886 ' >>$CONFIG_STATUS <conf$$subs.sed
26887 rm -f conf$$subs.sed
26888 cat >>$CONFIG_STATUS <<_ACEOF
26889 CEOF$ac_eof
26890 _ACEOF
26891
26892
26893 ac_delim='%!_!# '
26894 for ac_last_try in false false false false false :; do
26895   cat >conf$$subs.sed <<_ACEOF
26896 ld_R_works!$ld_R_works$ac_delim
26897 RANLIB!$RANLIB$ac_delim
26898 STRIP!$STRIP$ac_delim
26899 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26900 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26901 TAR!$TAR$ac_delim
26902 LN_S!$LN_S$ac_delim
26903 AWK!$AWK$ac_delim
26904 BISON!$BISON$ac_delim
26905 BISONFLAGS!$BISONFLAGS$ac_delim
26906 FLEX!$FLEX$ac_delim
26907 FLEXFLAGS!$FLEXFLAGS$ac_delim
26908 PERL!$PERL$ac_delim
26909 perl_archlibexp!$perl_archlibexp$ac_delim
26910 perl_privlibexp!$perl_privlibexp$ac_delim
26911 perl_useshrplib!$perl_useshrplib$ac_delim
26912 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26913 PYTHON!$PYTHON$ac_delim
26914 python_version!$python_version$ac_delim
26915 python_configdir!$python_configdir$ac_delim
26916 python_includespec!$python_includespec$ac_delim
26917 python_libdir!$python_libdir$ac_delim
26918 python_libspec!$python_libspec$ac_delim
26919 python_additional_libs!$python_additional_libs$ac_delim
26920 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26921 HAVE_IPV6!$HAVE_IPV6$ac_delim
26922 LIBOBJS!$LIBOBJS$ac_delim
26923 acx_pthread_config!$acx_pthread_config$ac_delim
26924 PTHREAD_CC!$PTHREAD_CC$ac_delim
26925 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26926 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26927 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26928 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26929 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26930 MSGFMT!$MSGFMT$ac_delim
26931 MSGMERGE!$MSGMERGE$ac_delim
26932 XGETTEXT!$XGETTEXT$ac_delim
26933 TCLSH!$TCLSH$ac_delim
26934 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26935 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26936 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26937 TCL_LIBS!$TCL_LIBS$ac_delim
26938 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26939 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26940 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26941 NSGMLS!$NSGMLS$ac_delim
26942 JADE!$JADE$ac_delim
26943 have_docbook!$have_docbook$ac_delim
26944 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26945 COLLATEINDEX!$COLLATEINDEX$ac_delim
26946 SGMLSPL!$SGMLSPL$ac_delim
26947 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
26948 vpath_build!$vpath_build$ac_delim
26949 LTLIBOBJS!$LTLIBOBJS$ac_delim
26950 _ACEOF
26951
26952   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
26953     break
26954   elif $ac_last_try; then
26955     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26957    { (exit 1); exit 1; }; }
26958   else
26959     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26960   fi
26961 done
26962
26963 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26964 if test -n "$ac_eof"; then
26965   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26966   ac_eof=`expr $ac_eof + 1`
26967 fi
26968
26969 cat >>$CONFIG_STATUS <<_ACEOF
26970 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26972 _ACEOF
26973 sed '
26974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26975 s/^/s,@/; s/!/@,|#_!!_#|/
26976 :n
26977 t n
26978 s/'"$ac_delim"'$/,g/; t
26979 s/$/\\/; p
26980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26981 ' >>$CONFIG_STATUS <conf$$subs.sed
26982 rm -f conf$$subs.sed
26983 cat >>$CONFIG_STATUS <<_ACEOF
26984 :end
26985 s/|#_!!_#|//g
26986 CEOF$ac_eof
26987 _ACEOF
26988
26989
26990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26992 # trailing colons and then remove the whole line if VPATH becomes empty
26993 # (actually we leave an empty line to preserve line numbers).
26994 if test "x$srcdir" = x.; then
26995   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26996 s/:*\$(srcdir):*/:/
26997 s/:*\${srcdir}:*/:/
26998 s/:*@srcdir@:*/:/
26999 s/^\([^=]*=[     ]*\):*/\1/
27000 s/:*$//
27001 s/^[^=]*=[       ]*$//
27002 }'
27003 fi
27004
27005 cat >>$CONFIG_STATUS <<\_ACEOF
27006 fi # test -n "$CONFIG_FILES"
27007
27008
27009 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
27010 do
27011   case $ac_tag in
27012   :[FHLC]) ac_mode=$ac_tag; continue;;
27013   esac
27014   case $ac_mode$ac_tag in
27015   :[FHL]*:*);;
27016   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27017 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27018    { (exit 1); exit 1; }; };;
27019   :[FH]-) ac_tag=-:-;;
27020   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27021   esac
27022   ac_save_IFS=$IFS
27023   IFS=:
27024   set x $ac_tag
27025   IFS=$ac_save_IFS
27026   shift
27027   ac_file=$1
27028   shift
27029
27030   case $ac_mode in
27031   :L) ac_source=$1;;
27032   :[FH])
27033     ac_file_inputs=
27034     for ac_f
27035     do
27036       case $ac_f in
27037       -) ac_f="$tmp/stdin";;
27038       *) # Look for the file first in the build tree, then in the source tree
27039          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27040          # because $ac_f cannot contain `:'.
27041          test -f "$ac_f" ||
27042            case $ac_f in
27043            [\\/$]*) false;;
27044            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27045            esac ||
27046            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27047 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27048    { (exit 1); exit 1; }; };;
27049       esac
27050       ac_file_inputs="$ac_file_inputs $ac_f"
27051     done
27052
27053     # Let's still pretend it is `configure' which instantiates (i.e., don't
27054     # use $as_me), people would be surprised to read:
27055     #    /* config.h.  Generated by config.status.  */
27056     configure_input="Generated from "`IFS=:
27057           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27058     if test x"$ac_file" != x-; then
27059       configure_input="$ac_file.  $configure_input"
27060       { echo "$as_me:$LINENO: creating $ac_file" >&5
27061 echo "$as_me: creating $ac_file" >&6;}
27062     fi
27063
27064     case $ac_tag in
27065     *:-:* | *:-) cat >"$tmp/stdin";;
27066     esac
27067     ;;
27068   esac
27069
27070   ac_dir=`$as_dirname -- "$ac_file" ||
27071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27072          X"$ac_file" : 'X\(//\)[^/]' \| \
27073          X"$ac_file" : 'X\(//\)$' \| \
27074          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27075 echo X"$ac_file" |
27076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27077             s//\1/
27078             q
27079           }
27080           /^X\(\/\/\)[^/].*/{
27081             s//\1/
27082             q
27083           }
27084           /^X\(\/\/\)$/{
27085             s//\1/
27086             q
27087           }
27088           /^X\(\/\).*/{
27089             s//\1/
27090             q
27091           }
27092           s/.*/./; q'`
27093   { as_dir="$ac_dir"
27094   case $as_dir in #(
27095   -*) as_dir=./$as_dir;;
27096   esac
27097   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27098     as_dirs=
27099     while :; do
27100       case $as_dir in #(
27101       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27102       *) as_qdir=$as_dir;;
27103       esac
27104       as_dirs="'$as_qdir' $as_dirs"
27105       as_dir=`$as_dirname -- "$as_dir" ||
27106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27107          X"$as_dir" : 'X\(//\)[^/]' \| \
27108          X"$as_dir" : 'X\(//\)$' \| \
27109          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27110 echo X"$as_dir" |
27111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27112             s//\1/
27113             q
27114           }
27115           /^X\(\/\/\)[^/].*/{
27116             s//\1/
27117             q
27118           }
27119           /^X\(\/\/\)$/{
27120             s//\1/
27121             q
27122           }
27123           /^X\(\/\).*/{
27124             s//\1/
27125             q
27126           }
27127           s/.*/./; q'`
27128       test -d "$as_dir" && break
27129     done
27130     test -z "$as_dirs" || eval "mkdir $as_dirs"
27131   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27132 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27133    { (exit 1); exit 1; }; }; }
27134   ac_builddir=.
27135
27136 case "$ac_dir" in
27137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27138 *)
27139   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27140   # A ".." for each directory in $ac_dir_suffix.
27141   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27142   case $ac_top_builddir_sub in
27143   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27144   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27145   esac ;;
27146 esac
27147 ac_abs_top_builddir=$ac_pwd
27148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27149 # for backward compatibility:
27150 ac_top_builddir=$ac_top_build_prefix
27151
27152 case $srcdir in
27153   .)  # We are building in place.
27154     ac_srcdir=.
27155     ac_top_srcdir=$ac_top_builddir_sub
27156     ac_abs_top_srcdir=$ac_pwd ;;
27157   [\\/]* | ?:[\\/]* )  # Absolute name.
27158     ac_srcdir=$srcdir$ac_dir_suffix;
27159     ac_top_srcdir=$srcdir
27160     ac_abs_top_srcdir=$srcdir ;;
27161   *) # Relative name.
27162     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27163     ac_top_srcdir=$ac_top_build_prefix$srcdir
27164     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27165 esac
27166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27167
27168
27169   case $ac_mode in
27170   :F)
27171   #
27172   # CONFIG_FILE
27173   #
27174
27175 _ACEOF
27176
27177 cat >>$CONFIG_STATUS <<\_ACEOF
27178 # If the template does not know about datarootdir, expand it.
27179 # FIXME: This hack should be removed a few years after 2.60.
27180 ac_datarootdir_hack=; ac_datarootdir_seen=
27181
27182 case `sed -n '/datarootdir/ {
27183   p
27184   q
27185 }
27186 /@datadir@/p
27187 /@docdir@/p
27188 /@infodir@/p
27189 /@localedir@/p
27190 /@mandir@/p
27191 ' $ac_file_inputs` in
27192 *datarootdir*) ac_datarootdir_seen=yes;;
27193 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27194   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27195 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27196 _ACEOF
27197 cat >>$CONFIG_STATUS <<_ACEOF
27198   ac_datarootdir_hack='
27199   s&@datadir@&$datadir&g
27200   s&@docdir@&$docdir&g
27201   s&@infodir@&$infodir&g
27202   s&@localedir@&$localedir&g
27203   s&@mandir@&$mandir&g
27204     s&\\\${datarootdir}&$datarootdir&g' ;;
27205 esac
27206 _ACEOF
27207
27208 # Neutralize VPATH when `$srcdir' = `.'.
27209 # Shell code in configure.ac might set extrasub.
27210 # FIXME: do we really want to maintain this feature?
27211 cat >>$CONFIG_STATUS <<_ACEOF
27212   sed "$ac_vpsub
27213 $extrasub
27214 _ACEOF
27215 cat >>$CONFIG_STATUS <<\_ACEOF
27216 :t
27217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27218 s&@configure_input@&$configure_input&;t t
27219 s&@top_builddir@&$ac_top_builddir_sub&;t t
27220 s&@srcdir@&$ac_srcdir&;t t
27221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27222 s&@top_srcdir@&$ac_top_srcdir&;t t
27223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27224 s&@builddir@&$ac_builddir&;t t
27225 s&@abs_builddir@&$ac_abs_builddir&;t t
27226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27227 $ac_datarootdir_hack
27228 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27229
27230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27231   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27232   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27233   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27234 which seems to be undefined.  Please make sure it is defined." >&5
27235 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27236 which seems to be undefined.  Please make sure it is defined." >&2;}
27237
27238   rm -f "$tmp/stdin"
27239   case $ac_file in
27240   -) cat "$tmp/out"; rm -f "$tmp/out";;
27241   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27242   esac
27243  ;;
27244   :H)
27245   #
27246   # CONFIG_HEADER
27247   #
27248 _ACEOF
27249
27250 # Transform confdefs.h into a sed script `conftest.defines', that
27251 # substitutes the proper values into config.h.in to produce config.h.
27252 rm -f conftest.defines conftest.tail
27253 # First, append a space to every undef/define line, to ease matching.
27254 echo 's/$/ /' >conftest.defines
27255 # Then, protect against being on the right side of a sed subst, or in
27256 # an unquoted here document, in config.status.  If some macros were
27257 # called several times there might be several #defines for the same
27258 # symbol, which is useless.  But do not sort them, since the last
27259 # AC_DEFINE must be honored.
27260 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27261 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27262 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27263 # PARAMS is the parameter list in the macro definition--in most cases, it's
27264 # just an empty string.
27265 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27266 ac_dB='\\)[      (].*,\\1define\\2'
27267 ac_dC=' '
27268 ac_dD=' ,'
27269
27270 uniq confdefs.h |
27271   sed -n '
27272         t rset
27273         :rset
27274         s/^[     ]*#[    ]*define[       ][      ]*//
27275         t ok
27276         d
27277         :ok
27278         s/[\\&,]/\\&/g
27279         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27280         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27281   ' >>conftest.defines
27282
27283 # Remove the space that was appended to ease matching.
27284 # Then replace #undef with comments.  This is necessary, for
27285 # example, in the case of _POSIX_SOURCE, which is predefined and required
27286 # on some systems where configure will not decide to define it.
27287 # (The regexp can be short, since the line contains either #define or #undef.)
27288 echo 's/ $//
27289 s,^[     #]*u.*,/* & */,' >>conftest.defines
27290
27291 # Break up conftest.defines:
27292 ac_max_sed_lines=50
27293
27294 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27295 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27296 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27297 # et cetera.
27298 ac_in='$ac_file_inputs'
27299 ac_out='"$tmp/out1"'
27300 ac_nxt='"$tmp/out2"'
27301
27302 while :
27303 do
27304   # Write a here document:
27305     cat >>$CONFIG_STATUS <<_ACEOF
27306     # First, check the format of the line:
27307     cat >"\$tmp/defines.sed" <<\\CEOF
27308 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27309 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27310 b
27311 :def
27312 _ACEOF
27313   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27314   echo 'CEOF
27315     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27316   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27317   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27318   grep . conftest.tail >/dev/null || break
27319   rm -f conftest.defines
27320   mv conftest.tail conftest.defines
27321 done
27322 rm -f conftest.defines conftest.tail
27323
27324 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27325 cat >>$CONFIG_STATUS <<\_ACEOF
27326   if test x"$ac_file" != x-; then
27327     echo "/* $configure_input  */" >"$tmp/config.h"
27328     cat "$ac_result" >>"$tmp/config.h"
27329     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27330       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27331 echo "$as_me: $ac_file is unchanged" >&6;}
27332     else
27333       rm -f $ac_file
27334       mv "$tmp/config.h" $ac_file
27335     fi
27336   else
27337     echo "/* $configure_input  */"
27338     cat "$ac_result"
27339   fi
27340   rm -f "$tmp/out12"
27341  ;;
27342   :L)
27343   #
27344   # CONFIG_LINK
27345   #
27346
27347   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27348 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27349
27350   if test ! -r "$srcdir/$ac_source"; then
27351     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27352 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27353    { (exit 1); exit 1; }; }
27354   fi
27355   rm -f "$ac_file"
27356
27357   # Try a relative symlink, then a hard link, then a copy.
27358   case $srcdir in
27359   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27360       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27361   esac
27362   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27363     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27364     cp -p "$srcdir/$ac_source" "$ac_file" ||
27365     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27366 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27367    { (exit 1); exit 1; }; }
27368  ;;
27369   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27370 echo "$as_me: executing $ac_file commands" >&6;}
27371  ;;
27372   esac
27373
27374
27375   case $ac_file$ac_mode in
27376     "check_win32_symlinks":C)
27377 # Links sometimes fail undetected on Mingw -
27378 # so here we detect it and warn the user
27379 for FILE in $CONFIG_LINKS
27380  do
27381         # test -e works for symlinks in the MinGW console
27382         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27383 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27384  done
27385  ;;
27386     "src/include/pg_config.h":H)
27387 # Update timestamp for pg_config.h (see Makefile.global)
27388 echo >src/include/stamp-h
27389  ;;
27390
27391   esac
27392 done # for ac_tag
27393
27394
27395 { (exit 0); exit 0; }
27396 _ACEOF
27397 chmod +x $CONFIG_STATUS
27398 ac_clean_files=$ac_clean_files_save
27399
27400
27401 # configure is writing to config.log, and then calls config.status.
27402 # config.status does its own redirection, appending to config.log.
27403 # Unfortunately, on DOS this fails, as config.log is still kept open
27404 # by configure, so config.status won't be able to write to it; its
27405 # output is simply discarded.  So we exec the FD to /dev/null,
27406 # effectively closing config.log, so it can be properly (re)opened and
27407 # appended to by config.status.  When coming back to configure, we
27408 # need to make the FD available again.
27409 if test "$no_create" != yes; then
27410   ac_cs_success=:
27411   ac_config_status_args=
27412   test "$silent" = yes &&
27413     ac_config_status_args="$ac_config_status_args --quiet"
27414   exec 5>/dev/null
27415   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27416   exec 5>>config.log
27417   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27418   # would make configure fail if this is the last instruction.
27419   $ac_cs_success || { (exit 1); exit 1; }
27420 fi
27421
27422
27423 # Warn about unknown options
27424 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27425   for pgac_arg in $pgac_args with_gnu_ld; do
27426     if test "$pgac_var" = "$pgac_arg"; then
27427       continue 2
27428     fi
27429   done
27430   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27431   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27432 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27433 done