]> granicus.if.org Git - postgresql/blob - configure
Fix recoveryLastXTime logic so that it actually does what one would expect.
[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 vpath_build
770 LTLIBOBJS'
771 ac_subst_files=''
772       ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 LDFLAGS_SL
782 DOCBOOKSTYLE'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890    { (exit 1); exit 1; }; }
891     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892     eval enable_$ac_feature=no ;;
893
894   -docdir | --docdir | --docdi | --doc | --do)
895     ac_prev=docdir ;;
896   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897     docdir=$ac_optarg ;;
898
899   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900     ac_prev=dvidir ;;
901   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902     dvidir=$ac_optarg ;;
903
904   -enable-* | --enable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911     eval enable_$ac_feature=\$ac_optarg ;;
912
913   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915   | --exec | --exe | --ex)
916     ac_prev=exec_prefix ;;
917   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919   | --exec=* | --exe=* | --ex=*)
920     exec_prefix=$ac_optarg ;;
921
922   -gas | --gas | --ga | --g)
923     # Obsolete; use --with-gas.
924     with_gas=yes ;;
925
926   -help | --help | --hel | --he | -h)
927     ac_init_help=long ;;
928   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929     ac_init_help=recursive ;;
930   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931     ac_init_help=short ;;
932
933   -host | --host | --hos | --ho)
934     ac_prev=host_alias ;;
935   -host=* | --host=* | --hos=* | --ho=*)
936     host_alias=$ac_optarg ;;
937
938   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939     ac_prev=htmldir ;;
940   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941   | --ht=*)
942     htmldir=$ac_optarg ;;
943
944   -includedir | --includedir | --includedi | --included | --include \
945   | --includ | --inclu | --incl | --inc)
946     ac_prev=includedir ;;
947   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948   | --includ=* | --inclu=* | --incl=* | --inc=*)
949     includedir=$ac_optarg ;;
950
951   -infodir | --infodir | --infodi | --infod | --info | --inf)
952     ac_prev=infodir ;;
953   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954     infodir=$ac_optarg ;;
955
956   -libdir | --libdir | --libdi | --libd)
957     ac_prev=libdir ;;
958   -libdir=* | --libdir=* | --libdi=* | --libd=*)
959     libdir=$ac_optarg ;;
960
961   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962   | --libexe | --libex | --libe)
963     ac_prev=libexecdir ;;
964   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965   | --libexe=* | --libex=* | --libe=*)
966     libexecdir=$ac_optarg ;;
967
968   -localedir | --localedir | --localedi | --localed | --locale)
969     ac_prev=localedir ;;
970   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971     localedir=$ac_optarg ;;
972
973   -localstatedir | --localstatedir | --localstatedi | --localstated \
974   | --localstate | --localstat | --localsta | --localst | --locals)
975     ac_prev=localstatedir ;;
976   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978     localstatedir=$ac_optarg ;;
979
980   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981     ac_prev=mandir ;;
982   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983     mandir=$ac_optarg ;;
984
985   -nfp | --nfp | --nf)
986     # Obsolete; use --without-fp.
987     with_fp=no ;;
988
989   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990   | --no-cr | --no-c | -n)
991     no_create=yes ;;
992
993   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995     no_recursion=yes ;;
996
997   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999   | --oldin | --oldi | --old | --ol | --o)
1000     ac_prev=oldincludedir ;;
1001   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004     oldincludedir=$ac_optarg ;;
1005
1006   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007     ac_prev=prefix ;;
1008   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009     prefix=$ac_optarg ;;
1010
1011   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012   | --program-pre | --program-pr | --program-p)
1013     ac_prev=program_prefix ;;
1014   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016     program_prefix=$ac_optarg ;;
1017
1018   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019   | --program-suf | --program-su | --program-s)
1020     ac_prev=program_suffix ;;
1021   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023     program_suffix=$ac_optarg ;;
1024
1025   -program-transform-name | --program-transform-name \
1026   | --program-transform-nam | --program-transform-na \
1027   | --program-transform-n | --program-transform- \
1028   | --program-transform | --program-transfor \
1029   | --program-transfo | --program-transf \
1030   | --program-trans | --program-tran \
1031   | --progr-tra | --program-tr | --program-t)
1032     ac_prev=program_transform_name ;;
1033   -program-transform-name=* | --program-transform-name=* \
1034   | --program-transform-nam=* | --program-transform-na=* \
1035   | --program-transform-n=* | --program-transform-=* \
1036   | --program-transform=* | --program-transfor=* \
1037   | --program-transfo=* | --program-transf=* \
1038   | --program-trans=* | --program-tran=* \
1039   | --progr-tra=* | --program-tr=* | --program-t=*)
1040     program_transform_name=$ac_optarg ;;
1041
1042   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043     ac_prev=pdfdir ;;
1044   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045     pdfdir=$ac_optarg ;;
1046
1047   -psdir | --psdir | --psdi | --psd | --ps)
1048     ac_prev=psdir ;;
1049   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050     psdir=$ac_optarg ;;
1051
1052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053   | -silent | --silent | --silen | --sile | --sil)
1054     silent=yes ;;
1055
1056   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057     ac_prev=sbindir ;;
1058   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059   | --sbi=* | --sb=*)
1060     sbindir=$ac_optarg ;;
1061
1062   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064   | --sharedst | --shareds | --shared | --share | --shar \
1065   | --sha | --sh)
1066     ac_prev=sharedstatedir ;;
1067   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070   | --sha=* | --sh=*)
1071     sharedstatedir=$ac_optarg ;;
1072
1073   -site | --site | --sit)
1074     ac_prev=site ;;
1075   -site=* | --site=* | --sit=*)
1076     site=$ac_optarg ;;
1077
1078   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079     ac_prev=srcdir ;;
1080   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081     srcdir=$ac_optarg ;;
1082
1083   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084   | --syscon | --sysco | --sysc | --sys | --sy)
1085     ac_prev=sysconfdir ;;
1086   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088     sysconfdir=$ac_optarg ;;
1089
1090   -target | --target | --targe | --targ | --tar | --ta | --t)
1091     ac_prev=target_alias ;;
1092   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093     target_alias=$ac_optarg ;;
1094
1095   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096     verbose=yes ;;
1097
1098   -version | --version | --versio | --versi | --vers | -V)
1099     ac_init_version=: ;;
1100
1101   -with-* | --with-*)
1102     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid package name: $ac_package" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108     eval with_$ac_package=\$ac_optarg ;;
1109
1110   -without-* | --without-*)
1111     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=no ;;
1118
1119   --x)
1120     # Obsolete; use --with-x.
1121     with_x=yes ;;
1122
1123   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124   | --x-incl | --x-inc | --x-in | --x-i)
1125     ac_prev=x_includes ;;
1126   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128     x_includes=$ac_optarg ;;
1129
1130   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132     ac_prev=x_libraries ;;
1133   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135     x_libraries=$ac_optarg ;;
1136
1137   -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139    { (exit 1); exit 1; }; }
1140     ;;
1141
1142   *=*)
1143     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147    { (exit 1); exit 1; }; }
1148     eval $ac_envvar=\$ac_optarg
1149     export $ac_envvar ;;
1150
1151   *)
1152     # FIXME: should be removed in autoconf 3.0.
1153     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157     ;;
1158
1159   esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164   { echo "$as_me: error: missing argument to $ac_option" >&2
1165    { (exit 1); exit 1; }; }
1166 fi
1167
1168 # Be sure to have absolute directory names.
1169 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170                 datadir sysconfdir sharedstatedir localstatedir includedir \
1171                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172                 libdir localedir mandir
1173 do
1174   eval ac_val=\$$ac_var
1175   case $ac_val in
1176     [\\/$]* | ?:[\\/]* )  continue;;
1177     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178   esac
1179   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180    { (exit 1); exit 1; }; }
1181 done
1182
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1189
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192   if test "x$build_alias" = x; then
1193     cross_compiling=maybe
1194     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195     If a cross compiler is detected then cross compile mode will be used." >&2
1196   elif test "x$build_alias" != "x$host_alias"; then
1197     cross_compiling=yes
1198   fi
1199 fi
1200
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204 test "$silent" = yes && exec 6>/dev/null
1205
1206
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210   { echo "$as_me: error: Working directory cannot be determined" >&2
1211    { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213   { echo "$as_me: error: pwd does not report name of working directory" >&2
1214    { (exit 1); exit 1; }; }
1215
1216
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219   ac_srcdir_defaulted=yes
1220   # Try the directory containing this script, then the parent directory.
1221   ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223          X"$0" : 'X\(//\)[^/]' \| \
1224          X"$0" : 'X\(//\)$' \| \
1225          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)[^/].*/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\/\)$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\).*/{
1240             s//\1/
1241             q
1242           }
1243           s/.*/./; q'`
1244   srcdir=$ac_confdir
1245   if test ! -r "$srcdir/$ac_unique_file"; then
1246     srcdir=..
1247   fi
1248 else
1249   ac_srcdir_defaulted=no
1250 fi
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254    { (exit 1); exit 1; }; }
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259    { (exit 1); exit 1; }; }
1260         pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263   srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273   eval ac_env_${ac_var}_value=\$${ac_var}
1274   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282   # Omit some internal or obsolete options to make the list less imposing.
1283   # This message is too long to be a string in the A/UX 3.1 sh.
1284   cat <<_ACEOF
1285 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295   -h, --help              display this help and exit
1296       --help=short        display options specific to this package
1297       --help=recursive    display the short help of all the included packages
1298   -V, --version           display version information and exit
1299   -q, --quiet, --silent   do not print \`checking...' messages
1300       --cache-file=FILE   cache test results in FILE [disabled]
1301   -C, --config-cache      alias for \`--cache-file=config.cache'
1302   -n, --no-create         do not create output files
1303       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
1305 Installation directories:
1306   --prefix=PREFIX         install architecture-independent files in PREFIX
1307                           [$ac_default_prefix]
1308   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309                           [PREFIX]
1310
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319   --bindir=DIR           user executables [EPREFIX/bin]
1320   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1321   --libexecdir=DIR       program executables [EPREFIX/libexec]
1322   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1323   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1324   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1325   --libdir=DIR           object code libraries [EPREFIX/lib]
1326   --includedir=DIR       C header files [PREFIX/include]
1327   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1328   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1329   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1330   --infodir=DIR          info documentation [DATAROOTDIR/info]
1331   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1332   --mandir=DIR           man documentation [DATAROOTDIR/man]
1333   --docdir=DIR           documentation root [DATAROOTDIR/doc/postgresql]
1334   --htmldir=DIR          html documentation [DOCDIR]
1335   --dvidir=DIR           dvi documentation [DOCDIR]
1336   --pdfdir=DIR           pdf documentation [DOCDIR]
1337   --psdir=DIR            ps documentation [DOCDIR]
1338 _ACEOF
1339
1340   cat <<\_ACEOF
1341
1342 System types:
1343   --build=BUILD     configure for building on BUILD [guessed]
1344   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349   case $ac_init_help in
1350      short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1351    esac
1352   cat <<\_ACEOF
1353
1354 Optional Features:
1355   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357   --disable-integer-datetimes
1358                           disable 64-bit integer date/time support
1359   --enable-nls[=LANGUAGES]
1360                           enable Native Language Support
1361   --disable-shared        do not build shared libraries
1362   --disable-rpath         do not embed shared library search path in
1363                           executables
1364   --disable-spinlocks     do not use spinlocks
1365   --enable-debug          build with debugging symbols (-g)
1366   --enable-profiling      build with profiling enabled
1367   --enable-coverage       build with coverage testing instrumentation
1368   --enable-dtrace         build with DTrace support
1369   --enable-depend         turn on automatic dependency tracking
1370   --enable-cassert        enable assertion checks (for debugging)
1371   --enable-thread-safety  make client libraries thread-safe
1372   --enable-thread-safety-force
1373                           force thread-safety despite thread test failure
1374   --disable-float4-byval  disable float4 passed by value
1375   --disable-float8-byval  disable float8 passed by value
1376   --disable-largefile     omit support for large files
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --with-template=NAME    override operating system template
1382   --with-includes=DIRS    look for additional header files in DIRS
1383   --with-libraries=DIRS   look for additional libraries in DIRS
1384   --with-libs=DIRS        alternative spelling of --with-libraries
1385   --with-pgport=PORTNUM   set default port number [5432]
1386   --with-blocksize=BLOCKSIZE
1387                           set table block size in kB [8]
1388   --with-segsize=SEGSIZE  set table segment size in GB [1]
1389   --with-wal-blocksize=BLOCKSIZE
1390                           set WAL block size in kB [8]
1391   --with-wal-segsize=SEGSIZE
1392                           set WAL segment size in MB [16]
1393   --with-CC=CMD           set compiler (deprecated)
1394   --with-tcl              build Tcl modules (PL/Tcl)
1395   --with-tclconfig=DIR    tclConfig.sh is in DIR
1396   --with-perl             build Perl modules (PL/Perl)
1397   --with-python           build Python modules (PL/Python)
1398   --with-gssapi           build with GSSAPI support
1399   --with-krb5             build with Kerberos 5 support
1400   --with-krb-srvnam=NAME  default service principal name in Kerberos
1401                           [postgres]
1402   --with-pam              build with PAM support
1403   --with-ldap             build with LDAP support
1404   --with-bonjour          build with Bonjour support
1405   --with-openssl          build with OpenSSL support
1406   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1407   --with-libedit-preferred
1408                           prefer BSD Libedit over GNU Readline
1409   --with-ossp-uuid        use OSSP UUID library when building
1410                           contrib/uuid-ossp
1411   --with-libxml           build with XML support
1412   --with-libxslt          use XSLT support when building contrib/xml2
1413   --with-system-tzdata=DIR
1414                           use system time zone data in DIR
1415   --without-zlib          do not use Zlib
1416   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417
1418 Some influential environment variables:
1419   CC          C compiler command
1420   CFLAGS      C compiler flags
1421   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1422               nonstandard directory <lib dir>
1423   LIBS        libraries to pass to the linker, e.g. -l<library>
1424   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425               you have headers in a nonstandard directory <include dir>
1426   CPP         C preprocessor
1427   LDFLAGS_SL
1428   DOCBOOKSTYLE
1429               location of DocBook stylesheets
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to <pgsql-bugs@postgresql.org>.
1435 _ACEOF
1436 ac_status=$?
1437 fi
1438
1439 if test "$ac_init_help" = "recursive"; then
1440   # If there are subdirs, report their specific --help.
1441   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442     test -d "$ac_dir" || continue
1443     ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 PostgreSQL configure 8.4devel
1496 generated by GNU Autoconf 2.61
1497
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502
1503 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1504 _ACEOF
1505   exit
1506 fi
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1510
1511 It was created by PostgreSQL $as_me 8.4devel, which was
1512 generated by GNU Autoconf 2.61.  Invocation command line was
1513
1514   $ $0 $@
1515
1516 _ACEOF
1517 exec 5>>config.log
1518 {
1519 cat <<_ASUNAME
1520 ## --------- ##
1521 ## Platform. ##
1522 ## --------- ##
1523
1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1529
1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1531 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1532
1533 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1534 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1536 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1537 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1538 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1539 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1540
1541 _ASUNAME
1542
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   echo "PATH: $as_dir"
1549 done
1550 IFS=$as_save_IFS
1551
1552 } >&5
1553
1554 cat >&5 <<_ACEOF
1555
1556
1557 ## ----------- ##
1558 ## Core tests. ##
1559 ## ----------- ##
1560
1561 _ACEOF
1562
1563
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1569 ac_configure_args=
1570 ac_configure_args0=
1571 ac_configure_args1=
1572 ac_must_keep_next=false
1573 for ac_pass in 1 2
1574 do
1575   for ac_arg
1576   do
1577     case $ac_arg in
1578     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580     | -silent | --silent | --silen | --sile | --sil)
1581       continue ;;
1582     *\'*)
1583       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1584     esac
1585     case $ac_pass in
1586     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1587     2)
1588       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589       if test $ac_must_keep_next = true; then
1590         ac_must_keep_next=false # Got value, back to normal.
1591       else
1592         case $ac_arg in
1593           *=* | --config-cache | -C | -disable-* | --disable-* \
1594           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596           | -with-* | --with-* | -without-* | --without-* | --x)
1597             case "$ac_configure_args0 " in
1598               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599             esac
1600             ;;
1601           -* ) ac_must_keep_next=true ;;
1602         esac
1603       fi
1604       ac_configure_args="$ac_configure_args '$ac_arg'"
1605       ;;
1606     esac
1607   done
1608 done
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1611
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log.  We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618   # Save into config.log some information that might help in debugging.
1619   {
1620     echo
1621
1622     cat <<\_ASBOX
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1626 _ASBOX
1627     echo
1628     # The following way of writing the cache mishandles newlines in values,
1629 (
1630   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1631     eval ac_val=\$$ac_var
1632     case $ac_val in #(
1633     *${as_nl}*)
1634       case $ac_var in #(
1635       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1637       esac
1638       case $ac_var in #(
1639       _ | IFS | as_nl) ;; #(
1640       *) $as_unset $ac_var ;;
1641       esac ;;
1642     esac
1643   done
1644   (set) 2>&1 |
1645     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1646     *${as_nl}ac_space=\ *)
1647       sed -n \
1648         "s/'\''/'\''\\\\'\'''\''/g;
1649           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650       ;; #(
1651     *)
1652       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1653       ;;
1654     esac |
1655     sort
1656 )
1657     echo
1658
1659     cat <<\_ASBOX
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1663 _ASBOX
1664     echo
1665     for ac_var in $ac_subst_vars
1666     do
1667       eval ac_val=\$$ac_var
1668       case $ac_val in
1669       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670       esac
1671       echo "$ac_var='\''$ac_val'\''"
1672     done | sort
1673     echo
1674
1675     if test -n "$ac_subst_files"; then
1676       cat <<\_ASBOX
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1680 _ASBOX
1681       echo
1682       for ac_var in $ac_subst_files
1683       do
1684         eval ac_val=\$$ac_var
1685         case $ac_val in
1686         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687         esac
1688         echo "$ac_var='\''$ac_val'\''"
1689       done | sort
1690       echo
1691     fi
1692
1693     if test -s confdefs.h; then
1694       cat <<\_ASBOX
1695 ## ----------- ##
1696 ## confdefs.h. ##
1697 ## ----------- ##
1698 _ASBOX
1699       echo
1700       cat confdefs.h
1701       echo
1702     fi
1703     test "$ac_signal" != 0 &&
1704       echo "$as_me: caught signal $ac_signal"
1705     echo "$as_me: exit $exit_status"
1706   } >&5
1707   rm -f core *.core core.conftest.* &&
1708     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709     exit $exit_status
1710 ' 0
1711 for ac_signal in 1 2 13 15; do
1712   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1713 done
1714 ac_signal=0
1715
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1718
1719 # Predefined preprocessor variables.
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1723 _ACEOF
1724
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1728 _ACEOF
1729
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1733 _ACEOF
1734
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1738 _ACEOF
1739
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1743 _ACEOF
1744
1745
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749   set x "$CONFIG_SITE"
1750 elif test "x$prefix" != xNONE; then
1751   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1752 else
1753   set x "$ac_default_prefix/share/config.site" \
1754         "$ac_default_prefix/etc/config.site"
1755 fi
1756 shift
1757 for ac_site_file
1758 do
1759   if test -r "$ac_site_file"; then
1760     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1761 echo "$as_me: loading site script $ac_site_file" >&6;}
1762     sed 's/^/| /' "$ac_site_file" >&5
1763     . "$ac_site_file"
1764   fi
1765 done
1766
1767 if test -r "$cache_file"; then
1768   # Some versions of bash will fail to source /dev/null (special
1769   # files actually), so we avoid doing that.
1770   if test -f "$cache_file"; then
1771     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1772 echo "$as_me: loading cache $cache_file" >&6;}
1773     case $cache_file in
1774       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1775       *)                      . "./$cache_file";;
1776     esac
1777   fi
1778 else
1779   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1780 echo "$as_me: creating cache $cache_file" >&6;}
1781   >$cache_file
1782 fi
1783
1784 # Check that the precious variables saved in the cache have kept the same
1785 # value.
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789   eval ac_new_set=\$ac_env_${ac_var}_set
1790   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791   eval ac_new_val=\$ac_env_${ac_var}_value
1792   case $ac_old_set,$ac_new_set in
1793     set,)
1794       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1795 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796       ac_cache_corrupted=: ;;
1797     ,set)
1798       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1799 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1800       ac_cache_corrupted=: ;;
1801     ,);;
1802     *)
1803       if test "x$ac_old_val" != "x$ac_new_val"; then
1804         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1805 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1806         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1807 echo "$as_me:   former value:  $ac_old_val" >&2;}
1808         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1809 echo "$as_me:   current value: $ac_new_val" >&2;}
1810         ac_cache_corrupted=:
1811       fi;;
1812   esac
1813   # Pass precious variables to config.status.
1814   if test "$ac_new_set" = set; then
1815     case $ac_new_val in
1816     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817     *) ac_arg=$ac_var=$ac_new_val ;;
1818     esac
1819     case " $ac_configure_args " in
1820       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1821       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1822     esac
1823   fi
1824 done
1825 if $ac_cache_corrupted; then
1826   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1830    { (exit 1); exit 1; }; }
1831 fi
1832
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 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863
1864
1865
1866
1867
1868 ac_aux_dir=
1869 for ac_dir in config "$srcdir"/config; do
1870   if test -f "$ac_dir/install-sh"; then
1871     ac_aux_dir=$ac_dir
1872     ac_install_sh="$ac_aux_dir/install-sh -c"
1873     break
1874   elif test -f "$ac_dir/install.sh"; then
1875     ac_aux_dir=$ac_dir
1876     ac_install_sh="$ac_aux_dir/install.sh -c"
1877     break
1878   elif test -f "$ac_dir/shtool"; then
1879     ac_aux_dir=$ac_dir
1880     ac_install_sh="$ac_aux_dir/shtool install -c"
1881     break
1882   fi
1883 done
1884 if test -z "$ac_aux_dir"; then
1885   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1887    { (exit 1); exit 1; }; }
1888 fi
1889
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1897
1898
1899
1900 configure_args=$ac_configure_args
1901
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PG_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1907
1908
1909 # Make sure we can run config.sub.
1910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1911   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1912 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1913    { (exit 1); exit 1; }; }
1914
1915 { echo "$as_me:$LINENO: checking build system type" >&5
1916 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_build+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   ac_build_alias=$build_alias
1921 test "x$ac_build_alias" = x &&
1922   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1923 test "x$ac_build_alias" = x &&
1924   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1925 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1926    { (exit 1); exit 1; }; }
1927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1928   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1929 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1930    { (exit 1); exit 1; }; }
1931
1932 fi
1933 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1934 echo "${ECHO_T}$ac_cv_build" >&6; }
1935 case $ac_cv_build in
1936 *-*-*) ;;
1937 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1938 echo "$as_me: error: invalid value of canonical build" >&2;}
1939    { (exit 1); exit 1; }; };;
1940 esac
1941 build=$ac_cv_build
1942 ac_save_IFS=$IFS; IFS='-'
1943 set x $ac_cv_build
1944 shift
1945 build_cpu=$1
1946 build_vendor=$2
1947 shift; shift
1948 # Remember, the first character of IFS is used to create $*,
1949 # except with old shells:
1950 build_os=$*
1951 IFS=$ac_save_IFS
1952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1953
1954
1955 { echo "$as_me:$LINENO: checking host system type" >&5
1956 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_host+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test "x$host_alias" = x; then
1961   ac_cv_host=$ac_cv_build
1962 else
1963   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1964     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1965 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 fi
1970 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1971 echo "${ECHO_T}$ac_cv_host" >&6; }
1972 case $ac_cv_host in
1973 *-*-*) ;;
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1975 echo "$as_me: error: invalid value of canonical host" >&2;}
1976    { (exit 1); exit 1; }; };;
1977 esac
1978 host=$ac_cv_host
1979 ac_save_IFS=$IFS; IFS='-'
1980 set x $ac_cv_host
1981 shift
1982 host_cpu=$1
1983 host_vendor=$2
1984 shift; shift
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1987 host_os=$*
1988 IFS=$ac_save_IFS
1989 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1990
1991
1992
1993 template=
1994 { echo "$as_me:$LINENO: checking which template to use" >&5
1995 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1996
1997
1998 pgac_args="$pgac_args with_template"
1999
2000
2001 # Check whether --with-template was given.
2002 if test "${with_template+set}" = set; then
2003   withval=$with_template;
2004   case $withval in
2005     yes)
2006       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2007 echo "$as_me: error: argument required for --with-template option" >&2;}
2008    { (exit 1); exit 1; }; }
2009       ;;
2010     no)
2011       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013    { (exit 1); exit 1; }; }
2014       ;;
2015     *)
2016
2017   case $withval in
2018     list)   echo; ls "$srcdir/src/template"; exit;;
2019     *)      if test -f "$srcdir/src/template/$with_template" ; then
2020               template=$withval
2021             else
2022               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2023 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2024    { (exit 1); exit 1; }; }
2025             fi;;
2026   esac
2027
2028       ;;
2029   esac
2030
2031 else
2032
2033 # --with-template not given
2034
2035 case $host_os in
2036      aix*) template=aix ;;
2037     bsdi*) template=bsdi ;;
2038   cygwin*) template=cygwin ;;
2039   darwin*) template=darwin ;;
2040     dgux*) template=dgux ;;
2041  freebsd*) template=freebsd ;;
2042     hpux*) template=hpux ;;
2043     irix*) template=irix ;;
2044  linux*|gnu*|k*bsd*-gnu)
2045            template=linux ;;
2046    mingw*) template=win32 ;;
2047   netbsd*) template=netbsd ;;
2048 nextstep*) template=nextstep ;;
2049  openbsd*) template=openbsd ;;
2050      osf*) template=osf ;;
2051      sco*) template=sco ;;
2052  solaris*) template=solaris ;;
2053    sunos*) template=sunos4 ;;
2054  sysv4.2*)
2055         case $host_vendor in
2056           univel) template=univel ;;
2057         esac ;;
2058    sysv4*) template=svr4 ;;
2059    sysv5*) template=unixware ;;
2060   ultrix*) template=ultrix4 ;;
2061 esac
2062
2063   if test x"$template" = x"" ; then
2064     { { echo "$as_me:$LINENO: error:
2065 *******************************************************************
2066 PostgreSQL has apparently not been ported to your platform yet.
2067 To try a manual configuration, look into the src/template directory
2068 for a similar platform and use the '--with-template=' option.
2069
2070 Please also contact <pgsql-ports@postgresql.org> to see about
2071 rectifying this.  Include the above 'checking host system type...'
2072 line.
2073 *******************************************************************
2074 " >&5
2075 echo "$as_me: error:
2076 *******************************************************************
2077 PostgreSQL has apparently not been ported to your platform yet.
2078 To try a manual configuration, look into the src/template directory
2079 for a similar platform and use the '--with-template=' option.
2080
2081 Please also contact <pgsql-ports@postgresql.org> to see about
2082 rectifying this.  Include the above 'checking host system type...'
2083 line.
2084 *******************************************************************
2085 " >&2;}
2086    { (exit 1); exit 1; }; }
2087   fi
2088
2089
2090 fi
2091
2092
2093
2094 { echo "$as_me:$LINENO: result: $template" >&5
2095 echo "${ECHO_T}$template" >&6; }
2096
2097 PORTNAME=$template
2098
2099
2100 # Initialize default assumption that we do not need separate assembly code
2101 # for TAS (test-and-set).  This can be overridden by the template file
2102 # when it's executed.
2103 need_tas=no
2104 tas_file=dummy.s
2105
2106
2107
2108 ##
2109 ## Command line options
2110 ##
2111
2112 #
2113 # Add non-standard directories to the include path
2114 #
2115
2116 pgac_args="$pgac_args with_includes"
2117
2118
2119 # Check whether --with-includes was given.
2120 if test "${with_includes+set}" = set; then
2121   withval=$with_includes;
2122   case $withval in
2123     yes)
2124       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2125 echo "$as_me: error: argument required for --with-includes option" >&2;}
2126    { (exit 1); exit 1; }; }
2127       ;;
2128     no)
2129       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131    { (exit 1); exit 1; }; }
2132       ;;
2133     *)
2134
2135       ;;
2136   esac
2137
2138 fi
2139
2140
2141
2142
2143 #
2144 # Add non-standard directories to the library search path
2145 #
2146
2147 pgac_args="$pgac_args with_libraries"
2148
2149
2150 # Check whether --with-libraries was given.
2151 if test "${with_libraries+set}" = set; then
2152   withval=$with_libraries;
2153   case $withval in
2154     yes)
2155       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2156 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2157    { (exit 1); exit 1; }; }
2158       ;;
2159     no)
2160       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162    { (exit 1); exit 1; }; }
2163       ;;
2164     *)
2165       LIBRARY_DIRS=$withval
2166       ;;
2167   esac
2168
2169 fi
2170
2171
2172
2173
2174 pgac_args="$pgac_args with_libs"
2175
2176
2177 # Check whether --with-libs was given.
2178 if test "${with_libs+set}" = set; then
2179   withval=$with_libs;
2180   case $withval in
2181     yes)
2182       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2183 echo "$as_me: error: argument required for --with-libs option" >&2;}
2184    { (exit 1); exit 1; }; }
2185       ;;
2186     no)
2187       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189    { (exit 1); exit 1; }; }
2190       ;;
2191     *)
2192       LIBRARY_DIRS=$withval
2193       ;;
2194   esac
2195
2196 fi
2197
2198
2199
2200
2201 #
2202 # 64-bit integer date/time storage: enabled by default.
2203 #
2204 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2205 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2206
2207 pgac_args="$pgac_args enable_integer_datetimes"
2208
2209 # Check whether --enable-integer-datetimes was given.
2210 if test "${enable_integer_datetimes+set}" = set; then
2211   enableval=$enable_integer_datetimes;
2212   case $enableval in
2213     yes)
2214
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2217 _ACEOF
2218
2219       ;;
2220     no)
2221       :
2222       ;;
2223     *)
2224       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2225 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2226    { (exit 1); exit 1; }; }
2227       ;;
2228   esac
2229
2230 else
2231   enable_integer_datetimes=yes
2232
2233 cat >>confdefs.h <<\_ACEOF
2234 #define USE_INTEGER_DATETIMES 1
2235 _ACEOF
2236
2237 fi
2238
2239
2240 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2241 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2242
2243
2244 #
2245 # NLS
2246 #
2247 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2248 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2249
2250 pgac_args="$pgac_args enable_nls"
2251
2252 # Check whether --enable-nls was given.
2253 if test "${enable_nls+set}" = set; then
2254   enableval=$enable_nls;
2255   case $enableval in
2256     yes)
2257       :
2258       ;;
2259     no)
2260       :
2261       ;;
2262     *)
2263       enable_nls=yes
2264 WANTED_LANGUAGES=$enableval
2265       ;;
2266   esac
2267
2268 else
2269   enable_nls=no
2270 fi
2271
2272
2273
2274 if test "$enable_nls" = yes; then
2275
2276 cat >>confdefs.h <<\_ACEOF
2277 #define ENABLE_NLS 1
2278 _ACEOF
2279
2280 fi
2281
2282 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2283 echo "${ECHO_T}$enable_nls" >&6; }
2284
2285
2286
2287 #
2288 # Default port number (--with-pgport), default 5432
2289 #
2290 { echo "$as_me:$LINENO: checking for default port number" >&5
2291 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2292
2293 pgac_args="$pgac_args with_pgport"
2294
2295
2296 # Check whether --with-pgport was given.
2297 if test "${with_pgport+set}" = set; then
2298   withval=$with_pgport;
2299   case $withval in
2300     yes)
2301       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2302 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2303    { (exit 1); exit 1; }; }
2304       ;;
2305     no)
2306       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308    { (exit 1); exit 1; }; }
2309       ;;
2310     *)
2311       default_port=$withval
2312       ;;
2313   esac
2314
2315 else
2316   default_port=5432
2317 fi
2318
2319
2320 { echo "$as_me:$LINENO: result: $default_port" >&5
2321 echo "${ECHO_T}$default_port" >&6; }
2322 # Need both of these because some places want an integer and some a string
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define DEF_PGPORT ${default_port}
2326 _ACEOF
2327
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT_STR "${default_port}"
2331 _ACEOF
2332
2333
2334
2335 #
2336 # Option to disable shared libraries
2337 #
2338
2339 pgac_args="$pgac_args enable_shared"
2340
2341 # Check whether --enable-shared was given.
2342 if test "${enable_shared+set}" = set; then
2343   enableval=$enable_shared;
2344   case $enableval in
2345     yes)
2346       :
2347       ;;
2348     no)
2349       :
2350       ;;
2351     *)
2352       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2353 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2354    { (exit 1); exit 1; }; }
2355       ;;
2356   esac
2357
2358 else
2359   enable_shared=yes
2360
2361 fi
2362
2363
2364
2365
2366 #
2367 # '-rpath'-like feature can be disabled
2368 #
2369
2370 pgac_args="$pgac_args enable_rpath"
2371
2372 # Check whether --enable-rpath was given.
2373 if test "${enable_rpath+set}" = set; then
2374   enableval=$enable_rpath;
2375   case $enableval in
2376     yes)
2377       :
2378       ;;
2379     no)
2380       :
2381       ;;
2382     *)
2383       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2384 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2385    { (exit 1); exit 1; }; }
2386       ;;
2387   esac
2388
2389 else
2390   enable_rpath=yes
2391
2392 fi
2393
2394
2395
2396
2397 #
2398 # Spinlocks
2399 #
2400
2401 pgac_args="$pgac_args enable_spinlocks"
2402
2403 # Check whether --enable-spinlocks was given.
2404 if test "${enable_spinlocks+set}" = set; then
2405   enableval=$enable_spinlocks;
2406   case $enableval in
2407     yes)
2408       :
2409       ;;
2410     no)
2411       :
2412       ;;
2413     *)
2414       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2415 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2416    { (exit 1); exit 1; }; }
2417       ;;
2418   esac
2419
2420 else
2421   enable_spinlocks=yes
2422
2423 fi
2424
2425
2426
2427 #
2428 # --enable-debug adds -g to compiler flags
2429 #
2430
2431 pgac_args="$pgac_args enable_debug"
2432
2433 # Check whether --enable-debug was given.
2434 if test "${enable_debug+set}" = set; then
2435   enableval=$enable_debug;
2436   case $enableval in
2437     yes)
2438       :
2439       ;;
2440     no)
2441       :
2442       ;;
2443     *)
2444       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2445 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2446    { (exit 1); exit 1; }; }
2447       ;;
2448   esac
2449
2450 else
2451   enable_debug=no
2452
2453 fi
2454
2455
2456
2457
2458 #
2459 # --enable-profiling enables gcc profiling
2460 #
2461
2462 pgac_args="$pgac_args enable_profiling"
2463
2464 # Check whether --enable-profiling was given.
2465 if test "${enable_profiling+set}" = set; then
2466   enableval=$enable_profiling;
2467   case $enableval in
2468     yes)
2469       :
2470       ;;
2471     no)
2472       :
2473       ;;
2474     *)
2475       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2476 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2477    { (exit 1); exit 1; }; }
2478       ;;
2479   esac
2480
2481 else
2482   enable_profiling=no
2483
2484 fi
2485
2486
2487
2488
2489 #
2490 # --enable-coverage enables generation of code coverage metrics with gcov
2491 #
2492
2493 pgac_args="$pgac_args enable_coverage"
2494
2495 # Check whether --enable-coverage was given.
2496 if test "${enable_coverage+set}" = set; then
2497   enableval=$enable_coverage;
2498   case $enableval in
2499     yes)
2500       for ac_prog in gcov
2501 do
2502   # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_GCOV+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$GCOV"; then
2510   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_GCOV="$ac_prog"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 GCOV=$ac_cv_prog_GCOV
2530 if test -n "$GCOV"; then
2531   { echo "$as_me:$LINENO: result: $GCOV" >&5
2532 echo "${ECHO_T}$GCOV" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538
2539   test -n "$GCOV" && break
2540 done
2541
2542 if test -z "$GCOV"; then
2543   { { echo "$as_me:$LINENO: error: gcov not found" >&5
2544 echo "$as_me: error: gcov not found" >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547 for ac_prog in lcov
2548 do
2549   # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_LCOV+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$LCOV"; then
2557   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_LCOV="$ac_prog"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 LCOV=$ac_cv_prog_LCOV
2577 if test -n "$LCOV"; then
2578   { echo "$as_me:$LINENO: result: $LCOV" >&5
2579 echo "${ECHO_T}$LCOV" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586   test -n "$LCOV" && break
2587 done
2588
2589 if test -z "$LCOV"; then
2590   { { echo "$as_me:$LINENO: error: lcov not found" >&5
2591 echo "$as_me: error: lcov not found" >&2;}
2592    { (exit 1); exit 1; }; }
2593 fi
2594 for ac_prog in genhtml
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_GENHTML+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$GENHTML"; then
2604   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_GENHTML="$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 GENHTML=$ac_cv_prog_GENHTML
2624 if test -n "$GENHTML"; then
2625   { echo "$as_me:$LINENO: result: $GENHTML" >&5
2626 echo "${ECHO_T}$GENHTML" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   test -n "$GENHTML" && break
2634 done
2635
2636 if test -z "$GENHTML"; then
2637   { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2638 echo "$as_me: error: genhtml not found" >&2;}
2639    { (exit 1); exit 1; }; }
2640 fi
2641       ;;
2642     no)
2643       :
2644       ;;
2645     *)
2646       { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2647 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2648    { (exit 1); exit 1; }; }
2649       ;;
2650   esac
2651
2652 else
2653   enable_coverage=no
2654
2655 fi
2656
2657
2658
2659
2660 #
2661 # DTrace
2662 #
2663
2664 pgac_args="$pgac_args enable_dtrace"
2665
2666 # Check whether --enable-dtrace was given.
2667 if test "${enable_dtrace+set}" = set; then
2668   enableval=$enable_dtrace;
2669   case $enableval in
2670     yes)
2671
2672 cat >>confdefs.h <<\_ACEOF
2673 #define ENABLE_DTRACE 1
2674 _ACEOF
2675
2676 for ac_prog in dtrace
2677 do
2678   # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_DTRACE+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if test -n "$DTRACE"; then
2686   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693   for ac_exec_ext in '' $ac_executable_extensions; do
2694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695     ac_cv_prog_DTRACE="$ac_prog"
2696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 DTRACE=$ac_cv_prog_DTRACE
2706 if test -n "$DTRACE"; then
2707   { echo "$as_me:$LINENO: result: $DTRACE" >&5
2708 echo "${ECHO_T}$DTRACE" >&6; }
2709 else
2710   { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2713
2714
2715   test -n "$DTRACE" && break
2716 done
2717
2718 if test -z "$DTRACE"; then
2719   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2720 echo "$as_me: error: dtrace not found" >&2;}
2721    { (exit 1); exit 1; }; }
2722 fi
2723
2724       ;;
2725     no)
2726       :
2727       ;;
2728     *)
2729       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2730 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2731    { (exit 1); exit 1; }; }
2732       ;;
2733   esac
2734
2735 else
2736   enable_dtrace=no
2737
2738 fi
2739
2740
2741
2742
2743 #
2744 # Block size
2745 #
2746 { echo "$as_me:$LINENO: checking for block size" >&5
2747 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2748
2749 pgac_args="$pgac_args with_blocksize"
2750
2751
2752 # Check whether --with-blocksize was given.
2753 if test "${with_blocksize+set}" = set; then
2754   withval=$with_blocksize;
2755   case $withval in
2756     yes)
2757       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2758 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2759    { (exit 1); exit 1; }; }
2760       ;;
2761     no)
2762       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764    { (exit 1); exit 1; }; }
2765       ;;
2766     *)
2767       blocksize=$withval
2768       ;;
2769   esac
2770
2771 else
2772   blocksize=8
2773 fi
2774
2775
2776 case ${blocksize} in
2777   1) BLCKSZ=1024;;
2778   2) BLCKSZ=2048;;
2779   4) BLCKSZ=4096;;
2780   8) BLCKSZ=8192;;
2781  16) BLCKSZ=16384;;
2782  32) BLCKSZ=32768;;
2783   *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2784 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2785    { (exit 1); exit 1; }; }
2786 esac
2787 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2788 echo "${ECHO_T}${blocksize}kB" >&6; }
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define BLCKSZ ${BLCKSZ}
2793 _ACEOF
2794
2795
2796 #
2797 # Relation segment size
2798 #
2799 { echo "$as_me:$LINENO: checking for segment size" >&5
2800 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2801
2802 pgac_args="$pgac_args with_segsize"
2803
2804
2805 # Check whether --with-segsize was given.
2806 if test "${with_segsize+set}" = set; then
2807   withval=$with_segsize;
2808   case $withval in
2809     yes)
2810       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2811 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2812    { (exit 1); exit 1; }; }
2813       ;;
2814     no)
2815       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817    { (exit 1); exit 1; }; }
2818       ;;
2819     *)
2820       segsize=$withval
2821       ;;
2822   esac
2823
2824 else
2825   segsize=1
2826 fi
2827
2828
2829 # this expression is set up to avoid unnecessary integer overflow
2830 # blocksize is already guaranteed to be a factor of 1024
2831 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2832 test $? -eq 0 || exit 1
2833 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2834 echo "${ECHO_T}${segsize}GB" >&6; }
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define RELSEG_SIZE ${RELSEG_SIZE}
2839 _ACEOF
2840
2841
2842 #
2843 # WAL block size
2844 #
2845 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2846 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2847
2848 pgac_args="$pgac_args with_wal_blocksize"
2849
2850
2851 # Check whether --with-wal-blocksize was given.
2852 if test "${with_wal_blocksize+set}" = set; then
2853   withval=$with_wal_blocksize;
2854   case $withval in
2855     yes)
2856       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2857 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2858    { (exit 1); exit 1; }; }
2859       ;;
2860     no)
2861       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863    { (exit 1); exit 1; }; }
2864       ;;
2865     *)
2866       wal_blocksize=$withval
2867       ;;
2868   esac
2869
2870 else
2871   wal_blocksize=8
2872 fi
2873
2874
2875 case ${wal_blocksize} in
2876   1) XLOG_BLCKSZ=1024;;
2877   2) XLOG_BLCKSZ=2048;;
2878   4) XLOG_BLCKSZ=4096;;
2879   8) XLOG_BLCKSZ=8192;;
2880  16) XLOG_BLCKSZ=16384;;
2881  32) XLOG_BLCKSZ=32768;;
2882  64) XLOG_BLCKSZ=65536;;
2883   *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2884 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2885    { (exit 1); exit 1; }; }
2886 esac
2887 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2888 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2893 _ACEOF
2894
2895
2896 #
2897 # WAL segment size
2898 #
2899 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2900 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2901
2902 pgac_args="$pgac_args with_wal_segsize"
2903
2904
2905 # Check whether --with-wal-segsize was given.
2906 if test "${with_wal_segsize+set}" = set; then
2907   withval=$with_wal_segsize;
2908   case $withval in
2909     yes)
2910       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2911 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2912    { (exit 1); exit 1; }; }
2913       ;;
2914     no)
2915       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917    { (exit 1); exit 1; }; }
2918       ;;
2919     *)
2920       wal_segsize=$withval
2921       ;;
2922   esac
2923
2924 else
2925   wal_segsize=16
2926 fi
2927
2928
2929 case ${wal_segsize} in
2930   1) ;;
2931   2) ;;
2932   4) ;;
2933   8) ;;
2934  16) ;;
2935  32) ;;
2936  64) ;;
2937   *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2938 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2939    { (exit 1); exit 1; }; }
2940 esac
2941 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2942 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2943
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2947 _ACEOF
2948
2949
2950 #
2951 # C compiler
2952 #
2953
2954 # For historical reasons you can also use --with-CC to specify the C compiler
2955 # to use, although the standard way to do this is to set the CC environment
2956 # variable.
2957
2958 pgac_args="$pgac_args with_CC"
2959
2960
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then
2963   withval=$with_CC;
2964   case $withval in
2965     yes)
2966       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2967 echo "$as_me: error: argument required for --with-CC option" >&2;}
2968    { (exit 1); exit 1; }; }
2969       ;;
2970     no)
2971       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973    { (exit 1); exit 1; }; }
2974       ;;
2975     *)
2976       CC=$with_CC
2977       ;;
2978   esac
2979
2980 fi
2981
2982
2983
2984 case $template in
2985   aix) pgac_cc_list="gcc xlc";;
2986  irix) pgac_cc_list="cc";; # no gcc
2987     *) pgac_cc_list="gcc cc";;
2988 esac
2989
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996   for ac_prog in $pgac_cc_list
2997   do
2998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   if test -n "$CC"; then
3006   ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011   IFS=$as_save_IFS
3012   test -z "$as_dir" && as_dir=.
3013   for ac_exec_ext in '' $ac_executable_extensions; do
3014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017     break 2
3018   fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027   { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3029 else
3030   { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3032 fi
3033
3034
3035     test -n "$CC" && break
3036   done
3037 fi
3038 if test -z "$CC"; then
3039   ac_ct_CC=$CC
3040   for ac_prog in $pgac_cc_list
3041 do
3042   # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   if test -n "$ac_ct_CC"; then
3050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057   for ac_exec_ext in '' $ac_executable_extensions; do
3058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059     ac_cv_prog_ac_ct_CC="$ac_prog"
3060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3073 else
3074   { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3076 fi
3077
3078
3079   test -n "$ac_ct_CC" && break
3080 done
3081
3082   if test "x$ac_ct_CC" = x; then
3083     CC=""
3084   else
3085     case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet.  If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&5
3090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3091 whose name does not start with the host triplet.  If you think this
3092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095     CC=$ac_ct_CC
3096   fi
3097 fi
3098
3099
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compiler --version >&5") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compiler -v >&5") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_compiler -V >&5") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }
3139
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163 #
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort.  b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168 #
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions.  Remove them first so a
3171 # subsequent execution test works.
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3174 do
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178   esac
3179 done
3180 rm -f $ac_rmfiles
3181
3182 if { (ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_link_default") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; then
3192   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3196 # Autoconf.
3197 for ac_file in $ac_files ''
3198 do
3199   test -f "$ac_file" || continue
3200   case $ac_file in
3201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3202         ;;
3203     [ab].out )
3204         # We found the default executable, but exeext='' is most
3205         # certainly right.
3206         break;;
3207     *.* )
3208         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209         then :; else
3210            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211         fi
3212         # We set ac_cv_exeext here because the later test for it is not
3213         # safe: cross compilers may not add the suffix if given an `-o'
3214         # argument, so we may need to know it at that point already.
3215         # Even if this section looks crufty: it has the advantage of
3216         # actually working.
3217         break;;
3218     * )
3219         break;;
3220   esac
3221 done
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3223
3224 else
3225   ac_file=''
3226 fi
3227
3228 { echo "$as_me:$LINENO: result: $ac_file" >&5
3229 echo "${ECHO_T}$ac_file" >&6; }
3230 if test -z "$ac_file"; then
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: C compiler cannot create executables
3237 See \`config.log' for more details." >&2;}
3238    { (exit 77); exit 77; }; }
3239 fi
3240
3241 ac_exeext=$ac_cv_exeext
3242
3243 # Check that the compiler produces executables we can run.  If not, either
3244 # the compiler is broken, or we cross compile.
3245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248 # If not cross compiling, check that we can run a simple program.
3249 if test "$cross_compiling" != yes; then
3250   if { ac_try='./$ac_file'
3251   { (case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_try") 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }; }; then
3260     cross_compiling=no
3261   else
3262     if test "$cross_compiling" = maybe; then
3263         cross_compiling=yes
3264     else
3265         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details." >&2;}
3271    { (exit 1); exit 1; }; }
3272     fi
3273   fi
3274 fi
3275 { echo "$as_me:$LINENO: result: yes" >&5
3276 echo "${ECHO_T}yes" >&6; }
3277
3278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run.  If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3285 echo "${ECHO_T}$cross_compiling" >&6; }
3286
3287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3289 if { (ac_try="$ac_link"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_link") 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; then
3299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 # `rm'.
3303 for ac_file in conftest.exe conftest conftest.*; do
3304   test -f "$ac_file" || continue
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308           break;;
3309     * ) break;;
3310   esac
3311 done
3312 else
3313   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details." >&2;}
3317    { (exit 1); exit 1; }; }
3318 fi
3319
3320 rm -f conftest$ac_cv_exeext
3321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3323
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3326 ac_exeext=$EXEEXT
3327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3329 if test "${ac_cv_objext+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354   (eval "$ac_compile") 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; then
3358   for ac_file in conftest.o conftest.obj conftest.*; do
3359   test -f "$ac_file" || continue;
3360   case $ac_file in
3361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363        break;;
3364   esac
3365 done
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details." >&5
3372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details." >&2;}
3374    { (exit 1); exit 1; }; }
3375 fi
3376
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378 fi
3379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3380 echo "${ECHO_T}$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3382 ac_objext=$OBJEXT
3383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 int
3396 main ()
3397 {
3398 #ifndef __GNUC__
3399        choke me
3400 #endif
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compile") 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } && {
3420          test -z "$ac_c_werror_flag" ||
3421          test ! -s conftest.err
3422        } && test -s conftest.$ac_objext; then
3423   ac_compiler_gnu=yes
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428         ac_compiler_gnu=no
3429 fi
3430
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433
3434 fi
3435 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3437 GCC=`test $ac_compiler_gnu = yes && echo yes`
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   ac_save_c_werror_flag=$ac_c_werror_flag
3446    ac_c_werror_flag=yes
3447    ac_cv_prog_cc_g=no
3448    CFLAGS="-g"
3449    cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_compile") 2>conftest.er1
3472   ac_status=$?
3473   grep -v '^ *+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } && {
3478          test -z "$ac_c_werror_flag" ||
3479          test ! -s conftest.err
3480        } && test -s conftest.$ac_objext; then
3481   ac_cv_prog_cc_g=yes
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486         CFLAGS=""
3487       cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509   (eval "$ac_compile") 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } && {
3516          test -z "$ac_c_werror_flag" ||
3517          test ! -s conftest.err
3518        } && test -s conftest.$ac_objext; then
3519   :
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524         ac_c_werror_flag=$ac_save_c_werror_flag
3525          CFLAGS="-g"
3526          cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h.  */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548   (eval "$ac_compile") 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } && {
3555          test -z "$ac_c_werror_flag" ||
3556          test ! -s conftest.err
3557        } && test -s conftest.$ac_objext; then
3558   ac_cv_prog_cc_g=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563
3564 fi
3565
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 fi
3571
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573    ac_c_werror_flag=$ac_save_c_werror_flag
3574 fi
3575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3576 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578   CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580   if test "$GCC" = yes; then
3581     CFLAGS="-g -O2"
3582   else
3583     CFLAGS="-g"
3584   fi
3585 else
3586   if test "$GCC" = yes; then
3587     CFLAGS="-O2"
3588   else
3589     CFLAGS=
3590   fi
3591 fi
3592 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3593 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_c89+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   ac_cv_prog_cc_c89=no
3598 ac_save_CC=$CC
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #include <stdarg.h>
3606 #include <stdio.h>
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613      char **p;
3614      int i;
3615 {
3616   return p[i];
3617 }
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3619 {
3620   char *s;
3621   va_list v;
3622   va_start (v,p);
3623   s = g (p, va_arg (v,int));
3624   va_end (v);
3625   return s;
3626 }
3627
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3629    function prototypes and stuff, but not '\xHH' hex character constants.
3630    These don't provoke an error unfortunately, instead are silently treated
3631    as 'x'.  The following induces an error, until -std is added to get
3632    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3633    array size at least.  It's necessary to write '\x00'==0 to get something
3634    that's true only with -std.  */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638    inside strings and character constants.  */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3648 int
3649 main ()
3650 {
3651 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659   CC="$ac_save_CC $ac_arg"
3660   rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_compile") 2>conftest.er1
3668   ac_status=$?
3669   grep -v '^ *+' conftest.er1 >conftest.err
3670   rm -f conftest.er1
3671   cat conftest.err >&5
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } && {
3674          test -z "$ac_c_werror_flag" ||
3675          test ! -s conftest.err
3676        } && test -s conftest.$ac_objext; then
3677   ac_cv_prog_cc_c89=$ac_arg
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
3683 fi
3684
3685 rm -f core conftest.err conftest.$ac_objext
3686   test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 done
3688 rm -f conftest.$ac_ext
3689 CC=$ac_save_CC
3690
3691 fi
3692 # AC_CACHE_VAL
3693 case "x$ac_cv_prog_cc_c89" in
3694   x)
3695     { echo "$as_me:$LINENO: result: none needed" >&5
3696 echo "${ECHO_T}none needed" >&6; } ;;
3697   xno)
3698     { echo "$as_me:$LINENO: result: unsupported" >&5
3699 echo "${ECHO_T}unsupported" >&6; } ;;
3700   *)
3701     CC="$CC $ac_cv_prog_cc_c89"
3702     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3704 esac
3705
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713
3714 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3715 # but has idiosyncrasies of its own.  We assume icc will define
3716 # __INTEL_COMPILER regardless of CFLAGS.
3717
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h.  */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728 #ifndef __INTEL_COMPILER
3729 choke me
3730 #endif
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3737 case "(($ac_try" in
3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739   *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742   (eval "$ac_compile") 2>conftest.er1
3743   ac_status=$?
3744   grep -v '^ *+' conftest.er1 >conftest.err
3745   rm -f conftest.er1
3746   cat conftest.err >&5
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } && {
3749          test -z "$ac_c_werror_flag" ||
3750          test ! -s conftest.err
3751        } && test -s conftest.$ac_objext; then
3752   ICC=yes
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757         ICC=no
3758 fi
3759
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761
3762 # Check if it's Sun Studio compiler. We assume that
3763 # __SUNPRO_C will be defined for Sun Studio compilers
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770
3771 int
3772 main ()
3773 {
3774 #ifndef __SUNPRO_C
3775 choke me
3776 #endif
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_compile") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } && {
3795          test -z "$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        } && test -s conftest.$ac_objext; then
3798   SUN_STUDIO_CC=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803         SUN_STUDIO_CC=no
3804 fi
3805
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807
3808
3809
3810 unset CFLAGS
3811
3812 #
3813 # Read the template
3814 #
3815 . "$srcdir/src/template/$template" || exit
3816
3817 # CFLAGS are selected so:
3818 # If the user specifies something in the environment, that is used.
3819 # else:  If the template file set something, that is used.
3820 # else:  If coverage was enabled, don't set anything.
3821 # else:  If the compiler is GCC, then we use -O2.
3822 # else:  If the compiler is something else, then we use -O.
3823
3824 if test "$ac_env_CFLAGS_set" = set; then
3825   CFLAGS=$ac_env_CFLAGS_value
3826 elif test "${CFLAGS+set}" = set; then
3827   : # (keep what template set)
3828 elif test "$enable_coverage" = yes; then
3829   : # no optimization by default
3830 elif test "$GCC" = yes; then
3831   CFLAGS="-O2"
3832 else
3833   # if the user selected debug mode, don't use -O
3834   if test "$enable_debug" != yes; then
3835     CFLAGS="-O"
3836   fi
3837 fi
3838
3839 # Some versions of GCC support some additional useful warning flags.
3840 # Check whether they are supported, and add them to CFLAGS if so.
3841 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3842
3843 if test "$GCC" = yes -a "$ICC" = no; then
3844   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3845   # These work in some but not all gcc versions
3846   { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3847 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3848 pgac_save_CFLAGS=$CFLAGS
3849 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856
3857 int
3858 main ()
3859 {
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_compile") 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } && {
3879          test -z "$ac_c_werror_flag" ||
3880          test ! -s conftest.err
3881        } && test -s conftest.$ac_objext; then
3882   { echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6; }
3884 else
3885   echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888         CFLAGS="$pgac_save_CFLAGS"
3889                     { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894
3895   { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3896 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3897 pgac_save_CFLAGS=$CFLAGS
3898 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921   (eval "$ac_compile") 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } && {
3928          test -z "$ac_c_werror_flag" ||
3929          test ! -s conftest.err
3930        } && test -s conftest.$ac_objext; then
3931   { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3933 else
3934   echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937         CFLAGS="$pgac_save_CFLAGS"
3938                     { echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6; }
3940 fi
3941
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943
3944   # Disable strict-aliasing rules; needed for gcc 3.3+
3945   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3946 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3947 pgac_save_CFLAGS=$CFLAGS
3948 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3966 case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_compile") 2>conftest.er1
3972   ac_status=$?
3973   grep -v '^ *+' conftest.er1 >conftest.err
3974   rm -f conftest.er1
3975   cat conftest.err >&5
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); } && {
3978          test -z "$ac_c_werror_flag" ||
3979          test ! -s conftest.err
3980        } && test -s conftest.$ac_objext; then
3981   { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3983 else
3984   echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987         CFLAGS="$pgac_save_CFLAGS"
3988                     { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3990 fi
3991
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993
3994   # Disable optimizations that assume no overflow; needed for gcc 4.3+
3995   { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3996 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3997 pgac_save_CFLAGS=$CFLAGS
3998 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005
4006 int
4007 main ()
4008 {
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018   *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021   (eval "$ac_compile") 2>conftest.er1
4022   ac_status=$?
4023   grep -v '^ *+' conftest.er1 >conftest.err
4024   rm -f conftest.er1
4025   cat conftest.err >&5
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); } && {
4028          test -z "$ac_c_werror_flag" ||
4029          test ! -s conftest.err
4030        } && test -s conftest.$ac_objext; then
4031   { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037         CFLAGS="$pgac_save_CFLAGS"
4038                     { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043
4044 elif test "$ICC" = yes; then
4045   # Intel's compiler has a bug/misoptimization in checking for
4046   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4047   { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4048 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4049 pgac_save_CFLAGS=$CFLAGS
4050 CFLAGS="$pgac_save_CFLAGS -mp1"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057
4058 int
4059 main ()
4060 {
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_compile") 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } && {
4080          test -z "$ac_c_werror_flag" ||
4081          test ! -s conftest.err
4082        } && test -s conftest.$ac_objext; then
4083   { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089         CFLAGS="$pgac_save_CFLAGS"
4090                     { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095
4096   # Make sure strict aliasing is off (though this is said to be the default)
4097   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4098 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4099 pgac_save_CFLAGS=$CFLAGS
4100 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_compile") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } && {
4130          test -z "$ac_c_werror_flag" ||
4131          test ! -s conftest.err
4132        } && test -s conftest.$ac_objext; then
4133   { echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6; }
4135 else
4136   echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139         CFLAGS="$pgac_save_CFLAGS"
4140                     { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4142 fi
4143
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146 elif test x"${CC}" = x"xlc"; then
4147   # AIX xlc has to have strict aliasing turned off too
4148   { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4149 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4150 pgac_save_CFLAGS=$CFLAGS
4151 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158
4159 int
4160 main ()
4161 {
4162
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_compile") 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } && {
4181          test -z "$ac_c_werror_flag" ||
4182          test ! -s conftest.err
4183        } && test -s conftest.$ac_objext; then
4184   { echo "$as_me:$LINENO: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6; }
4186 else
4187   echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190         CFLAGS="$pgac_save_CFLAGS"
4191                     { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4193 fi
4194
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197 fi
4198
4199 # supply -g if --enable-debug
4200 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4201   CFLAGS="$CFLAGS -g"
4202 fi
4203
4204 # enable code coverage if --enable-coverage
4205 if test "$enable_coverage" = yes; then
4206   if test "$GCC" = yes; then
4207     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4208   else
4209     { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4210 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4211    { (exit 1); exit 1; }; }
4212   fi
4213 fi
4214
4215 # enable profiling if --enable-profiling
4216 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217   if test "$GCC" = yes; then
4218
4219 cat >>confdefs.h <<\_ACEOF
4220 #define PROFILE_PID_DIR 1
4221 _ACEOF
4222
4223     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4224   else
4225     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4226 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4227    { (exit 1); exit 1; }; }
4228   fi
4229 fi
4230
4231 # We already have this in Makefile.win32, but configure needs it too
4232 if test "$PORTNAME" = "win32"; then
4233   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4234 fi
4235
4236 # Check if the compiler still works with the template settings
4237 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4238 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249 return 0;
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (ac_try="$ac_link"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_link") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } && {
4268          test -z "$ac_c_werror_flag" ||
4269          test ! -s conftest.err
4270        } && test -s conftest$ac_exeext &&
4271        $as_test_x conftest$ac_exeext; then
4272   { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278         { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4281 echo "$as_me: error: cannot proceed" >&2;}
4282    { (exit 1); exit 1; }; }
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286       conftest$ac_exeext conftest.$ac_ext
4287
4288 # Defend against gcc -ffast-math
4289 if test "$GCC" = yes; then
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300 #ifdef __FAST_MATH__
4301 choke me
4302 #endif
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_compile") 2>conftest.er1
4315   ac_status=$?
4316   grep -v '^ *+' conftest.er1 >conftest.err
4317   rm -f conftest.er1
4318   cat conftest.err >&5
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); } && {
4321          test -z "$ac_c_werror_flag" ||
4322          test ! -s conftest.err
4323        } && test -s conftest.$ac_objext; then
4324   :
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4330 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4331    { (exit 1); exit 1; }; }
4332 fi
4333
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4346   CPP=
4347 fi
4348 if test -z "$CPP"; then
4349   if test "${ac_cv_prog_CPP+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352       # Double quotes because CPP needs to be expanded
4353     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4354     do
4355       ac_preproc_ok=false
4356 for ac_c_preproc_warn_flag in '' yes
4357 do
4358   # Use a header file that comes with gcc, so configuring glibc
4359   # with a fresh cross-compiler works.
4360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361   # <limits.h> exists even on freestanding compilers.
4362   # On the NeXT, cc -E runs the code through the compiler's parser,
4363   # not just through cpp. "Syntax error" is here to catch this case.
4364   cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #ifdef __STDC__
4371 # include <limits.h>
4372 #else
4373 # include <assert.h>
4374 #endif
4375                      Syntax error
4376 _ACEOF
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } >/dev/null && {
4390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391          test ! -s conftest.err
4392        }; then
4393   :
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398   # Broken: fails on valid input.
4399 continue
4400 fi
4401
4402 rm -f conftest.err conftest.$ac_ext
4403
4404   # OK, works on sane cases.  Now check whether nonexistent headers
4405   # can be detected and how.
4406   cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 #include <ac_nonexistent.h>
4413 _ACEOF
4414 if { (ac_try="$ac_cpp conftest.$ac_ext"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } >/dev/null && {
4427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4428          test ! -s conftest.err
4429        }; then
4430   # Broken: success on invalid input.
4431 continue
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436   # Passes both tests.
4437 ac_preproc_ok=:
4438 break
4439 fi
4440
4441 rm -f conftest.err conftest.$ac_ext
4442
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then
4447   break
4448 fi
4449
4450     done
4451     ac_cv_prog_CPP=$CPP
4452
4453 fi
4454   CPP=$ac_cv_prog_CPP
4455 else
4456   ac_cv_prog_CPP=$CPP
4457 fi
4458 { echo "$as_me:$LINENO: result: $CPP" >&5
4459 echo "${ECHO_T}$CPP" >&6; }
4460 ac_preproc_ok=false
4461 for ac_c_preproc_warn_flag in '' yes
4462 do
4463   # Use a header file that comes with gcc, so configuring glibc
4464   # with a fresh cross-compiler works.
4465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466   # <limits.h> exists even on freestanding compilers.
4467   # On the NeXT, cc -E runs the code through the compiler's parser,
4468   # not just through cpp. "Syntax error" is here to catch this case.
4469   cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h.  */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h.  */
4475 #ifdef __STDC__
4476 # include <limits.h>
4477 #else
4478 # include <assert.h>
4479 #endif
4480                      Syntax error
4481 _ACEOF
4482 if { (ac_try="$ac_cpp conftest.$ac_ext"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null && {
4495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496          test ! -s conftest.err
4497        }; then
4498   :
4499 else
4500   echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503   # Broken: fails on valid input.
4504 continue
4505 fi
4506
4507 rm -f conftest.err conftest.$ac_ext
4508
4509   # OK, works on sane cases.  Now check whether nonexistent headers
4510   # can be detected and how.
4511   cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4526   ac_status=$?
4527   grep -v '^ *+' conftest.er1 >conftest.err
4528   rm -f conftest.er1
4529   cat conftest.err >&5
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } >/dev/null && {
4532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533          test ! -s conftest.err
4534        }; then
4535   # Broken: success on invalid input.
4536 continue
4537 else
4538   echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541   # Passes both tests.
4542 ac_preproc_ok=:
4543 break
4544 fi
4545
4546 rm -f conftest.err conftest.$ac_ext
4547
4548 done
4549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550 rm -f conftest.err conftest.$ac_ext
4551 if $ac_preproc_ok; then
4552   :
4553 else
4554   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&5
4556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&2;}
4558    { (exit 1); exit 1; }; }
4559 fi
4560
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568
4569 # Create compiler version string
4570 if test x"$GCC" = x"yes" ; then
4571   cc_string="GCC `${CC} --version | sed q`"
4572 else
4573   cc_string=$CC
4574 fi
4575
4576 cat >>confdefs.h <<_ACEOF
4577 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4578 _ACEOF
4579
4580
4581
4582 #
4583 # Set up TAS assembly code if needed; the template file has now had its
4584 # chance to request this.
4585 #
4586 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4587
4588
4589 if test "$need_tas" = yes ; then
4590   TAS=tas.o
4591 else
4592   TAS=""
4593 fi
4594
4595
4596
4597 #
4598 # Automatic dependency tracking
4599 #
4600
4601 pgac_args="$pgac_args enable_depend"
4602
4603 # Check whether --enable-depend was given.
4604 if test "${enable_depend+set}" = set; then
4605   enableval=$enable_depend;
4606   case $enableval in
4607     yes)
4608       autodepend=yes
4609       ;;
4610     no)
4611       :
4612       ;;
4613     *)
4614       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4615 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4616    { (exit 1); exit 1; }; }
4617       ;;
4618   esac
4619
4620 else
4621   enable_depend=no
4622
4623 fi
4624
4625
4626
4627
4628
4629 #
4630 # Enable assert checks
4631 #
4632
4633 pgac_args="$pgac_args enable_cassert"
4634
4635 # Check whether --enable-cassert was given.
4636 if test "${enable_cassert+set}" = set; then
4637   enableval=$enable_cassert;
4638   case $enableval in
4639     yes)
4640
4641 cat >>confdefs.h <<\_ACEOF
4642 #define USE_ASSERT_CHECKING 1
4643 _ACEOF
4644
4645       ;;
4646     no)
4647       :
4648       ;;
4649     *)
4650       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4651 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4652    { (exit 1); exit 1; }; }
4653       ;;
4654   esac
4655
4656 else
4657   enable_cassert=no
4658
4659 fi
4660
4661
4662
4663
4664 #
4665 # Include directories
4666 #
4667 ac_save_IFS=$IFS
4668 IFS="${IFS}${PATH_SEPARATOR}"
4669 # SRCH_INC comes from the template file
4670 for dir in $with_includes $SRCH_INC; do
4671   if test -d "$dir"; then
4672     INCLUDES="$INCLUDES -I$dir"
4673   else
4674     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4675 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4676   fi
4677 done
4678 IFS=$ac_save_IFS
4679
4680
4681
4682 #
4683 # Library directories
4684 #
4685 ac_save_IFS=$IFS
4686 IFS="${IFS}${PATH_SEPARATOR}"
4687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4688 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4689   if test -d "$dir"; then
4690     LIBDIRS="$LIBDIRS -L$dir"
4691   else
4692     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4693 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4694   fi
4695 done
4696 IFS=$ac_save_IFS
4697
4698 #
4699 # Enable thread-safe client libraries
4700 #
4701 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4702 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4703 if test "$PORTNAME" != "win32"; then
4704
4705 pgac_args="$pgac_args enable_thread_safety"
4706
4707 # Check whether --enable-thread-safety was given.
4708 if test "${enable_thread_safety+set}" = set; then
4709   enableval=$enable_thread_safety;
4710   case $enableval in
4711     yes)
4712       :
4713       ;;
4714     no)
4715       :
4716       ;;
4717     *)
4718       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4719 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4720    { (exit 1); exit 1; }; }
4721       ;;
4722   esac
4723
4724 else
4725   enable_thread_safety=no
4726
4727 fi
4728
4729
4730 else
4731 # Win32 should always use threads
4732
4733 pgac_args="$pgac_args enable_thread_safety"
4734
4735 # Check whether --enable-thread-safety was given.
4736 if test "${enable_thread_safety+set}" = set; then
4737   enableval=$enable_thread_safety;
4738   case $enableval in
4739     yes)
4740       :
4741       ;;
4742     no)
4743       :
4744       ;;
4745     *)
4746       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4747 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4748    { (exit 1); exit 1; }; }
4749       ;;
4750   esac
4751
4752 else
4753   enable_thread_safety=yes
4754
4755 fi
4756
4757
4758 fi
4759
4760
4761 pgac_args="$pgac_args enable_thread_safety_force"
4762
4763 # Check whether --enable-thread-safety-force was given.
4764 if test "${enable_thread_safety_force+set}" = set; then
4765   enableval=$enable_thread_safety_force;
4766   case $enableval in
4767     yes)
4768       :
4769       ;;
4770     no)
4771       :
4772       ;;
4773     *)
4774       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4775 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4776    { (exit 1); exit 1; }; }
4777       ;;
4778   esac
4779
4780 else
4781   enable_thread_safety_force=no
4782
4783 fi
4784
4785
4786 if test "$enable_thread_safety" = yes -o \
4787         "$enable_thread_safety_force" = yes; then
4788   enable_thread_safety="yes"    # for 'force'
4789
4790 cat >>confdefs.h <<\_ACEOF
4791 #define ENABLE_THREAD_SAFETY 1
4792 _ACEOF
4793
4794 fi
4795 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4796 echo "${ECHO_T}$enable_thread_safety" >&6; }
4797
4798
4799 #
4800 # Optionally build Tcl modules (PL/Tcl)
4801 #
4802 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4803 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4804
4805 pgac_args="$pgac_args with_tcl"
4806
4807
4808 # Check whether --with-tcl was given.
4809 if test "${with_tcl+set}" = set; then
4810   withval=$with_tcl;
4811   case $withval in
4812     yes)
4813       :
4814       ;;
4815     no)
4816       :
4817       ;;
4818     *)
4819       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4820 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4821    { (exit 1); exit 1; }; }
4822       ;;
4823   esac
4824
4825 else
4826   with_tcl=no
4827
4828 fi
4829
4830
4831 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4832 echo "${ECHO_T}$with_tcl" >&6; }
4833
4834
4835 # We see if the path to the Tcl/Tk configuration scripts is specified.
4836 # This will override the use of tclsh to find the paths to search.
4837
4838
4839 pgac_args="$pgac_args with_tclconfig"
4840
4841
4842 # Check whether --with-tclconfig was given.
4843 if test "${with_tclconfig+set}" = set; then
4844   withval=$with_tclconfig;
4845   case $withval in
4846     yes)
4847       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4848 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4849    { (exit 1); exit 1; }; }
4850       ;;
4851     no)
4852       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854    { (exit 1); exit 1; }; }
4855       ;;
4856     *)
4857
4858       ;;
4859   esac
4860
4861 fi
4862
4863
4864
4865 #
4866 # Optionally build Perl modules (PL/Perl)
4867 #
4868 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4869 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4870
4871 pgac_args="$pgac_args with_perl"
4872
4873
4874 # Check whether --with-perl was given.
4875 if test "${with_perl+set}" = set; then
4876   withval=$with_perl;
4877   case $withval in
4878     yes)
4879       :
4880       ;;
4881     no)
4882       :
4883       ;;
4884     *)
4885       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4886 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4887    { (exit 1); exit 1; }; }
4888       ;;
4889   esac
4890
4891 else
4892   with_perl=no
4893
4894 fi
4895
4896
4897 { echo "$as_me:$LINENO: result: $with_perl" >&5
4898 echo "${ECHO_T}$with_perl" >&6; }
4899
4900
4901 #
4902 # Optionally build Python modules (PL/Python)
4903 #
4904 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4905 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4906
4907 pgac_args="$pgac_args with_python"
4908
4909
4910 # Check whether --with-python was given.
4911 if test "${with_python+set}" = set; then
4912   withval=$with_python;
4913   case $withval in
4914     yes)
4915       :
4916       ;;
4917     no)
4918       :
4919       ;;
4920     *)
4921       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4922 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4923    { (exit 1); exit 1; }; }
4924       ;;
4925   esac
4926
4927 else
4928   with_python=no
4929
4930 fi
4931
4932
4933 { echo "$as_me:$LINENO: result: $with_python" >&5
4934 echo "${ECHO_T}$with_python" >&6; }
4935
4936
4937 #
4938 # GSSAPI
4939 #
4940 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4941 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4942
4943 pgac_args="$pgac_args with_gssapi"
4944
4945
4946 # Check whether --with-gssapi was given.
4947 if test "${with_gssapi+set}" = set; then
4948   withval=$with_gssapi;
4949   case $withval in
4950     yes)
4951
4952
4953 cat >>confdefs.h <<\_ACEOF
4954 #define ENABLE_GSS 1
4955 _ACEOF
4956
4957   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4958
4959       ;;
4960     no)
4961       :
4962       ;;
4963     *)
4964       { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4965 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4966    { (exit 1); exit 1; }; }
4967       ;;
4968   esac
4969
4970 else
4971   with_gssapi=no
4972
4973 fi
4974
4975
4976 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4977 echo "${ECHO_T}$with_gssapi" >&6; }
4978
4979
4980 #
4981 # Kerberos 5
4982 #
4983 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4984 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4985
4986 pgac_args="$pgac_args with_krb5"
4987
4988
4989 # Check whether --with-krb5 was given.
4990 if test "${with_krb5+set}" = set; then
4991   withval=$with_krb5;
4992   case $withval in
4993     yes)
4994
4995
4996 cat >>confdefs.h <<\_ACEOF
4997 #define KRB5 1
4998 _ACEOF
4999
5000   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5001
5002       ;;
5003     no)
5004       :
5005       ;;
5006     *)
5007       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5008 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5009    { (exit 1); exit 1; }; }
5010       ;;
5011   esac
5012
5013 else
5014   with_krb5=no
5015
5016 fi
5017
5018
5019 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5020 echo "${ECHO_T}$with_krb5" >&6; }
5021
5022
5023
5024
5025
5026
5027 #
5028 # Kerberos configuration parameters
5029 #
5030
5031 pgac_args="$pgac_args with_krb_srvnam"
5032
5033
5034 # Check whether --with-krb-srvnam was given.
5035 if test "${with_krb_srvnam+set}" = set; then
5036   withval=$with_krb_srvnam;
5037   case $withval in
5038     yes)
5039       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5040 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5041    { (exit 1); exit 1; }; }
5042       ;;
5043     no)
5044       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046    { (exit 1); exit 1; }; }
5047       ;;
5048     *)
5049
5050       ;;
5051   esac
5052
5053 else
5054   with_krb_srvnam="postgres"
5055 fi
5056
5057
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5061 _ACEOF
5062
5063
5064
5065 #
5066 # PAM
5067 #
5068 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5069 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5070
5071 pgac_args="$pgac_args with_pam"
5072
5073
5074 # Check whether --with-pam was given.
5075 if test "${with_pam+set}" = set; then
5076   withval=$with_pam;
5077   case $withval in
5078     yes)
5079
5080 cat >>confdefs.h <<\_ACEOF
5081 #define USE_PAM 1
5082 _ACEOF
5083
5084       ;;
5085     no)
5086       :
5087       ;;
5088     *)
5089       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5090 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5091    { (exit 1); exit 1; }; }
5092       ;;
5093   esac
5094
5095 else
5096   with_pam=no
5097
5098 fi
5099
5100
5101 { echo "$as_me:$LINENO: result: $with_pam" >&5
5102 echo "${ECHO_T}$with_pam" >&6; }
5103
5104
5105
5106 #
5107 # LDAP
5108 #
5109 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5110 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5111
5112 pgac_args="$pgac_args with_ldap"
5113
5114
5115 # Check whether --with-ldap was given.
5116 if test "${with_ldap+set}" = set; then
5117   withval=$with_ldap;
5118   case $withval in
5119     yes)
5120
5121 cat >>confdefs.h <<\_ACEOF
5122 #define USE_LDAP 1
5123 _ACEOF
5124
5125       ;;
5126     no)
5127       :
5128       ;;
5129     *)
5130       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5131 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5132    { (exit 1); exit 1; }; }
5133       ;;
5134   esac
5135
5136 else
5137   with_ldap=no
5138
5139 fi
5140
5141
5142 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5143 echo "${ECHO_T}$with_ldap" >&6; }
5144
5145
5146
5147 #
5148 # Bonjour
5149 #
5150 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5151 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5152
5153 pgac_args="$pgac_args with_bonjour"
5154
5155
5156 # Check whether --with-bonjour was given.
5157 if test "${with_bonjour+set}" = set; then
5158   withval=$with_bonjour;
5159   case $withval in
5160     yes)
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define USE_BONJOUR 1
5164 _ACEOF
5165
5166       ;;
5167     no)
5168       :
5169       ;;
5170     *)
5171       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5172 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5173    { (exit 1); exit 1; }; }
5174       ;;
5175   esac
5176
5177 else
5178   with_bonjour=no
5179
5180 fi
5181
5182
5183 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5184 echo "${ECHO_T}$with_bonjour" >&6; }
5185
5186
5187
5188 #
5189 # OpenSSL
5190 #
5191 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5192 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5193
5194 pgac_args="$pgac_args with_openssl"
5195
5196
5197 # Check whether --with-openssl was given.
5198 if test "${with_openssl+set}" = set; then
5199   withval=$with_openssl;
5200   case $withval in
5201     yes)
5202
5203 cat >>confdefs.h <<\_ACEOF
5204 #define USE_SSL 1
5205 _ACEOF
5206
5207       ;;
5208     no)
5209       :
5210       ;;
5211     *)
5212       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5213 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5214    { (exit 1); exit 1; }; }
5215       ;;
5216   esac
5217
5218 else
5219   with_openssl=no
5220
5221 fi
5222
5223
5224 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5225 echo "${ECHO_T}$with_openssl" >&6; }
5226
5227
5228
5229 #
5230 # Readline
5231 #
5232
5233 pgac_args="$pgac_args with_readline"
5234
5235
5236 # Check whether --with-readline was given.
5237 if test "${with_readline+set}" = set; then
5238   withval=$with_readline;
5239   case $withval in
5240     yes)
5241       :
5242       ;;
5243     no)
5244       :
5245       ;;
5246     *)
5247       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5248 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5249    { (exit 1); exit 1; }; }
5250       ;;
5251   esac
5252
5253 else
5254   with_readline=yes
5255
5256 fi
5257
5258
5259 # readline on MinGW has problems with backslashes in psql and other bugs.
5260 # This is particularly a problem with non-US code pages.
5261 # Therefore disable its use until we understand the cause. 2004-07-20
5262 if test "$PORTNAME" = "win32"; then
5263   if test "$with_readline" = yes; then
5264     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5265 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5266     with_readline=no
5267   fi
5268 fi
5269
5270
5271 #
5272 # Prefer libedit
5273 #
5274
5275 pgac_args="$pgac_args with_libedit_preferred"
5276
5277
5278 # Check whether --with-libedit-preferred was given.
5279 if test "${with_libedit_preferred+set}" = set; then
5280   withval=$with_libedit_preferred;
5281   case $withval in
5282     yes)
5283       :
5284       ;;
5285     no)
5286       :
5287       ;;
5288     *)
5289       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5290 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5291    { (exit 1); exit 1; }; }
5292       ;;
5293   esac
5294
5295 else
5296   with_libedit_preferred=no
5297
5298 fi
5299
5300
5301
5302
5303 #
5304 # OSSP UUID library
5305 #
5306
5307 pgac_args="$pgac_args with_ossp_uuid"
5308
5309
5310 # Check whether --with-ossp-uuid was given.
5311 if test "${with_ossp_uuid+set}" = set; then
5312   withval=$with_ossp_uuid;
5313   case $withval in
5314     yes)
5315       :
5316       ;;
5317     no)
5318       :
5319       ;;
5320     *)
5321       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5322 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5323    { (exit 1); exit 1; }; }
5324       ;;
5325   esac
5326
5327 else
5328   with_ossp_uuid=no
5329
5330 fi
5331
5332
5333
5334
5335
5336 #
5337 # XML
5338 #
5339
5340 pgac_args="$pgac_args with_libxml"
5341
5342
5343 # Check whether --with-libxml was given.
5344 if test "${with_libxml+set}" = set; then
5345   withval=$with_libxml;
5346   case $withval in
5347     yes)
5348
5349 cat >>confdefs.h <<\_ACEOF
5350 #define USE_LIBXML 1
5351 _ACEOF
5352
5353       ;;
5354     no)
5355       :
5356       ;;
5357     *)
5358       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5359 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5360    { (exit 1); exit 1; }; }
5361       ;;
5362   esac
5363
5364 else
5365   with_libxml=no
5366
5367 fi
5368
5369
5370
5371 if test "$with_libxml" = yes ; then
5372   for ac_prog in xml2-config
5373 do
5374   # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   if test -n "$XML2_CONFIG"; then
5382   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389   for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_prog_XML2_CONFIG="$ac_prog"
5392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5402 if test -n "$XML2_CONFIG"; then
5403   { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5404 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5405 else
5406   { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5408 fi
5409
5410
5411   test -n "$XML2_CONFIG" && break
5412 done
5413
5414   if test -n "$XML2_CONFIG"; then
5415     for pgac_option in `$XML2_CONFIG --cflags`; do
5416       case $pgac_option in
5417         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5418       esac
5419     done
5420     for pgac_option in `$XML2_CONFIG --libs`; do
5421       case $pgac_option in
5422         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5423       esac
5424     done
5425   fi
5426 fi
5427
5428
5429
5430 #
5431 # XSLT
5432 #
5433
5434 pgac_args="$pgac_args with_libxslt"
5435
5436
5437 # Check whether --with-libxslt was given.
5438 if test "${with_libxslt+set}" = set; then
5439   withval=$with_libxslt;
5440   case $withval in
5441     yes)
5442
5443 cat >>confdefs.h <<\_ACEOF
5444 #define USE_LIBXSLT 1
5445 _ACEOF
5446
5447       ;;
5448     no)
5449       :
5450       ;;
5451     *)
5452       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5453 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5454    { (exit 1); exit 1; }; }
5455       ;;
5456   esac
5457
5458 else
5459   with_libxslt=no
5460
5461 fi
5462
5463
5464
5465
5466
5467
5468 #
5469 # tzdata
5470 #
5471
5472 pgac_args="$pgac_args with_system_tzdata"
5473
5474
5475 # Check whether --with-system-tzdata was given.
5476 if test "${with_system_tzdata+set}" = set; then
5477   withval=$with_system_tzdata;
5478   case $withval in
5479     yes)
5480       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5481 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5482    { (exit 1); exit 1; }; }
5483       ;;
5484     no)
5485       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487    { (exit 1); exit 1; }; }
5488       ;;
5489     *)
5490
5491       ;;
5492   esac
5493
5494 fi
5495
5496
5497
5498
5499 #
5500 # Zlib
5501 #
5502
5503 pgac_args="$pgac_args with_zlib"
5504
5505
5506 # Check whether --with-zlib was given.
5507 if test "${with_zlib+set}" = set; then
5508   withval=$with_zlib;
5509   case $withval in
5510     yes)
5511       :
5512       ;;
5513     no)
5514       :
5515       ;;
5516     *)
5517       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5518 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5519    { (exit 1); exit 1; }; }
5520       ;;
5521   esac
5522
5523 else
5524   with_zlib=yes
5525
5526 fi
5527
5528
5529
5530
5531 #
5532 # Elf
5533 #
5534
5535 # Assume system is ELF if it predefines __ELF__ as 1,
5536 # otherwise believe host_os based default.
5537 case $host_os in
5538     freebsd1*|freebsd2*) elf=no;;
5539     freebsd3*|freebsd4*) elf=yes;;
5540 esac
5541
5542
5543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5545 if test "${ac_cv_path_GREP+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   # Extract the first word of "grep ggrep" to use in msg output
5549 if test -z "$GREP"; then
5550 set dummy grep ggrep; ac_prog_name=$2
5551 if test "${ac_cv_path_GREP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   ac_path_GREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_prog in grep ggrep; do
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5564     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5565     # Check for GNU ac_path_GREP and select it if it is found.
5566   # Check for GNU $ac_path_GREP
5567 case `"$ac_path_GREP" --version 2>&1` in
5568 *GNU*)
5569   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5570 *)
5571   ac_count=0
5572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5573   while :
5574   do
5575     cat "conftest.in" "conftest.in" >"conftest.tmp"
5576     mv "conftest.tmp" "conftest.in"
5577     cp "conftest.in" "conftest.nl"
5578     echo 'GREP' >> "conftest.nl"
5579     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581     ac_count=`expr $ac_count + 1`
5582     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5583       # Best one so far, save it but keep looking for a better one
5584       ac_cv_path_GREP="$ac_path_GREP"
5585       ac_path_GREP_max=$ac_count
5586     fi
5587     # 10*(2^10) chars as input seems more than enough
5588     test $ac_count -gt 10 && break
5589   done
5590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593
5594     $ac_path_GREP_found && break 3
5595   done
5596 done
5597
5598 done
5599 IFS=$as_save_IFS
5600
5601
5602 fi
5603
5604 GREP="$ac_cv_path_GREP"
5605 if test -z "$GREP"; then
5606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610
5611 else
5612   ac_cv_path_GREP=$GREP
5613 fi
5614
5615
5616 fi
5617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5619  GREP="$ac_cv_path_GREP"
5620
5621
5622 { echo "$as_me:$LINENO: checking for egrep" >&5
5623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5628    then ac_cv_path_EGREP="$GREP -E"
5629    else
5630      # Extract the first word of "egrep" to use in msg output
5631 if test -z "$EGREP"; then
5632 set dummy egrep; ac_prog_name=$2
5633 if test "${ac_cv_path_EGREP+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   ac_path_EGREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643   for ac_prog in egrep; do
5644   for ac_exec_ext in '' $ac_executable_extensions; do
5645     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5646     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5647     # Check for GNU ac_path_EGREP and select it if it is found.
5648   # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5650 *GNU*)
5651   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5652 *)
5653   ac_count=0
5654   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5655   while :
5656   do
5657     cat "conftest.in" "conftest.in" >"conftest.tmp"
5658     mv "conftest.tmp" "conftest.in"
5659     cp "conftest.in" "conftest.nl"
5660     echo 'EGREP' >> "conftest.nl"
5661     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663     ac_count=`expr $ac_count + 1`
5664     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665       # Best one so far, save it but keep looking for a better one
5666       ac_cv_path_EGREP="$ac_path_EGREP"
5667       ac_path_EGREP_max=$ac_count
5668     fi
5669     # 10*(2^10) chars as input seems more than enough
5670     test $ac_count -gt 10 && break
5671   done
5672   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675
5676     $ac_path_EGREP_found && break 3
5677   done
5678 done
5679
5680 done
5681 IFS=$as_save_IFS
5682
5683
5684 fi
5685
5686 EGREP="$ac_cv_path_EGREP"
5687 if test -z "$EGREP"; then
5688   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690    { (exit 1); exit 1; }; }
5691 fi
5692
5693 else
5694   ac_cv_path_EGREP=$EGREP
5695 fi
5696
5697
5698    fi
5699 fi
5700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5702  EGREP="$ac_cv_path_EGREP"
5703
5704
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 #if __ELF__
5712   yes
5713 #endif
5714
5715 _ACEOF
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717   $EGREP "yes" >/dev/null 2>&1; then
5718   ELF_SYS=true
5719 else
5720   if test "X$elf" = "Xyes" ; then
5721   ELF_SYS=true
5722 else
5723   ELF_SYS=
5724 fi
5725 fi
5726 rm -f conftest*
5727
5728
5729
5730 #
5731 # Assignments
5732 #
5733
5734 CPPFLAGS="$CPPFLAGS $INCLUDES"
5735 LDFLAGS="$LDFLAGS $LIBDIRS"
5736
5737
5738
5739
5740 # Check whether --with-gnu-ld was given.
5741 if test "${with_gnu_ld+set}" = set; then
5742   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5743 else
5744   with_gnu_ld=no
5745 fi
5746
5747 ac_prog=ld
5748 if test "$GCC" = yes; then
5749   # Check if gcc -print-prog-name=ld gives a path.
5750   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5751 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5752   case $host in
5753   *-*-mingw*)
5754     # gcc leaves a trailing carriage return which upsets mingw
5755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5756   *)
5757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5758   esac
5759   case "$ac_prog" in
5760     # Accept absolute paths.
5761     [\\/]* | [A-Za-z]:[\\/]*)
5762       re_direlt='/[^/][^/]*/\.\./'
5763       # Canonicalize the path of ld
5764       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5766         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5767       done
5768       test -z "$LD" && LD="$ac_prog"
5769       ;;
5770   "")
5771     # If it fails, then pretend we aren't using GCC.
5772     ac_prog=ld
5773     ;;
5774   *)
5775     # If it is relative, then search for the first ld in PATH.
5776     with_gnu_ld=unknown
5777     ;;
5778   esac
5779 elif test "$with_gnu_ld" = yes; then
5780   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5782 else
5783   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5785 fi
5786 if test "${ac_cv_path_LD+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   if test -z "$LD"; then
5790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791   for ac_dir in $PATH; do
5792     test -z "$ac_dir" && ac_dir=.
5793     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794       ac_cv_path_LD="$ac_dir/$ac_prog"
5795       # Check to see if the program is GNU ld.  I'd rather use --version,
5796       # but apparently some GNU ld's only accept -v.
5797       # Break only if it was the GNU/non-GNU ld that we prefer.
5798       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5799         test "$with_gnu_ld" != no && break
5800       else
5801         test "$with_gnu_ld" != yes && break
5802       fi
5803     fi
5804   done
5805   IFS="$ac_save_ifs"
5806 else
5807   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5808 fi
5809 fi
5810
5811 LD="$ac_cv_path_LD"
5812 if test -n "$LD"; then
5813   { echo "$as_me:$LINENO: result: $LD" >&5
5814 echo "${ECHO_T}$LD" >&6; }
5815 else
5816   { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5818 fi
5819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5821    { (exit 1); exit 1; }; }
5822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5828 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5829   ac_cv_prog_gnu_ld=yes
5830 else
5831   ac_cv_prog_gnu_ld=no
5832 fi
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5835 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$ac_cv_prog_gnu_ld
5837
5838
5839
5840
5841 case $host_os in sysv5*)
5842   { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5843 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5844 if test "${pgac_cv_prog_ld_R+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847
5848     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5849     cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855
5856 int
5857 main ()
5858 {
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (ac_try="$ac_link"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_link") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } && {
5878          test -z "$ac_c_werror_flag" ||
5879          test ! -s conftest.err
5880        } && test -s conftest$ac_exeext &&
5881        $as_test_x conftest$ac_exeext; then
5882   pgac_cv_prog_ld_R=yes
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887         pgac_cv_prog_ld_R=no
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891       conftest$ac_exeext conftest.$ac_ext
5892     LDFLAGS=$pgac_save_LDFLAGS
5893
5894 fi
5895 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5896 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5897   ld_R_works=$pgac_cv_prog_ld_R
5898
5899 esac
5900 if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   if test -n "$RANLIB"; then
5909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6; }
5932 else
5933   { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940   ac_ct_RANLIB=$RANLIB
5941   # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_RANLIB"; then
5949   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_prog_ac_ct_RANLIB="ranlib"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975 fi
5976
5977   if test "x$ac_ct_RANLIB" = x; then
5978     RANLIB=":"
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet.  If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet.  If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990     RANLIB=$ac_ct_RANLIB
5991   fi
5992 else
5993   RANLIB="$ac_cv_prog_RANLIB"
5994 fi
5995
5996
5997   if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$STRIP"; then
6006   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027   { echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_STRIP"; then
6037   ac_ct_STRIP=$STRIP
6038   # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test -n "$ac_ct_STRIP"; then
6046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_ac_ct_STRIP="strip"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6069 else
6070   { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6072 fi
6073
6074   if test "x$ac_ct_STRIP" = x; then
6075     STRIP=":"
6076   else
6077     case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet.  If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet.  If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087     STRIP=$ac_ct_STRIP
6088   fi
6089 else
6090   STRIP="$ac_cv_prog_STRIP"
6091 fi
6092
6093
6094   { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6095 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6096   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6097     STRIP_STATIC_LIB="$STRIP -x"
6098     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6099     { echo "$as_me:$LINENO: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6; }
6101   else
6102     STRIP_STATIC_LIB=:
6103     STRIP_SHARED_LIB=:
6104     { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6106   fi
6107
6108
6109
6110
6111 # Extract the first word of "tar", so it can be a program name with args.
6112 set dummy tar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_TAR+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   case $TAR in
6119   [\\/]* | ?:[\\/]*)
6120   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6121   ;;
6122   *)
6123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138   ;;
6139 esac
6140 fi
6141 TAR=$ac_cv_path_TAR
6142 if test -n "$TAR"; then
6143   { echo "$as_me:$LINENO: result: $TAR" >&5
6144 echo "${ECHO_T}$TAR" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6148 fi
6149
6150
6151 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6153 LN_S=$as_ln_s
6154 if test "$LN_S" = "ln -s"; then
6155   { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6157 else
6158   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6159 echo "${ECHO_T}no, using $LN_S" >&6; }
6160 fi
6161
6162 for ac_prog in gawk mawk nawk awk
6163 do
6164   # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AWK+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   if test -n "$AWK"; then
6172   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179   for ac_exec_ext in '' $ac_executable_extensions; do
6180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181     ac_cv_prog_AWK="$ac_prog"
6182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 AWK=$ac_cv_prog_AWK
6192 if test -n "$AWK"; then
6193   { echo "$as_me:$LINENO: result: $AWK" >&5
6194 echo "${ECHO_T}$AWK" >&6; }
6195 else
6196   { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6198 fi
6199
6200
6201   test -n "$AWK" && break
6202 done
6203
6204
6205 # Let the user override the search
6206 if test -z "$BISON"; then
6207   for ac_prog in bison
6208 do
6209   # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_BISON+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test -n "$BISON"; then
6217   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_BISON="$ac_prog"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 BISON=$ac_cv_prog_BISON
6237 if test -n "$BISON"; then
6238   { echo "$as_me:$LINENO: result: $BISON" >&5
6239 echo "${ECHO_T}$BISON" >&6; }
6240 else
6241   { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6243 fi
6244
6245
6246   test -n "$BISON" && break
6247 done
6248
6249 fi
6250
6251 if test "$BISON"; then
6252   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6253   { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6254 echo "$as_me: using $pgac_bison_version" >&6;}
6255   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6256   then
6257     { echo "$as_me:$LINENO: WARNING:
6258 *** The installed version of Bison is too old to use with PostgreSQL.
6259 *** Bison version 1.875 or later is required." >&5
6260 echo "$as_me: WARNING:
6261 *** The installed version of Bison is too old to use with PostgreSQL.
6262 *** Bison version 1.875 or later is required." >&2;}
6263     BISON=""
6264   fi
6265 fi
6266
6267 if test -z "$BISON"; then
6268   { echo "$as_me:$LINENO: WARNING:
6269 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6270 *** change any of the parser definition files.  You can obtain Bison from
6271 *** a GNU mirror site.  (If you are using the official distribution of
6272 *** PostgreSQL then you do not need to worry about this, because the Bison
6273 *** output is pre-generated.)" >&5
6274 echo "$as_me: WARNING:
6275 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6276 *** change any of the parser definition files.  You can obtain Bison from
6277 *** a GNU mirror site.  (If you are using the official distribution of
6278 *** PostgreSQL then you do not need to worry about this, because the Bison
6279 *** output is pre-generated.)" >&2;}
6280 fi
6281 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6282
6283
6284 { echo "$as_me:$LINENO: checking for flex" >&5
6285 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6286 if test "${pgac_cv_path_flex+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   # Let the user override the test
6290 if test -n "$FLEX"; then
6291   pgac_cv_path_flex=$FLEX
6292 else
6293   pgac_save_IFS=$IFS
6294   IFS=$PATH_SEPARATOR
6295   for pgac_dir in $PATH; do
6296     IFS=$pgac_save_IFS
6297     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6298       pgac_dir=`pwd`
6299     fi
6300     for pgac_prog in flex lex; do
6301       pgac_candidate="$pgac_dir/$pgac_prog"
6302       if test -f "$pgac_candidate" \
6303         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6304       then
6305         echo '%%'  > conftest.l
6306         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6307           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6308             pgac_broken_flex=$pgac_candidate
6309             continue
6310           fi
6311
6312           pgac_cv_path_flex=$pgac_candidate
6313           break 2
6314         fi
6315       fi
6316     done
6317   done
6318   rm -f conftest.l lex.yy.c
6319   : ${pgac_cv_path_flex=no}
6320 fi
6321
6322 fi
6323 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6324 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6325 if test x"$pgac_cv_path_flex" = x"no"; then
6326   if test -n "$pgac_broken_flex"; then
6327     { echo "$as_me:$LINENO: WARNING:
6328 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6329 *** should get version 2.5.4 or later." >&5
6330 echo "$as_me: WARNING:
6331 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6332 *** should get version 2.5.4 or later." >&2;}
6333   fi
6334
6335   { echo "$as_me:$LINENO: WARNING:
6336 *** Without Flex you will not be able to build PostgreSQL from CVS or
6337 *** change any of the scanner definition files.  You can obtain Flex from
6338 *** a GNU mirror site.  (If you are using the official distribution of
6339 *** PostgreSQL then you do not need to worry about this because the Flex
6340 *** output is pre-generated.)" >&5
6341 echo "$as_me: WARNING:
6342 *** Without Flex you will not be able to build PostgreSQL from CVS or
6343 *** change any of the scanner definition files.  You can obtain Flex from
6344 *** a GNU mirror site.  (If you are using the official distribution of
6345 *** PostgreSQL then you do not need to worry about this because the Flex
6346 *** output is pre-generated.)" >&2;}
6347
6348   FLEX=
6349 else
6350   FLEX=$pgac_cv_path_flex
6351   pgac_flex_version=`$FLEX -V 2>/dev/null`
6352   { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6353 echo "$as_me: using $pgac_flex_version" >&6;}
6354 fi
6355
6356
6357
6358
6359
6360 # Extract the first word of "perl", so it can be a program name with args.
6361 set dummy perl; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_PERL+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $PERL in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387   ;;
6388 esac
6389 fi
6390 PERL=$ac_cv_path_PERL
6391 if test -n "$PERL"; then
6392   { echo "$as_me:$LINENO: result: $PERL" >&5
6393 echo "${ECHO_T}$PERL" >&6; }
6394 else
6395   { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6397 fi
6398
6399
6400 if test "$with_perl" = yes; then
6401
6402 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6403 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6404 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6405 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6406 echo "${ECHO_T}$perl_archlibexp" >&6; }
6407 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6408 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6409 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6410 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6411 echo "${ECHO_T}$perl_privlibexp" >&6; }
6412 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6413 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6414 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6415 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6416 echo "${ECHO_T}$perl_useshrplib" >&6; }
6417
6418 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6419 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6421 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6423 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6424 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6425 fi
6426
6427 if test "$with_python" = yes; then
6428   # Extract the first word of "python", so it can be a program name with args.
6429 set dummy python; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_path_PYTHON+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   case $PYTHON in
6436   [\\/]* | ?:[\\/]*)
6437   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6438   ;;
6439   *)
6440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445   for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455   ;;
6456 esac
6457 fi
6458 PYTHON=$ac_cv_path_PYTHON
6459 if test -n "$PYTHON"; then
6460   { echo "$as_me:$LINENO: result: $PYTHON" >&5
6461 echo "${ECHO_T}$PYTHON" >&6; }
6462 else
6463   { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6465 fi
6466
6467
6468 if test x"$PYTHON" = x""; then
6469   { { echo "$as_me:$LINENO: error: Python not found" >&5
6470 echo "$as_me: error: Python not found" >&2;}
6471    { (exit 1); exit 1; }; }
6472 fi
6473
6474
6475 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6476 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6477 if "${PYTHON}" 2>&- -c 'import distutils'
6478 then
6479     { echo "$as_me:$LINENO: result: yes" >&5
6480 echo "${ECHO_T}yes" >&6; }
6481 else
6482     { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6484     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6485 echo "$as_me: error: distutils module not found" >&2;}
6486    { (exit 1); exit 1; }; }
6487 fi
6488 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6489 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6490 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6491 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')"`
6492 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6493
6494 # This should be enough of a message.
6495 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6496 echo "${ECHO_T}$python_configdir" >&6; }
6497
6498
6499 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6500 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6501
6502 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6503 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6504 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6505 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6506
6507 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6508 then
6509         # New way: use the official shared library
6510         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6511         python_libspec="-L${python_libdir} -l${ldlibrary}"
6512 else
6513         # Old way: use libpython from python_configdir
6514         python_libdir="${python_configdir}"
6515         python_libspec="-L${python_libdir} -lpython${python_version}"
6516 fi
6517
6518 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6519
6520 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6521 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6522
6523
6524 # threaded python is not supported on bsd's
6525 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6526 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6527 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6528 if test "$pythreads" = "1"; then
6529   { echo "$as_me:$LINENO: result: yes" >&5
6530 echo "${ECHO_T}yes" >&6; }
6531   case $host_os in
6532   openbsd*|freebsd*)
6533     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6534 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6535    { (exit 1); exit 1; }; }
6536     ;;
6537   esac
6538 else
6539   { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6541 fi
6542
6543
6544 fi
6545
6546 # Supply a numeric version string for use by 3rd party add-ons
6547 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6548 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6549 tr '.' '        ' |
6550 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define PG_VERSION_NUM $PG_VERSION_NUM
6554 _ACEOF
6555
6556
6557 ##
6558 ## Libraries
6559 ##
6560 ## Most libraries are included only if they demonstrably provide a function
6561 ## we need, but libm is an exception: always include it, because there are
6562 ## too many compilers that play cute optimization games that will break
6563 ## probes for standard functions such as pow().
6564 ##
6565
6566
6567 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6568 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6569 if test "${ac_cv_lib_m_main+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   ac_check_lib_save_LIBS=$LIBS
6573 LIBS="-lm  $LIBS"
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580
6581
6582 int
6583 main ()
6584 {
6585 return main ();
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (ac_try="$ac_link"
6592 case "(($ac_try" in
6593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594   *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597   (eval "$ac_link") 2>conftest.er1
6598   ac_status=$?
6599   grep -v '^ *+' conftest.er1 >conftest.err
6600   rm -f conftest.er1
6601   cat conftest.err >&5
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } && {
6604          test -z "$ac_c_werror_flag" ||
6605          test ! -s conftest.err
6606        } && test -s conftest$ac_exeext &&
6607        $as_test_x conftest$ac_exeext; then
6608   ac_cv_lib_m_main=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613         ac_cv_lib_m_main=no
6614 fi
6615
6616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6617       conftest$ac_exeext conftest.$ac_ext
6618 LIBS=$ac_check_lib_save_LIBS
6619 fi
6620 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6621 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6622 if test $ac_cv_lib_m_main = yes; then
6623   cat >>confdefs.h <<_ACEOF
6624 #define HAVE_LIBM 1
6625 _ACEOF
6626
6627   LIBS="-lm $LIBS"
6628
6629 fi
6630
6631 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6632 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6633 if test "${ac_cv_search_setproctitle+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   ac_func_search_save_LIBS=$LIBS
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643
6644 /* Override any GCC internal prototype to avoid an error.
6645    Use char because int might match the return type of a GCC
6646    builtin and then its argument prototype would still apply.  */
6647 #ifdef __cplusplus
6648 extern "C"
6649 #endif
6650 char setproctitle ();
6651 int
6652 main ()
6653 {
6654 return setproctitle ();
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 for ac_lib in '' util; do
6660   if test -z "$ac_lib"; then
6661     ac_res="none required"
6662   else
6663     ac_res=-l$ac_lib
6664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6665   fi
6666   rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (ac_try="$ac_link"
6668 case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673   (eval "$ac_link") 2>conftest.er1
6674   ac_status=$?
6675   grep -v '^ *+' conftest.er1 >conftest.err
6676   rm -f conftest.er1
6677   cat conftest.err >&5
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } && {
6680          test -z "$ac_c_werror_flag" ||
6681          test ! -s conftest.err
6682        } && test -s conftest$ac_exeext &&
6683        $as_test_x conftest$ac_exeext; then
6684   ac_cv_search_setproctitle=$ac_res
6685 else
6686   echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689
6690 fi
6691
6692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693       conftest$ac_exeext
6694   if test "${ac_cv_search_setproctitle+set}" = set; then
6695   break
6696 fi
6697 done
6698 if test "${ac_cv_search_setproctitle+set}" = set; then
6699   :
6700 else
6701   ac_cv_search_setproctitle=no
6702 fi
6703 rm conftest.$ac_ext
6704 LIBS=$ac_func_search_save_LIBS
6705 fi
6706 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6707 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6708 ac_res=$ac_cv_search_setproctitle
6709 if test "$ac_res" != no; then
6710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6711
6712 fi
6713
6714 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6715 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6716 if test "${ac_cv_search_dlopen+set}" = set; then
6717   echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719   ac_func_search_save_LIBS=$LIBS
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h.  */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h.  */
6726
6727 /* Override any GCC internal prototype to avoid an error.
6728    Use char because int might match the return type of a GCC
6729    builtin and then its argument prototype would still apply.  */
6730 #ifdef __cplusplus
6731 extern "C"
6732 #endif
6733 char dlopen ();
6734 int
6735 main ()
6736 {
6737 return dlopen ();
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 for ac_lib in '' dl; do
6743   if test -z "$ac_lib"; then
6744     ac_res="none required"
6745   else
6746     ac_res=-l$ac_lib
6747     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6748   fi
6749   rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6751 case "(($ac_try" in
6752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753   *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756   (eval "$ac_link") 2>conftest.er1
6757   ac_status=$?
6758   grep -v '^ *+' conftest.er1 >conftest.err
6759   rm -f conftest.er1
6760   cat conftest.err >&5
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); } && {
6763          test -z "$ac_c_werror_flag" ||
6764          test ! -s conftest.err
6765        } && test -s conftest$ac_exeext &&
6766        $as_test_x conftest$ac_exeext; then
6767   ac_cv_search_dlopen=$ac_res
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772
6773 fi
6774
6775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776       conftest$ac_exeext
6777   if test "${ac_cv_search_dlopen+set}" = set; then
6778   break
6779 fi
6780 done
6781 if test "${ac_cv_search_dlopen+set}" = set; then
6782   :
6783 else
6784   ac_cv_search_dlopen=no
6785 fi
6786 rm conftest.$ac_ext
6787 LIBS=$ac_func_search_save_LIBS
6788 fi
6789 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6790 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6791 ac_res=$ac_cv_search_dlopen
6792 if test "$ac_res" != no; then
6793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6794
6795 fi
6796
6797 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6798 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6799 if test "${ac_cv_search_socket+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   ac_func_search_save_LIBS=$LIBS
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h.  */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h.  */
6809
6810 /* Override any GCC internal prototype to avoid an error.
6811    Use char because int might match the return type of a GCC
6812    builtin and then its argument prototype would still apply.  */
6813 #ifdef __cplusplus
6814 extern "C"
6815 #endif
6816 char socket ();
6817 int
6818 main ()
6819 {
6820 return socket ();
6821   ;
6822   return 0;
6823 }
6824 _ACEOF
6825 for ac_lib in '' socket wsock32; do
6826   if test -z "$ac_lib"; then
6827     ac_res="none required"
6828   else
6829     ac_res=-l$ac_lib
6830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6831   fi
6832   rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839   (eval "$ac_link") 2>conftest.er1
6840   ac_status=$?
6841   grep -v '^ *+' conftest.er1 >conftest.err
6842   rm -f conftest.er1
6843   cat conftest.err >&5
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); } && {
6846          test -z "$ac_c_werror_flag" ||
6847          test ! -s conftest.err
6848        } && test -s conftest$ac_exeext &&
6849        $as_test_x conftest$ac_exeext; then
6850   ac_cv_search_socket=$ac_res
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855
6856 fi
6857
6858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6859       conftest$ac_exeext
6860   if test "${ac_cv_search_socket+set}" = set; then
6861   break
6862 fi
6863 done
6864 if test "${ac_cv_search_socket+set}" = set; then
6865   :
6866 else
6867   ac_cv_search_socket=no
6868 fi
6869 rm conftest.$ac_ext
6870 LIBS=$ac_func_search_save_LIBS
6871 fi
6872 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6873 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6874 ac_res=$ac_cv_search_socket
6875 if test "$ac_res" != no; then
6876   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6877
6878 fi
6879
6880 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6881 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6882 if test "${ac_cv_search_shl_load+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   ac_func_search_save_LIBS=$LIBS
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892
6893 /* Override any GCC internal prototype to avoid an error.
6894    Use char because int might match the return type of a GCC
6895    builtin and then its argument prototype would still apply.  */
6896 #ifdef __cplusplus
6897 extern "C"
6898 #endif
6899 char shl_load ();
6900 int
6901 main ()
6902 {
6903 return shl_load ();
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 for ac_lib in '' dld; do
6909   if test -z "$ac_lib"; then
6910     ac_res="none required"
6911   else
6912     ac_res=-l$ac_lib
6913     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6914   fi
6915   rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (ac_try="$ac_link"
6917 case "(($ac_try" in
6918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919   *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922   (eval "$ac_link") 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } && {
6929          test -z "$ac_c_werror_flag" ||
6930          test ! -s conftest.err
6931        } && test -s conftest$ac_exeext &&
6932        $as_test_x conftest$ac_exeext; then
6933   ac_cv_search_shl_load=$ac_res
6934 else
6935   echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938
6939 fi
6940
6941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6942       conftest$ac_exeext
6943   if test "${ac_cv_search_shl_load+set}" = set; then
6944   break
6945 fi
6946 done
6947 if test "${ac_cv_search_shl_load+set}" = set; then
6948   :
6949 else
6950   ac_cv_search_shl_load=no
6951 fi
6952 rm conftest.$ac_ext
6953 LIBS=$ac_func_search_save_LIBS
6954 fi
6955 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6956 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6957 ac_res=$ac_cv_search_shl_load
6958 if test "$ac_res" != no; then
6959   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6960
6961 fi
6962
6963 # We only use libld in port/dynloader/aix.c
6964 case $host_os in
6965      aix*)
6966         { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6967 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6968 if test "${ac_cv_search_ldopen+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   ac_func_search_save_LIBS=$LIBS
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978
6979 /* Override any GCC internal prototype to avoid an error.
6980    Use char because int might match the return type of a GCC
6981    builtin and then its argument prototype would still apply.  */
6982 #ifdef __cplusplus
6983 extern "C"
6984 #endif
6985 char ldopen ();
6986 int
6987 main ()
6988 {
6989 return ldopen ();
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 for ac_lib in '' ld; do
6995   if test -z "$ac_lib"; then
6996     ac_res="none required"
6997   else
6998     ac_res=-l$ac_lib
6999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7000   fi
7001   rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (ac_try="$ac_link"
7003 case "(($ac_try" in
7004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005   *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008   (eval "$ac_link") 2>conftest.er1
7009   ac_status=$?
7010   grep -v '^ *+' conftest.er1 >conftest.err
7011   rm -f conftest.er1
7012   cat conftest.err >&5
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); } && {
7015          test -z "$ac_c_werror_flag" ||
7016          test ! -s conftest.err
7017        } && test -s conftest$ac_exeext &&
7018        $as_test_x conftest$ac_exeext; then
7019   ac_cv_search_ldopen=$ac_res
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024
7025 fi
7026
7027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028       conftest$ac_exeext
7029   if test "${ac_cv_search_ldopen+set}" = set; then
7030   break
7031 fi
7032 done
7033 if test "${ac_cv_search_ldopen+set}" = set; then
7034   :
7035 else
7036   ac_cv_search_ldopen=no
7037 fi
7038 rm conftest.$ac_ext
7039 LIBS=$ac_func_search_save_LIBS
7040 fi
7041 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7042 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7043 ac_res=$ac_cv_search_ldopen
7044 if test "$ac_res" != no; then
7045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7046
7047 fi
7048
7049         ;;
7050 esac
7051 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7052 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7053 if test "${ac_cv_search_getopt_long+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   ac_func_search_save_LIBS=$LIBS
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h.  */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h.  */
7063
7064 /* Override any GCC internal prototype to avoid an error.
7065    Use char because int might match the return type of a GCC
7066    builtin and then its argument prototype would still apply.  */
7067 #ifdef __cplusplus
7068 extern "C"
7069 #endif
7070 char getopt_long ();
7071 int
7072 main ()
7073 {
7074 return getopt_long ();
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 for ac_lib in '' getopt gnugetopt; do
7080   if test -z "$ac_lib"; then
7081     ac_res="none required"
7082   else
7083     ac_res=-l$ac_lib
7084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7085   fi
7086   rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7088 case "(($ac_try" in
7089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090   *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093   (eval "$ac_link") 2>conftest.er1
7094   ac_status=$?
7095   grep -v '^ *+' conftest.er1 >conftest.err
7096   rm -f conftest.er1
7097   cat conftest.err >&5
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } && {
7100          test -z "$ac_c_werror_flag" ||
7101          test ! -s conftest.err
7102        } && test -s conftest$ac_exeext &&
7103        $as_test_x conftest$ac_exeext; then
7104   ac_cv_search_getopt_long=$ac_res
7105 else
7106   echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7108
7109
7110 fi
7111
7112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7113       conftest$ac_exeext
7114   if test "${ac_cv_search_getopt_long+set}" = set; then
7115   break
7116 fi
7117 done
7118 if test "${ac_cv_search_getopt_long+set}" = set; then
7119   :
7120 else
7121   ac_cv_search_getopt_long=no
7122 fi
7123 rm conftest.$ac_ext
7124 LIBS=$ac_func_search_save_LIBS
7125 fi
7126 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7127 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7128 ac_res=$ac_cv_search_getopt_long
7129 if test "$ac_res" != no; then
7130   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7131
7132 fi
7133
7134 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7135 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7136 if test "${ac_cv_search_crypt+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   ac_func_search_save_LIBS=$LIBS
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146
7147 /* Override any GCC internal prototype to avoid an error.
7148    Use char because int might match the return type of a GCC
7149    builtin and then its argument prototype would still apply.  */
7150 #ifdef __cplusplus
7151 extern "C"
7152 #endif
7153 char crypt ();
7154 int
7155 main ()
7156 {
7157 return crypt ();
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 for ac_lib in '' crypt; do
7163   if test -z "$ac_lib"; then
7164     ac_res="none required"
7165   else
7166     ac_res=-l$ac_lib
7167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7168   fi
7169   rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_link") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } && {
7183          test -z "$ac_c_werror_flag" ||
7184          test ! -s conftest.err
7185        } && test -s conftest$ac_exeext &&
7186        $as_test_x conftest$ac_exeext; then
7187   ac_cv_search_crypt=$ac_res
7188 else
7189   echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192
7193 fi
7194
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196       conftest$ac_exeext
7197   if test "${ac_cv_search_crypt+set}" = set; then
7198   break
7199 fi
7200 done
7201 if test "${ac_cv_search_crypt+set}" = set; then
7202   :
7203 else
7204   ac_cv_search_crypt=no
7205 fi
7206 rm conftest.$ac_ext
7207 LIBS=$ac_func_search_save_LIBS
7208 fi
7209 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7210 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7211 ac_res=$ac_cv_search_crypt
7212 if test "$ac_res" != no; then
7213   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7214
7215 fi
7216
7217 # Solaris:
7218 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7219 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7220 if test "${ac_cv_search_fdatasync+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   ac_func_search_save_LIBS=$LIBS
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230
7231 /* Override any GCC internal prototype to avoid an error.
7232    Use char because int might match the return type of a GCC
7233    builtin and then its argument prototype would still apply.  */
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 char fdatasync ();
7238 int
7239 main ()
7240 {
7241 return fdatasync ();
7242   ;
7243   return 0;
7244 }
7245 _ACEOF
7246 for ac_lib in '' rt posix4; do
7247   if test -z "$ac_lib"; then
7248     ac_res="none required"
7249   else
7250     ac_res=-l$ac_lib
7251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7252   fi
7253   rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (ac_try="$ac_link"
7255 case "(($ac_try" in
7256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257   *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260   (eval "$ac_link") 2>conftest.er1
7261   ac_status=$?
7262   grep -v '^ *+' conftest.er1 >conftest.err
7263   rm -f conftest.er1
7264   cat conftest.err >&5
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } && {
7267          test -z "$ac_c_werror_flag" ||
7268          test ! -s conftest.err
7269        } && test -s conftest$ac_exeext &&
7270        $as_test_x conftest$ac_exeext; then
7271   ac_cv_search_fdatasync=$ac_res
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276
7277 fi
7278
7279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7280       conftest$ac_exeext
7281   if test "${ac_cv_search_fdatasync+set}" = set; then
7282   break
7283 fi
7284 done
7285 if test "${ac_cv_search_fdatasync+set}" = set; then
7286   :
7287 else
7288   ac_cv_search_fdatasync=no
7289 fi
7290 rm conftest.$ac_ext
7291 LIBS=$ac_func_search_save_LIBS
7292 fi
7293 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7294 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7295 ac_res=$ac_cv_search_fdatasync
7296 if test "$ac_res" != no; then
7297   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7298
7299 fi
7300
7301 # Cygwin:
7302 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7303 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7304 if test "${ac_cv_search_shmget+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   ac_func_search_save_LIBS=$LIBS
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314
7315 /* Override any GCC internal prototype to avoid an error.
7316    Use char because int might match the return type of a GCC
7317    builtin and then its argument prototype would still apply.  */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char shmget ();
7322 int
7323 main ()
7324 {
7325 return shmget ();
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 for ac_lib in '' cygipc; do
7331   if test -z "$ac_lib"; then
7332     ac_res="none required"
7333   else
7334     ac_res=-l$ac_lib
7335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7336   fi
7337   rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (ac_try="$ac_link"
7339 case "(($ac_try" in
7340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341   *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344   (eval "$ac_link") 2>conftest.er1
7345   ac_status=$?
7346   grep -v '^ *+' conftest.er1 >conftest.err
7347   rm -f conftest.er1
7348   cat conftest.err >&5
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } && {
7351          test -z "$ac_c_werror_flag" ||
7352          test ! -s conftest.err
7353        } && test -s conftest$ac_exeext &&
7354        $as_test_x conftest$ac_exeext; then
7355   ac_cv_search_shmget=$ac_res
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360
7361 fi
7362
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364       conftest$ac_exeext
7365   if test "${ac_cv_search_shmget+set}" = set; then
7366   break
7367 fi
7368 done
7369 if test "${ac_cv_search_shmget+set}" = set; then
7370   :
7371 else
7372   ac_cv_search_shmget=no
7373 fi
7374 rm conftest.$ac_ext
7375 LIBS=$ac_func_search_save_LIBS
7376 fi
7377 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7378 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7379 ac_res=$ac_cv_search_shmget
7380 if test "$ac_res" != no; then
7381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7382
7383 fi
7384
7385
7386 if test "$with_readline" = yes; then
7387
7388
7389 if test "${pgac_cv_check_readline+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   pgac_cv_check_readline=no
7393 pgac_save_LIBS=$LIBS
7394 if test x"$with_libedit_preferred" != x"yes"
7395 then    READLINE_ORDER="-lreadline -ledit"
7396 else    READLINE_ORDER="-ledit -lreadline"
7397 fi
7398 for pgac_rllib in $READLINE_ORDER ; do
7399   { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7400 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7401   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7402     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7403     cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h.  */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h.  */
7409
7410 /* Override any GCC internal prototype to avoid an error.
7411    Use char because int might match the return type of a GCC
7412    builtin and then its argument prototype would still apply.  */
7413 #ifdef __cplusplus
7414 extern "C"
7415 #endif
7416 char readline ();
7417 int
7418 main ()
7419 {
7420 return readline ();
7421   ;
7422   return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7427 case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432   (eval "$ac_link") 2>conftest.er1
7433   ac_status=$?
7434   grep -v '^ *+' conftest.er1 >conftest.err
7435   rm -f conftest.er1
7436   cat conftest.err >&5
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } && {
7439          test -z "$ac_c_werror_flag" ||
7440          test ! -s conftest.err
7441        } && test -s conftest$ac_exeext &&
7442        $as_test_x conftest$ac_exeext; then
7443
7444       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7445       # recognize dependent libraries; assume curses is needed if we didn't
7446       # find any dependency.
7447       case $host_os in
7448         netbsd* | openbsd* | irix*)
7449           if test x"$pgac_lib" = x"" ; then
7450             pgac_lib=" -lcurses"
7451           fi ;;
7452       esac
7453
7454       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7455       break
7456
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461
7462 fi
7463
7464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7465       conftest$ac_exeext conftest.$ac_ext
7466   done
7467   if test "$pgac_cv_check_readline" != no ; then
7468     { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7469 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7470     break
7471   else
7472     { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474   fi
7475 done
7476 LIBS=$pgac_save_LIBS
7477
7478 fi
7479
7480 if test "$pgac_cv_check_readline" != no ; then
7481   LIBS="$pgac_cv_check_readline $LIBS"
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_LIBREADLINE 1
7485 _ACEOF
7486
7487 fi
7488
7489
7490   if test x"$pgac_cv_check_readline" = x"no"; then
7491     { { echo "$as_me:$LINENO: error: readline library not found
7492 If you have readline already installed, see config.log for details on the
7493 failure.  It is possible the compiler isn't looking in the proper directory.
7494 Use --without-readline to disable readline support." >&5
7495 echo "$as_me: error: readline library not found
7496 If you have readline already installed, see config.log for details on the
7497 failure.  It is possible the compiler isn't looking in the proper directory.
7498 Use --without-readline to disable readline support." >&2;}
7499    { (exit 1); exit 1; }; }
7500   fi
7501 fi
7502
7503 if test "$with_zlib" = yes; then
7504
7505 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7506 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7507 if test "${ac_cv_lib_z_inflate+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   ac_check_lib_save_LIBS=$LIBS
7511 LIBS="-lz  $LIBS"
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h.  */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h.  */
7518
7519 /* Override any GCC internal prototype to avoid an error.
7520    Use char because int might match the return type of a GCC
7521    builtin and then its argument prototype would still apply.  */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char inflate ();
7526 int
7527 main ()
7528 {
7529 return inflate ();
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7536 case "(($ac_try" in
7537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538   *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541   (eval "$ac_link") 2>conftest.er1
7542   ac_status=$?
7543   grep -v '^ *+' conftest.er1 >conftest.err
7544   rm -f conftest.er1
7545   cat conftest.err >&5
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); } && {
7548          test -z "$ac_c_werror_flag" ||
7549          test ! -s conftest.err
7550        } && test -s conftest$ac_exeext &&
7551        $as_test_x conftest$ac_exeext; then
7552   ac_cv_lib_z_inflate=yes
7553 else
7554   echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557         ac_cv_lib_z_inflate=no
7558 fi
7559
7560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561       conftest$ac_exeext conftest.$ac_ext
7562 LIBS=$ac_check_lib_save_LIBS
7563 fi
7564 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7565 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7566 if test $ac_cv_lib_z_inflate = yes; then
7567   cat >>confdefs.h <<_ACEOF
7568 #define HAVE_LIBZ 1
7569 _ACEOF
7570
7571   LIBS="-lz $LIBS"
7572
7573 else
7574   { { echo "$as_me:$LINENO: error: zlib library not found
7575 If you have zlib already installed, see config.log for details on the
7576 failure.  It is possible the compiler isn't looking in the proper directory.
7577 Use --without-zlib to disable zlib support." >&5
7578 echo "$as_me: error: zlib library not found
7579 If you have zlib already installed, see config.log for details on the
7580 failure.  It is possible the compiler isn't looking in the proper directory.
7581 Use --without-zlib to disable zlib support." >&2;}
7582    { (exit 1); exit 1; }; }
7583 fi
7584
7585 fi
7586
7587 if test "$enable_spinlocks" = yes; then
7588
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_SPINLOCKS 1
7591 _ACEOF
7592
7593 else
7594   { echo "$as_me:$LINENO: WARNING:
7595 *** Not using spinlocks will cause poor performance." >&5
7596 echo "$as_me: WARNING:
7597 *** Not using spinlocks will cause poor performance." >&2;}
7598 fi
7599
7600 if test "$with_gssapi" = yes ; then
7601   if test "$PORTNAME" != "win32"; then
7602     { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7603 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7604 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   ac_func_search_save_LIBS=$LIBS
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614
7615 /* Override any GCC internal prototype to avoid an error.
7616    Use char because int might match the return type of a GCC
7617    builtin and then its argument prototype would still apply.  */
7618 #ifdef __cplusplus
7619 extern "C"
7620 #endif
7621 char gss_init_sec_context ();
7622 int
7623 main ()
7624 {
7625 return gss_init_sec_context ();
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7631   if test -z "$ac_lib"; then
7632     ac_res="none required"
7633   else
7634     ac_res=-l$ac_lib
7635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7636   fi
7637   rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7639 case "(($ac_try" in
7640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641   *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644   (eval "$ac_link") 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } && {
7651          test -z "$ac_c_werror_flag" ||
7652          test ! -s conftest.err
7653        } && test -s conftest$ac_exeext &&
7654        $as_test_x conftest$ac_exeext; then
7655   ac_cv_search_gss_init_sec_context=$ac_res
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660
7661 fi
7662
7663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7664       conftest$ac_exeext
7665   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7666   break
7667 fi
7668 done
7669 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7670   :
7671 else
7672   ac_cv_search_gss_init_sec_context=no
7673 fi
7674 rm conftest.$ac_ext
7675 LIBS=$ac_func_search_save_LIBS
7676 fi
7677 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7678 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7679 ac_res=$ac_cv_search_gss_init_sec_context
7680 if test "$ac_res" != no; then
7681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7682
7683 else
7684   { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7685 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7686    { (exit 1); exit 1; }; }
7687 fi
7688
7689   else
7690     LIBS="$LIBS -lgssapi32"
7691   fi
7692 fi
7693
7694 if test "$with_krb5" = yes ; then
7695   if test "$PORTNAME" != "win32"; then
7696      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7697 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7698 if test "${ac_cv_search_com_err+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701   ac_func_search_save_LIBS=$LIBS
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708
7709 /* Override any GCC internal prototype to avoid an error.
7710    Use char because int might match the return type of a GCC
7711    builtin and then its argument prototype would still apply.  */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char com_err ();
7716 int
7717 main ()
7718 {
7719 return com_err ();
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7725   if test -z "$ac_lib"; then
7726     ac_res="none required"
7727   else
7728     ac_res=-l$ac_lib
7729     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7730   fi
7731   rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_link") 2>conftest.er1
7739   ac_status=$?
7740   grep -v '^ *+' conftest.er1 >conftest.err
7741   rm -f conftest.er1
7742   cat conftest.err >&5
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } && {
7745          test -z "$ac_c_werror_flag" ||
7746          test ! -s conftest.err
7747        } && test -s conftest$ac_exeext &&
7748        $as_test_x conftest$ac_exeext; then
7749   ac_cv_search_com_err=$ac_res
7750 else
7751   echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754
7755 fi
7756
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758       conftest$ac_exeext
7759   if test "${ac_cv_search_com_err+set}" = set; then
7760   break
7761 fi
7762 done
7763 if test "${ac_cv_search_com_err+set}" = set; then
7764   :
7765 else
7766   ac_cv_search_com_err=no
7767 fi
7768 rm conftest.$ac_ext
7769 LIBS=$ac_func_search_save_LIBS
7770 fi
7771 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7772 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7773 ac_res=$ac_cv_search_com_err
7774 if test "$ac_res" != no; then
7775   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7776
7777 else
7778   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7779 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7780    { (exit 1); exit 1; }; }
7781 fi
7782
7783      { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7784 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7785 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   ac_func_search_save_LIBS=$LIBS
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795
7796 /* Override any GCC internal prototype to avoid an error.
7797    Use char because int might match the return type of a GCC
7798    builtin and then its argument prototype would still apply.  */
7799 #ifdef __cplusplus
7800 extern "C"
7801 #endif
7802 char krb5_sendauth ();
7803 int
7804 main ()
7805 {
7806 return krb5_sendauth ();
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7812   if test -z "$ac_lib"; then
7813     ac_res="none required"
7814   else
7815     ac_res=-l$ac_lib
7816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7817   fi
7818   rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (ac_try="$ac_link"
7820 case "(($ac_try" in
7821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822   *) ac_try_echo=$ac_try;;
7823 esac
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825   (eval "$ac_link") 2>conftest.er1
7826   ac_status=$?
7827   grep -v '^ *+' conftest.er1 >conftest.err
7828   rm -f conftest.er1
7829   cat conftest.err >&5
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } && {
7832          test -z "$ac_c_werror_flag" ||
7833          test ! -s conftest.err
7834        } && test -s conftest$ac_exeext &&
7835        $as_test_x conftest$ac_exeext; then
7836   ac_cv_search_krb5_sendauth=$ac_res
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841
7842 fi
7843
7844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7845       conftest$ac_exeext
7846   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7847   break
7848 fi
7849 done
7850 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7851   :
7852 else
7853   ac_cv_search_krb5_sendauth=no
7854 fi
7855 rm conftest.$ac_ext
7856 LIBS=$ac_func_search_save_LIBS
7857 fi
7858 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7859 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7860 ac_res=$ac_cv_search_krb5_sendauth
7861 if test "$ac_res" != no; then
7862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7863
7864 else
7865   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7866 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7867    { (exit 1); exit 1; }; }
7868 fi
7869
7870   else
7871      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7872 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7873 if test "${ac_cv_search_com_err+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   ac_func_search_save_LIBS=$LIBS
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h.  */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h.  */
7883
7884 /* Override any GCC internal prototype to avoid an error.
7885    Use char because int might match the return type of a GCC
7886    builtin and then its argument prototype would still apply.  */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 char com_err ();
7891 int
7892 main ()
7893 {
7894 return com_err ();
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7900   if test -z "$ac_lib"; then
7901     ac_res="none required"
7902   else
7903     ac_res=-l$ac_lib
7904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7905   fi
7906   rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910   *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913   (eval "$ac_link") 2>conftest.er1
7914   ac_status=$?
7915   grep -v '^ *+' conftest.er1 >conftest.err
7916   rm -f conftest.er1
7917   cat conftest.err >&5
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } && {
7920          test -z "$ac_c_werror_flag" ||
7921          test ! -s conftest.err
7922        } && test -s conftest$ac_exeext &&
7923        $as_test_x conftest$ac_exeext; then
7924   ac_cv_search_com_err=$ac_res
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929
7930 fi
7931
7932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7933       conftest$ac_exeext
7934   if test "${ac_cv_search_com_err+set}" = set; then
7935   break
7936 fi
7937 done
7938 if test "${ac_cv_search_com_err+set}" = set; then
7939   :
7940 else
7941   ac_cv_search_com_err=no
7942 fi
7943 rm conftest.$ac_ext
7944 LIBS=$ac_func_search_save_LIBS
7945 fi
7946 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7947 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7948 ac_res=$ac_cv_search_com_err
7949 if test "$ac_res" != no; then
7950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7951
7952 else
7953   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7954 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7955    { (exit 1); exit 1; }; }
7956 fi
7957
7958   fi
7959 fi
7960
7961 if test "$with_openssl" = yes ; then
7962     if test "$PORTNAME" != "win32"; then
7963
7964 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7965 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7966 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969   ac_check_lib_save_LIBS=$LIBS
7970 LIBS="-lcrypto  $LIBS"
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977
7978 /* Override any GCC internal prototype to avoid an error.
7979    Use char because int might match the return type of a GCC
7980    builtin and then its argument prototype would still apply.  */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 char CRYPTO_new_ex_data ();
7985 int
7986 main ()
7987 {
7988 return CRYPTO_new_ex_data ();
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (ac_try="$ac_link"
7995 case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000   (eval "$ac_link") 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } && {
8007          test -z "$ac_c_werror_flag" ||
8008          test ! -s conftest.err
8009        } && test -s conftest$ac_exeext &&
8010        $as_test_x conftest$ac_exeext; then
8011   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8020       conftest$ac_exeext conftest.$ac_ext
8021 LIBS=$ac_check_lib_save_LIBS
8022 fi
8023 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8024 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8025 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8026   cat >>confdefs.h <<_ACEOF
8027 #define HAVE_LIBCRYPTO 1
8028 _ACEOF
8029
8030   LIBS="-lcrypto $LIBS"
8031
8032 else
8033   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8034 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8035    { (exit 1); exit 1; }; }
8036 fi
8037
8038
8039 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8040 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8041 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   ac_check_lib_save_LIBS=$LIBS
8045 LIBS="-lssl  $LIBS"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052
8053 /* Override any GCC internal prototype to avoid an error.
8054    Use char because int might match the return type of a GCC
8055    builtin and then its argument prototype would still apply.  */
8056 #ifdef __cplusplus
8057 extern "C"
8058 #endif
8059 char SSL_library_init ();
8060 int
8061 main ()
8062 {
8063 return SSL_library_init ();
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_link") 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } && {
8082          test -z "$ac_c_werror_flag" ||
8083          test ! -s conftest.err
8084        } && test -s conftest$ac_exeext &&
8085        $as_test_x conftest$ac_exeext; then
8086   ac_cv_lib_ssl_SSL_library_init=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091         ac_cv_lib_ssl_SSL_library_init=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095       conftest$ac_exeext conftest.$ac_ext
8096 LIBS=$ac_check_lib_save_LIBS
8097 fi
8098 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8099 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8100 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8101   cat >>confdefs.h <<_ACEOF
8102 #define HAVE_LIBSSL 1
8103 _ACEOF
8104
8105   LIBS="-lssl $LIBS"
8106
8107 else
8108   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8109 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8110    { (exit 1); exit 1; }; }
8111 fi
8112
8113   else
8114
8115 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8116 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8117 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   ac_check_lib_save_LIBS=$LIBS
8121 LIBS="-leay32  $LIBS"
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128
8129 /* Override any GCC internal prototype to avoid an error.
8130    Use char because int might match the return type of a GCC
8131    builtin and then its argument prototype would still apply.  */
8132 #ifdef __cplusplus
8133 extern "C"
8134 #endif
8135 char CRYPTO_new_ex_data ();
8136 int
8137 main ()
8138 {
8139 return CRYPTO_new_ex_data ();
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8146 case "(($ac_try" in
8147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148   *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151   (eval "$ac_link") 2>conftest.er1
8152   ac_status=$?
8153   grep -v '^ *+' conftest.er1 >conftest.err
8154   rm -f conftest.er1
8155   cat conftest.err >&5
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); } && {
8158          test -z "$ac_c_werror_flag" ||
8159          test ! -s conftest.err
8160        } && test -s conftest$ac_exeext &&
8161        $as_test_x conftest$ac_exeext; then
8162   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8163 else
8164   echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8168 fi
8169
8170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8171       conftest$ac_exeext conftest.$ac_ext
8172 LIBS=$ac_check_lib_save_LIBS
8173 fi
8174 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8175 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8176 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8177   cat >>confdefs.h <<_ACEOF
8178 #define HAVE_LIBEAY32 1
8179 _ACEOF
8180
8181   LIBS="-leay32 $LIBS"
8182
8183 else
8184   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8185 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8186    { (exit 1); exit 1; }; }
8187 fi
8188
8189
8190 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8191 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8192 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195   ac_check_lib_save_LIBS=$LIBS
8196 LIBS="-lssleay32  $LIBS"
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203
8204 /* Override any GCC internal prototype to avoid an error.
8205    Use char because int might match the return type of a GCC
8206    builtin and then its argument prototype would still apply.  */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 char SSL_library_init ();
8211 int
8212 main ()
8213 {
8214 return SSL_library_init ();
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (ac_try="$ac_link"
8221 case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_link") 2>conftest.er1
8227   ac_status=$?
8228   grep -v '^ *+' conftest.er1 >conftest.err
8229   rm -f conftest.er1
8230   cat conftest.err >&5
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } && {
8233          test -z "$ac_c_werror_flag" ||
8234          test ! -s conftest.err
8235        } && test -s conftest$ac_exeext &&
8236        $as_test_x conftest$ac_exeext; then
8237   ac_cv_lib_ssleay32_SSL_library_init=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242         ac_cv_lib_ssleay32_SSL_library_init=no
8243 fi
8244
8245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8246       conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8248 fi
8249 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8250 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8251 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8252   cat >>confdefs.h <<_ACEOF
8253 #define HAVE_LIBSSLEAY32 1
8254 _ACEOF
8255
8256   LIBS="-lssleay32 $LIBS"
8257
8258 else
8259   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8260 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8261    { (exit 1); exit 1; }; }
8262 fi
8263
8264   fi
8265 fi
8266
8267 if test "$with_pam" = yes ; then
8268
8269 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8270 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8271 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   ac_check_lib_save_LIBS=$LIBS
8275 LIBS="-lpam  $LIBS"
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282
8283 /* Override any GCC internal prototype to avoid an error.
8284    Use char because int might match the return type of a GCC
8285    builtin and then its argument prototype would still apply.  */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 char pam_start ();
8290 int
8291 main ()
8292 {
8293 return pam_start ();
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_link") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && {
8312          test -z "$ac_c_werror_flag" ||
8313          test ! -s conftest.err
8314        } && test -s conftest$ac_exeext &&
8315        $as_test_x conftest$ac_exeext; then
8316   ac_cv_lib_pam_pam_start=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321         ac_cv_lib_pam_pam_start=no
8322 fi
8323
8324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8325       conftest$ac_exeext conftest.$ac_ext
8326 LIBS=$ac_check_lib_save_LIBS
8327 fi
8328 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8329 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8330 if test $ac_cv_lib_pam_pam_start = yes; then
8331   cat >>confdefs.h <<_ACEOF
8332 #define HAVE_LIBPAM 1
8333 _ACEOF
8334
8335   LIBS="-lpam $LIBS"
8336
8337 else
8338   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8339 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8340    { (exit 1); exit 1; }; }
8341 fi
8342
8343 fi
8344
8345 if test "$with_libxml" = yes ; then
8346
8347 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8348 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8349 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-lxml2  $LIBS"
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361 /* Override any GCC internal prototype to avoid an error.
8362    Use char because int might match the return type of a GCC
8363    builtin and then its argument prototype would still apply.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char xmlSaveToBuffer ();
8368 int
8369 main ()
8370 {
8371 return xmlSaveToBuffer ();
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (ac_try="$ac_link"
8378 case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_link") 2>conftest.er1
8384   ac_status=$?
8385   grep -v '^ *+' conftest.er1 >conftest.err
8386   rm -f conftest.er1
8387   cat conftest.err >&5
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } && {
8390          test -z "$ac_c_werror_flag" ||
8391          test ! -s conftest.err
8392        } && test -s conftest$ac_exeext &&
8393        $as_test_x conftest$ac_exeext; then
8394   ac_cv_lib_xml2_xmlSaveToBuffer=yes
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399         ac_cv_lib_xml2_xmlSaveToBuffer=no
8400 fi
8401
8402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8403       conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8405 fi
8406 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8407 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8408 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8409   cat >>confdefs.h <<_ACEOF
8410 #define HAVE_LIBXML2 1
8411 _ACEOF
8412
8413   LIBS="-lxml2 $LIBS"
8414
8415 else
8416   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8417 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8418    { (exit 1); exit 1; }; }
8419 fi
8420
8421 fi
8422
8423 if test "$with_libxslt" = yes ; then
8424
8425 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8426 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8427 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   ac_check_lib_save_LIBS=$LIBS
8431 LIBS="-lxslt  $LIBS"
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438
8439 /* Override any GCC internal prototype to avoid an error.
8440    Use char because int might match the return type of a GCC
8441    builtin and then its argument prototype would still apply.  */
8442 #ifdef __cplusplus
8443 extern "C"
8444 #endif
8445 char xsltCleanupGlobals ();
8446 int
8447 main ()
8448 {
8449 return xsltCleanupGlobals ();
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8456 case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_link") 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } && {
8468          test -z "$ac_c_werror_flag" ||
8469          test ! -s conftest.err
8470        } && test -s conftest$ac_exeext &&
8471        $as_test_x conftest$ac_exeext; then
8472   ac_cv_lib_xslt_xsltCleanupGlobals=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477         ac_cv_lib_xslt_xsltCleanupGlobals=no
8478 fi
8479
8480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8481       conftest$ac_exeext conftest.$ac_ext
8482 LIBS=$ac_check_lib_save_LIBS
8483 fi
8484 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8485 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8486 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8487   cat >>confdefs.h <<_ACEOF
8488 #define HAVE_LIBXSLT 1
8489 _ACEOF
8490
8491   LIBS="-lxslt $LIBS"
8492
8493 else
8494   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8495 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8496    { (exit 1); exit 1; }; }
8497 fi
8498
8499 fi
8500
8501 # for contrib/uuid-ossp
8502 if test "$with_ossp_uuid" = yes ; then
8503   { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8504 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8505 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   ac_check_lib_save_LIBS=$LIBS
8509 LIBS="-lossp-uuid  $LIBS"
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516
8517 /* Override any GCC internal prototype to avoid an error.
8518    Use char because int might match the return type of a GCC
8519    builtin and then its argument prototype would still apply.  */
8520 #ifdef __cplusplus
8521 extern "C"
8522 #endif
8523 char uuid_export ();
8524 int
8525 main ()
8526 {
8527 return uuid_export ();
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (ac_try="$ac_link"
8534 case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_link") 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } && {
8546          test -z "$ac_c_werror_flag" ||
8547          test ! -s conftest.err
8548        } && test -s conftest$ac_exeext &&
8549        $as_test_x conftest$ac_exeext; then
8550   ac_cv_lib_ossp_uuid_uuid_export=yes
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555         ac_cv_lib_ossp_uuid_uuid_export=no
8556 fi
8557
8558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8559       conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8561 fi
8562 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8563 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8564 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8565   OSSP_UUID_LIBS="-lossp-uuid"
8566 else
8567   { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8568 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8569 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   ac_check_lib_save_LIBS=$LIBS
8573 LIBS="-luuid  $LIBS"
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580
8581 /* Override any GCC internal prototype to avoid an error.
8582    Use char because int might match the return type of a GCC
8583    builtin and then its argument prototype would still apply.  */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 char uuid_export ();
8588 int
8589 main ()
8590 {
8591 return uuid_export ();
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603   (eval "$ac_link") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } && {
8610          test -z "$ac_c_werror_flag" ||
8611          test ! -s conftest.err
8612        } && test -s conftest$ac_exeext &&
8613        $as_test_x conftest$ac_exeext; then
8614   ac_cv_lib_uuid_uuid_export=yes
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619         ac_cv_lib_uuid_uuid_export=no
8620 fi
8621
8622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8623       conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8625 fi
8626 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8627 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8628 if test $ac_cv_lib_uuid_uuid_export = yes; then
8629   OSSP_UUID_LIBS="-luuid"
8630 else
8631   { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8632 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8633    { (exit 1); exit 1; }; }
8634 fi
8635
8636 fi
8637
8638 fi
8639
8640
8641
8642 ##
8643 ## Header files
8644 ##
8645
8646 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8648 if test "${ac_cv_header_stdc+set}" = set; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657 #include <stdlib.h>
8658 #include <stdarg.h>
8659 #include <string.h>
8660 #include <float.h>
8661
8662 int
8663 main ()
8664 {
8665
8666   ;
8667   return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674   *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677   (eval "$ac_compile") 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } && {
8684          test -z "$ac_c_werror_flag" ||
8685          test ! -s conftest.err
8686        } && test -s conftest.$ac_objext; then
8687   ac_cv_header_stdc=yes
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692         ac_cv_header_stdc=no
8693 fi
8694
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696
8697 if test $ac_cv_header_stdc = yes; then
8698   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8699   cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705 #include <string.h>
8706
8707 _ACEOF
8708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8709   $EGREP "memchr" >/dev/null 2>&1; then
8710   :
8711 else
8712   ac_cv_header_stdc=no
8713 fi
8714 rm -f conftest*
8715
8716 fi
8717
8718 if test $ac_cv_header_stdc = yes; then
8719   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8720   cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h.  */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h.  */
8726 #include <stdlib.h>
8727
8728 _ACEOF
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730   $EGREP "free" >/dev/null 2>&1; then
8731   :
8732 else
8733   ac_cv_header_stdc=no
8734 fi
8735 rm -f conftest*
8736
8737 fi
8738
8739 if test $ac_cv_header_stdc = yes; then
8740   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8741   if test "$cross_compiling" = yes; then
8742   :
8743 else
8744   cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750 #include <ctype.h>
8751 #include <stdlib.h>
8752 #if ((' ' & 0x0FF) == 0x020)
8753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8755 #else
8756 # define ISLOWER(c) \
8757                    (('a' <= (c) && (c) <= 'i') \
8758                      || ('j' <= (c) && (c) <= 'r') \
8759                      || ('s' <= (c) && (c) <= 'z'))
8760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8761 #endif
8762
8763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8764 int
8765 main ()
8766 {
8767   int i;
8768   for (i = 0; i < 256; i++)
8769     if (XOR (islower (i), ISLOWER (i))
8770         || toupper (i) != TOUPPER (i))
8771       return 2;
8772   return 0;
8773 }
8774 _ACEOF
8775 rm -f conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8777 case "(($ac_try" in
8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779   *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782   (eval "$ac_link") 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8786   { (case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_try") 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); }; }; then
8795   :
8796 else
8797   echo "$as_me: program exited with status $ac_status" >&5
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 ( exit $ac_status )
8802 ac_cv_header_stdc=no
8803 fi
8804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8805 fi
8806
8807
8808 fi
8809 fi
8810 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8811 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8812 if test $ac_cv_header_stdc = yes; then
8813
8814 cat >>confdefs.h <<\_ACEOF
8815 #define STDC_HEADERS 1
8816 _ACEOF
8817
8818 fi
8819
8820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8831                   inttypes.h stdint.h unistd.h
8832 do
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8837   echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839   cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h.  */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h.  */
8845 $ac_includes_default
8846
8847 #include <$ac_header>
8848 _ACEOF
8849 rm -f conftest.$ac_objext
8850 if { (ac_try="$ac_compile"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_compile") 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } && {
8863          test -z "$ac_c_werror_flag" ||
8864          test ! -s conftest.err
8865        } && test -s conftest.$ac_objext; then
8866   eval "$as_ac_Header=yes"
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871         eval "$as_ac_Header=no"
8872 fi
8873
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 fi
8876 ac_res=`eval echo '${'$as_ac_Header'}'`
8877                { echo "$as_me:$LINENO: result: $ac_res" >&5
8878 echo "${ECHO_T}$ac_res" >&6; }
8879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8880   cat >>confdefs.h <<_ACEOF
8881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8882 _ACEOF
8883
8884 fi
8885
8886 done
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8916 do
8917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8922   echo $ECHO_N "(cached) $ECHO_C" >&6
8923 fi
8924 ac_res=`eval echo '${'$as_ac_Header'}'`
8925                { echo "$as_me:$LINENO: result: $ac_res" >&5
8926 echo "${ECHO_T}$ac_res" >&6; }
8927 else
8928   # Is the header compilable?
8929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 $ac_includes_default
8938 #include <$ac_header>
8939 _ACEOF
8940 rm -f conftest.$ac_objext
8941 if { (ac_try="$ac_compile"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947   (eval "$ac_compile") 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } && {
8954          test -z "$ac_c_werror_flag" ||
8955          test ! -s conftest.err
8956        } && test -s conftest.$ac_objext; then
8957   ac_header_compiler=yes
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962         ac_header_compiler=no
8963 fi
8964
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8967 echo "${ECHO_T}$ac_header_compiler" >&6; }
8968
8969 # Is the header present?
8970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978 #include <$ac_header>
8979 _ACEOF
8980 if { (ac_try="$ac_cpp conftest.$ac_ext"
8981 case "(($ac_try" in
8982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983   *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } >/dev/null && {
8993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8994          test ! -s conftest.err
8995        }; then
8996   ac_header_preproc=yes
8997 else
8998   echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001   ac_header_preproc=no
9002 fi
9003
9004 rm -f conftest.err conftest.$ac_ext
9005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9006 echo "${ECHO_T}$ac_header_preproc" >&6; }
9007
9008 # So?  What about this header?
9009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9010   yes:no: )
9011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9015     ac_header_preproc=yes
9016     ;;
9017   no:yes:* )
9018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9030     ( cat <<\_ASBOX
9031 ## ---------------------------------------- ##
9032 ## Report this to pgsql-bugs@postgresql.org ##
9033 ## ---------------------------------------- ##
9034 _ASBOX
9035      ) | sed "s/^/$as_me: WARNING:     /" >&2
9036     ;;
9037 esac
9038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   eval "$as_ac_Header=\$ac_header_preproc"
9044 fi
9045 ac_res=`eval echo '${'$as_ac_Header'}'`
9046                { echo "$as_me:$LINENO: result: $ac_res" >&5
9047 echo "${ECHO_T}$ac_res" >&6; }
9048
9049 fi
9050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9051   cat >>confdefs.h <<_ACEOF
9052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9053 _ACEOF
9054
9055 fi
9056
9057 done
9058
9059
9060 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9061 # netinet/in.h is included first.
9062
9063 for ac_header in netinet/in.h
9064 do
9065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9067   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 fi
9072 ac_res=`eval echo '${'$as_ac_Header'}'`
9073                { echo "$as_me:$LINENO: result: $ac_res" >&5
9074 echo "${ECHO_T}$ac_res" >&6; }
9075 else
9076   # Is the header compilable?
9077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 $ac_includes_default
9086 #include <$ac_header>
9087 _ACEOF
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9090 case "(($ac_try" in
9091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092   *) ac_try_echo=$ac_try;;
9093 esac
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095   (eval "$ac_compile") 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } && {
9102          test -z "$ac_c_werror_flag" ||
9103          test ! -s conftest.err
9104        } && test -s conftest.$ac_objext; then
9105   ac_header_compiler=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110         ac_header_compiler=no
9111 fi
9112
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9115 echo "${ECHO_T}$ac_header_compiler" >&6; }
9116
9117 # Is the header present?
9118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126 #include <$ac_header>
9127 _ACEOF
9128 if { (ac_try="$ac_cpp conftest.$ac_ext"
9129 case "(($ac_try" in
9130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131   *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } >/dev/null && {
9141          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9142          test ! -s conftest.err
9143        }; then
9144   ac_header_preproc=yes
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149   ac_header_preproc=no
9150 fi
9151
9152 rm -f conftest.err conftest.$ac_ext
9153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154 echo "${ECHO_T}$ac_header_preproc" >&6; }
9155
9156 # So?  What about this header?
9157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158   yes:no: )
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9163     ac_header_preproc=yes
9164     ;;
9165   no:yes:* )
9166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9178     ( cat <<\_ASBOX
9179 ## ---------------------------------------- ##
9180 ## Report this to pgsql-bugs@postgresql.org ##
9181 ## ---------------------------------------- ##
9182 _ASBOX
9183      ) | sed "s/^/$as_me: WARNING:     /" >&2
9184     ;;
9185 esac
9186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191   eval "$as_ac_Header=\$ac_header_preproc"
9192 fi
9193 ac_res=`eval echo '${'$as_ac_Header'}'`
9194                { echo "$as_me:$LINENO: result: $ac_res" >&5
9195 echo "${ECHO_T}$ac_res" >&6; }
9196
9197 fi
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199   cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201 _ACEOF
9202
9203 fi
9204
9205 done
9206
9207
9208 for ac_header in netinet/tcp.h
9209 do
9210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222 $ac_includes_default
9223 #ifdef HAVE_NETINET_IN_H
9224 #include <netinet/in.h>
9225 #endif
9226
9227
9228 #include <$ac_header>
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9232 case "(($ac_try" in
9233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234   *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237   (eval "$ac_compile") 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } && {
9244          test -z "$ac_c_werror_flag" ||
9245          test ! -s conftest.err
9246        } && test -s conftest.$ac_objext; then
9247   eval "$as_ac_Header=yes"
9248 else
9249   echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252         eval "$as_ac_Header=no"
9253 fi
9254
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 ac_res=`eval echo '${'$as_ac_Header'}'`
9258                { echo "$as_me:$LINENO: result: $ac_res" >&5
9259 echo "${ECHO_T}$ac_res" >&6; }
9260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9261   cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9263 _ACEOF
9264
9265 fi
9266
9267 done
9268
9269
9270 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9271
9272 for ac_header in readline/readline.h
9273 do
9274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 fi
9281 ac_res=`eval echo '${'$as_ac_Header'}'`
9282                { echo "$as_me:$LINENO: result: $ac_res" >&5
9283 echo "${ECHO_T}$ac_res" >&6; }
9284 else
9285   # Is the header compilable?
9286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294 $ac_includes_default
9295 #include <$ac_header>
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9299 case "(($ac_try" in
9300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301   *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304   (eval "$ac_compile") 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } && {
9311          test -z "$ac_c_werror_flag" ||
9312          test ! -s conftest.err
9313        } && test -s conftest.$ac_objext; then
9314   ac_header_compiler=yes
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319         ac_header_compiler=no
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6; }
9325
9326 # Is the header present?
9327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 #include <$ac_header>
9336 _ACEOF
9337 if { (ac_try="$ac_cpp conftest.$ac_ext"
9338 case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } >/dev/null && {
9350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9351          test ! -s conftest.err
9352        }; then
9353   ac_header_preproc=yes
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358   ac_header_preproc=no
9359 fi
9360
9361 rm -f conftest.err conftest.$ac_ext
9362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6; }
9364
9365 # So?  What about this header?
9366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9367   yes:no: )
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9372     ac_header_preproc=yes
9373     ;;
9374   no:yes:* )
9375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9387     ( cat <<\_ASBOX
9388 ## ---------------------------------------- ##
9389 ## Report this to pgsql-bugs@postgresql.org ##
9390 ## ---------------------------------------- ##
9391 _ASBOX
9392      ) | sed "s/^/$as_me: WARNING:     /" >&2
9393     ;;
9394 esac
9395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   eval "$as_ac_Header=\$ac_header_preproc"
9401 fi
9402 ac_res=`eval echo '${'$as_ac_Header'}'`
9403                { echo "$as_me:$LINENO: result: $ac_res" >&5
9404 echo "${ECHO_T}$ac_res" >&6; }
9405
9406 fi
9407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9408   cat >>confdefs.h <<_ACEOF
9409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410 _ACEOF
9411
9412 else
9413
9414 for ac_header in readline.h
9415 do
9416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 fi
9423 ac_res=`eval echo '${'$as_ac_Header'}'`
9424                { echo "$as_me:$LINENO: result: $ac_res" >&5
9425 echo "${ECHO_T}$ac_res" >&6; }
9426 else
9427   # Is the header compilable?
9428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436 $ac_includes_default
9437 #include <$ac_header>
9438 _ACEOF
9439 rm -f conftest.$ac_objext
9440 if { (ac_try="$ac_compile"
9441 case "(($ac_try" in
9442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443   *) ac_try_echo=$ac_try;;
9444 esac
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446   (eval "$ac_compile") 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } && {
9453          test -z "$ac_c_werror_flag" ||
9454          test ! -s conftest.err
9455        } && test -s conftest.$ac_objext; then
9456   ac_header_compiler=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461         ac_header_compiler=no
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9466 echo "${ECHO_T}$ac_header_compiler" >&6; }
9467
9468 # Is the header present?
9469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477 #include <$ac_header>
9478 _ACEOF
9479 if { (ac_try="$ac_cpp conftest.$ac_ext"
9480 case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } >/dev/null && {
9492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9493          test ! -s conftest.err
9494        }; then
9495   ac_header_preproc=yes
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500   ac_header_preproc=no
9501 fi
9502
9503 rm -f conftest.err conftest.$ac_ext
9504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505 echo "${ECHO_T}$ac_header_preproc" >&6; }
9506
9507 # So?  What about this header?
9508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509   yes:no: )
9510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514     ac_header_preproc=yes
9515     ;;
9516   no:yes:* )
9517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9529     ( cat <<\_ASBOX
9530 ## ---------------------------------------- ##
9531 ## Report this to pgsql-bugs@postgresql.org ##
9532 ## ---------------------------------------- ##
9533 _ASBOX
9534      ) | sed "s/^/$as_me: WARNING:     /" >&2
9535     ;;
9536 esac
9537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   eval "$as_ac_Header=\$ac_header_preproc"
9543 fi
9544 ac_res=`eval echo '${'$as_ac_Header'}'`
9545                { echo "$as_me:$LINENO: result: $ac_res" >&5
9546 echo "${ECHO_T}$ac_res" >&6; }
9547
9548 fi
9549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9550   cat >>confdefs.h <<_ACEOF
9551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9552 _ACEOF
9553
9554 else
9555   { { echo "$as_me:$LINENO: error: readline header not found
9556 If you have readline already installed, see config.log for details on the
9557 failure.  It is possible the compiler isn't looking in the proper directory.
9558 Use --without-readline to disable readline support." >&5
9559 echo "$as_me: error: readline header not found
9560 If you have readline already installed, see config.log for details on the
9561 failure.  It is possible the compiler isn't looking in the proper directory.
9562 Use --without-readline to disable readline support." >&2;}
9563    { (exit 1); exit 1; }; }
9564 fi
9565
9566 done
9567
9568 fi
9569
9570 done
9571
9572
9573 for ac_header in readline/history.h
9574 do
9575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 fi
9582 ac_res=`eval echo '${'$as_ac_Header'}'`
9583                { echo "$as_me:$LINENO: result: $ac_res" >&5
9584 echo "${ECHO_T}$ac_res" >&6; }
9585 else
9586   # Is the header compilable?
9587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595 $ac_includes_default
9596 #include <$ac_header>
9597 _ACEOF
9598 rm -f conftest.$ac_objext
9599 if { (ac_try="$ac_compile"
9600 case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605   (eval "$ac_compile") 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } && {
9612          test -z "$ac_c_werror_flag" ||
9613          test ! -s conftest.err
9614        } && test -s conftest.$ac_objext; then
9615   ac_header_compiler=yes
9616 else
9617   echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620         ac_header_compiler=no
9621 fi
9622
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625 echo "${ECHO_T}$ac_header_compiler" >&6; }
9626
9627 # Is the header present?
9628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636 #include <$ac_header>
9637 _ACEOF
9638 if { (ac_try="$ac_cpp conftest.$ac_ext"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } >/dev/null && {
9651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9652          test ! -s conftest.err
9653        }; then
9654   ac_header_preproc=yes
9655 else
9656   echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659   ac_header_preproc=no
9660 fi
9661
9662 rm -f conftest.err conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6; }
9665
9666 # So?  What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668   yes:no: )
9669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673     ac_header_preproc=yes
9674     ;;
9675   no:yes:* )
9676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688     ( cat <<\_ASBOX
9689 ## ---------------------------------------- ##
9690 ## Report this to pgsql-bugs@postgresql.org ##
9691 ## ---------------------------------------- ##
9692 _ASBOX
9693      ) | sed "s/^/$as_me: WARNING:     /" >&2
9694     ;;
9695 esac
9696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701   eval "$as_ac_Header=\$ac_header_preproc"
9702 fi
9703 ac_res=`eval echo '${'$as_ac_Header'}'`
9704                { echo "$as_me:$LINENO: result: $ac_res" >&5
9705 echo "${ECHO_T}$ac_res" >&6; }
9706
9707 fi
9708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9709   cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9711 _ACEOF
9712
9713 else
9714
9715 for ac_header in history.h
9716 do
9717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9719   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 fi
9724 ac_res=`eval echo '${'$as_ac_Header'}'`
9725                { echo "$as_me:$LINENO: result: $ac_res" >&5
9726 echo "${ECHO_T}$ac_res" >&6; }
9727 else
9728   # Is the header compilable?
9729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 $ac_includes_default
9738 #include <$ac_header>
9739 _ACEOF
9740 rm -f conftest.$ac_objext
9741 if { (ac_try="$ac_compile"
9742 case "(($ac_try" in
9743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744   *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747   (eval "$ac_compile") 2>conftest.er1
9748   ac_status=$?
9749   grep -v '^ *+' conftest.er1 >conftest.err
9750   rm -f conftest.er1
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } && {
9754          test -z "$ac_c_werror_flag" ||
9755          test ! -s conftest.err
9756        } && test -s conftest.$ac_objext; then
9757   ac_header_compiler=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762         ac_header_compiler=no
9763 fi
9764
9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767 echo "${ECHO_T}$ac_header_compiler" >&6; }
9768
9769 # Is the header present?
9770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 #include <$ac_header>
9779 _ACEOF
9780 if { (ac_try="$ac_cpp conftest.$ac_ext"
9781 case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } >/dev/null && {
9793          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9794          test ! -s conftest.err
9795        }; then
9796   ac_header_preproc=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801   ac_header_preproc=no
9802 fi
9803
9804 rm -f conftest.err conftest.$ac_ext
9805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9806 echo "${ECHO_T}$ac_header_preproc" >&6; }
9807
9808 # So?  What about this header?
9809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9810   yes:no: )
9811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9815     ac_header_preproc=yes
9816     ;;
9817   no:yes:* )
9818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9830     ( cat <<\_ASBOX
9831 ## ---------------------------------------- ##
9832 ## Report this to pgsql-bugs@postgresql.org ##
9833 ## ---------------------------------------- ##
9834 _ASBOX
9835      ) | sed "s/^/$as_me: WARNING:     /" >&2
9836     ;;
9837 esac
9838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9841   echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843   eval "$as_ac_Header=\$ac_header_preproc"
9844 fi
9845 ac_res=`eval echo '${'$as_ac_Header'}'`
9846                { echo "$as_me:$LINENO: result: $ac_res" >&5
9847 echo "${ECHO_T}$ac_res" >&6; }
9848
9849 fi
9850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851   cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9853 _ACEOF
9854
9855 else
9856   { { echo "$as_me:$LINENO: error: history header not found
9857 If you have readline already installed, see config.log for details on the
9858 failure.  It is possible the compiler isn't looking in the proper directory.
9859 Use --without-readline to disable readline support." >&5
9860 echo "$as_me: error: history header not found
9861 If you have readline already installed, see config.log for details on the
9862 failure.  It is possible the compiler isn't looking in the proper directory.
9863 Use --without-readline to disable readline support." >&2;}
9864    { (exit 1); exit 1; }; }
9865 fi
9866
9867 done
9868
9869 fi
9870
9871 done
9872
9873 fi
9874
9875 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9876 # Some installations of libedit usurp /usr/include/readline/, which seems
9877 # bad practice, since in combined installations readline will have its headers
9878 # there.  We might have to resort to AC_EGREP checks to make sure we found
9879 # the proper header...
9880
9881 for ac_header in editline/readline.h
9882 do
9883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 fi
9890 ac_res=`eval echo '${'$as_ac_Header'}'`
9891                { echo "$as_me:$LINENO: result: $ac_res" >&5
9892 echo "${ECHO_T}$ac_res" >&6; }
9893 else
9894   # Is the header compilable?
9895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903 $ac_includes_default
9904 #include <$ac_header>
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (ac_try="$ac_compile"
9908 case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_compile") 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } && {
9920          test -z "$ac_c_werror_flag" ||
9921          test ! -s conftest.err
9922        } && test -s conftest.$ac_objext; then
9923   ac_header_compiler=yes
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928         ac_header_compiler=no
9929 fi
9930
9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9933 echo "${ECHO_T}$ac_header_compiler" >&6; }
9934
9935 # Is the header present?
9936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944 #include <$ac_header>
9945 _ACEOF
9946 if { (ac_try="$ac_cpp conftest.$ac_ext"
9947 case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } >/dev/null && {
9959          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9960          test ! -s conftest.err
9961        }; then
9962   ac_header_preproc=yes
9963 else
9964   echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9966
9967   ac_header_preproc=no
9968 fi
9969
9970 rm -f conftest.err conftest.$ac_ext
9971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9972 echo "${ECHO_T}$ac_header_preproc" >&6; }
9973
9974 # So?  What about this header?
9975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9976   yes:no: )
9977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9981     ac_header_preproc=yes
9982     ;;
9983   no:yes:* )
9984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9996     ( cat <<\_ASBOX
9997 ## ---------------------------------------- ##
9998 ## Report this to pgsql-bugs@postgresql.org ##
9999 ## ---------------------------------------- ##
10000 _ASBOX
10001      ) | sed "s/^/$as_me: WARNING:     /" >&2
10002     ;;
10003 esac
10004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   eval "$as_ac_Header=\$ac_header_preproc"
10010 fi
10011 ac_res=`eval echo '${'$as_ac_Header'}'`
10012                { echo "$as_me:$LINENO: result: $ac_res" >&5
10013 echo "${ECHO_T}$ac_res" >&6; }
10014
10015 fi
10016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10017   cat >>confdefs.h <<_ACEOF
10018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10019 _ACEOF
10020
10021 else
10022
10023 for ac_header in readline.h
10024 do
10025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10027   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 fi
10032 ac_res=`eval echo '${'$as_ac_Header'}'`
10033                { echo "$as_me:$LINENO: result: $ac_res" >&5
10034 echo "${ECHO_T}$ac_res" >&6; }
10035 else
10036   # Is the header compilable?
10037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 $ac_includes_default
10046 #include <$ac_header>
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055   (eval "$ac_compile") 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } && {
10062          test -z "$ac_c_werror_flag" ||
10063          test ! -s conftest.err
10064        } && test -s conftest.$ac_objext; then
10065   ac_header_compiler=yes
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070         ac_header_compiler=no
10071 fi
10072
10073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10075 echo "${ECHO_T}$ac_header_compiler" >&6; }
10076
10077 # Is the header present?
10078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086 #include <$ac_header>
10087 _ACEOF
10088 if { (ac_try="$ac_cpp conftest.$ac_ext"
10089 case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10095   ac_status=$?
10096   grep -v '^ *+' conftest.er1 >conftest.err
10097   rm -f conftest.er1
10098   cat conftest.err >&5
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); } >/dev/null && {
10101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10102          test ! -s conftest.err
10103        }; then
10104   ac_header_preproc=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109   ac_header_preproc=no
10110 fi
10111
10112 rm -f conftest.err conftest.$ac_ext
10113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10114 echo "${ECHO_T}$ac_header_preproc" >&6; }
10115
10116 # So?  What about this header?
10117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10118   yes:no: )
10119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10123     ac_header_preproc=yes
10124     ;;
10125   no:yes:* )
10126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10138     ( cat <<\_ASBOX
10139 ## ---------------------------------------- ##
10140 ## Report this to pgsql-bugs@postgresql.org ##
10141 ## ---------------------------------------- ##
10142 _ASBOX
10143      ) | sed "s/^/$as_me: WARNING:     /" >&2
10144     ;;
10145 esac
10146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   eval "$as_ac_Header=\$ac_header_preproc"
10152 fi
10153 ac_res=`eval echo '${'$as_ac_Header'}'`
10154                { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10156
10157 fi
10158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159   cat >>confdefs.h <<_ACEOF
10160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10161 _ACEOF
10162
10163 else
10164
10165 for ac_header in readline/readline.h
10166 do
10167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10169   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 fi
10174 ac_res=`eval echo '${'$as_ac_Header'}'`
10175                { echo "$as_me:$LINENO: result: $ac_res" >&5
10176 echo "${ECHO_T}$ac_res" >&6; }
10177 else
10178   # Is the header compilable?
10179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187 $ac_includes_default
10188 #include <$ac_header>
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (ac_try="$ac_compile"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_compile") 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } && {
10204          test -z "$ac_c_werror_flag" ||
10205          test ! -s conftest.err
10206        } && test -s conftest.$ac_objext; then
10207   ac_header_compiler=yes
10208 else
10209   echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212         ac_header_compiler=no
10213 fi
10214
10215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10217 echo "${ECHO_T}$ac_header_compiler" >&6; }
10218
10219 # Is the header present?
10220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 #include <$ac_header>
10229 _ACEOF
10230 if { (ac_try="$ac_cpp conftest.$ac_ext"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } >/dev/null && {
10243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10244          test ! -s conftest.err
10245        }; then
10246   ac_header_preproc=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251   ac_header_preproc=no
10252 fi
10253
10254 rm -f conftest.err conftest.$ac_ext
10255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10256 echo "${ECHO_T}$ac_header_preproc" >&6; }
10257
10258 # So?  What about this header?
10259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10260   yes:no: )
10261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10265     ac_header_preproc=yes
10266     ;;
10267   no:yes:* )
10268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10280     ( cat <<\_ASBOX
10281 ## ---------------------------------------- ##
10282 ## Report this to pgsql-bugs@postgresql.org ##
10283 ## ---------------------------------------- ##
10284 _ASBOX
10285      ) | sed "s/^/$as_me: WARNING:     /" >&2
10286     ;;
10287 esac
10288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   eval "$as_ac_Header=\$ac_header_preproc"
10294 fi
10295 ac_res=`eval echo '${'$as_ac_Header'}'`
10296                { echo "$as_me:$LINENO: result: $ac_res" >&5
10297 echo "${ECHO_T}$ac_res" >&6; }
10298
10299 fi
10300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10301   cat >>confdefs.h <<_ACEOF
10302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10303 _ACEOF
10304
10305 else
10306   { { echo "$as_me:$LINENO: error: readline header not found
10307 If you have libedit already installed, see config.log for details on the
10308 failure.  It is possible the compiler isn't looking in the proper directory.
10309 Use --without-readline to disable libedit support." >&5
10310 echo "$as_me: error: readline header not found
10311 If you have libedit already installed, see config.log for details on the
10312 failure.  It is possible the compiler isn't looking in the proper directory.
10313 Use --without-readline to disable libedit support." >&2;}
10314    { (exit 1); exit 1; }; }
10315 fi
10316
10317 done
10318
10319 fi
10320
10321 done
10322
10323 fi
10324
10325 done
10326
10327 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10328 # not be there at all.  Hence, don't complain if not found.  We must check
10329 # though, since in yet other versions it is an independent header.
10330
10331 for ac_header in editline/history.h
10332 do
10333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 fi
10340 ac_res=`eval echo '${'$as_ac_Header'}'`
10341                { echo "$as_me:$LINENO: result: $ac_res" >&5
10342 echo "${ECHO_T}$ac_res" >&6; }
10343 else
10344   # Is the header compilable?
10345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10347 cat >conftest.$ac_ext <<_ACEOF
10348 /* confdefs.h.  */
10349 _ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h.  */
10353 $ac_includes_default
10354 #include <$ac_header>
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (ac_try="$ac_compile"
10358 case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_compile") 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } && {
10370          test -z "$ac_c_werror_flag" ||
10371          test ! -s conftest.err
10372        } && test -s conftest.$ac_objext; then
10373   ac_header_compiler=yes
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378         ac_header_compiler=no
10379 fi
10380
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6; }
10384
10385 # Is the header present?
10386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394 #include <$ac_header>
10395 _ACEOF
10396 if { (ac_try="$ac_cpp conftest.$ac_ext"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } >/dev/null && {
10409          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10410          test ! -s conftest.err
10411        }; then
10412   ac_header_preproc=yes
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417   ac_header_preproc=no
10418 fi
10419
10420 rm -f conftest.err conftest.$ac_ext
10421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422 echo "${ECHO_T}$ac_header_preproc" >&6; }
10423
10424 # So?  What about this header?
10425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10426   yes:no: )
10427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10431     ac_header_preproc=yes
10432     ;;
10433   no:yes:* )
10434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10446     ( cat <<\_ASBOX
10447 ## ---------------------------------------- ##
10448 ## Report this to pgsql-bugs@postgresql.org ##
10449 ## ---------------------------------------- ##
10450 _ASBOX
10451      ) | sed "s/^/$as_me: WARNING:     /" >&2
10452     ;;
10453 esac
10454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   eval "$as_ac_Header=\$ac_header_preproc"
10460 fi
10461 ac_res=`eval echo '${'$as_ac_Header'}'`
10462                { echo "$as_me:$LINENO: result: $ac_res" >&5
10463 echo "${ECHO_T}$ac_res" >&6; }
10464
10465 fi
10466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10467   cat >>confdefs.h <<_ACEOF
10468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10469 _ACEOF
10470
10471 else
10472
10473 for ac_header in history.h
10474 do
10475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10480   echo $ECHO_N "(cached) $ECHO_C" >&6
10481 fi
10482 ac_res=`eval echo '${'$as_ac_Header'}'`
10483                { echo "$as_me:$LINENO: result: $ac_res" >&5
10484 echo "${ECHO_T}$ac_res" >&6; }
10485 else
10486   # Is the header compilable?
10487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h.  */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h.  */
10495 $ac_includes_default
10496 #include <$ac_header>
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505   (eval "$ac_compile") 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } && {
10512          test -z "$ac_c_werror_flag" ||
10513          test ! -s conftest.err
10514        } && test -s conftest.$ac_objext; then
10515   ac_header_compiler=yes
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520         ac_header_compiler=no
10521 fi
10522
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6; }
10526
10527 # Is the header present?
10528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 #include <$ac_header>
10537 _ACEOF
10538 if { (ac_try="$ac_cpp conftest.$ac_ext"
10539 case "(($ac_try" in
10540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541   *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10545   ac_status=$?
10546   grep -v '^ *+' conftest.er1 >conftest.err
10547   rm -f conftest.er1
10548   cat conftest.err >&5
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } >/dev/null && {
10551          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10552          test ! -s conftest.err
10553        }; then
10554   ac_header_preproc=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559   ac_header_preproc=no
10560 fi
10561
10562 rm -f conftest.err conftest.$ac_ext
10563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564 echo "${ECHO_T}$ac_header_preproc" >&6; }
10565
10566 # So?  What about this header?
10567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10568   yes:no: )
10569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10573     ac_header_preproc=yes
10574     ;;
10575   no:yes:* )
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588     ( cat <<\_ASBOX
10589 ## ---------------------------------------- ##
10590 ## Report this to pgsql-bugs@postgresql.org ##
10591 ## ---------------------------------------- ##
10592 _ASBOX
10593      ) | sed "s/^/$as_me: WARNING:     /" >&2
10594     ;;
10595 esac
10596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   eval "$as_ac_Header=\$ac_header_preproc"
10602 fi
10603 ac_res=`eval echo '${'$as_ac_Header'}'`
10604                { echo "$as_me:$LINENO: result: $ac_res" >&5
10605 echo "${ECHO_T}$ac_res" >&6; }
10606
10607 fi
10608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10609   cat >>confdefs.h <<_ACEOF
10610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10611 _ACEOF
10612
10613 else
10614
10615 for ac_header in readline/history.h
10616 do
10617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10619   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 fi
10624 ac_res=`eval echo '${'$as_ac_Header'}'`
10625                { echo "$as_me:$LINENO: result: $ac_res" >&5
10626 echo "${ECHO_T}$ac_res" >&6; }
10627 else
10628   # Is the header compilable?
10629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10631 cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637 $ac_includes_default
10638 #include <$ac_header>
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644   *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647   (eval "$ac_compile") 2>conftest.er1
10648   ac_status=$?
10649   grep -v '^ *+' conftest.er1 >conftest.err
10650   rm -f conftest.er1
10651   cat conftest.err >&5
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } && {
10654          test -z "$ac_c_werror_flag" ||
10655          test ! -s conftest.err
10656        } && test -s conftest.$ac_objext; then
10657   ac_header_compiler=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662         ac_header_compiler=no
10663 fi
10664
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667 echo "${ECHO_T}$ac_header_compiler" >&6; }
10668
10669 # Is the header present?
10670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h.  */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h.  */
10678 #include <$ac_header>
10679 _ACEOF
10680 if { (ac_try="$ac_cpp conftest.$ac_ext"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } >/dev/null && {
10693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10694          test ! -s conftest.err
10695        }; then
10696   ac_header_preproc=yes
10697 else
10698   echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701   ac_header_preproc=no
10702 fi
10703
10704 rm -f conftest.err conftest.$ac_ext
10705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10706 echo "${ECHO_T}$ac_header_preproc" >&6; }
10707
10708 # So?  What about this header?
10709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10710   yes:no: )
10711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10715     ac_header_preproc=yes
10716     ;;
10717   no:yes:* )
10718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10730     ( cat <<\_ASBOX
10731 ## ---------------------------------------- ##
10732 ## Report this to pgsql-bugs@postgresql.org ##
10733 ## ---------------------------------------- ##
10734 _ASBOX
10735      ) | sed "s/^/$as_me: WARNING:     /" >&2
10736     ;;
10737 esac
10738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   eval "$as_ac_Header=\$ac_header_preproc"
10744 fi
10745 ac_res=`eval echo '${'$as_ac_Header'}'`
10746                { echo "$as_me:$LINENO: result: $ac_res" >&5
10747 echo "${ECHO_T}$ac_res" >&6; }
10748
10749 fi
10750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10751   cat >>confdefs.h <<_ACEOF
10752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 _ACEOF
10754
10755 fi
10756
10757 done
10758
10759 fi
10760
10761 done
10762
10763 fi
10764
10765 done
10766
10767 fi
10768
10769 if test "$with_zlib" = yes; then
10770   if test "${ac_cv_header_zlib_h+set}" = set; then
10771   { echo "$as_me:$LINENO: checking for zlib.h" >&5
10772 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10773 if test "${ac_cv_header_zlib_h+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 fi
10776 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10777 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10778 else
10779   # Is the header compilable?
10780 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10781 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10782 cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788 $ac_includes_default
10789 #include <zlib.h>
10790 _ACEOF
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_compile") 2>conftest.er1
10799   ac_status=$?
10800   grep -v '^ *+' conftest.er1 >conftest.err
10801   rm -f conftest.er1
10802   cat conftest.err >&5
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } && {
10805          test -z "$ac_c_werror_flag" ||
10806          test ! -s conftest.err
10807        } && test -s conftest.$ac_objext; then
10808   ac_header_compiler=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_header_compiler=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10818 echo "${ECHO_T}$ac_header_compiler" >&6; }
10819
10820 # Is the header present?
10821 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10822 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 #include <zlib.h>
10830 _ACEOF
10831 if { (ac_try="$ac_cpp conftest.$ac_ext"
10832 case "(($ac_try" in
10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834   *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } >/dev/null && {
10844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10845          test ! -s conftest.err
10846        }; then
10847   ac_header_preproc=yes
10848 else
10849   echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852   ac_header_preproc=no
10853 fi
10854
10855 rm -f conftest.err conftest.$ac_ext
10856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10857 echo "${ECHO_T}$ac_header_preproc" >&6; }
10858
10859 # So?  What about this header?
10860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10861   yes:no: )
10862     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10863 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10865 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10866     ac_header_preproc=yes
10867     ;;
10868   no:yes:* )
10869     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10870 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
10872 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10874 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
10876 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10877     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10878 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10879     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10880 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10881     ( cat <<\_ASBOX
10882 ## ---------------------------------------- ##
10883 ## Report this to pgsql-bugs@postgresql.org ##
10884 ## ---------------------------------------- ##
10885 _ASBOX
10886      ) | sed "s/^/$as_me: WARNING:     /" >&2
10887     ;;
10888 esac
10889 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10890 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10891 if test "${ac_cv_header_zlib_h+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   ac_cv_header_zlib_h=$ac_header_preproc
10895 fi
10896 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10898
10899 fi
10900 if test $ac_cv_header_zlib_h = yes; then
10901   :
10902 else
10903   { { echo "$as_me:$LINENO: error: zlib header not found
10904 If you have zlib already installed, see config.log for details on the
10905 failure.  It is possible the compiler isn't looking in the proper directory.
10906 Use --without-zlib to disable zlib support." >&5
10907 echo "$as_me: error: zlib header not found
10908 If you have zlib already installed, see config.log for details on the
10909 failure.  It is possible the compiler isn't looking in the proper directory.
10910 Use --without-zlib to disable zlib support." >&2;}
10911    { (exit 1); exit 1; }; }
10912 fi
10913
10914
10915 fi
10916
10917 if test "$with_gssapi" = yes ; then
10918
10919 for ac_header in gssapi/gssapi.h
10920 do
10921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10923   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 fi
10928 ac_res=`eval echo '${'$as_ac_Header'}'`
10929                { echo "$as_me:$LINENO: result: $ac_res" >&5
10930 echo "${ECHO_T}$ac_res" >&6; }
10931 else
10932   # Is the header compilable?
10933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 $ac_includes_default
10942 #include <$ac_header>
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948   *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951   (eval "$ac_compile") 2>conftest.er1
10952   ac_status=$?
10953   grep -v '^ *+' conftest.er1 >conftest.err
10954   rm -f conftest.er1
10955   cat conftest.err >&5
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); } && {
10958          test -z "$ac_c_werror_flag" ||
10959          test ! -s conftest.err
10960        } && test -s conftest.$ac_objext; then
10961   ac_header_compiler=yes
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966         ac_header_compiler=no
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10971 echo "${ECHO_T}$ac_header_compiler" >&6; }
10972
10973 # Is the header present?
10974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 #include <$ac_header>
10983 _ACEOF
10984 if { (ac_try="$ac_cpp conftest.$ac_ext"
10985 case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10991   ac_status=$?
10992   grep -v '^ *+' conftest.er1 >conftest.err
10993   rm -f conftest.er1
10994   cat conftest.err >&5
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } >/dev/null && {
10997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10998          test ! -s conftest.err
10999        }; then
11000   ac_header_preproc=yes
11001 else
11002   echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005   ac_header_preproc=no
11006 fi
11007
11008 rm -f conftest.err conftest.$ac_ext
11009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010 echo "${ECHO_T}$ac_header_preproc" >&6; }
11011
11012 # So?  What about this header?
11013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11014   yes:no: )
11015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11019     ac_header_preproc=yes
11020     ;;
11021   no:yes:* )
11022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11034     ( cat <<\_ASBOX
11035 ## ---------------------------------------- ##
11036 ## Report this to pgsql-bugs@postgresql.org ##
11037 ## ---------------------------------------- ##
11038 _ASBOX
11039      ) | sed "s/^/$as_me: WARNING:     /" >&2
11040     ;;
11041 esac
11042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   eval "$as_ac_Header=\$ac_header_preproc"
11048 fi
11049 ac_res=`eval echo '${'$as_ac_Header'}'`
11050                { echo "$as_me:$LINENO: result: $ac_res" >&5
11051 echo "${ECHO_T}$ac_res" >&6; }
11052
11053 fi
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055   cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057 _ACEOF
11058
11059 else
11060
11061 for ac_header in gssapi.h
11062 do
11063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 fi
11070 ac_res=`eval echo '${'$as_ac_Header'}'`
11071                { echo "$as_me:$LINENO: result: $ac_res" >&5
11072 echo "${ECHO_T}$ac_res" >&6; }
11073 else
11074   # Is the header compilable?
11075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083 $ac_includes_default
11084 #include <$ac_header>
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_compile") 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } && {
11100          test -z "$ac_c_werror_flag" ||
11101          test ! -s conftest.err
11102        } && test -s conftest.$ac_objext; then
11103   ac_header_compiler=yes
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108         ac_header_compiler=no
11109 fi
11110
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11113 echo "${ECHO_T}$ac_header_compiler" >&6; }
11114
11115 # Is the header present?
11116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #include <$ac_header>
11125 _ACEOF
11126 if { (ac_try="$ac_cpp conftest.$ac_ext"
11127 case "(($ac_try" in
11128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129   *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } >/dev/null && {
11139          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11140          test ! -s conftest.err
11141        }; then
11142   ac_header_preproc=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147   ac_header_preproc=no
11148 fi
11149
11150 rm -f conftest.err conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11152 echo "${ECHO_T}$ac_header_preproc" >&6; }
11153
11154 # So?  What about this header?
11155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11156   yes:no: )
11157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11161     ac_header_preproc=yes
11162     ;;
11163   no:yes:* )
11164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11176     ( cat <<\_ASBOX
11177 ## ---------------------------------------- ##
11178 ## Report this to pgsql-bugs@postgresql.org ##
11179 ## ---------------------------------------- ##
11180 _ASBOX
11181      ) | sed "s/^/$as_me: WARNING:     /" >&2
11182     ;;
11183 esac
11184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11187   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189   eval "$as_ac_Header=\$ac_header_preproc"
11190 fi
11191 ac_res=`eval echo '${'$as_ac_Header'}'`
11192                { echo "$as_me:$LINENO: result: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11194
11195 fi
11196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11197   cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11199 _ACEOF
11200
11201 else
11202   { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11203 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11204    { (exit 1); exit 1; }; }
11205 fi
11206
11207 done
11208
11209 fi
11210
11211 done
11212
11213 fi
11214
11215 if test "$with_krb5" = yes ; then
11216   if test "${ac_cv_header_krb5_h+set}" = set; then
11217   { echo "$as_me:$LINENO: checking for krb5.h" >&5
11218 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11219 if test "${ac_cv_header_krb5_h+set}" = set; then
11220   echo $ECHO_N "(cached) $ECHO_C" >&6
11221 fi
11222 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11223 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11224 else
11225   # Is the header compilable?
11226 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11227 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h.  */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h.  */
11234 $ac_includes_default
11235 #include <krb5.h>
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241   *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244   (eval "$ac_compile") 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } && {
11251          test -z "$ac_c_werror_flag" ||
11252          test ! -s conftest.err
11253        } && test -s conftest.$ac_objext; then
11254   ac_header_compiler=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259         ac_header_compiler=no
11260 fi
11261
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264 echo "${ECHO_T}$ac_header_compiler" >&6; }
11265
11266 # Is the header present?
11267 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11268 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 #include <krb5.h>
11276 _ACEOF
11277 if { (ac_try="$ac_cpp conftest.$ac_ext"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } >/dev/null && {
11290          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11291          test ! -s conftest.err
11292        }; then
11293   ac_header_preproc=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298   ac_header_preproc=no
11299 fi
11300
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11304
11305 # So?  What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307   yes:no: )
11308     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11312     ac_header_preproc=yes
11313     ;;
11314   no:yes:* )
11315     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11317     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
11319     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11321     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11327     ( cat <<\_ASBOX
11328 ## ---------------------------------------- ##
11329 ## Report this to pgsql-bugs@postgresql.org ##
11330 ## ---------------------------------------- ##
11331 _ASBOX
11332      ) | sed "s/^/$as_me: WARNING:     /" >&2
11333     ;;
11334 esac
11335 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11336 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11337 if test "${ac_cv_header_krb5_h+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   ac_cv_header_krb5_h=$ac_header_preproc
11341 fi
11342 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11343 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11344
11345 fi
11346 if test $ac_cv_header_krb5_h = yes; then
11347   :
11348 else
11349   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11350 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11351    { (exit 1); exit 1; }; }
11352 fi
11353
11354
11355 fi
11356
11357 if test "$with_openssl" = yes ; then
11358   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11359   { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11360 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11361 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 fi
11364 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11365 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11366 else
11367   # Is the header compilable?
11368 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11369 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 $ac_includes_default
11377 #include <openssl/ssl.h>
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (ac_try="$ac_compile"
11381 case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_compile") 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } && {
11393          test -z "$ac_c_werror_flag" ||
11394          test ! -s conftest.err
11395        } && test -s conftest.$ac_objext; then
11396   ac_header_compiler=yes
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401         ac_header_compiler=no
11402 fi
11403
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6; }
11407
11408 # Is the header present?
11409 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11410 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 #include <openssl/ssl.h>
11418 _ACEOF
11419 if { (ac_try="$ac_cpp conftest.$ac_ext"
11420 case "(($ac_try" in
11421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422   *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } >/dev/null && {
11432          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11433          test ! -s conftest.err
11434        }; then
11435   ac_header_preproc=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440   ac_header_preproc=no
11441 fi
11442
11443 rm -f conftest.err conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6; }
11446
11447 # So?  What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449   yes:no: )
11450     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11454     ac_header_preproc=yes
11455     ;;
11456   no:yes:* )
11457     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11469     ( cat <<\_ASBOX
11470 ## ---------------------------------------- ##
11471 ## Report this to pgsql-bugs@postgresql.org ##
11472 ## ---------------------------------------- ##
11473 _ASBOX
11474      ) | sed "s/^/$as_me: WARNING:     /" >&2
11475     ;;
11476 esac
11477 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11478 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11479 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   ac_cv_header_openssl_ssl_h=$ac_header_preproc
11483 fi
11484 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11485 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11486
11487 fi
11488 if test $ac_cv_header_openssl_ssl_h = yes; then
11489   :
11490 else
11491   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11492 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11493    { (exit 1); exit 1; }; }
11494 fi
11495
11496
11497   if test "${ac_cv_header_openssl_err_h+set}" = set; then
11498   { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11499 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11500 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 fi
11503 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11504 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11505 else
11506   # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11508 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 $ac_includes_default
11516 #include <openssl/err.h>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_compile") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } && {
11532          test -z "$ac_c_werror_flag" ||
11533          test ! -s conftest.err
11534        } && test -s conftest.$ac_objext; then
11535   ac_header_compiler=yes
11536 else
11537   echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540         ac_header_compiler=no
11541 fi
11542
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6; }
11546
11547 # Is the header present?
11548 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11549 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 #include <openssl/err.h>
11557 _ACEOF
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11565   ac_status=$?
11566   grep -v '^ *+' conftest.er1 >conftest.err
11567   rm -f conftest.er1
11568   cat conftest.err >&5
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } >/dev/null && {
11571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11572          test ! -s conftest.err
11573        }; then
11574   ac_header_preproc=yes
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579   ac_header_preproc=no
11580 fi
11581
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585
11586 # So?  What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588   yes:no: )
11589     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11593     ac_header_preproc=yes
11594     ;;
11595   no:yes:* )
11596     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11608     ( cat <<\_ASBOX
11609 ## ---------------------------------------- ##
11610 ## Report this to pgsql-bugs@postgresql.org ##
11611 ## ---------------------------------------- ##
11612 _ASBOX
11613      ) | sed "s/^/$as_me: WARNING:     /" >&2
11614     ;;
11615 esac
11616 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11617 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11618 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   ac_cv_header_openssl_err_h=$ac_header_preproc
11622 fi
11623 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11624 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11625
11626 fi
11627 if test $ac_cv_header_openssl_err_h = yes; then
11628   :
11629 else
11630   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11631 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11632    { (exit 1); exit 1; }; }
11633 fi
11634
11635
11636
11637 for ac_func in ERR_set_mark
11638 do
11639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11653 #define $ac_func innocuous_$ac_func
11654
11655 /* System header to define __stub macros and hopefully few prototypes,
11656     which can conflict with char $ac_func (); below.
11657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658     <limits.h> exists even on freestanding compilers.  */
11659
11660 #ifdef __STDC__
11661 # include <limits.h>
11662 #else
11663 # include <assert.h>
11664 #endif
11665
11666 #undef $ac_func
11667
11668 /* Override any GCC internal prototype to avoid an error.
11669    Use char because int might match the return type of a GCC
11670    builtin and then its argument prototype would still apply.  */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char $ac_func ();
11675 /* The GNU C library defines this for functions which it implements
11676     to always fail with ENOSYS.  Some functions are actually named
11677     something starting with __ and the normal name is an alias.  */
11678 #if defined __stub_$ac_func || defined __stub___$ac_func
11679 choke me
11680 #endif
11681
11682 int
11683 main ()
11684 {
11685 return $ac_func ();
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (ac_try="$ac_link"
11692 case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_link") 2>conftest.er1
11698   ac_status=$?
11699   grep -v '^ *+' conftest.er1 >conftest.err
11700   rm -f conftest.er1
11701   cat conftest.err >&5
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } && {
11704          test -z "$ac_c_werror_flag" ||
11705          test ! -s conftest.err
11706        } && test -s conftest$ac_exeext &&
11707        $as_test_x conftest$ac_exeext; then
11708   eval "$as_ac_var=yes"
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713         eval "$as_ac_var=no"
11714 fi
11715
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717       conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 ac_res=`eval echo '${'$as_ac_var'}'`
11720                { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11722 if test `eval echo '${'$as_ac_var'}'` = yes; then
11723   cat >>confdefs.h <<_ACEOF
11724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11725 _ACEOF
11726
11727 fi
11728 done
11729
11730 fi
11731
11732 if test "$with_pam" = yes ; then
11733
11734 for ac_header in security/pam_appl.h
11735 do
11736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 fi
11743 ac_res=`eval echo '${'$as_ac_Header'}'`
11744                { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11746 else
11747   # Is the header compilable?
11748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756 $ac_includes_default
11757 #include <$ac_header>
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763   *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766   (eval "$ac_compile") 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } && {
11773          test -z "$ac_c_werror_flag" ||
11774          test ! -s conftest.err
11775        } && test -s conftest.$ac_objext; then
11776   ac_header_compiler=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781         ac_header_compiler=no
11782 fi
11783
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786 echo "${ECHO_T}$ac_header_compiler" >&6; }
11787
11788 # Is the header present?
11789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 #include <$ac_header>
11798 _ACEOF
11799 if { (ac_try="$ac_cpp conftest.$ac_ext"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11806   ac_status=$?
11807   grep -v '^ *+' conftest.er1 >conftest.err
11808   rm -f conftest.er1
11809   cat conftest.err >&5
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } >/dev/null && {
11812          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11813          test ! -s conftest.err
11814        }; then
11815   ac_header_preproc=yes
11816 else
11817   echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820   ac_header_preproc=no
11821 fi
11822
11823 rm -f conftest.err conftest.$ac_ext
11824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825 echo "${ECHO_T}$ac_header_preproc" >&6; }
11826
11827 # So?  What about this header?
11828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11829   yes:no: )
11830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834     ac_header_preproc=yes
11835     ;;
11836   no:yes:* )
11837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11849     ( cat <<\_ASBOX
11850 ## ---------------------------------------- ##
11851 ## Report this to pgsql-bugs@postgresql.org ##
11852 ## ---------------------------------------- ##
11853 _ASBOX
11854      ) | sed "s/^/$as_me: WARNING:     /" >&2
11855     ;;
11856 esac
11857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   eval "$as_ac_Header=\$ac_header_preproc"
11863 fi
11864 ac_res=`eval echo '${'$as_ac_Header'}'`
11865                { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11867
11868 fi
11869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11870   cat >>confdefs.h <<_ACEOF
11871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11872 _ACEOF
11873
11874 else
11875
11876 for ac_header in pam/pam_appl.h
11877 do
11878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 fi
11885 ac_res=`eval echo '${'$as_ac_Header'}'`
11886                { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11888 else
11889   # Is the header compilable?
11890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 $ac_includes_default
11899 #include <$ac_header>
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_compile") 2>conftest.er1
11909   ac_status=$?
11910   grep -v '^ *+' conftest.er1 >conftest.err
11911   rm -f conftest.er1
11912   cat conftest.err >&5
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } && {
11915          test -z "$ac_c_werror_flag" ||
11916          test ! -s conftest.err
11917        } && test -s conftest.$ac_objext; then
11918   ac_header_compiler=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923         ac_header_compiler=no
11924 fi
11925
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11928 echo "${ECHO_T}$ac_header_compiler" >&6; }
11929
11930 # Is the header present?
11931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939 #include <$ac_header>
11940 _ACEOF
11941 if { (ac_try="$ac_cpp conftest.$ac_ext"
11942 case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11948   ac_status=$?
11949   grep -v '^ *+' conftest.er1 >conftest.err
11950   rm -f conftest.er1
11951   cat conftest.err >&5
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); } >/dev/null && {
11954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11955          test ! -s conftest.err
11956        }; then
11957   ac_header_preproc=yes
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962   ac_header_preproc=no
11963 fi
11964
11965 rm -f conftest.err conftest.$ac_ext
11966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11967 echo "${ECHO_T}$ac_header_preproc" >&6; }
11968
11969 # So?  What about this header?
11970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11971   yes:no: )
11972     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11976     ac_header_preproc=yes
11977     ;;
11978   no:yes:* )
11979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11981     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11982 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11983     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11985     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11986 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11989     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11991     ( cat <<\_ASBOX
11992 ## ---------------------------------------- ##
11993 ## Report this to pgsql-bugs@postgresql.org ##
11994 ## ---------------------------------------- ##
11995 _ASBOX
11996      ) | sed "s/^/$as_me: WARNING:     /" >&2
11997     ;;
11998 esac
11999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   eval "$as_ac_Header=\$ac_header_preproc"
12005 fi
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007                { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009
12010 fi
12011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12012   cat >>confdefs.h <<_ACEOF
12013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12014 _ACEOF
12015
12016 else
12017   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12018 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12019    { (exit 1); exit 1; }; }
12020 fi
12021
12022 done
12023
12024 fi
12025
12026 done
12027
12028 fi
12029
12030 if test "$with_libxml" = yes ; then
12031   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12032   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12033 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12034 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 fi
12037 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12038 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12039 else
12040   # Is the header compilable?
12041 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12042 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 $ac_includes_default
12050 #include <libxml/parser.h>
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_compile") 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } && {
12066          test -z "$ac_c_werror_flag" ||
12067          test ! -s conftest.err
12068        } && test -s conftest.$ac_objext; then
12069   ac_header_compiler=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074         ac_header_compiler=no
12075 fi
12076
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6; }
12080
12081 # Is the header present?
12082 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12083 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090 #include <libxml/parser.h>
12091 _ACEOF
12092 if { (ac_try="$ac_cpp conftest.$ac_ext"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } >/dev/null && {
12105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106          test ! -s conftest.err
12107        }; then
12108   ac_header_preproc=yes
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113   ac_header_preproc=no
12114 fi
12115
12116 rm -f conftest.err conftest.$ac_ext
12117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 echo "${ECHO_T}$ac_header_preproc" >&6; }
12119
12120 # So?  What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122   yes:no: )
12123     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12124 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12126 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12127     ac_header_preproc=yes
12128     ;;
12129   no:yes:* )
12130     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12132     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12135 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12136     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
12137 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12138     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12140     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12141 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12142     ( cat <<\_ASBOX
12143 ## ---------------------------------------- ##
12144 ## Report this to pgsql-bugs@postgresql.org ##
12145 ## ---------------------------------------- ##
12146 _ASBOX
12147      ) | sed "s/^/$as_me: WARNING:     /" >&2
12148     ;;
12149 esac
12150 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12151 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12152 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   ac_cv_header_libxml_parser_h=$ac_header_preproc
12156 fi
12157 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12158 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12159
12160 fi
12161 if test $ac_cv_header_libxml_parser_h = yes; then
12162   :
12163 else
12164   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12165 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12166    { (exit 1); exit 1; }; }
12167 fi
12168
12169
12170 fi
12171
12172 if test "$with_libxslt" = yes ; then
12173   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12174   { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12175 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12176 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 fi
12179 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12180 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12181 else
12182   # Is the header compilable?
12183 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12184 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h.  */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h.  */
12191 $ac_includes_default
12192 #include <libxslt/xslt.h>
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_compile") 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } && {
12208          test -z "$ac_c_werror_flag" ||
12209          test ! -s conftest.err
12210        } && test -s conftest.$ac_objext; then
12211   ac_header_compiler=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216         ac_header_compiler=no
12217 fi
12218
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12221 echo "${ECHO_T}$ac_header_compiler" >&6; }
12222
12223 # Is the header present?
12224 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12225 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 #include <libxslt/xslt.h>
12233 _ACEOF
12234 if { (ac_try="$ac_cpp conftest.$ac_ext"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } >/dev/null && {
12247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12248          test ! -s conftest.err
12249        }; then
12250   ac_header_preproc=yes
12251 else
12252   echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255   ac_header_preproc=no
12256 fi
12257
12258 rm -f conftest.err conftest.$ac_ext
12259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12260 echo "${ECHO_T}$ac_header_preproc" >&6; }
12261
12262 # So?  What about this header?
12263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12264   yes:no: )
12265     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12266 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12267     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12268 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12269     ac_header_preproc=yes
12270     ;;
12271   no:yes:* )
12272     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12273 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12274     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
12275 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
12276     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12277 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
12279 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12280     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12282     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12283 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12284     ( cat <<\_ASBOX
12285 ## ---------------------------------------- ##
12286 ## Report this to pgsql-bugs@postgresql.org ##
12287 ## ---------------------------------------- ##
12288 _ASBOX
12289      ) | sed "s/^/$as_me: WARNING:     /" >&2
12290     ;;
12291 esac
12292 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12293 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12294 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12298 fi
12299 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12300 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12301
12302 fi
12303 if test $ac_cv_header_libxslt_xslt_h = yes; then
12304   :
12305 else
12306   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12307 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12308    { (exit 1); exit 1; }; }
12309 fi
12310
12311
12312 fi
12313
12314 if test "$with_ldap" = yes ; then
12315   if test "$PORTNAME" != "win32"; then
12316
12317 for ac_header in ldap.h
12318 do
12319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 fi
12326 ac_res=`eval echo '${'$as_ac_Header'}'`
12327                { echo "$as_me:$LINENO: result: $ac_res" >&5
12328 echo "${ECHO_T}$ac_res" >&6; }
12329 else
12330   # Is the header compilable?
12331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 $ac_includes_default
12340 #include <$ac_header>
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_compile") 2>conftest.er1
12350   ac_status=$?
12351   grep -v '^ *+' conftest.er1 >conftest.err
12352   rm -f conftest.er1
12353   cat conftest.err >&5
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } && {
12356          test -z "$ac_c_werror_flag" ||
12357          test ! -s conftest.err
12358        } && test -s conftest.$ac_objext; then
12359   ac_header_compiler=yes
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364         ac_header_compiler=no
12365 fi
12366
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12369 echo "${ECHO_T}$ac_header_compiler" >&6; }
12370
12371 # Is the header present?
12372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380 #include <$ac_header>
12381 _ACEOF
12382 if { (ac_try="$ac_cpp conftest.$ac_ext"
12383 case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } >/dev/null && {
12395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12396          test ! -s conftest.err
12397        }; then
12398   ac_header_preproc=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403   ac_header_preproc=no
12404 fi
12405
12406 rm -f conftest.err conftest.$ac_ext
12407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12408 echo "${ECHO_T}$ac_header_preproc" >&6; }
12409
12410 # So?  What about this header?
12411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12412   yes:no: )
12413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12417     ac_header_preproc=yes
12418     ;;
12419   no:yes:* )
12420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12432     ( cat <<\_ASBOX
12433 ## ---------------------------------------- ##
12434 ## Report this to pgsql-bugs@postgresql.org ##
12435 ## ---------------------------------------- ##
12436 _ASBOX
12437      ) | sed "s/^/$as_me: WARNING:     /" >&2
12438     ;;
12439 esac
12440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   eval "$as_ac_Header=\$ac_header_preproc"
12446 fi
12447 ac_res=`eval echo '${'$as_ac_Header'}'`
12448                { echo "$as_me:$LINENO: result: $ac_res" >&5
12449 echo "${ECHO_T}$ac_res" >&6; }
12450
12451 fi
12452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12453   cat >>confdefs.h <<_ACEOF
12454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12455 _ACEOF
12456
12457 else
12458   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12459 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12460    { (exit 1); exit 1; }; }
12461 fi
12462
12463 done
12464
12465   else
12466
12467 for ac_header in winldap.h
12468 do
12469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481 $ac_includes_default
12482 #include <windows.h>
12483
12484
12485 #include <$ac_header>
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491   *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494   (eval "$ac_compile") 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } && {
12501          test -z "$ac_c_werror_flag" ||
12502          test ! -s conftest.err
12503        } && test -s conftest.$ac_objext; then
12504   eval "$as_ac_Header=yes"
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509         eval "$as_ac_Header=no"
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 fi
12514 ac_res=`eval echo '${'$as_ac_Header'}'`
12515                { echo "$as_me:$LINENO: result: $ac_res" >&5
12516 echo "${ECHO_T}$ac_res" >&6; }
12517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518   cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520 _ACEOF
12521
12522 else
12523   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12524 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12525    { (exit 1); exit 1; }; }
12526 fi
12527
12528 done
12529
12530   fi
12531 fi
12532
12533 if test "$with_bonjour" = yes ; then
12534   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12535   { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12536 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12537 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12538   echo $ECHO_N "(cached) $ECHO_C" >&6
12539 fi
12540 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12541 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12542 else
12543   # Is the header compilable?
12544 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12545 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12546 cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h.  */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h.  */
12552 $ac_includes_default
12553 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (ac_try="$ac_compile"
12557 case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_compile") 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } && {
12569          test -z "$ac_c_werror_flag" ||
12570          test ! -s conftest.err
12571        } && test -s conftest.$ac_objext; then
12572   ac_header_compiler=yes
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577         ac_header_compiler=no
12578 fi
12579
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12582 echo "${ECHO_T}$ac_header_compiler" >&6; }
12583
12584 # Is the header present?
12585 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12586 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12594 _ACEOF
12595 if { (ac_try="$ac_cpp conftest.$ac_ext"
12596 case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12602   ac_status=$?
12603   grep -v '^ *+' conftest.er1 >conftest.err
12604   rm -f conftest.er1
12605   cat conftest.err >&5
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); } >/dev/null && {
12608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609          test ! -s conftest.err
12610        }; then
12611   ac_header_preproc=yes
12612 else
12613   echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616   ac_header_preproc=no
12617 fi
12618
12619 rm -f conftest.err conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621 echo "${ECHO_T}$ac_header_preproc" >&6; }
12622
12623 # So?  What about this header?
12624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12625   yes:no: )
12626     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12627 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12629 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12630     ac_header_preproc=yes
12631     ;;
12632   no:yes:* )
12633     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12634 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12635     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
12636 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
12637     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12638 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12639     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
12640 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12641     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12643     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12644 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12645     ( cat <<\_ASBOX
12646 ## ---------------------------------------- ##
12647 ## Report this to pgsql-bugs@postgresql.org ##
12648 ## ---------------------------------------- ##
12649 _ASBOX
12650      ) | sed "s/^/$as_me: WARNING:     /" >&2
12651     ;;
12652 esac
12653 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12654 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12659 fi
12660 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12661 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12662
12663 fi
12664 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12665   :
12666 else
12667   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12668 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12669    { (exit 1); exit 1; }; }
12670 fi
12671
12672
12673 fi
12674
12675 # for contrib/uuid-ossp
12676 if test "$with_ossp_uuid" = yes ; then
12677
12678 for ac_header in ossp/uuid.h
12679 do
12680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 fi
12687 ac_res=`eval echo '${'$as_ac_Header'}'`
12688                { echo "$as_me:$LINENO: result: $ac_res" >&5
12689 echo "${ECHO_T}$ac_res" >&6; }
12690 else
12691   # Is the header compilable?
12692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 $ac_includes_default
12701 #include <$ac_header>
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (ac_try="$ac_compile"
12705 case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_compile") 2>conftest.er1
12711   ac_status=$?
12712   grep -v '^ *+' conftest.er1 >conftest.err
12713   rm -f conftest.er1
12714   cat conftest.err >&5
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } && {
12717          test -z "$ac_c_werror_flag" ||
12718          test ! -s conftest.err
12719        } && test -s conftest.$ac_objext; then
12720   ac_header_compiler=yes
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725         ac_header_compiler=no
12726 fi
12727
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12730 echo "${ECHO_T}$ac_header_compiler" >&6; }
12731
12732 # Is the header present?
12733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741 #include <$ac_header>
12742 _ACEOF
12743 if { (ac_try="$ac_cpp conftest.$ac_ext"
12744 case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } >/dev/null && {
12756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12757          test ! -s conftest.err
12758        }; then
12759   ac_header_preproc=yes
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764   ac_header_preproc=no
12765 fi
12766
12767 rm -f conftest.err conftest.$ac_ext
12768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12769 echo "${ECHO_T}$ac_header_preproc" >&6; }
12770
12771 # So?  What about this header?
12772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12773   yes:no: )
12774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12778     ac_header_preproc=yes
12779     ;;
12780   no:yes:* )
12781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12793     ( cat <<\_ASBOX
12794 ## ---------------------------------------- ##
12795 ## Report this to pgsql-bugs@postgresql.org ##
12796 ## ---------------------------------------- ##
12797 _ASBOX
12798      ) | sed "s/^/$as_me: WARNING:     /" >&2
12799     ;;
12800 esac
12801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806   eval "$as_ac_Header=\$ac_header_preproc"
12807 fi
12808 ac_res=`eval echo '${'$as_ac_Header'}'`
12809                { echo "$as_me:$LINENO: result: $ac_res" >&5
12810 echo "${ECHO_T}$ac_res" >&6; }
12811
12812 fi
12813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12814   cat >>confdefs.h <<_ACEOF
12815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12816 _ACEOF
12817
12818 else
12819
12820
12821 for ac_header in uuid.h
12822 do
12823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 fi
12830 ac_res=`eval echo '${'$as_ac_Header'}'`
12831                { echo "$as_me:$LINENO: result: $ac_res" >&5
12832 echo "${ECHO_T}$ac_res" >&6; }
12833 else
12834   # Is the header compilable?
12835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 $ac_includes_default
12844 #include <$ac_header>
12845 _ACEOF
12846 rm -f conftest.$ac_objext
12847 if { (ac_try="$ac_compile"
12848 case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_compile") 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } && {
12860          test -z "$ac_c_werror_flag" ||
12861          test ! -s conftest.err
12862        } && test -s conftest.$ac_objext; then
12863   ac_header_compiler=yes
12864 else
12865   echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868         ac_header_compiler=no
12869 fi
12870
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 echo "${ECHO_T}$ac_header_compiler" >&6; }
12874
12875 # Is the header present?
12876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h.  */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h.  */
12884 #include <$ac_header>
12885 _ACEOF
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893   ac_status=$?
12894   grep -v '^ *+' conftest.er1 >conftest.err
12895   rm -f conftest.er1
12896   cat conftest.err >&5
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } >/dev/null && {
12899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12900          test ! -s conftest.err
12901        }; then
12902   ac_header_preproc=yes
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907   ac_header_preproc=no
12908 fi
12909
12910 rm -f conftest.err conftest.$ac_ext
12911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12912 echo "${ECHO_T}$ac_header_preproc" >&6; }
12913
12914 # So?  What about this header?
12915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12916   yes:no: )
12917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12921     ac_header_preproc=yes
12922     ;;
12923   no:yes:* )
12924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12936     ( cat <<\_ASBOX
12937 ## ---------------------------------------- ##
12938 ## Report this to pgsql-bugs@postgresql.org ##
12939 ## ---------------------------------------- ##
12940 _ASBOX
12941      ) | sed "s/^/$as_me: WARNING:     /" >&2
12942     ;;
12943 esac
12944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   eval "$as_ac_Header=\$ac_header_preproc"
12950 fi
12951 ac_res=`eval echo '${'$as_ac_Header'}'`
12952                { echo "$as_me:$LINENO: result: $ac_res" >&5
12953 echo "${ECHO_T}$ac_res" >&6; }
12954
12955 fi
12956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12957   cat >>confdefs.h <<_ACEOF
12958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12959 _ACEOF
12960
12961 else
12962   { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12963 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12964    { (exit 1); exit 1; }; }
12965 fi
12966
12967 done
12968
12969 fi
12970
12971 done
12972
12973 fi
12974
12975
12976 ##
12977 ## Types, structures, compiler characteristics
12978 ##
12979
12980  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12981 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12982 if test "${ac_cv_c_bigendian+set}" = set; then
12983   echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985   # See if sys/param.h defines the BYTE_ORDER macro.
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <sys/types.h>
12993 #include <sys/param.h>
12994
12995 int
12996 main ()
12997 {
12998 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12999         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13000  bogus endian macros
13001 #endif
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_compile") 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } && {
13021          test -z "$ac_c_werror_flag" ||
13022          test ! -s conftest.err
13023        } && test -s conftest.$ac_objext; then
13024   # It does; now see whether it defined to BIG_ENDIAN or not.
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031 #include <sys/types.h>
13032 #include <sys/param.h>
13033
13034 int
13035 main ()
13036 {
13037 #if BYTE_ORDER != BIG_ENDIAN
13038  not big endian
13039 #endif
13040
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 rm -f conftest.$ac_objext
13046 if { (ac_try="$ac_compile"
13047 case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052   (eval "$ac_compile") 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } && {
13059          test -z "$ac_c_werror_flag" ||
13060          test ! -s conftest.err
13061        } && test -s conftest.$ac_objext; then
13062   ac_cv_c_bigendian=yes
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067         ac_cv_c_bigendian=no
13068 fi
13069
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075         # It does not; compile a test program.
13076 if test "$cross_compiling" = yes; then
13077   # try to guess the endianness by grepping values into an object file
13078   ac_cv_c_bigendian=unknown
13079   cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h.  */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h.  */
13085 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13086 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13087 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13088 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13089 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13090 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13091 int
13092 main ()
13093 {
13094  _ascii (); _ebcdic ();
13095   ;
13096   return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (ac_try="$ac_compile"
13101 case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_compile") 2>conftest.er1
13107   ac_status=$?
13108   grep -v '^ *+' conftest.er1 >conftest.err
13109   rm -f conftest.er1
13110   cat conftest.err >&5
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } && {
13113          test -z "$ac_c_werror_flag" ||
13114          test ! -s conftest.err
13115        } && test -s conftest.$ac_objext; then
13116   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13117   ac_cv_c_bigendian=yes
13118 fi
13119 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13120   if test "$ac_cv_c_bigendian" = unknown; then
13121     ac_cv_c_bigendian=no
13122   else
13123     # finding both strings is unlikely to happen, but who knows?
13124     ac_cv_c_bigendian=unknown
13125   fi
13126 fi
13127 else
13128   echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131
13132 fi
13133
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 else
13136   cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142 $ac_includes_default
13143 int
13144 main ()
13145 {
13146
13147   /* Are we little or big endian?  From Harbison&Steele.  */
13148   union
13149   {
13150     long int l;
13151     char c[sizeof (long int)];
13152   } u;
13153   u.l = 1;
13154   return u.c[sizeof (long int) - 1] == 1;
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest$ac_exeext
13161 if { (ac_try="$ac_link"
13162 case "(($ac_try" in
13163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164   *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167   (eval "$ac_link") 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13171   { (case "(($ac_try" in
13172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173   *) ac_try_echo=$ac_try;;
13174 esac
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176   (eval "$ac_try") 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180   ac_cv_c_bigendian=no
13181 else
13182   echo "$as_me: program exited with status $ac_status" >&5
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186 ( exit $ac_status )
13187 ac_cv_c_bigendian=yes
13188 fi
13189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13190 fi
13191
13192
13193 fi
13194
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 fi
13197 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13199 case $ac_cv_c_bigendian in
13200   yes)
13201
13202 cat >>confdefs.h <<\_ACEOF
13203 #define WORDS_BIGENDIAN 1
13204 _ACEOF
13205  ;;
13206   no)
13207      ;;
13208   *)
13209     { { echo "$as_me:$LINENO: error: unknown endianness
13210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13211 echo "$as_me: error: unknown endianness
13212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13213    { (exit 1); exit 1; }; } ;;
13214 esac
13215
13216 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13218 if test "${ac_cv_c_const+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227
13228 int
13229 main ()
13230 {
13231 /* FIXME: Include the comments suggested by Paul. */
13232 #ifndef __cplusplus
13233   /* Ultrix mips cc rejects this.  */
13234   typedef int charset[2];
13235   const charset cs;
13236   /* SunOS 4.1.1 cc rejects this.  */
13237   char const *const *pcpcc;
13238   char **ppc;
13239   /* NEC SVR4.0.2 mips cc rejects this.  */
13240   struct point {int x, y;};
13241   static struct point const zero = {0,0};
13242   /* AIX XL C 1.02.0.0 rejects this.
13243      It does not let you subtract one const X* pointer from another in
13244      an arm of an if-expression whose if-part is not a constant
13245      expression */
13246   const char *g = "string";
13247   pcpcc = &g + (g ? g-g : 0);
13248   /* HPUX 7.0 cc rejects these. */
13249   ++pcpcc;
13250   ppc = (char**) pcpcc;
13251   pcpcc = (char const *const *) ppc;
13252   { /* SCO 3.2v4 cc rejects this.  */
13253     char *t;
13254     char const *s = 0 ? (char *) 0 : (char const *) 0;
13255
13256     *t++ = 0;
13257     if (s) return 0;
13258   }
13259   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13260     int x[] = {25, 17};
13261     const int *foo = &x[0];
13262     ++foo;
13263   }
13264   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13265     typedef const int *iptr;
13266     iptr p = 0;
13267     ++p;
13268   }
13269   { /* AIX XL C 1.02.0.0 rejects this saying
13270        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13271     struct s { int j; const int *ap[3]; };
13272     struct s *b; b->j = 5;
13273   }
13274   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13275     const int foo = 10;
13276     if (!foo) return 0;
13277   }
13278   return !cs[0] && !zero.x;
13279 #endif
13280
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (ac_try="$ac_compile"
13287 case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292   (eval "$ac_compile") 2>conftest.er1
13293   ac_status=$?
13294   grep -v '^ *+' conftest.er1 >conftest.err
13295   rm -f conftest.er1
13296   cat conftest.err >&5
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } && {
13299          test -z "$ac_c_werror_flag" ||
13300          test ! -s conftest.err
13301        } && test -s conftest.$ac_objext; then
13302   ac_cv_c_const=yes
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307         ac_cv_c_const=no
13308 fi
13309
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 fi
13312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13314 if test $ac_cv_c_const = no; then
13315
13316 cat >>confdefs.h <<\_ACEOF
13317 #define const
13318 _ACEOF
13319
13320 fi
13321
13322 { echo "$as_me:$LINENO: checking for inline" >&5
13323 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13324 if test "${ac_cv_c_inline+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   ac_cv_c_inline=no
13328 for ac_kw in inline __inline__ __inline; do
13329   cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h.  */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h.  */
13335 #ifndef __cplusplus
13336 typedef int foo_t;
13337 static $ac_kw foo_t static_foo () {return 0; }
13338 $ac_kw foo_t foo () {return 0; }
13339 #endif
13340
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349   (eval "$ac_compile") 2>conftest.er1
13350   ac_status=$?
13351   grep -v '^ *+' conftest.er1 >conftest.err
13352   rm -f conftest.er1
13353   cat conftest.err >&5
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); } && {
13356          test -z "$ac_c_werror_flag" ||
13357          test ! -s conftest.err
13358        } && test -s conftest.$ac_objext; then
13359   ac_cv_c_inline=$ac_kw
13360 else
13361   echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364
13365 fi
13366
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368   test "$ac_cv_c_inline" != no && break
13369 done
13370
13371 fi
13372 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13373 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13374
13375
13376 case $ac_cv_c_inline in
13377   inline | yes) ;;
13378   *)
13379     case $ac_cv_c_inline in
13380       no) ac_val=;;
13381       *) ac_val=$ac_cv_c_inline;;
13382     esac
13383     cat >>confdefs.h <<_ACEOF
13384 #ifndef __cplusplus
13385 #define inline $ac_val
13386 #endif
13387 _ACEOF
13388     ;;
13389 esac
13390
13391 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13392 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13393 if test "${ac_cv_c_stringize+set}" = set; then
13394   echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396   cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402 #define x(y) #y
13403
13404 char *s = x(teststring);
13405 _ACEOF
13406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13407   $EGREP "#teststring" >/dev/null 2>&1; then
13408   ac_cv_c_stringize=no
13409 else
13410   ac_cv_c_stringize=yes
13411 fi
13412 rm -f conftest*
13413
13414 fi
13415 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13416 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13417 if test $ac_cv_c_stringize = yes; then
13418
13419 cat >>confdefs.h <<\_ACEOF
13420 #define HAVE_STRINGIZE 1
13421 _ACEOF
13422
13423 fi
13424
13425 { echo "$as_me:$LINENO: checking for signed types" >&5
13426 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13427 if test "${pgac_cv_c_signed+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436
13437 int
13438 main ()
13439 {
13440 signed char c; signed short s; signed int i;
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_compile") 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } && {
13459          test -z "$ac_c_werror_flag" ||
13460          test ! -s conftest.err
13461        } && test -s conftest.$ac_objext; then
13462   pgac_cv_c_signed=yes
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467         pgac_cv_c_signed=no
13468 fi
13469
13470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13471 fi
13472 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13473 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13474 if test x"$pgac_cv_c_signed" = xno ; then
13475
13476 cat >>confdefs.h <<\_ACEOF
13477 #define signed
13478 _ACEOF
13479
13480 fi
13481 { echo "$as_me:$LINENO: checking for working volatile" >&5
13482 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13483 if test "${ac_cv_c_volatile+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492
13493 int
13494 main ()
13495 {
13496
13497 volatile int x;
13498 int * volatile y = (int *) 0;
13499 return !x && !y;
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508   *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511   (eval "$ac_compile") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } && {
13518          test -z "$ac_c_werror_flag" ||
13519          test ! -s conftest.err
13520        } && test -s conftest.$ac_objext; then
13521   ac_cv_c_volatile=yes
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526         ac_cv_c_volatile=no
13527 fi
13528
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530 fi
13531 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13532 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13533 if test $ac_cv_c_volatile = no; then
13534
13535 cat >>confdefs.h <<\_ACEOF
13536 #define volatile
13537 _ACEOF
13538
13539 fi
13540
13541 { echo "$as_me:$LINENO: checking for __func__" >&5
13542 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13543 if test "${pgac_cv_funcname_func_support+set}" = set; then
13544   echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546   cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552 #include <stdio.h>
13553 int
13554 main ()
13555 {
13556 printf("%s\n", __func__);
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_compile") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } && {
13575          test -z "$ac_c_werror_flag" ||
13576          test ! -s conftest.err
13577        } && test -s conftest.$ac_objext; then
13578   pgac_cv_funcname_func_support=yes
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583         pgac_cv_funcname_func_support=no
13584 fi
13585
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13589 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13590 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13591
13592 cat >>confdefs.h <<\_ACEOF
13593 #define HAVE_FUNCNAME__FUNC 1
13594 _ACEOF
13595
13596 else
13597 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13598 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13599 if test "${pgac_cv_funcname_function_support+set}" = set; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602   cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608 #include <stdio.h>
13609 int
13610 main ()
13611 {
13612 printf("%s\n", __FUNCTION__);
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (ac_try="$ac_compile"
13619 case "(($ac_try" in
13620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621   *) ac_try_echo=$ac_try;;
13622 esac
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624   (eval "$ac_compile") 2>conftest.er1
13625   ac_status=$?
13626   grep -v '^ *+' conftest.er1 >conftest.err
13627   rm -f conftest.er1
13628   cat conftest.err >&5
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); } && {
13631          test -z "$ac_c_werror_flag" ||
13632          test ! -s conftest.err
13633        } && test -s conftest.$ac_objext; then
13634   pgac_cv_funcname_function_support=yes
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639         pgac_cv_funcname_function_support=no
13640 fi
13641
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13645 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13646 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13647
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_FUNCNAME__FUNCTION 1
13650 _ACEOF
13651
13652 fi
13653 fi
13654 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13655 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13656 if test "${ac_cv_struct_tm+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665 #include <sys/types.h>
13666 #include <time.h>
13667
13668 int
13669 main ()
13670 {
13671 struct tm tm;
13672                                      int *p = &tm.tm_sec;
13673                                      return !p;
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682   *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685   (eval "$ac_compile") 2>conftest.er1
13686   ac_status=$?
13687   grep -v '^ *+' conftest.er1 >conftest.err
13688   rm -f conftest.er1
13689   cat conftest.err >&5
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); } && {
13692          test -z "$ac_c_werror_flag" ||
13693          test ! -s conftest.err
13694        } && test -s conftest.$ac_objext; then
13695   ac_cv_struct_tm=time.h
13696 else
13697   echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700         ac_cv_struct_tm=sys/time.h
13701 fi
13702
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13704 fi
13705 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13706 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13707 if test $ac_cv_struct_tm = sys/time.h; then
13708
13709 cat >>confdefs.h <<\_ACEOF
13710 #define TM_IN_SYS_TIME 1
13711 _ACEOF
13712
13713 fi
13714
13715 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13716 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13717 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13718   echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720   cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 #include <sys/types.h>
13727 #include <$ac_cv_struct_tm>
13728
13729
13730 int
13731 main ()
13732 {
13733 static struct tm ac_aggr;
13734 if (ac_aggr.tm_zone)
13735 return 0;
13736   ;
13737   return 0;
13738 }
13739 _ACEOF
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_compile") 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } && {
13754          test -z "$ac_c_werror_flag" ||
13755          test ! -s conftest.err
13756        } && test -s conftest.$ac_objext; then
13757   ac_cv_member_struct_tm_tm_zone=yes
13758 else
13759   echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762         cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768 #include <sys/types.h>
13769 #include <$ac_cv_struct_tm>
13770
13771
13772 int
13773 main ()
13774 {
13775 static struct tm ac_aggr;
13776 if (sizeof ac_aggr.tm_zone)
13777 return 0;
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext
13783 if { (ac_try="$ac_compile"
13784 case "(($ac_try" in
13785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786   *) ac_try_echo=$ac_try;;
13787 esac
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789   (eval "$ac_compile") 2>conftest.er1
13790   ac_status=$?
13791   grep -v '^ *+' conftest.er1 >conftest.err
13792   rm -f conftest.er1
13793   cat conftest.err >&5
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } && {
13796          test -z "$ac_c_werror_flag" ||
13797          test ! -s conftest.err
13798        } && test -s conftest.$ac_objext; then
13799   ac_cv_member_struct_tm_tm_zone=yes
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804         ac_cv_member_struct_tm_tm_zone=no
13805 fi
13806
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808 fi
13809
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 fi
13812 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13813 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13814 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13815
13816 cat >>confdefs.h <<_ACEOF
13817 #define HAVE_STRUCT_TM_TM_ZONE 1
13818 _ACEOF
13819
13820
13821 fi
13822
13823 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13824
13825 cat >>confdefs.h <<\_ACEOF
13826 #define HAVE_TM_ZONE 1
13827 _ACEOF
13828
13829 fi
13830 { echo "$as_me:$LINENO: checking for tzname" >&5
13831 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13832 if test "${ac_cv_var_tzname+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841 #include <time.h>
13842 #ifndef tzname /* For SGI.  */
13843 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
13844 #endif
13845
13846 int
13847 main ()
13848 {
13849 atoi(*tzname);
13850   ;
13851   return 0;
13852 }
13853 _ACEOF
13854 rm -f conftest.$ac_objext conftest$ac_exeext
13855 if { (ac_try="$ac_link"
13856 case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861   (eval "$ac_link") 2>conftest.er1
13862   ac_status=$?
13863   grep -v '^ *+' conftest.er1 >conftest.err
13864   rm -f conftest.er1
13865   cat conftest.err >&5
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } && {
13868          test -z "$ac_c_werror_flag" ||
13869          test ! -s conftest.err
13870        } && test -s conftest$ac_exeext &&
13871        $as_test_x conftest$ac_exeext; then
13872   ac_cv_var_tzname=yes
13873 else
13874   echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877         ac_cv_var_tzname=no
13878 fi
13879
13880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13881       conftest$ac_exeext conftest.$ac_ext
13882 fi
13883 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13884 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13885 if test $ac_cv_var_tzname = yes; then
13886
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_TZNAME 1
13889 _ACEOF
13890
13891 fi
13892
13893 { echo "$as_me:$LINENO: checking for union semun" >&5
13894 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13895 if test "${ac_cv_type_union_semun+set}" = set; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898   cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h.  */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h.  */
13904 #include <sys/types.h>
13905 #include <sys/ipc.h>
13906 #include <sys/sem.h>
13907
13908 typedef union semun ac__type_new_;
13909 int
13910 main ()
13911 {
13912 if ((ac__type_new_ *) 0)
13913   return 0;
13914 if (sizeof (ac__type_new_))
13915   return 0;
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924   *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927   (eval "$ac_compile") 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } && {
13934          test -z "$ac_c_werror_flag" ||
13935          test ! -s conftest.err
13936        } && test -s conftest.$ac_objext; then
13937   ac_cv_type_union_semun=yes
13938 else
13939   echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942         ac_cv_type_union_semun=no
13943 fi
13944
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946 fi
13947 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13948 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13949 if test $ac_cv_type_union_semun = yes; then
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_UNION_SEMUN 1
13953 _ACEOF
13954
13955
13956 fi
13957
13958 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13959 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13960 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13961   echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963   cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h.  */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h.  */
13969 #include <sys/types.h>
13970 #ifdef HAVE_SYS_UN_H
13971 #include <sys/un.h>
13972 #endif
13973
13974
13975 typedef struct sockaddr_un ac__type_new_;
13976 int
13977 main ()
13978 {
13979 if ((ac__type_new_ *) 0)
13980   return 0;
13981 if (sizeof (ac__type_new_))
13982   return 0;
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991   *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994   (eval "$ac_compile") 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } && {
14001          test -z "$ac_c_werror_flag" ||
14002          test ! -s conftest.err
14003        } && test -s conftest.$ac_objext; then
14004   ac_cv_type_struct_sockaddr_un=yes
14005 else
14006   echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009         ac_cv_type_struct_sockaddr_un=no
14010 fi
14011
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 fi
14014 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14015 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14016 if test $ac_cv_type_struct_sockaddr_un = yes; then
14017
14018 cat >>confdefs.h <<_ACEOF
14019 #define HAVE_STRUCT_SOCKADDR_UN 1
14020 _ACEOF
14021
14022
14023 cat >>confdefs.h <<\_ACEOF
14024 #define HAVE_UNIX_SOCKETS 1
14025 _ACEOF
14026
14027 fi
14028
14029 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14030 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14031 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040 #include <sys/types.h>
14041 #ifdef HAVE_SYS_SOCKET_H
14042 #include <sys/socket.h>
14043 #endif
14044
14045
14046 typedef struct sockaddr_storage ac__type_new_;
14047 int
14048 main ()
14049 {
14050 if ((ac__type_new_ *) 0)
14051   return 0;
14052 if (sizeof (ac__type_new_))
14053   return 0;
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (ac_try="$ac_compile"
14060 case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_compile") 2>conftest.er1
14066   ac_status=$?
14067   grep -v '^ *+' conftest.er1 >conftest.err
14068   rm -f conftest.er1
14069   cat conftest.err >&5
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } && {
14072          test -z "$ac_c_werror_flag" ||
14073          test ! -s conftest.err
14074        } && test -s conftest.$ac_objext; then
14075   ac_cv_type_struct_sockaddr_storage=yes
14076 else
14077   echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14079
14080         ac_cv_type_struct_sockaddr_storage=no
14081 fi
14082
14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 fi
14085 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14086 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14087 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14088
14089 cat >>confdefs.h <<_ACEOF
14090 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14091 _ACEOF
14092
14093
14094 fi
14095
14096 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14097 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14098 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h.  */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h.  */
14107 #include <sys/types.h>
14108 #ifdef HAVE_SYS_SOCKET_H
14109 #include <sys/socket.h>
14110 #endif
14111
14112
14113 int
14114 main ()
14115 {
14116 static struct sockaddr_storage ac_aggr;
14117 if (ac_aggr.ss_family)
14118 return 0;
14119   ;
14120   return 0;
14121 }
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_compile") 2>conftest.er1
14131   ac_status=$?
14132   grep -v '^ *+' conftest.er1 >conftest.err
14133   rm -f conftest.er1
14134   cat conftest.err >&5
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } && {
14137          test -z "$ac_c_werror_flag" ||
14138          test ! -s conftest.err
14139        } && test -s conftest.$ac_objext; then
14140   ac_cv_member_struct_sockaddr_storage_ss_family=yes
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145         cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 #include <sys/types.h>
14152 #ifdef HAVE_SYS_SOCKET_H
14153 #include <sys/socket.h>
14154 #endif
14155
14156
14157 int
14158 main ()
14159 {
14160 static struct sockaddr_storage ac_aggr;
14161 if (sizeof ac_aggr.ss_family)
14162 return 0;
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (ac_try="$ac_compile"
14169 case "(($ac_try" in
14170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171   *) ac_try_echo=$ac_try;;
14172 esac
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174   (eval "$ac_compile") 2>conftest.er1
14175   ac_status=$?
14176   grep -v '^ *+' conftest.er1 >conftest.err
14177   rm -f conftest.er1
14178   cat conftest.err >&5
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } && {
14181          test -z "$ac_c_werror_flag" ||
14182          test ! -s conftest.err
14183        } && test -s conftest.$ac_objext; then
14184   ac_cv_member_struct_sockaddr_storage_ss_family=yes
14185 else
14186   echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189         ac_cv_member_struct_sockaddr_storage_ss_family=no
14190 fi
14191
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 fi
14194
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14198 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14199 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14200
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14203 _ACEOF
14204
14205
14206 fi
14207 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14208 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14209 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212   cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218 #include <sys/types.h>
14219 #ifdef HAVE_SYS_SOCKET_H
14220 #include <sys/socket.h>
14221 #endif
14222
14223
14224 int
14225 main ()
14226 {
14227 static struct sockaddr_storage ac_aggr;
14228 if (ac_aggr.__ss_family)
14229 return 0;
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 rm -f conftest.$ac_objext
14235 if { (ac_try="$ac_compile"
14236 case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_compile") 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } && {
14248          test -z "$ac_c_werror_flag" ||
14249          test ! -s conftest.err
14250        } && test -s conftest.$ac_objext; then
14251   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256         cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 #include <sys/types.h>
14263 #ifdef HAVE_SYS_SOCKET_H
14264 #include <sys/socket.h>
14265 #endif
14266
14267
14268 int
14269 main ()
14270 {
14271 static struct sockaddr_storage ac_aggr;
14272 if (sizeof ac_aggr.__ss_family)
14273 return 0;
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (ac_try="$ac_compile"
14280 case "(($ac_try" in
14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282   *) ac_try_echo=$ac_try;;
14283 esac
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285   (eval "$ac_compile") 2>conftest.er1
14286   ac_status=$?
14287   grep -v '^ *+' conftest.er1 >conftest.err
14288   rm -f conftest.er1
14289   cat conftest.err >&5
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); } && {
14292          test -z "$ac_c_werror_flag" ||
14293          test ! -s conftest.err
14294        } && test -s conftest.$ac_objext; then
14295   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300         ac_cv_member_struct_sockaddr_storage___ss_family=no
14301 fi
14302
14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 fi
14305
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 fi
14308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14309 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14310 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14311
14312 cat >>confdefs.h <<_ACEOF
14313 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14314 _ACEOF
14315
14316
14317 fi
14318 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14319 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14320 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 #include <sys/types.h>
14330 #ifdef HAVE_SYS_SOCKET_H
14331 #include <sys/socket.h>
14332 #endif
14333
14334
14335 int
14336 main ()
14337 {
14338 static struct sockaddr_storage ac_aggr;
14339 if (ac_aggr.ss_len)
14340 return 0;
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349   *) ac_try_echo=$ac_try;;
14350 esac
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352   (eval "$ac_compile") 2>conftest.er1
14353   ac_status=$?
14354   grep -v '^ *+' conftest.er1 >conftest.err
14355   rm -f conftest.er1
14356   cat conftest.err >&5
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } && {
14359          test -z "$ac_c_werror_flag" ||
14360          test ! -s conftest.err
14361        } && test -s conftest.$ac_objext; then
14362   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367         cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373 #include <sys/types.h>
14374 #ifdef HAVE_SYS_SOCKET_H
14375 #include <sys/socket.h>
14376 #endif
14377
14378
14379 int
14380 main ()
14381 {
14382 static struct sockaddr_storage ac_aggr;
14383 if (sizeof ac_aggr.ss_len)
14384 return 0;
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (ac_try="$ac_compile"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_compile") 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } && {
14403          test -z "$ac_c_werror_flag" ||
14404          test ! -s conftest.err
14405        } && test -s conftest.$ac_objext; then
14406   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14407 else
14408   echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14410
14411         ac_cv_member_struct_sockaddr_storage_ss_len=no
14412 fi
14413
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14420 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14421 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14422
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14425 _ACEOF
14426
14427
14428 fi
14429 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14430 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14431 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 #include <sys/types.h>
14441 #ifdef HAVE_SYS_SOCKET_H
14442 #include <sys/socket.h>
14443 #endif
14444
14445
14446 int
14447 main ()
14448 {
14449 static struct sockaddr_storage ac_aggr;
14450 if (ac_aggr.__ss_len)
14451 return 0;
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463   (eval "$ac_compile") 2>conftest.er1
14464   ac_status=$?
14465   grep -v '^ *+' conftest.er1 >conftest.err
14466   rm -f conftest.er1
14467   cat conftest.err >&5
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } && {
14470          test -z "$ac_c_werror_flag" ||
14471          test ! -s conftest.err
14472        } && test -s conftest.$ac_objext; then
14473   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14474 else
14475   echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478         cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h.  */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h.  */
14484 #include <sys/types.h>
14485 #ifdef HAVE_SYS_SOCKET_H
14486 #include <sys/socket.h>
14487 #endif
14488
14489
14490 int
14491 main ()
14492 {
14493 static struct sockaddr_storage ac_aggr;
14494 if (sizeof ac_aggr.__ss_len)
14495 return 0;
14496   ;
14497   return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (ac_try="$ac_compile"
14502 case "(($ac_try" in
14503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504   *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507   (eval "$ac_compile") 2>conftest.er1
14508   ac_status=$?
14509   grep -v '^ *+' conftest.er1 >conftest.err
14510   rm -f conftest.er1
14511   cat conftest.err >&5
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } && {
14514          test -z "$ac_c_werror_flag" ||
14515          test ! -s conftest.err
14516        } && test -s conftest.$ac_objext; then
14517   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14518 else
14519   echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14521
14522         ac_cv_member_struct_sockaddr_storage___ss_len=no
14523 fi
14524
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 fi
14527
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 fi
14530 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14531 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14532 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14533
14534 cat >>confdefs.h <<_ACEOF
14535 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14536 _ACEOF
14537
14538
14539 fi
14540 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14541 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14542 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545   cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h.  */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h.  */
14551 #include <sys/types.h>
14552 #ifdef HAVE_SYS_SOCKET_H
14553 #include <sys/socket.h>
14554 #endif
14555
14556
14557 int
14558 main ()
14559 {
14560 static struct sockaddr ac_aggr;
14561 if (ac_aggr.sa_len)
14562 return 0;
14563   ;
14564   return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext
14568 if { (ac_try="$ac_compile"
14569 case "(($ac_try" in
14570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571   *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574   (eval "$ac_compile") 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } && {
14581          test -z "$ac_c_werror_flag" ||
14582          test ! -s conftest.err
14583        } && test -s conftest.$ac_objext; then
14584   ac_cv_member_struct_sockaddr_sa_len=yes
14585 else
14586   echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589         cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 #include <sys/types.h>
14596 #ifdef HAVE_SYS_SOCKET_H
14597 #include <sys/socket.h>
14598 #endif
14599
14600
14601 int
14602 main ()
14603 {
14604 static struct sockaddr ac_aggr;
14605 if (sizeof ac_aggr.sa_len)
14606 return 0;
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615   *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618   (eval "$ac_compile") 2>conftest.er1
14619   ac_status=$?
14620   grep -v '^ *+' conftest.er1 >conftest.err
14621   rm -f conftest.er1
14622   cat conftest.err >&5
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } && {
14625          test -z "$ac_c_werror_flag" ||
14626          test ! -s conftest.err
14627        } && test -s conftest.$ac_objext; then
14628   ac_cv_member_struct_sockaddr_sa_len=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633         ac_cv_member_struct_sockaddr_sa_len=no
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14642 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14643 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14644
14645 cat >>confdefs.h <<_ACEOF
14646 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14647 _ACEOF
14648
14649
14650 fi
14651
14652 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14653 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14654 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14655   echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657   cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h.  */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h.  */
14663 #include <sys/types.h>
14664 #include <sys/socket.h>
14665 #include <netdb.h>
14666
14667
14668 typedef struct addrinfo ac__type_new_;
14669 int
14670 main ()
14671 {
14672 if ((ac__type_new_ *) 0)
14673   return 0;
14674 if (sizeof (ac__type_new_))
14675   return 0;
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (ac_try="$ac_compile"
14682 case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_compile") 2>conftest.er1
14688   ac_status=$?
14689   grep -v '^ *+' conftest.er1 >conftest.err
14690   rm -f conftest.er1
14691   cat conftest.err >&5
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } && {
14694          test -z "$ac_c_werror_flag" ||
14695          test ! -s conftest.err
14696        } && test -s conftest.$ac_objext; then
14697   ac_cv_type_struct_addrinfo=yes
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702         ac_cv_type_struct_addrinfo=no
14703 fi
14704
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 fi
14707 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14708 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14709 if test $ac_cv_type_struct_addrinfo = yes; then
14710
14711 cat >>confdefs.h <<_ACEOF
14712 #define HAVE_STRUCT_ADDRINFO 1
14713 _ACEOF
14714
14715
14716 fi
14717
14718
14719 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14720 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14721 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730 #include <sys/param.h>
14731 #include <sys/types.h>
14732 #include <sys/socket.h>
14733 #include <sys/ucred.h>
14734
14735 typedef struct cmsgcred ac__type_new_;
14736 int
14737 main ()
14738 {
14739 if ((ac__type_new_ *) 0)
14740   return 0;
14741 if (sizeof (ac__type_new_))
14742   return 0;
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (ac_try="$ac_compile"
14749 case "(($ac_try" in
14750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751   *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754   (eval "$ac_compile") 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } && {
14761          test -z "$ac_c_werror_flag" ||
14762          test ! -s conftest.err
14763        } && test -s conftest.$ac_objext; then
14764   ac_cv_type_struct_cmsgcred=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769         ac_cv_type_struct_cmsgcred=no
14770 fi
14771
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 fi
14774 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14775 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14776 if test $ac_cv_type_struct_cmsgcred = yes; then
14777
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_STRUCT_CMSGCRED 1
14780 _ACEOF
14781
14782
14783 fi
14784 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14785 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14786 if test "${ac_cv_type_struct_fcred+set}" = set; then
14787   echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789   cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 #include <sys/param.h>
14796 #include <sys/types.h>
14797 #include <sys/socket.h>
14798 #include <sys/ucred.h>
14799
14800 typedef struct fcred ac__type_new_;
14801 int
14802 main ()
14803 {
14804 if ((ac__type_new_ *) 0)
14805   return 0;
14806 if (sizeof (ac__type_new_))
14807   return 0;
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext
14813 if { (ac_try="$ac_compile"
14814 case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819   (eval "$ac_compile") 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } && {
14826          test -z "$ac_c_werror_flag" ||
14827          test ! -s conftest.err
14828        } && test -s conftest.$ac_objext; then
14829   ac_cv_type_struct_fcred=yes
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834         ac_cv_type_struct_fcred=no
14835 fi
14836
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 fi
14839 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14840 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14841 if test $ac_cv_type_struct_fcred = yes; then
14842
14843 cat >>confdefs.h <<_ACEOF
14844 #define HAVE_STRUCT_FCRED 1
14845 _ACEOF
14846
14847
14848 fi
14849 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14850 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14851 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h.  */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h.  */
14860 #include <sys/param.h>
14861 #include <sys/types.h>
14862 #include <sys/socket.h>
14863 #include <sys/ucred.h>
14864
14865 typedef struct sockcred ac__type_new_;
14866 int
14867 main ()
14868 {
14869 if ((ac__type_new_ *) 0)
14870   return 0;
14871 if (sizeof (ac__type_new_))
14872   return 0;
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (ac_try="$ac_compile"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_compile") 2>conftest.er1
14885   ac_status=$?
14886   grep -v '^ *+' conftest.er1 >conftest.err
14887   rm -f conftest.er1
14888   cat conftest.err >&5
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } && {
14891          test -z "$ac_c_werror_flag" ||
14892          test ! -s conftest.err
14893        } && test -s conftest.$ac_objext; then
14894   ac_cv_type_struct_sockcred=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899         ac_cv_type_struct_sockcred=no
14900 fi
14901
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14905 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14906 if test $ac_cv_type_struct_sockcred = yes; then
14907
14908 cat >>confdefs.h <<_ACEOF
14909 #define HAVE_STRUCT_SOCKCRED 1
14910 _ACEOF
14911
14912
14913 fi
14914
14915
14916 { echo "$as_me:$LINENO: checking for struct option" >&5
14917 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14918 if test "${ac_cv_type_struct_option+set}" = set; then
14919   echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921   cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h.  */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h.  */
14927 #ifdef HAVE_GETOPT_H
14928 #include <getopt.h>
14929 #endif
14930
14931 typedef struct option ac__type_new_;
14932 int
14933 main ()
14934 {
14935 if ((ac__type_new_ *) 0)
14936   return 0;
14937 if (sizeof (ac__type_new_))
14938   return 0;
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_compile") 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } && {
14957          test -z "$ac_c_werror_flag" ||
14958          test ! -s conftest.err
14959        } && test -s conftest.$ac_objext; then
14960   ac_cv_type_struct_option=yes
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965         ac_cv_type_struct_option=no
14966 fi
14967
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 fi
14970 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14971 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14972 if test $ac_cv_type_struct_option = yes; then
14973
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_STRUCT_OPTION 1
14976 _ACEOF
14977
14978
14979 fi
14980
14981
14982 if test "$with_zlib" = yes; then
14983   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14984   # did not).  While we could work around the lack of z_streamp, it
14985   # seems unwise to encourage people to use such old zlib versions...
14986   { echo "$as_me:$LINENO: checking for z_streamp" >&5
14987 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14988 if test "${ac_cv_type_z_streamp+set}" = set; then
14989   echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991   cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997 #include <zlib.h>
14998
14999 typedef z_streamp ac__type_new_;
15000 int
15001 main ()
15002 {
15003 if ((ac__type_new_ *) 0)
15004   return 0;
15005 if (sizeof (ac__type_new_))
15006   return 0;
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (ac_try="$ac_compile"
15013 case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018   (eval "$ac_compile") 2>conftest.er1
15019   ac_status=$?
15020   grep -v '^ *+' conftest.er1 >conftest.err
15021   rm -f conftest.er1
15022   cat conftest.err >&5
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } && {
15025          test -z "$ac_c_werror_flag" ||
15026          test ! -s conftest.err
15027        } && test -s conftest.$ac_objext; then
15028   ac_cv_type_z_streamp=yes
15029 else
15030   echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15032
15033         ac_cv_type_z_streamp=no
15034 fi
15035
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 fi
15038 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15039 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15040 if test $ac_cv_type_z_streamp = yes; then
15041   :
15042 else
15043   { { echo "$as_me:$LINENO: error: zlib version is too old
15044 Use --without-zlib to disable zlib support." >&5
15045 echo "$as_me: error: zlib version is too old
15046 Use --without-zlib to disable zlib support." >&2;}
15047    { (exit 1); exit 1; }; }
15048 fi
15049
15050 fi
15051
15052 if test "$with_krb5" = yes; then
15053 # Check for differences between MIT and Heimdal (KTH) releases
15054   { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15055 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15056 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059   cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h.  */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h.  */
15065 #include <krb5.h>
15066
15067 int
15068 main ()
15069 {
15070 static krb5_ticket ac_aggr;
15071 if (ac_aggr.enc_part2)
15072 return 0;
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084   (eval "$ac_compile") 2>conftest.er1
15085   ac_status=$?
15086   grep -v '^ *+' conftest.er1 >conftest.err
15087   rm -f conftest.er1
15088   cat conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); } && {
15091          test -z "$ac_c_werror_flag" ||
15092          test ! -s conftest.err
15093        } && test -s conftest.$ac_objext; then
15094   ac_cv_member_krb5_ticket_enc_part2=yes
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099         cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h.  */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h.  */
15105 #include <krb5.h>
15106
15107 int
15108 main ()
15109 {
15110 static krb5_ticket ac_aggr;
15111 if (sizeof ac_aggr.enc_part2)
15112 return 0;
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124   (eval "$ac_compile") 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } && {
15131          test -z "$ac_c_werror_flag" ||
15132          test ! -s conftest.err
15133        } && test -s conftest.$ac_objext; then
15134   ac_cv_member_krb5_ticket_enc_part2=yes
15135 else
15136   echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139         ac_cv_member_krb5_ticket_enc_part2=no
15140 fi
15141
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 fi
15144
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 fi
15147 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15148 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15149 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15150
15151 cat >>confdefs.h <<_ACEOF
15152 #define HAVE_KRB5_TICKET_ENC_PART2 1
15153 _ACEOF
15154
15155
15156 else
15157   { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15158 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15159 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162   cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168 #include <krb5.h>
15169
15170 int
15171 main ()
15172 {
15173 static krb5_ticket ac_aggr;
15174 if (ac_aggr.client)
15175 return 0;
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (ac_try="$ac_compile"
15182 case "(($ac_try" in
15183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184   *) ac_try_echo=$ac_try;;
15185 esac
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187   (eval "$ac_compile") 2>conftest.er1
15188   ac_status=$?
15189   grep -v '^ *+' conftest.er1 >conftest.err
15190   rm -f conftest.er1
15191   cat conftest.err >&5
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); } && {
15194          test -z "$ac_c_werror_flag" ||
15195          test ! -s conftest.err
15196        } && test -s conftest.$ac_objext; then
15197   ac_cv_member_krb5_ticket_client=yes
15198 else
15199   echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202         cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208 #include <krb5.h>
15209
15210 int
15211 main ()
15212 {
15213 static krb5_ticket ac_aggr;
15214 if (sizeof ac_aggr.client)
15215 return 0;
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest.$ac_objext
15221 if { (ac_try="$ac_compile"
15222 case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_compile") 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } && {
15234          test -z "$ac_c_werror_flag" ||
15235          test ! -s conftest.err
15236        } && test -s conftest.$ac_objext; then
15237   ac_cv_member_krb5_ticket_client=yes
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242         ac_cv_member_krb5_ticket_client=no
15243 fi
15244
15245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246 fi
15247
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 fi
15250 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15251 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15252 if test $ac_cv_member_krb5_ticket_client = yes; then
15253
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_KRB5_TICKET_CLIENT 1
15256 _ACEOF
15257
15258
15259 else
15260   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15261 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15262    { (exit 1); exit 1; }; }
15263 fi
15264
15265 fi
15266
15267   { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15268 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15269 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 #include <krb5.h>
15279
15280 int
15281 main ()
15282 {
15283 static krb5_error ac_aggr;
15284 if (ac_aggr.text.data)
15285 return 0;
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297   (eval "$ac_compile") 2>conftest.er1
15298   ac_status=$?
15299   grep -v '^ *+' conftest.er1 >conftest.err
15300   rm -f conftest.er1
15301   cat conftest.err >&5
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); } && {
15304          test -z "$ac_c_werror_flag" ||
15305          test ! -s conftest.err
15306        } && test -s conftest.$ac_objext; then
15307   ac_cv_member_krb5_error_text_data=yes
15308 else
15309   echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15311
15312         cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h.  */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h.  */
15318 #include <krb5.h>
15319
15320 int
15321 main ()
15322 {
15323 static krb5_error ac_aggr;
15324 if (sizeof ac_aggr.text.data)
15325 return 0;
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_compile") 2>conftest.er1
15338   ac_status=$?
15339   grep -v '^ *+' conftest.er1 >conftest.err
15340   rm -f conftest.er1
15341   cat conftest.err >&5
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } && {
15344          test -z "$ac_c_werror_flag" ||
15345          test ! -s conftest.err
15346        } && test -s conftest.$ac_objext; then
15347   ac_cv_member_krb5_error_text_data=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352         ac_cv_member_krb5_error_text_data=no
15353 fi
15354
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 fi
15357
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 fi
15360 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15361 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15362 if test $ac_cv_member_krb5_error_text_data = yes; then
15363
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15366 _ACEOF
15367
15368
15369 else
15370   { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15371 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15372 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 #include <krb5.h>
15382
15383 int
15384 main ()
15385 {
15386 static krb5_error ac_aggr;
15387 if (ac_aggr.e_data)
15388 return 0;
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 rm -f conftest.$ac_objext
15394 if { (ac_try="$ac_compile"
15395 case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_compile") 2>conftest.er1
15401   ac_status=$?
15402   grep -v '^ *+' conftest.er1 >conftest.err
15403   rm -f conftest.er1
15404   cat conftest.err >&5
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); } && {
15407          test -z "$ac_c_werror_flag" ||
15408          test ! -s conftest.err
15409        } && test -s conftest.$ac_objext; then
15410   ac_cv_member_krb5_error_e_data=yes
15411 else
15412   echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15414
15415         cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 #include <krb5.h>
15422
15423 int
15424 main ()
15425 {
15426 static krb5_error ac_aggr;
15427 if (sizeof ac_aggr.e_data)
15428 return 0;
15429   ;
15430   return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext
15434 if { (ac_try="$ac_compile"
15435 case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440   (eval "$ac_compile") 2>conftest.er1
15441   ac_status=$?
15442   grep -v '^ *+' conftest.er1 >conftest.err
15443   rm -f conftest.er1
15444   cat conftest.err >&5
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } && {
15447          test -z "$ac_c_werror_flag" ||
15448          test ! -s conftest.err
15449        } && test -s conftest.$ac_objext; then
15450   ac_cv_member_krb5_error_e_data=yes
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15454
15455         ac_cv_member_krb5_error_e_data=no
15456 fi
15457
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 fi
15460
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 fi
15463 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15464 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15465 if test $ac_cv_member_krb5_error_e_data = yes; then
15466
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_KRB5_ERROR_E_DATA 1
15469 _ACEOF
15470
15471
15472 else
15473   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15474 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15475    { (exit 1); exit 1; }; }
15476 fi
15477
15478 fi
15479
15480
15481 # Win32 requires headers to be loaded for __stdcall, so can't use
15482 # AC_CHECK_FUNCS here.
15483   { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15484 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15485   cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h.  */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h.  */
15491 #include <krb5.h>
15492 int
15493 main ()
15494 {
15495 krb5_free_unparsed_name(NULL,NULL);
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 rm -f conftest.$ac_objext conftest$ac_exeext
15501 if { (ac_try="$ac_link"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_link") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } && {
15514          test -z "$ac_c_werror_flag" ||
15515          test ! -s conftest.err
15516        } && test -s conftest$ac_exeext &&
15517        $as_test_x conftest$ac_exeext; then
15518
15519 cat >>confdefs.h <<\_ACEOF
15520 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15521 _ACEOF
15522
15523 { echo "$as_me:$LINENO: result: yes" >&5
15524 echo "${ECHO_T}yes" >&6; }
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529         { echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6; }
15531 fi
15532
15533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15534       conftest$ac_exeext conftest.$ac_ext
15535 fi
15536
15537
15538 ##
15539 ## Functions, global variables
15540 ##
15541
15542 { echo "$as_me:$LINENO: checking for int timezone" >&5
15543 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15544 if test "${pgac_cv_var_int_timezone+set}" = set; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 #include <time.h>
15554 int res;
15555 int
15556 main ()
15557 {
15558 #ifndef __CYGWIN__
15559 res = timezone / 60;
15560 #else
15561 res = _timezone / 60;
15562 #endif
15563   ;
15564   return 0;
15565 }
15566 _ACEOF
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571   *) ac_try_echo=$ac_try;;
15572 esac
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574   (eval "$ac_link") 2>conftest.er1
15575   ac_status=$?
15576   grep -v '^ *+' conftest.er1 >conftest.err
15577   rm -f conftest.er1
15578   cat conftest.err >&5
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); } && {
15581          test -z "$ac_c_werror_flag" ||
15582          test ! -s conftest.err
15583        } && test -s conftest$ac_exeext &&
15584        $as_test_x conftest$ac_exeext; then
15585   pgac_cv_var_int_timezone=yes
15586 else
15587   echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590         pgac_cv_var_int_timezone=no
15591 fi
15592
15593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15594       conftest$ac_exeext conftest.$ac_ext
15595 fi
15596 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15597 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15598 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15599
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_INT_TIMEZONE
15602 _ACEOF
15603
15604 fi
15605 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15606 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15607  if test "${ac_cv_func_accept_return+set}" = set; then
15608   echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610    if test "${ac_cv_func_accept_arg1+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613     if test "${ac_cv_func_accept_arg2+set}" = set; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616      if test "${ac_cv_func_accept_arg3+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15620       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15621        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15622         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15623          cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 #ifdef HAVE_SYS_TYPES_H
15630 #include <sys/types.h>
15631 #endif
15632 #ifdef HAVE_SYS_SOCKET_H
15633 #include <sys/socket.h>
15634 #endif
15635 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15636 int
15637 main ()
15638 {
15639
15640   ;
15641   return 0;
15642 }
15643 _ACEOF
15644 rm -f conftest.$ac_objext
15645 if { (ac_try="$ac_compile"
15646 case "(($ac_try" in
15647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648   *) ac_try_echo=$ac_try;;
15649 esac
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651   (eval "$ac_compile") 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } && {
15658          test -z "$ac_c_werror_flag" ||
15659          test ! -s conftest.err
15660        } && test -s conftest.$ac_objext; then
15661   ac_not_found=no; break 4
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666         ac_not_found=yes
15667 fi
15668
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670        done
15671       done
15672      done
15673     done
15674     if test "$ac_not_found" = yes; then
15675       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15676 echo "$as_me: error: could not determine argument types" >&2;}
15677    { (exit 1); exit 1; }; }
15678     fi
15679     if test "$ac_cv_func_accept_arg3" = "void"; then
15680       ac_cv_func_accept_arg3=int
15681     fi
15682
15683 fi
15684
15685 fi
15686
15687 fi
15688
15689 fi
15690  { 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
15691 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15692
15693 cat >>confdefs.h <<_ACEOF
15694 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15695 _ACEOF
15696
15697
15698 cat >>confdefs.h <<_ACEOF
15699 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15700 _ACEOF
15701
15702
15703 cat >>confdefs.h <<_ACEOF
15704 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15705 _ACEOF
15706
15707
15708 cat >>confdefs.h <<_ACEOF
15709 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15710 _ACEOF
15711
15712
15713 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15714 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15715 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15716   echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718   cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724 #include <sys/time.h>
15725 int
15726 main ()
15727 {
15728 struct timeval *tp;
15729 struct timezone *tzp;
15730 gettimeofday(tp,tzp);
15731   ;
15732   return 0;
15733 }
15734 _ACEOF
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_compile") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } && {
15749          test -z "$ac_c_werror_flag" ||
15750          test ! -s conftest.err
15751        } && test -s conftest.$ac_objext; then
15752   pgac_cv_func_gettimeofday_1arg=no
15753 else
15754   echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757         pgac_cv_func_gettimeofday_1arg=yes
15758 fi
15759
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 fi
15762 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15763 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15764 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15765
15766 cat >>confdefs.h <<\_ACEOF
15767 #define GETTIMEOFDAY_1ARG
15768 _ACEOF
15769
15770 fi
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15795 do
15796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802   cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h.  */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h.  */
15808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15810 #define $ac_func innocuous_$ac_func
15811
15812 /* System header to define __stub macros and hopefully few prototypes,
15813     which can conflict with char $ac_func (); below.
15814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815     <limits.h> exists even on freestanding compilers.  */
15816
15817 #ifdef __STDC__
15818 # include <limits.h>
15819 #else
15820 # include <assert.h>
15821 #endif
15822
15823 #undef $ac_func
15824
15825 /* Override any GCC internal prototype to avoid an error.
15826    Use char because int might match the return type of a GCC
15827    builtin and then its argument prototype would still apply.  */
15828 #ifdef __cplusplus
15829 extern "C"
15830 #endif
15831 char $ac_func ();
15832 /* The GNU C library defines this for functions which it implements
15833     to always fail with ENOSYS.  Some functions are actually named
15834     something starting with __ and the normal name is an alias.  */
15835 #if defined __stub_$ac_func || defined __stub___$ac_func
15836 choke me
15837 #endif
15838
15839 int
15840 main ()
15841 {
15842 return $ac_func ();
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851   *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854   (eval "$ac_link") 2>conftest.er1
15855   ac_status=$?
15856   grep -v '^ *+' conftest.er1 >conftest.err
15857   rm -f conftest.er1
15858   cat conftest.err >&5
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } && {
15861          test -z "$ac_c_werror_flag" ||
15862          test ! -s conftest.err
15863        } && test -s conftest$ac_exeext &&
15864        $as_test_x conftest$ac_exeext; then
15865   eval "$as_ac_var=yes"
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870         eval "$as_ac_var=no"
15871 fi
15872
15873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15874       conftest$ac_exeext conftest.$ac_ext
15875 fi
15876 ac_res=`eval echo '${'$as_ac_var'}'`
15877                { echo "$as_me:$LINENO: result: $ac_res" >&5
15878 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_var'}'` = yes; then
15880   cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 _ACEOF
15883
15884 fi
15885 done
15886
15887
15888 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15889 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15890 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15891   echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893   cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899 #include <unistd.h>
15900
15901 int
15902 main ()
15903 {
15904 #ifndef fdatasync
15905   (void) fdatasync;
15906 #endif
15907
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (ac_try="$ac_compile"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_compile") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } && {
15926          test -z "$ac_c_werror_flag" ||
15927          test ! -s conftest.err
15928        } && test -s conftest.$ac_objext; then
15929   ac_cv_have_decl_fdatasync=yes
15930 else
15931   echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934         ac_cv_have_decl_fdatasync=no
15935 fi
15936
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 fi
15939 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15940 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15941 if test $ac_cv_have_decl_fdatasync = yes; then
15942
15943 cat >>confdefs.h <<_ACEOF
15944 #define HAVE_DECL_FDATASYNC 1
15945 _ACEOF
15946
15947
15948 else
15949   cat >>confdefs.h <<_ACEOF
15950 #define HAVE_DECL_FDATASYNC 0
15951 _ACEOF
15952
15953
15954 fi
15955
15956
15957 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15958 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15959 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15960   echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962   cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 #include <fcntl.h>
15969
15970 int
15971 main ()
15972 {
15973 #ifndef posix_fadvise
15974   (void) posix_fadvise;
15975 #endif
15976
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988   (eval "$ac_compile") 2>conftest.er1
15989   ac_status=$?
15990   grep -v '^ *+' conftest.er1 >conftest.err
15991   rm -f conftest.er1
15992   cat conftest.err >&5
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); } && {
15995          test -z "$ac_c_werror_flag" ||
15996          test ! -s conftest.err
15997        } && test -s conftest.$ac_objext; then
15998   ac_cv_have_decl_posix_fadvise=yes
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003         ac_cv_have_decl_posix_fadvise=no
16004 fi
16005
16006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007 fi
16008 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16009 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16010 if test $ac_cv_have_decl_posix_fadvise = yes; then
16011
16012 cat >>confdefs.h <<_ACEOF
16013 #define HAVE_DECL_POSIX_FADVISE 1
16014 _ACEOF
16015
16016
16017 else
16018   cat >>confdefs.h <<_ACEOF
16019 #define HAVE_DECL_POSIX_FADVISE 0
16020 _ACEOF
16021
16022
16023 fi
16024
16025
16026 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16027 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16028 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031   cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 $ac_includes_default
16038 int
16039 main ()
16040 {
16041 #ifndef strlcat
16042   (void) strlcat;
16043 #endif
16044
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_compile") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } && {
16063          test -z "$ac_c_werror_flag" ||
16064          test ! -s conftest.err
16065        } && test -s conftest.$ac_objext; then
16066   ac_cv_have_decl_strlcat=yes
16067 else
16068   echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071         ac_cv_have_decl_strlcat=no
16072 fi
16073
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 fi
16076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16077 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16078 if test $ac_cv_have_decl_strlcat = yes; then
16079
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_DECL_STRLCAT 1
16082 _ACEOF
16083
16084
16085 else
16086   cat >>confdefs.h <<_ACEOF
16087 #define HAVE_DECL_STRLCAT 0
16088 _ACEOF
16089
16090
16091 fi
16092 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16093 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16094 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16095   echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16097   cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 int
16105 main ()
16106 {
16107 #ifndef strlcpy
16108   (void) strlcpy;
16109 #endif
16110
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (ac_try="$ac_compile"
16117 case "(($ac_try" in
16118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119   *) ac_try_echo=$ac_try;;
16120 esac
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122   (eval "$ac_compile") 2>conftest.er1
16123   ac_status=$?
16124   grep -v '^ *+' conftest.er1 >conftest.err
16125   rm -f conftest.er1
16126   cat conftest.err >&5
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); } && {
16129          test -z "$ac_c_werror_flag" ||
16130          test ! -s conftest.err
16131        } && test -s conftest.$ac_objext; then
16132   ac_cv_have_decl_strlcpy=yes
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137         ac_cv_have_decl_strlcpy=no
16138 fi
16139
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 fi
16142 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16143 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16144 if test $ac_cv_have_decl_strlcpy = yes; then
16145
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_DECL_STRLCPY 1
16148 _ACEOF
16149
16150
16151 else
16152   cat >>confdefs.h <<_ACEOF
16153 #define HAVE_DECL_STRLCPY 0
16154 _ACEOF
16155
16156
16157 fi
16158
16159
16160 # This is probably only present on Darwin, but may as well check always
16161 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16162 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16163 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h.  */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h.  */
16172 #include <fcntl.h>
16173
16174 int
16175 main ()
16176 {
16177 #ifndef F_FULLFSYNC
16178   (void) F_FULLFSYNC;
16179 #endif
16180
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (ac_try="$ac_compile"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_compile") 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } && {
16199          test -z "$ac_c_werror_flag" ||
16200          test ! -s conftest.err
16201        } && test -s conftest.$ac_objext; then
16202   ac_cv_have_decl_F_FULLFSYNC=yes
16203 else
16204   echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207         ac_cv_have_decl_F_FULLFSYNC=no
16208 fi
16209
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 fi
16212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16213 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16214 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16215
16216 cat >>confdefs.h <<_ACEOF
16217 #define HAVE_DECL_F_FULLFSYNC 1
16218 _ACEOF
16219
16220
16221 else
16222   cat >>confdefs.h <<_ACEOF
16223 #define HAVE_DECL_F_FULLFSYNC 0
16224 _ACEOF
16225
16226
16227 fi
16228
16229
16230
16231 HAVE_IPV6=no
16232 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16233 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16234 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 $ac_includes_default
16244 #include <netinet/in.h>
16245
16246 typedef struct sockaddr_in6 ac__type_new_;
16247 int
16248 main ()
16249 {
16250 if ((ac__type_new_ *) 0)
16251   return 0;
16252 if (sizeof (ac__type_new_))
16253   return 0;
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_compile") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } && {
16272          test -z "$ac_c_werror_flag" ||
16273          test ! -s conftest.err
16274        } && test -s conftest.$ac_objext; then
16275   ac_cv_type_struct_sockaddr_in6=yes
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280         ac_cv_type_struct_sockaddr_in6=no
16281 fi
16282
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16286 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16287 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16288
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_IPV6 1
16291 _ACEOF
16292
16293          HAVE_IPV6=yes
16294 fi
16295
16296
16297
16298 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16299 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16300 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16301   echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303   cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 #include <machine/vmparam.h>
16310 #include <sys/exec.h>
16311
16312 int
16313 main ()
16314 {
16315 PS_STRINGS->ps_nargvstr = 1;
16316 PS_STRINGS->ps_argvstr = "foo";
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_link") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && {
16335          test -z "$ac_c_werror_flag" ||
16336          test ! -s conftest.err
16337        } && test -s conftest$ac_exeext &&
16338        $as_test_x conftest$ac_exeext; then
16339   pgac_cv_var_PS_STRINGS=yes
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344         pgac_cv_var_PS_STRINGS=no
16345 fi
16346
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348       conftest$ac_exeext conftest.$ac_ext
16349 fi
16350 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16351 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16352 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16353
16354 cat >>confdefs.h <<\_ACEOF
16355 #define HAVE_PS_STRINGS
16356 _ACEOF
16357
16358 fi
16359
16360
16361 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16362 # is missing.  Yes, there are machines that have only one.  We may
16363 # also decide to use snprintf.c if snprintf() is present but does not
16364 # have all the features we need --- see below.
16365
16366 if test "$PORTNAME" = "win32"; then
16367   # Win32 gets snprintf.c built unconditionally.
16368   #
16369   # To properly translate all NLS languages strings, we must support the
16370   # *printf() %$ format, which allows *printf() arguments to be selected
16371   # by position in the translated string.
16372   #
16373   # libintl versions < 0.13 use the native *printf() functions, and Win32
16374   # *printf() doesn't understand %$, so we must use our /port versions,
16375   # which do understand %$. libintl versions >= 0.13 include their own
16376   # *printf versions on Win32.  The libintl 0.13 release note text is:
16377   #
16378   #   C format strings with positions, as they arise when a translator
16379   #   needs to reorder a sentence, are now supported on all platforms.
16380   #   On those few platforms (NetBSD and Woe32) for which the native
16381   #   printf()/fprintf()/... functions don't support such format
16382   #   strings, replacements are provided through <libintl.h>.
16383   #
16384   # We could use libintl >= 0.13's *printf() if we were sure that we had
16385   # a litint >= 0.13 at runtime, but seeing that there is no clean way
16386   # to guarantee that, it is best to just use our own, so we are sure to
16387   # get %$ support. In include/port.h we disable the *printf() macros
16388   # that might have been defined by libintl.
16389   #
16390   # We do this unconditionally whether NLS is used or not so we are sure
16391   # that all Win32 libraries and binaries behave the same.
16392   pgac_need_repl_snprintf=yes
16393 else
16394   pgac_need_repl_snprintf=no
16395
16396 for ac_func in snprintf
16397 do
16398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16412 #define $ac_func innocuous_$ac_func
16413
16414 /* System header to define __stub macros and hopefully few prototypes,
16415     which can conflict with char $ac_func (); below.
16416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16417     <limits.h> exists even on freestanding compilers.  */
16418
16419 #ifdef __STDC__
16420 # include <limits.h>
16421 #else
16422 # include <assert.h>
16423 #endif
16424
16425 #undef $ac_func
16426
16427 /* Override any GCC internal prototype to avoid an error.
16428    Use char because int might match the return type of a GCC
16429    builtin and then its argument prototype would still apply.  */
16430 #ifdef __cplusplus
16431 extern "C"
16432 #endif
16433 char $ac_func ();
16434 /* The GNU C library defines this for functions which it implements
16435     to always fail with ENOSYS.  Some functions are actually named
16436     something starting with __ and the normal name is an alias.  */
16437 #if defined __stub_$ac_func || defined __stub___$ac_func
16438 choke me
16439 #endif
16440
16441 int
16442 main ()
16443 {
16444 return $ac_func ();
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (ac_try="$ac_link"
16451 case "(($ac_try" in
16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453   *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456   (eval "$ac_link") 2>conftest.er1
16457   ac_status=$?
16458   grep -v '^ *+' conftest.er1 >conftest.err
16459   rm -f conftest.er1
16460   cat conftest.err >&5
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); } && {
16463          test -z "$ac_c_werror_flag" ||
16464          test ! -s conftest.err
16465        } && test -s conftest$ac_exeext &&
16466        $as_test_x conftest$ac_exeext; then
16467   eval "$as_ac_var=yes"
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472         eval "$as_ac_var=no"
16473 fi
16474
16475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16476       conftest$ac_exeext conftest.$ac_ext
16477 fi
16478 ac_res=`eval echo '${'$as_ac_var'}'`
16479                { echo "$as_me:$LINENO: result: $ac_res" >&5
16480 echo "${ECHO_T}$ac_res" >&6; }
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482   cat >>confdefs.h <<_ACEOF
16483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16484 _ACEOF
16485
16486 else
16487   pgac_need_repl_snprintf=yes
16488 fi
16489 done
16490
16491
16492 for ac_func in vsnprintf
16493 do
16494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h.  */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h.  */
16506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16508 #define $ac_func innocuous_$ac_func
16509
16510 /* System header to define __stub macros and hopefully few prototypes,
16511     which can conflict with char $ac_func (); below.
16512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16513     <limits.h> exists even on freestanding compilers.  */
16514
16515 #ifdef __STDC__
16516 # include <limits.h>
16517 #else
16518 # include <assert.h>
16519 #endif
16520
16521 #undef $ac_func
16522
16523 /* Override any GCC internal prototype to avoid an error.
16524    Use char because int might match the return type of a GCC
16525    builtin and then its argument prototype would still apply.  */
16526 #ifdef __cplusplus
16527 extern "C"
16528 #endif
16529 char $ac_func ();
16530 /* The GNU C library defines this for functions which it implements
16531     to always fail with ENOSYS.  Some functions are actually named
16532     something starting with __ and the normal name is an alias.  */
16533 #if defined __stub_$ac_func || defined __stub___$ac_func
16534 choke me
16535 #endif
16536
16537 int
16538 main ()
16539 {
16540 return $ac_func ();
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (ac_try="$ac_link"
16547 case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_link") 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } && {
16559          test -z "$ac_c_werror_flag" ||
16560          test ! -s conftest.err
16561        } && test -s conftest$ac_exeext &&
16562        $as_test_x conftest$ac_exeext; then
16563   eval "$as_ac_var=yes"
16564 else
16565   echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568         eval "$as_ac_var=no"
16569 fi
16570
16571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16572       conftest$ac_exeext conftest.$ac_ext
16573 fi
16574 ac_res=`eval echo '${'$as_ac_var'}'`
16575                { echo "$as_me:$LINENO: result: $ac_res" >&5
16576 echo "${ECHO_T}$ac_res" >&6; }
16577 if test `eval echo '${'$as_ac_var'}'` = yes; then
16578   cat >>confdefs.h <<_ACEOF
16579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16580 _ACEOF
16581
16582 else
16583   pgac_need_repl_snprintf=yes
16584 fi
16585 done
16586
16587 fi
16588
16589
16590 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16591 # include/c.h will provide declarations.  Note this is a separate test
16592 # from whether the functions exist in the C library --- there are
16593 # systems that have the functions but don't bother to declare them :-(
16594
16595 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16596 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16597 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606 $ac_includes_default
16607 int
16608 main ()
16609 {
16610 #ifndef snprintf
16611   (void) snprintf;
16612 #endif
16613
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compile") 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } && {
16632          test -z "$ac_c_werror_flag" ||
16633          test ! -s conftest.err
16634        } && test -s conftest.$ac_objext; then
16635   ac_cv_have_decl_snprintf=yes
16636 else
16637   echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640         ac_cv_have_decl_snprintf=no
16641 fi
16642
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 fi
16645 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16646 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16647 if test $ac_cv_have_decl_snprintf = yes; then
16648
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_DECL_SNPRINTF 1
16651 _ACEOF
16652
16653
16654 else
16655   cat >>confdefs.h <<_ACEOF
16656 #define HAVE_DECL_SNPRINTF 0
16657 _ACEOF
16658
16659
16660 fi
16661 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16662 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16663 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16664   echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666   cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h.  */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h.  */
16672 $ac_includes_default
16673 int
16674 main ()
16675 {
16676 #ifndef vsnprintf
16677   (void) vsnprintf;
16678 #endif
16679
16680   ;
16681   return 0;
16682 }
16683 _ACEOF
16684 rm -f conftest.$ac_objext
16685 if { (ac_try="$ac_compile"
16686 case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_compile") 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } && {
16698          test -z "$ac_c_werror_flag" ||
16699          test ! -s conftest.err
16700        } && test -s conftest.$ac_objext; then
16701   ac_cv_have_decl_vsnprintf=yes
16702 else
16703   echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706         ac_cv_have_decl_vsnprintf=no
16707 fi
16708
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 fi
16711 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16712 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16713 if test $ac_cv_have_decl_vsnprintf = yes; then
16714
16715 cat >>confdefs.h <<_ACEOF
16716 #define HAVE_DECL_VSNPRINTF 1
16717 _ACEOF
16718
16719
16720 else
16721   cat >>confdefs.h <<_ACEOF
16722 #define HAVE_DECL_VSNPRINTF 0
16723 _ACEOF
16724
16725
16726 fi
16727
16728
16729
16730
16731 { echo "$as_me:$LINENO: checking for isinf" >&5
16732 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16733 if test "${ac_cv_func_isinf+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742
16743 #include <math.h>
16744 double glob_double;
16745
16746 int
16747 main ()
16748 {
16749 return isinf(glob_double) ? 0 : 1;
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761   (eval "$ac_link") 2>conftest.er1
16762   ac_status=$?
16763   grep -v '^ *+' conftest.er1 >conftest.err
16764   rm -f conftest.er1
16765   cat conftest.err >&5
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } && {
16768          test -z "$ac_c_werror_flag" ||
16769          test ! -s conftest.err
16770        } && test -s conftest$ac_exeext &&
16771        $as_test_x conftest$ac_exeext; then
16772   ac_cv_func_isinf=yes
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777         ac_cv_func_isinf=no
16778 fi
16779
16780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16781       conftest$ac_exeext conftest.$ac_ext
16782 fi
16783 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16784 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16785
16786 if test $ac_cv_func_isinf = yes ; then
16787
16788 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_ISINF 1
16790 _ACEOF
16791
16792 else
16793   case " $LIBOBJS " in
16794   *" isinf.$ac_objext "* ) ;;
16795   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16796  ;;
16797 esac
16798
16799   # Look for a way to implement a substitute for isinf()
16800
16801
16802
16803
16804 for ac_func in fpclass fp_class fp_class_d class
16805 do
16806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16820 #define $ac_func innocuous_$ac_func
16821
16822 /* System header to define __stub macros and hopefully few prototypes,
16823     which can conflict with char $ac_func (); below.
16824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16825     <limits.h> exists even on freestanding compilers.  */
16826
16827 #ifdef __STDC__
16828 # include <limits.h>
16829 #else
16830 # include <assert.h>
16831 #endif
16832
16833 #undef $ac_func
16834
16835 /* Override any GCC internal prototype to avoid an error.
16836    Use char because int might match the return type of a GCC
16837    builtin and then its argument prototype would still apply.  */
16838 #ifdef __cplusplus
16839 extern "C"
16840 #endif
16841 char $ac_func ();
16842 /* The GNU C library defines this for functions which it implements
16843     to always fail with ENOSYS.  Some functions are actually named
16844     something starting with __ and the normal name is an alias.  */
16845 #if defined __stub_$ac_func || defined __stub___$ac_func
16846 choke me
16847 #endif
16848
16849 int
16850 main ()
16851 {
16852 return $ac_func ();
16853   ;
16854   return 0;
16855 }
16856 _ACEOF
16857 rm -f conftest.$ac_objext conftest$ac_exeext
16858 if { (ac_try="$ac_link"
16859 case "(($ac_try" in
16860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861   *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864   (eval "$ac_link") 2>conftest.er1
16865   ac_status=$?
16866   grep -v '^ *+' conftest.er1 >conftest.err
16867   rm -f conftest.er1
16868   cat conftest.err >&5
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } && {
16871          test -z "$ac_c_werror_flag" ||
16872          test ! -s conftest.err
16873        } && test -s conftest$ac_exeext &&
16874        $as_test_x conftest$ac_exeext; then
16875   eval "$as_ac_var=yes"
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880         eval "$as_ac_var=no"
16881 fi
16882
16883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16884       conftest$ac_exeext conftest.$ac_ext
16885 fi
16886 ac_res=`eval echo '${'$as_ac_var'}'`
16887                { echo "$as_me:$LINENO: result: $ac_res" >&5
16888 echo "${ECHO_T}$ac_res" >&6; }
16889 if test `eval echo '${'$as_ac_var'}'` = yes; then
16890   cat >>confdefs.h <<_ACEOF
16891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16892 _ACEOF
16893  break
16894 fi
16895 done
16896
16897 fi
16898
16899 # Some versions of libedit contain strlcpy(); so disregard that library while
16900 # checking for these standard libc functions.
16901 pgac_save_LIBS="$LIBS"
16902 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16919 do
16920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924   echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926   cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h.  */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h.  */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16934 #define $ac_func innocuous_$ac_func
16935
16936 /* System header to define __stub macros and hopefully few prototypes,
16937     which can conflict with char $ac_func (); below.
16938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939     <limits.h> exists even on freestanding compilers.  */
16940
16941 #ifdef __STDC__
16942 # include <limits.h>
16943 #else
16944 # include <assert.h>
16945 #endif
16946
16947 #undef $ac_func
16948
16949 /* Override any GCC internal prototype to avoid an error.
16950    Use char because int might match the return type of a GCC
16951    builtin and then its argument prototype would still apply.  */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 char $ac_func ();
16956 /* The GNU C library defines this for functions which it implements
16957     to always fail with ENOSYS.  Some functions are actually named
16958     something starting with __ and the normal name is an alias.  */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16960 choke me
16961 #endif
16962
16963 int
16964 main ()
16965 {
16966 return $ac_func ();
16967   ;
16968   return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975   *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978   (eval "$ac_link") 2>conftest.er1
16979   ac_status=$?
16980   grep -v '^ *+' conftest.er1 >conftest.err
16981   rm -f conftest.er1
16982   cat conftest.err >&5
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } && {
16985          test -z "$ac_c_werror_flag" ||
16986          test ! -s conftest.err
16987        } && test -s conftest$ac_exeext &&
16988        $as_test_x conftest$ac_exeext; then
16989   eval "$as_ac_var=yes"
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994         eval "$as_ac_var=no"
16995 fi
16996
16997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16998       conftest$ac_exeext conftest.$ac_ext
16999 fi
17000 ac_res=`eval echo '${'$as_ac_var'}'`
17001                { echo "$as_me:$LINENO: result: $ac_res" >&5
17002 echo "${ECHO_T}$ac_res" >&6; }
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004   cat >>confdefs.h <<_ACEOF
17005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17006 _ACEOF
17007
17008 else
17009   case " $LIBOBJS " in
17010   *" $ac_func.$ac_objext "* ) ;;
17011   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17012  ;;
17013 esac
17014
17015 fi
17016 done
17017
17018
17019
17020 LIBS="$pgac_save_LIBS"
17021
17022 # System's version of getaddrinfo(), if any, may be used only if we found
17023 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17024 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17025 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
17026 # because we want to use our own getaddrinfo.c on Windows anyway.)
17027 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17028
17029 for ac_func in getaddrinfo
17030 do
17031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17045 #define $ac_func innocuous_$ac_func
17046
17047 /* System header to define __stub macros and hopefully few prototypes,
17048     which can conflict with char $ac_func (); below.
17049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050     <limits.h> exists even on freestanding compilers.  */
17051
17052 #ifdef __STDC__
17053 # include <limits.h>
17054 #else
17055 # include <assert.h>
17056 #endif
17057
17058 #undef $ac_func
17059
17060 /* Override any GCC internal prototype to avoid an error.
17061    Use char because int might match the return type of a GCC
17062    builtin and then its argument prototype would still apply.  */
17063 #ifdef __cplusplus
17064 extern "C"
17065 #endif
17066 char $ac_func ();
17067 /* The GNU C library defines this for functions which it implements
17068     to always fail with ENOSYS.  Some functions are actually named
17069     something starting with __ and the normal name is an alias.  */
17070 #if defined __stub_$ac_func || defined __stub___$ac_func
17071 choke me
17072 #endif
17073
17074 int
17075 main ()
17076 {
17077 return $ac_func ();
17078   ;
17079   return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086   *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089   (eval "$ac_link") 2>conftest.er1
17090   ac_status=$?
17091   grep -v '^ *+' conftest.er1 >conftest.err
17092   rm -f conftest.er1
17093   cat conftest.err >&5
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); } && {
17096          test -z "$ac_c_werror_flag" ||
17097          test ! -s conftest.err
17098        } && test -s conftest$ac_exeext &&
17099        $as_test_x conftest$ac_exeext; then
17100   eval "$as_ac_var=yes"
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105         eval "$as_ac_var=no"
17106 fi
17107
17108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17109       conftest$ac_exeext conftest.$ac_ext
17110 fi
17111 ac_res=`eval echo '${'$as_ac_var'}'`
17112                { echo "$as_me:$LINENO: result: $ac_res" >&5
17113 echo "${ECHO_T}$ac_res" >&6; }
17114 if test `eval echo '${'$as_ac_var'}'` = yes; then
17115   cat >>confdefs.h <<_ACEOF
17116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17117 _ACEOF
17118
17119 else
17120   case " $LIBOBJS " in
17121   *" $ac_func.$ac_objext "* ) ;;
17122   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17123  ;;
17124 esac
17125
17126 fi
17127 done
17128
17129
17130 else
17131   case " $LIBOBJS " in
17132   *" getaddrinfo.$ac_objext "* ) ;;
17133   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17134  ;;
17135 esac
17136
17137 fi
17138
17139 # Similarly, use system's getopt_long() only if system provides struct option.
17140 # Solaris' getopt() doesn't do what we want for long options, so always use
17141 # our versions on that platform.
17142 if test "$PORTNAME" = "solaris"; then
17143   case " $LIBOBJS " in
17144   *" getopt.$ac_objext "* ) ;;
17145   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17146  ;;
17147 esac
17148
17149   case " $LIBOBJS " in
17150   *" getopt_long.$ac_objext "* ) ;;
17151   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17152  ;;
17153 esac
17154
17155 elif test x"$ac_cv_type_struct_option" = xyes ; then
17156
17157 for ac_func in getopt_long
17158 do
17159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17173 #define $ac_func innocuous_$ac_func
17174
17175 /* System header to define __stub macros and hopefully few prototypes,
17176     which can conflict with char $ac_func (); below.
17177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178     <limits.h> exists even on freestanding compilers.  */
17179
17180 #ifdef __STDC__
17181 # include <limits.h>
17182 #else
17183 # include <assert.h>
17184 #endif
17185
17186 #undef $ac_func
17187
17188 /* Override any GCC internal prototype to avoid an error.
17189    Use char because int might match the return type of a GCC
17190    builtin and then its argument prototype would still apply.  */
17191 #ifdef __cplusplus
17192 extern "C"
17193 #endif
17194 char $ac_func ();
17195 /* The GNU C library defines this for functions which it implements
17196     to always fail with ENOSYS.  Some functions are actually named
17197     something starting with __ and the normal name is an alias.  */
17198 #if defined __stub_$ac_func || defined __stub___$ac_func
17199 choke me
17200 #endif
17201
17202 int
17203 main ()
17204 {
17205 return $ac_func ();
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 rm -f conftest.$ac_objext conftest$ac_exeext
17211 if { (ac_try="$ac_link"
17212 case "(($ac_try" in
17213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214   *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217   (eval "$ac_link") 2>conftest.er1
17218   ac_status=$?
17219   grep -v '^ *+' conftest.er1 >conftest.err
17220   rm -f conftest.er1
17221   cat conftest.err >&5
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } && {
17224          test -z "$ac_c_werror_flag" ||
17225          test ! -s conftest.err
17226        } && test -s conftest$ac_exeext &&
17227        $as_test_x conftest$ac_exeext; then
17228   eval "$as_ac_var=yes"
17229 else
17230   echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17232
17233         eval "$as_ac_var=no"
17234 fi
17235
17236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17237       conftest$ac_exeext conftest.$ac_ext
17238 fi
17239 ac_res=`eval echo '${'$as_ac_var'}'`
17240                { echo "$as_me:$LINENO: result: $ac_res" >&5
17241 echo "${ECHO_T}$ac_res" >&6; }
17242 if test `eval echo '${'$as_ac_var'}'` = yes; then
17243   cat >>confdefs.h <<_ACEOF
17244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17245 _ACEOF
17246
17247 else
17248   case " $LIBOBJS " in
17249   *" $ac_func.$ac_objext "* ) ;;
17250   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17251  ;;
17252 esac
17253
17254 fi
17255 done
17256
17257
17258 else
17259   case " $LIBOBJS " in
17260   *" getopt_long.$ac_objext "* ) ;;
17261   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17262  ;;
17263 esac
17264
17265 fi
17266
17267 # Win32 support
17268 if test "$PORTNAME" = "win32"; then
17269
17270 for ac_func in gettimeofday
17271 do
17272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278   cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17286 #define $ac_func innocuous_$ac_func
17287
17288 /* System header to define __stub macros and hopefully few prototypes,
17289     which can conflict with char $ac_func (); below.
17290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17291     <limits.h> exists even on freestanding compilers.  */
17292
17293 #ifdef __STDC__
17294 # include <limits.h>
17295 #else
17296 # include <assert.h>
17297 #endif
17298
17299 #undef $ac_func
17300
17301 /* Override any GCC internal prototype to avoid an error.
17302    Use char because int might match the return type of a GCC
17303    builtin and then its argument prototype would still apply.  */
17304 #ifdef __cplusplus
17305 extern "C"
17306 #endif
17307 char $ac_func ();
17308 /* The GNU C library defines this for functions which it implements
17309     to always fail with ENOSYS.  Some functions are actually named
17310     something starting with __ and the normal name is an alias.  */
17311 #if defined __stub_$ac_func || defined __stub___$ac_func
17312 choke me
17313 #endif
17314
17315 int
17316 main ()
17317 {
17318 return $ac_func ();
17319   ;
17320   return 0;
17321 }
17322 _ACEOF
17323 rm -f conftest.$ac_objext conftest$ac_exeext
17324 if { (ac_try="$ac_link"
17325 case "(($ac_try" in
17326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327   *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330   (eval "$ac_link") 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } && {
17337          test -z "$ac_c_werror_flag" ||
17338          test ! -s conftest.err
17339        } && test -s conftest$ac_exeext &&
17340        $as_test_x conftest$ac_exeext; then
17341   eval "$as_ac_var=yes"
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346         eval "$as_ac_var=no"
17347 fi
17348
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350       conftest$ac_exeext conftest.$ac_ext
17351 fi
17352 ac_res=`eval echo '${'$as_ac_var'}'`
17353                { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356   cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358 _ACEOF
17359
17360 else
17361   case " $LIBOBJS " in
17362   *" $ac_func.$ac_objext "* ) ;;
17363   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17364  ;;
17365 esac
17366
17367 fi
17368 done
17369
17370
17371 case " $LIBOBJS " in
17372   *" kill.$ac_objext "* ) ;;
17373   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17374  ;;
17375 esac
17376
17377 case " $LIBOBJS " in
17378   *" open.$ac_objext "* ) ;;
17379   *) LIBOBJS="$LIBOBJS open.$ac_objext"
17380  ;;
17381 esac
17382
17383 case " $LIBOBJS " in
17384   *" rand.$ac_objext "* ) ;;
17385   *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17386  ;;
17387 esac
17388
17389 case " $LIBOBJS " in
17390   *" win32error.$ac_objext "* ) ;;
17391   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17392  ;;
17393 esac
17394
17395
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_SYMLINK 1
17398 _ACEOF
17399
17400 fi
17401
17402 if test "$with_readline" = yes; then
17403   { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17404 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17405 cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411 #include <stdio.h>
17412 #ifdef HAVE_READLINE_READLINE_H
17413 # include <readline/readline.h>
17414 #elif defined(HAVE_READLINE_H)
17415 # include <readline.h>
17416 #endif
17417
17418 int
17419 main ()
17420 {
17421 rl_completion_append_character = 'x';
17422   ;
17423   return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest.$ac_objext conftest$ac_exeext
17427 if { (ac_try="$ac_link"
17428 case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_link") 2>conftest.er1
17434   ac_status=$?
17435   grep -v '^ *+' conftest.er1 >conftest.err
17436   rm -f conftest.er1
17437   cat conftest.err >&5
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); } && {
17440          test -z "$ac_c_werror_flag" ||
17441          test ! -s conftest.err
17442        } && test -s conftest$ac_exeext &&
17443        $as_test_x conftest$ac_exeext; then
17444   { echo "$as_me:$LINENO: result: yes" >&5
17445 echo "${ECHO_T}yes" >&6; }
17446
17447 cat >>confdefs.h <<\_ACEOF
17448 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17449 _ACEOF
17450
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455         { echo "$as_me:$LINENO: result: no" >&5
17456 echo "${ECHO_T}no" >&6; }
17457 fi
17458
17459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17460       conftest$ac_exeext conftest.$ac_ext
17461
17462
17463 for ac_func in rl_completion_matches rl_filename_completion_function
17464 do
17465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471   cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17479 #define $ac_func innocuous_$ac_func
17480
17481 /* System header to define __stub macros and hopefully few prototypes,
17482     which can conflict with char $ac_func (); below.
17483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17484     <limits.h> exists even on freestanding compilers.  */
17485
17486 #ifdef __STDC__
17487 # include <limits.h>
17488 #else
17489 # include <assert.h>
17490 #endif
17491
17492 #undef $ac_func
17493
17494 /* Override any GCC internal prototype to avoid an error.
17495    Use char because int might match the return type of a GCC
17496    builtin and then its argument prototype would still apply.  */
17497 #ifdef __cplusplus
17498 extern "C"
17499 #endif
17500 char $ac_func ();
17501 /* The GNU C library defines this for functions which it implements
17502     to always fail with ENOSYS.  Some functions are actually named
17503     something starting with __ and the normal name is an alias.  */
17504 #if defined __stub_$ac_func || defined __stub___$ac_func
17505 choke me
17506 #endif
17507
17508 int
17509 main ()
17510 {
17511 return $ac_func ();
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_link") 2>conftest.er1
17524   ac_status=$?
17525   grep -v '^ *+' conftest.er1 >conftest.err
17526   rm -f conftest.er1
17527   cat conftest.err >&5
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } && {
17530          test -z "$ac_c_werror_flag" ||
17531          test ! -s conftest.err
17532        } && test -s conftest$ac_exeext &&
17533        $as_test_x conftest$ac_exeext; then
17534   eval "$as_ac_var=yes"
17535 else
17536   echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539         eval "$as_ac_var=no"
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543       conftest$ac_exeext conftest.$ac_ext
17544 fi
17545 ac_res=`eval echo '${'$as_ac_var'}'`
17546                { echo "$as_me:$LINENO: result: $ac_res" >&5
17547 echo "${ECHO_T}$ac_res" >&6; }
17548 if test `eval echo '${'$as_ac_var'}'` = yes; then
17549   cat >>confdefs.h <<_ACEOF
17550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17551 _ACEOF
17552
17553 fi
17554 done
17555
17556
17557 for ac_func in replace_history_entry
17558 do
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17573 #define $ac_func innocuous_$ac_func
17574
17575 /* System header to define __stub macros and hopefully few prototypes,
17576     which can conflict with char $ac_func (); below.
17577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578     <limits.h> exists even on freestanding compilers.  */
17579
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17585
17586 #undef $ac_func
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589    Use char because int might match the return type of a GCC
17590    builtin and then its argument prototype would still apply.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596     to always fail with ENOSYS.  Some functions are actually named
17597     something starting with __ and the normal name is an alias.  */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 choke me
17600 #endif
17601
17602 int
17603 main ()
17604 {
17605 return $ac_func ();
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && {
17624          test -z "$ac_c_werror_flag" ||
17625          test ! -s conftest.err
17626        } && test -s conftest$ac_exeext &&
17627        $as_test_x conftest$ac_exeext; then
17628   eval "$as_ac_var=yes"
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633         eval "$as_ac_var=no"
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637       conftest$ac_exeext conftest.$ac_ext
17638 fi
17639 ac_res=`eval echo '${'$as_ac_var'}'`
17640                { echo "$as_me:$LINENO: result: $ac_res" >&5
17641 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643   cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 _ACEOF
17646
17647 fi
17648 done
17649
17650 fi
17651
17652
17653 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17654 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661 #include <setjmp.h>
17662 int
17663 main ()
17664 {
17665 sigjmp_buf x; sigsetjmp(x, 1);
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (ac_try="$ac_link"
17672 case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_link") 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && {
17684          test -z "$ac_c_werror_flag" ||
17685          test ! -s conftest.err
17686        } && test -s conftest$ac_exeext &&
17687        $as_test_x conftest$ac_exeext; then
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_SIGSETJMP 1
17691 _ACEOF
17692
17693 { echo "$as_me:$LINENO: result: yes" >&5
17694 echo "${ECHO_T}yes" >&6; }
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699         { echo "$as_me:$LINENO: result: no" >&5
17700 echo "${ECHO_T}no" >&6; }
17701 fi
17702
17703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17704       conftest$ac_exeext conftest.$ac_ext
17705
17706 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17707 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17708 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h.  */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h.  */
17717 #include <signal.h>
17718 /* NetBSD declares sys_siglist in unistd.h.  */
17719 #ifdef HAVE_UNISTD_H
17720 # include <unistd.h>
17721 #endif
17722
17723
17724 int
17725 main ()
17726 {
17727 #ifndef sys_siglist
17728   (void) sys_siglist;
17729 #endif
17730
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext
17736 if { (ac_try="$ac_compile"
17737 case "(($ac_try" in
17738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739   *) ac_try_echo=$ac_try;;
17740 esac
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742   (eval "$ac_compile") 2>conftest.er1
17743   ac_status=$?
17744   grep -v '^ *+' conftest.er1 >conftest.err
17745   rm -f conftest.er1
17746   cat conftest.err >&5
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); } && {
17749          test -z "$ac_c_werror_flag" ||
17750          test ! -s conftest.err
17751        } && test -s conftest.$ac_objext; then
17752   ac_cv_have_decl_sys_siglist=yes
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757         ac_cv_have_decl_sys_siglist=no
17758 fi
17759
17760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17761 fi
17762 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17763 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17764 if test $ac_cv_have_decl_sys_siglist = yes; then
17765
17766 cat >>confdefs.h <<_ACEOF
17767 #define HAVE_DECL_SYS_SIGLIST 1
17768 _ACEOF
17769
17770
17771 else
17772   cat >>confdefs.h <<_ACEOF
17773 #define HAVE_DECL_SYS_SIGLIST 0
17774 _ACEOF
17775
17776
17777 fi
17778
17779
17780
17781
17782 { echo "$as_me:$LINENO: checking for syslog" >&5
17783 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17784 if test "${ac_cv_func_syslog+set}" = set; then
17785   echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787   cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h.  */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h.  */
17793 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17795 #define syslog innocuous_syslog
17796
17797 /* System header to define __stub macros and hopefully few prototypes,
17798     which can conflict with char syslog (); below.
17799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800     <limits.h> exists even on freestanding compilers.  */
17801
17802 #ifdef __STDC__
17803 # include <limits.h>
17804 #else
17805 # include <assert.h>
17806 #endif
17807
17808 #undef syslog
17809
17810 /* Override any GCC internal prototype to avoid an error.
17811    Use char because int might match the return type of a GCC
17812    builtin and then its argument prototype would still apply.  */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char syslog ();
17817 /* The GNU C library defines this for functions which it implements
17818     to always fail with ENOSYS.  Some functions are actually named
17819     something starting with __ and the normal name is an alias.  */
17820 #if defined __stub_syslog || defined __stub___syslog
17821 choke me
17822 #endif
17823
17824 int
17825 main ()
17826 {
17827 return syslog ();
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_link") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } && {
17846          test -z "$ac_c_werror_flag" ||
17847          test ! -s conftest.err
17848        } && test -s conftest$ac_exeext &&
17849        $as_test_x conftest$ac_exeext; then
17850   ac_cv_func_syslog=yes
17851 else
17852   echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855         ac_cv_func_syslog=no
17856 fi
17857
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859       conftest$ac_exeext conftest.$ac_ext
17860 fi
17861 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17862 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17863 if test $ac_cv_func_syslog = yes; then
17864   if test "${ac_cv_header_syslog_h+set}" = set; then
17865   { echo "$as_me:$LINENO: checking for syslog.h" >&5
17866 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17867 if test "${ac_cv_header_syslog_h+set}" = set; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 fi
17870 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17871 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17872 else
17873   # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17875 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h.  */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h.  */
17882 $ac_includes_default
17883 #include <syslog.h>
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_compile") 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } && {
17899          test -z "$ac_c_werror_flag" ||
17900          test ! -s conftest.err
17901        } && test -s conftest.$ac_objext; then
17902   ac_header_compiler=yes
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907         ac_header_compiler=no
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17913
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17916 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923 #include <syslog.h>
17924 _ACEOF
17925 if { (ac_try="$ac_cpp conftest.$ac_ext"
17926 case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17932   ac_status=$?
17933   grep -v '^ *+' conftest.er1 >conftest.err
17934   rm -f conftest.er1
17935   cat conftest.err >&5
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } >/dev/null && {
17938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939          test ! -s conftest.err
17940        }; then
17941   ac_header_preproc=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946   ac_header_preproc=no
17947 fi
17948
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17952
17953 # So?  What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17955   yes:no: )
17956     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17957 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17958     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17959 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17960     ac_header_preproc=yes
17961     ;;
17962   no:yes:* )
17963     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17964 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17965     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
17966 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
17967     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17968 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17969     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
17970 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17971     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17973     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17974 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17975     ( cat <<\_ASBOX
17976 ## ---------------------------------------- ##
17977 ## Report this to pgsql-bugs@postgresql.org ##
17978 ## ---------------------------------------- ##
17979 _ASBOX
17980      ) | sed "s/^/$as_me: WARNING:     /" >&2
17981     ;;
17982 esac
17983 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17984 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17985 if test "${ac_cv_header_syslog_h+set}" = set; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   ac_cv_header_syslog_h=$ac_header_preproc
17989 fi
17990 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17991 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17992
17993 fi
17994 if test $ac_cv_header_syslog_h = yes; then
17995
17996 cat >>confdefs.h <<\_ACEOF
17997 #define HAVE_SYSLOG 1
17998 _ACEOF
17999
18000 fi
18001
18002
18003 fi
18004
18005
18006 { echo "$as_me:$LINENO: checking for optreset" >&5
18007 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18008 if test "${pgac_cv_var_int_optreset+set}" = set; then
18009   echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011   cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h.  */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h.  */
18017 #include <unistd.h>
18018 int
18019 main ()
18020 {
18021 extern int optreset; optreset = 1;
18022   ;
18023   return 0;
18024 }
18025 _ACEOF
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030   *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033   (eval "$ac_link") 2>conftest.er1
18034   ac_status=$?
18035   grep -v '^ *+' conftest.er1 >conftest.err
18036   rm -f conftest.er1
18037   cat conftest.err >&5
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } && {
18040          test -z "$ac_c_werror_flag" ||
18041          test ! -s conftest.err
18042        } && test -s conftest$ac_exeext &&
18043        $as_test_x conftest$ac_exeext; then
18044   pgac_cv_var_int_optreset=yes
18045 else
18046   echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18048
18049         pgac_cv_var_int_optreset=no
18050 fi
18051
18052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18053       conftest$ac_exeext conftest.$ac_ext
18054 fi
18055 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18056 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18057 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18058
18059 cat >>confdefs.h <<\_ACEOF
18060 #define HAVE_INT_OPTRESET 1
18061 _ACEOF
18062
18063 fi
18064
18065
18066
18067 for ac_func in strtoll strtoq
18068 do
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18083 #define $ac_func innocuous_$ac_func
18084
18085 /* System header to define __stub macros and hopefully few prototypes,
18086     which can conflict with char $ac_func (); below.
18087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088     <limits.h> exists even on freestanding compilers.  */
18089
18090 #ifdef __STDC__
18091 # include <limits.h>
18092 #else
18093 # include <assert.h>
18094 #endif
18095
18096 #undef $ac_func
18097
18098 /* Override any GCC internal prototype to avoid an error.
18099    Use char because int might match the return type of a GCC
18100    builtin and then its argument prototype would still apply.  */
18101 #ifdef __cplusplus
18102 extern "C"
18103 #endif
18104 char $ac_func ();
18105 /* The GNU C library defines this for functions which it implements
18106     to always fail with ENOSYS.  Some functions are actually named
18107     something starting with __ and the normal name is an alias.  */
18108 #if defined __stub_$ac_func || defined __stub___$ac_func
18109 choke me
18110 #endif
18111
18112 int
18113 main ()
18114 {
18115 return $ac_func ();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_link") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest$ac_exeext &&
18137        $as_test_x conftest$ac_exeext; then
18138   eval "$as_ac_var=yes"
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         eval "$as_ac_var=no"
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147       conftest$ac_exeext conftest.$ac_ext
18148 fi
18149 ac_res=`eval echo '${'$as_ac_var'}'`
18150                { echo "$as_me:$LINENO: result: $ac_res" >&5
18151 echo "${ECHO_T}$ac_res" >&6; }
18152 if test `eval echo '${'$as_ac_var'}'` = yes; then
18153   cat >>confdefs.h <<_ACEOF
18154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18155 _ACEOF
18156  break
18157 fi
18158 done
18159
18160
18161
18162 for ac_func in strtoull strtouq
18163 do
18164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18168   echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170   cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18178 #define $ac_func innocuous_$ac_func
18179
18180 /* System header to define __stub macros and hopefully few prototypes,
18181     which can conflict with char $ac_func (); below.
18182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183     <limits.h> exists even on freestanding compilers.  */
18184
18185 #ifdef __STDC__
18186 # include <limits.h>
18187 #else
18188 # include <assert.h>
18189 #endif
18190
18191 #undef $ac_func
18192
18193 /* Override any GCC internal prototype to avoid an error.
18194    Use char because int might match the return type of a GCC
18195    builtin and then its argument prototype would still apply.  */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char $ac_func ();
18200 /* The GNU C library defines this for functions which it implements
18201     to always fail with ENOSYS.  Some functions are actually named
18202     something starting with __ and the normal name is an alias.  */
18203 #if defined __stub_$ac_func || defined __stub___$ac_func
18204 choke me
18205 #endif
18206
18207 int
18208 main ()
18209 {
18210 return $ac_func ();
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219   *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222   (eval "$ac_link") 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } && {
18229          test -z "$ac_c_werror_flag" ||
18230          test ! -s conftest.err
18231        } && test -s conftest$ac_exeext &&
18232        $as_test_x conftest$ac_exeext; then
18233   eval "$as_ac_var=yes"
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238         eval "$as_ac_var=no"
18239 fi
18240
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242       conftest$ac_exeext conftest.$ac_ext
18243 fi
18244 ac_res=`eval echo '${'$as_ac_var'}'`
18245                { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_var'}'` = yes; then
18248   cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250 _ACEOF
18251  break
18252 fi
18253 done
18254
18255
18256 # Check for one of atexit() or on_exit()
18257
18258 for ac_func in atexit
18259 do
18260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264   echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266   cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h.  */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h.  */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18274 #define $ac_func innocuous_$ac_func
18275
18276 /* System header to define __stub macros and hopefully few prototypes,
18277     which can conflict with char $ac_func (); below.
18278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279     <limits.h> exists even on freestanding compilers.  */
18280
18281 #ifdef __STDC__
18282 # include <limits.h>
18283 #else
18284 # include <assert.h>
18285 #endif
18286
18287 #undef $ac_func
18288
18289 /* Override any GCC internal prototype to avoid an error.
18290    Use char because int might match the return type of a GCC
18291    builtin and then its argument prototype would still apply.  */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 char $ac_func ();
18296 /* The GNU C library defines this for functions which it implements
18297     to always fail with ENOSYS.  Some functions are actually named
18298     something starting with __ and the normal name is an alias.  */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18300 choke me
18301 #endif
18302
18303 int
18304 main ()
18305 {
18306 return $ac_func ();
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_link") 2>conftest.er1
18319   ac_status=$?
18320   grep -v '^ *+' conftest.er1 >conftest.err
18321   rm -f conftest.er1
18322   cat conftest.err >&5
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); } && {
18325          test -z "$ac_c_werror_flag" ||
18326          test ! -s conftest.err
18327        } && test -s conftest$ac_exeext &&
18328        $as_test_x conftest$ac_exeext; then
18329   eval "$as_ac_var=yes"
18330 else
18331   echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334         eval "$as_ac_var=no"
18335 fi
18336
18337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18338       conftest$ac_exeext conftest.$ac_ext
18339 fi
18340 ac_res=`eval echo '${'$as_ac_var'}'`
18341                { echo "$as_me:$LINENO: result: $ac_res" >&5
18342 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_var'}'` = yes; then
18344   cat >>confdefs.h <<_ACEOF
18345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18346 _ACEOF
18347
18348 else
18349
18350 for ac_func in on_exit
18351 do
18352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18366 #define $ac_func innocuous_$ac_func
18367
18368 /* System header to define __stub macros and hopefully few prototypes,
18369     which can conflict with char $ac_func (); below.
18370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18371     <limits.h> exists even on freestanding compilers.  */
18372
18373 #ifdef __STDC__
18374 # include <limits.h>
18375 #else
18376 # include <assert.h>
18377 #endif
18378
18379 #undef $ac_func
18380
18381 /* Override any GCC internal prototype to avoid an error.
18382    Use char because int might match the return type of a GCC
18383    builtin and then its argument prototype would still apply.  */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 char $ac_func ();
18388 /* The GNU C library defines this for functions which it implements
18389     to always fail with ENOSYS.  Some functions are actually named
18390     something starting with __ and the normal name is an alias.  */
18391 #if defined __stub_$ac_func || defined __stub___$ac_func
18392 choke me
18393 #endif
18394
18395 int
18396 main ()
18397 {
18398 return $ac_func ();
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410   (eval "$ac_link") 2>conftest.er1
18411   ac_status=$?
18412   grep -v '^ *+' conftest.er1 >conftest.err
18413   rm -f conftest.er1
18414   cat conftest.err >&5
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } && {
18417          test -z "$ac_c_werror_flag" ||
18418          test ! -s conftest.err
18419        } && test -s conftest$ac_exeext &&
18420        $as_test_x conftest$ac_exeext; then
18421   eval "$as_ac_var=yes"
18422 else
18423   echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426         eval "$as_ac_var=no"
18427 fi
18428
18429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18430       conftest$ac_exeext conftest.$ac_ext
18431 fi
18432 ac_res=`eval echo '${'$as_ac_var'}'`
18433                { echo "$as_me:$LINENO: result: $ac_res" >&5
18434 echo "${ECHO_T}$ac_res" >&6; }
18435 if test `eval echo '${'$as_ac_var'}'` = yes; then
18436   cat >>confdefs.h <<_ACEOF
18437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18438 _ACEOF
18439
18440 else
18441   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18442 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18443    { (exit 1); exit 1; }; }
18444 fi
18445 done
18446
18447 fi
18448 done
18449
18450
18451
18452 for ac_func in fseeko
18453 do
18454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18458   echo $ECHO_N "(cached) $ECHO_C" >&6
18459 else
18460   cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h.  */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h.  */
18466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18468 #define $ac_func innocuous_$ac_func
18469
18470 /* System header to define __stub macros and hopefully few prototypes,
18471     which can conflict with char $ac_func (); below.
18472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18473     <limits.h> exists even on freestanding compilers.  */
18474
18475 #ifdef __STDC__
18476 # include <limits.h>
18477 #else
18478 # include <assert.h>
18479 #endif
18480
18481 #undef $ac_func
18482
18483 /* Override any GCC internal prototype to avoid an error.
18484    Use char because int might match the return type of a GCC
18485    builtin and then its argument prototype would still apply.  */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 char $ac_func ();
18490 /* The GNU C library defines this for functions which it implements
18491     to always fail with ENOSYS.  Some functions are actually named
18492     something starting with __ and the normal name is an alias.  */
18493 #if defined __stub_$ac_func || defined __stub___$ac_func
18494 choke me
18495 #endif
18496
18497 int
18498 main ()
18499 {
18500 return $ac_func ();
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (ac_try="$ac_link"
18507 case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_link") 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } && {
18519          test -z "$ac_c_werror_flag" ||
18520          test ! -s conftest.err
18521        } && test -s conftest$ac_exeext &&
18522        $as_test_x conftest$ac_exeext; then
18523   eval "$as_ac_var=yes"
18524 else
18525   echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18527
18528         eval "$as_ac_var=no"
18529 fi
18530
18531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18532       conftest$ac_exeext conftest.$ac_ext
18533 fi
18534 ac_res=`eval echo '${'$as_ac_var'}'`
18535                { echo "$as_me:$LINENO: result: $ac_res" >&5
18536 echo "${ECHO_T}$ac_res" >&6; }
18537 if test `eval echo '${'$as_ac_var'}'` = yes; then
18538   cat >>confdefs.h <<_ACEOF
18539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18540 _ACEOF
18541
18542 else
18543   case " $LIBOBJS " in
18544   *" $ac_func.$ac_objext "* ) ;;
18545   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18546  ;;
18547 esac
18548
18549 fi
18550 done
18551
18552
18553 case $host_os in
18554         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18555         bsdi*|netbsd*)
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_FSEEKO 1
18559 _ACEOF
18560
18561                 ac_cv_func_fseeko=yes;;
18562         *)
18563                 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18564 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18565 if test "${ac_cv_sys_largefile_source+set}" = set; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568   while :; do
18569   cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575 #include <sys/types.h> /* for off_t */
18576      #include <stdio.h>
18577 int
18578 main ()
18579 {
18580 int (*fp) (FILE *, off_t, int) = fseeko;
18581      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18582   ;
18583   return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590   *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593   (eval "$ac_link") 2>conftest.er1
18594   ac_status=$?
18595   grep -v '^ *+' conftest.er1 >conftest.err
18596   rm -f conftest.er1
18597   cat conftest.err >&5
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); } && {
18600          test -z "$ac_c_werror_flag" ||
18601          test ! -s conftest.err
18602        } && test -s conftest$ac_exeext &&
18603        $as_test_x conftest$ac_exeext; then
18604   ac_cv_sys_largefile_source=no; break
18605 else
18606   echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609
18610 fi
18611
18612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18613       conftest$ac_exeext conftest.$ac_ext
18614   cat >conftest.$ac_ext <<_ACEOF
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620 #define _LARGEFILE_SOURCE 1
18621 #include <sys/types.h> /* for off_t */
18622      #include <stdio.h>
18623 int
18624 main ()
18625 {
18626 int (*fp) (FILE *, off_t, int) = fseeko;
18627      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18628   ;
18629   return 0;
18630 }
18631 _ACEOF
18632 rm -f conftest.$ac_objext conftest$ac_exeext
18633 if { (ac_try="$ac_link"
18634 case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_link") 2>conftest.er1
18640   ac_status=$?
18641   grep -v '^ *+' conftest.er1 >conftest.err
18642   rm -f conftest.er1
18643   cat conftest.err >&5
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); } && {
18646          test -z "$ac_c_werror_flag" ||
18647          test ! -s conftest.err
18648        } && test -s conftest$ac_exeext &&
18649        $as_test_x conftest$ac_exeext; then
18650   ac_cv_sys_largefile_source=1; break
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655
18656 fi
18657
18658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18659       conftest$ac_exeext conftest.$ac_ext
18660   ac_cv_sys_largefile_source=unknown
18661   break
18662 done
18663 fi
18664 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18665 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18666 case $ac_cv_sys_largefile_source in #(
18667   no | unknown) ;;
18668   *)
18669 cat >>confdefs.h <<_ACEOF
18670 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18671 _ACEOF
18672 ;;
18673 esac
18674 rm -f conftest*
18675
18676 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18677 # in glibc 2.1.3, but that breaks too many other things.
18678 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18679 if test $ac_cv_sys_largefile_source != unknown; then
18680
18681 cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_FSEEKO 1
18683 _ACEOF
18684
18685 fi
18686 ;;
18687 esac
18688
18689
18690 #
18691 # Pthreads
18692 #
18693 # For each platform, we need to know about any special compile and link
18694 # libraries, and whether the normal C function names are thread-safe.
18695 # See the comment at the top of src/port/thread.c for more information.
18696 # WIN32 doesn't need the pthread tests;  it always uses threads
18697 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18698
18699
18700
18701 ac_ext=c
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706
18707 acx_pthread_ok=no
18708
18709 # We used to check for pthread.h first, but this fails if pthread.h
18710 # requires special compiler flags (e.g. on True64 or Sequent).
18711 # It gets checked for in the link test anyway.
18712
18713 # First of all, check if the user has set any of the PTHREAD_LIBS,
18714 # etcetera environment variables, and if threads linking works using
18715 # them:
18716 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18717         save_CFLAGS="$CFLAGS"
18718         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18719         save_LIBS="$LIBS"
18720         LIBS="$PTHREAD_LIBS $LIBS"
18721         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18722 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18723         cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h.  */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h.  */
18729
18730 /* Override any GCC internal prototype to avoid an error.
18731    Use char because int might match the return type of a GCC
18732    builtin and then its argument prototype would still apply.  */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char pthread_join ();
18737 int
18738 main ()
18739 {
18740 return pthread_join ();
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749   *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752   (eval "$ac_link") 2>conftest.er1
18753   ac_status=$?
18754   grep -v '^ *+' conftest.er1 >conftest.err
18755   rm -f conftest.er1
18756   cat conftest.err >&5
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); } && {
18759          test -z "$ac_c_werror_flag" ||
18760          test ! -s conftest.err
18761        } && test -s conftest$ac_exeext &&
18762        $as_test_x conftest$ac_exeext; then
18763   acx_pthread_ok=yes
18764 else
18765   echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18767
18768
18769 fi
18770
18771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18772       conftest$ac_exeext conftest.$ac_ext
18773         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18774 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18775         if test x"$acx_pthread_ok" = xno; then
18776                 PTHREAD_LIBS=""
18777                 PTHREAD_CFLAGS=""
18778         fi
18779         LIBS="$save_LIBS"
18780         CFLAGS="$save_CFLAGS"
18781 fi
18782
18783 # We must check for the threads library under a number of different
18784 # names; the ordering is very important because some systems
18785 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18786 # libraries is broken (non-POSIX).
18787
18788 # Create a list of thread flags to try.  Items starting with a "-" are
18789 # C compiler flags, and other items are library names, except for "none"
18790 # which indicates that we try without any flags at all, and "pthread-config"
18791 # which is a program returning the flags for the Pth emulation library.
18792
18793 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18794
18795 # The ordering *is* (sometimes) important.  Some notes on the
18796 # individual items follow:
18797
18798 # pthreads: AIX (must check this before -lpthread)
18799 # none: in case threads are in libc; should be tried before -Kthread and
18800 #       other compiler flags to prevent continual compiler warnings
18801 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18802 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18803 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18804 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18805 # -pthreads: Solaris/gcc
18806 # -mthreads: Mingw32/gcc, Lynx/gcc
18807 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18808 #      doesn't hurt to check since this sometimes defines pthreads too;
18809 #      also defines -D_REENTRANT)
18810 # pthread: Linux, etcetera
18811 # --thread-safe: KAI C++
18812 # pthread-config: use pthread-config program (for GNU Pth library)
18813
18814 case "${host_cpu}-${host_os}" in
18815         *solaris*)
18816
18817         # On Solaris (at least, for some versions), libc contains stubbed
18818         # (non-functional) versions of the pthreads routines, so link-based
18819         # tests will erroneously succeed.  (We need to link with -pthread or
18820         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18821         # a function called by this macro, so we could check for that, but
18822         # who knows whether they'll stub that too in a future libc.)  So,
18823         # we'll just look for -pthreads and -lpthread first:
18824
18825         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18826         ;;
18827 esac
18828
18829 if test x"$acx_pthread_ok" = xno; then
18830 for flag in $acx_pthread_flags; do
18831
18832         tryPTHREAD_CFLAGS=""
18833         tryPTHREAD_LIBS=""
18834         case $flag in
18835                 none)
18836                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18837 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18838                 ;;
18839
18840                 -*)
18841                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18842 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18843                 tryPTHREAD_CFLAGS="$flag"
18844                 ;;
18845
18846                 pthread-config)
18847                 # skip this if we already have flags defined, for PostgreSQL
18848                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18849                 # Extract the first word of "pthread-config", so it can be a program name with args.
18850 set dummy pthread-config; ac_word=$2
18851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18853 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   if test -n "$acx_pthread_config"; then
18857   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18858 else
18859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860 for as_dir in $PATH
18861 do
18862   IFS=$as_save_IFS
18863   test -z "$as_dir" && as_dir=.
18864   for ac_exec_ext in '' $ac_executable_extensions; do
18865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18866     ac_cv_prog_acx_pthread_config="yes"
18867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18868     break 2
18869   fi
18870 done
18871 done
18872 IFS=$as_save_IFS
18873
18874   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18875 fi
18876 fi
18877 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18878 if test -n "$acx_pthread_config"; then
18879   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18880 echo "${ECHO_T}$acx_pthread_config" >&6; }
18881 else
18882   { echo "$as_me:$LINENO: result: no" >&5
18883 echo "${ECHO_T}no" >&6; }
18884 fi
18885
18886
18887                 if test x"$acx_pthread_config" = xno; then continue; fi
18888                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18889                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18890                 ;;
18891
18892                 *)
18893                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18894 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18895                 tryPTHREAD_LIBS="-l$flag"
18896                 ;;
18897         esac
18898
18899         save_LIBS="$LIBS"
18900         save_CFLAGS="$CFLAGS"
18901         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18902         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18903
18904         # Check for various functions.  We must include pthread.h,
18905         # since some functions may be macros.  (On the Sequent, we
18906         # need a special flag -Kthread to make this header compile.)
18907         # We check for pthread_join because it is in -lpthread on IRIX
18908         # while pthread_create is in libc.  We check for pthread_attr_init
18909         # due to DEC craziness with -lpthreads.  We check for
18910         # pthread_cleanup_push because it is one of the few pthread
18911         # functions on Solaris that doesn't have a non-functional libc stub.
18912         # We try pthread_create on general principles.
18913         cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h.  */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h.  */
18919 #include <pthread.h>
18920 int
18921 main ()
18922 {
18923 pthread_t th; pthread_join(th, 0);
18924                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18925                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18926   ;
18927   return 0;
18928 }
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_link") 2>conftest.er1
18938   ac_status=$?
18939   grep -v '^ *+' conftest.er1 >conftest.err
18940   rm -f conftest.er1
18941   cat conftest.err >&5
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); } && {
18944          test -z "$ac_c_werror_flag" ||
18945          test ! -s conftest.err
18946        } && test -s conftest$ac_exeext &&
18947        $as_test_x conftest$ac_exeext; then
18948   acx_pthread_ok=yes
18949 else
18950   echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18952
18953         acx_pthread_ok=no
18954 fi
18955
18956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18957       conftest$ac_exeext conftest.$ac_ext
18958
18959         if test "x$acx_pthread_ok" = xyes; then
18960             # Don't use options that are ignored by the compiler.
18961             # We find them by checking stderror.
18962             cat >conftest.$ac_ext <<_ACEOF
18963 int
18964 main (int argc, char **argv)
18965 {
18966   (void) argc;
18967   (void) argv;
18968   return 0;
18969 }
18970 _ACEOF
18971             rm -f conftest.$ac_objext conftest$ac_exeext
18972             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18973                 # we continue with more flags because Linux needs -lpthread
18974                 # for libpq builds on PostgreSQL.  The test above only
18975                 # tests for building binaries, not shared libraries.
18976                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18977                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18978             else   acx_pthread_ok=no
18979             fi
18980         fi
18981
18982         LIBS="$save_LIBS"
18983         CFLAGS="$save_CFLAGS"
18984
18985         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18986 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18987 done
18988 fi
18989
18990 # Various other checks:
18991 if test "x$acx_pthread_ok" = xyes; then
18992         save_LIBS="$LIBS"
18993         LIBS="$PTHREAD_LIBS $LIBS"
18994         save_CFLAGS="$CFLAGS"
18995         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18996
18997         # Detect AIX lossage: threads are created detached by default
18998         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18999         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19000 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19001         cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007 #include <pthread.h>
19008 int
19009 main ()
19010 {
19011 int attr=PTHREAD_CREATE_JOINABLE;
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_link") 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } && {
19030          test -z "$ac_c_werror_flag" ||
19031          test ! -s conftest.err
19032        } && test -s conftest$ac_exeext &&
19033        $as_test_x conftest$ac_exeext; then
19034   ok=PTHREAD_CREATE_JOINABLE
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         ok=unknown
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043       conftest$ac_exeext conftest.$ac_ext
19044         if test x"$ok" = xunknown; then
19045                 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 #include <pthread.h>
19052 int
19053 main ()
19054 {
19055 int attr=PTHREAD_CREATE_UNDETACHED;
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064   *) ac_try_echo=$ac_try;;
19065 esac
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067   (eval "$ac_link") 2>conftest.er1
19068   ac_status=$?
19069   grep -v '^ *+' conftest.er1 >conftest.err
19070   rm -f conftest.er1
19071   cat conftest.err >&5
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); } && {
19074          test -z "$ac_c_werror_flag" ||
19075          test ! -s conftest.err
19076        } && test -s conftest$ac_exeext &&
19077        $as_test_x conftest$ac_exeext; then
19078   ok=PTHREAD_CREATE_UNDETACHED
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083         ok=unknown
19084 fi
19085
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087       conftest$ac_exeext conftest.$ac_ext
19088         fi
19089         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19090
19091 cat >>confdefs.h <<\_ACEOF
19092 #define PTHREAD_CREATE_JOINABLE $ok
19093 _ACEOF
19094
19095         fi
19096         { echo "$as_me:$LINENO: result: ${ok}" >&5
19097 echo "${ECHO_T}${ok}" >&6; }
19098         if test x"$ok" = xunknown; then
19099                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19100 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19101         fi
19102
19103         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19104 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19105         flag=no
19106 # We always add these in PostgreSQL
19107 #       case "${host_cpu}-${host_os}" in
19108 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19109 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19110 #       esac
19111         { echo "$as_me:$LINENO: result: ${flag}" >&5
19112 echo "${ECHO_T}${flag}" >&6; }
19113         if test "x$flag" != xno; then
19114                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19115         fi
19116
19117         LIBS="$save_LIBS"
19118         CFLAGS="$save_CFLAGS"
19119
19120 # Supporting cc_r would require a special CC in all places that
19121 # use libpq, and that is ugly, so we don't do it.  Users can still
19122 # define their compiler as cc_r to do thread builds of everything.
19123         # More AIX lossage: must compile with cc_r
19124         # Extract the first word of "cc_r", so it can be a program name with args.
19125 set dummy cc_r; ac_word=$2
19126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19128 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131   if test -n "$PTHREAD_CC"; then
19132   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19133 else
19134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19135 for as_dir in $PATH
19136 do
19137   IFS=$as_save_IFS
19138   test -z "$as_dir" && as_dir=.
19139   for ac_exec_ext in '' $ac_executable_extensions; do
19140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19141     ac_cv_prog_PTHREAD_CC="cc_r"
19142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19143     break 2
19144   fi
19145 done
19146 done
19147 IFS=$as_save_IFS
19148
19149   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19150 fi
19151 fi
19152 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19153 if test -n "$PTHREAD_CC"; then
19154   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19155 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19156 else
19157   { echo "$as_me:$LINENO: result: no" >&5
19158 echo "${ECHO_T}no" >&6; }
19159 fi
19160
19161
19162 else
19163         PTHREAD_CC="$CC"
19164 fi
19165
19166
19167
19168
19169
19170 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19171 if test x"$acx_pthread_ok" = xyes; then
19172
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE_PTHREAD 1
19175 _ACEOF
19176
19177         :
19178 else
19179         acx_pthread_ok=no
19180
19181 fi
19182 ac_ext=c
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19187
19188         # set thread flags
19189
19190 # Some platforms use these, so just define them.  They can't hurt if they
19191 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19192 # enables 5-arg getpwuid_r, among other things.
19193 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19194
19195
19196 # At this point, we don't want to muck with the compiler name for threading.
19197 # Let's see who fails, perhaps AIX.  2004-04-23
19198 if test "$PTHREAD_CC" != "$CC"; then
19199 { { echo "$as_me:$LINENO: error:
19200 PostgreSQL does not support platforms that require a special compiler
19201 for thread safety." >&5
19202 echo "$as_me: error:
19203 PostgreSQL does not support platforms that require a special compiler
19204 for thread safety." >&2;}
19205    { (exit 1); exit 1; }; }
19206 fi
19207
19208 if test "$THREAD_SUPPORT" = no; then
19209 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19210 This platform is known to not support thread-safe programs.  For details,
19211 compile and run src/bin/pg_thread_test." >&5
19212 echo "$as_me: error: cannot enable threads on this platform
19213 This platform is known to not support thread-safe programs.  For details,
19214 compile and run src/bin/pg_thread_test." >&2;}
19215    { (exit 1); exit 1; }; }
19216 fi
19217
19218 # Check for *_r functions
19219 _CFLAGS="$CFLAGS"
19220 _LIBS="$LIBS"
19221 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19222 LIBS="$LIBS $PTHREAD_LIBS"
19223
19224 if test "$PORTNAME" != "win32"; then
19225 if test "${ac_cv_header_pthread_h+set}" = set; then
19226   { echo "$as_me:$LINENO: checking for pthread.h" >&5
19227 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19228 if test "${ac_cv_header_pthread_h+set}" = set; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 fi
19231 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19232 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19233 else
19234   # Is the header compilable?
19235 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19236 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 $ac_includes_default
19244 #include <pthread.h>
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253   (eval "$ac_compile") 2>conftest.er1
19254   ac_status=$?
19255   grep -v '^ *+' conftest.er1 >conftest.err
19256   rm -f conftest.er1
19257   cat conftest.err >&5
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); } && {
19260          test -z "$ac_c_werror_flag" ||
19261          test ! -s conftest.err
19262        } && test -s conftest.$ac_objext; then
19263   ac_header_compiler=yes
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268         ac_header_compiler=no
19269 fi
19270
19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19273 echo "${ECHO_T}$ac_header_compiler" >&6; }
19274
19275 # Is the header present?
19276 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19277 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284 #include <pthread.h>
19285 _ACEOF
19286 if { (ac_try="$ac_cpp conftest.$ac_ext"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } >/dev/null && {
19299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19300          test ! -s conftest.err
19301        }; then
19302   ac_header_preproc=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307   ac_header_preproc=no
19308 fi
19309
19310 rm -f conftest.err conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19312 echo "${ECHO_T}$ac_header_preproc" >&6; }
19313
19314 # So?  What about this header?
19315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19316   yes:no: )
19317     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19318 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19319     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19320 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19321     ac_header_preproc=yes
19322     ;;
19323   no:yes:* )
19324     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19325 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19326     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
19327 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
19328     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19329 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19330     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
19331 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19332     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19333 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19334     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19335 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19336     ( cat <<\_ASBOX
19337 ## ---------------------------------------- ##
19338 ## Report this to pgsql-bugs@postgresql.org ##
19339 ## ---------------------------------------- ##
19340 _ASBOX
19341      ) | sed "s/^/$as_me: WARNING:     /" >&2
19342     ;;
19343 esac
19344 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19345 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19346 if test "${ac_cv_header_pthread_h+set}" = set; then
19347   echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349   ac_cv_header_pthread_h=$ac_header_preproc
19350 fi
19351 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19352 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19353
19354 fi
19355 if test $ac_cv_header_pthread_h = yes; then
19356   :
19357 else
19358   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19359 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19360    { (exit 1); exit 1; }; }
19361 fi
19362
19363
19364 fi
19365
19366
19367
19368
19369 for ac_func in strerror_r getpwuid_r gethostbyname_r
19370 do
19371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19385 #define $ac_func innocuous_$ac_func
19386
19387 /* System header to define __stub macros and hopefully few prototypes,
19388     which can conflict with char $ac_func (); below.
19389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19390     <limits.h> exists even on freestanding compilers.  */
19391
19392 #ifdef __STDC__
19393 # include <limits.h>
19394 #else
19395 # include <assert.h>
19396 #endif
19397
19398 #undef $ac_func
19399
19400 /* Override any GCC internal prototype to avoid an error.
19401    Use char because int might match the return type of a GCC
19402    builtin and then its argument prototype would still apply.  */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char $ac_func ();
19407 /* The GNU C library defines this for functions which it implements
19408     to always fail with ENOSYS.  Some functions are actually named
19409     something starting with __ and the normal name is an alias.  */
19410 #if defined __stub_$ac_func || defined __stub___$ac_func
19411 choke me
19412 #endif
19413
19414 int
19415 main ()
19416 {
19417 return $ac_func ();
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_link") 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } && {
19436          test -z "$ac_c_werror_flag" ||
19437          test ! -s conftest.err
19438        } && test -s conftest$ac_exeext &&
19439        $as_test_x conftest$ac_exeext; then
19440   eval "$as_ac_var=yes"
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         eval "$as_ac_var=no"
19446 fi
19447
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449       conftest$ac_exeext conftest.$ac_ext
19450 fi
19451 ac_res=`eval echo '${'$as_ac_var'}'`
19452                { echo "$as_me:$LINENO: result: $ac_res" >&5
19453 echo "${ECHO_T}$ac_res" >&6; }
19454 if test `eval echo '${'$as_ac_var'}'` = yes; then
19455   cat >>confdefs.h <<_ACEOF
19456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19457 _ACEOF
19458
19459 fi
19460 done
19461
19462
19463 # Do test here with the proper thread flags
19464 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19465 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19466 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475 #include <sys/types.h>
19476 #include <pwd.h>
19477 int
19478 main ()
19479 {
19480 uid_t uid;
19481 struct passwd *space;
19482 char *buf;
19483 size_t bufsize;
19484 struct passwd **result;
19485 getpwuid_r(uid, space, buf, bufsize, result);
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_compile") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && {
19504          test -z "$ac_c_werror_flag" ||
19505          test ! -s conftest.err
19506        } && test -s conftest.$ac_objext; then
19507   pgac_cv_func_getpwuid_r_5arg=yes
19508 else
19509   echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512         pgac_cv_func_getpwuid_r_5arg=no
19513 fi
19514
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 fi
19517 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19518 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19519 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19520
19521 cat >>confdefs.h <<\_ACEOF
19522 #define GETPWUID_R_5ARG
19523 _ACEOF
19524
19525 fi
19526
19527 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19528 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19529 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532   cat >conftest.$ac_ext <<_ACEOF
19533 /* confdefs.h.  */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h.  */
19538 #include <string.h>
19539 int
19540 main ()
19541 {
19542 #ifndef _AIX
19543 int strerror_r(int, char *, size_t);
19544 #else
19545 /* Older AIX has 'int' for the third argument so we don't test the args. */
19546 int strerror_r();
19547 #endif
19548   ;
19549   return 0;
19550 }
19551 _ACEOF
19552 rm -f conftest.$ac_objext
19553 if { (ac_try="$ac_compile"
19554 case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_compile") 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } && {
19566          test -z "$ac_c_werror_flag" ||
19567          test ! -s conftest.err
19568        } && test -s conftest.$ac_objext; then
19569   pgac_cv_func_strerror_r_int=yes
19570 else
19571   echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574         pgac_cv_func_strerror_r_int=no
19575 fi
19576
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 fi
19579 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19580 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19581 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define STRERROR_R_INT
19585 _ACEOF
19586
19587 fi
19588
19589
19590 CFLAGS="$_CFLAGS"
19591 LIBS="$_LIBS"
19592
19593 else
19594 # do not use values from template file
19595 PTHREAD_CFLAGS=
19596 PTHREAD_LIBS=
19597 fi
19598
19599
19600
19601
19602
19603 # We can test for libldap_r only after we know PTHREAD_LIBS
19604 if test "$with_ldap" = yes ; then
19605   _LIBS="$LIBS"
19606   if test "$PORTNAME" != "win32"; then
19607
19608 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19609 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19610 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19611   echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613   ac_check_lib_save_LIBS=$LIBS
19614 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19615 cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621
19622 /* Override any GCC internal prototype to avoid an error.
19623    Use char because int might match the return type of a GCC
19624    builtin and then its argument prototype would still apply.  */
19625 #ifdef __cplusplus
19626 extern "C"
19627 #endif
19628 char ldap_bind ();
19629 int
19630 main ()
19631 {
19632 return ldap_bind ();
19633   ;
19634   return 0;
19635 }
19636 _ACEOF
19637 rm -f conftest.$ac_objext conftest$ac_exeext
19638 if { (ac_try="$ac_link"
19639 case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_link") 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } && {
19651          test -z "$ac_c_werror_flag" ||
19652          test ! -s conftest.err
19653        } && test -s conftest$ac_exeext &&
19654        $as_test_x conftest$ac_exeext; then
19655   ac_cv_lib_ldap_ldap_bind=yes
19656 else
19657   echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660         ac_cv_lib_ldap_ldap_bind=no
19661 fi
19662
19663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19664       conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS
19666 fi
19667 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19668 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19669 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19670   cat >>confdefs.h <<_ACEOF
19671 #define HAVE_LIBLDAP 1
19672 _ACEOF
19673
19674   LIBS="-lldap $LIBS"
19675
19676 else
19677   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19678 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19679    { (exit 1); exit 1; }; }
19680 fi
19681
19682     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19683     if test "$enable_thread_safety" = yes; then
19684       # on some platforms ldap_r fails to link without PTHREAD_LIBS
19685
19686 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19687 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19688 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19689   echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691   ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699
19700 /* Override any GCC internal prototype to avoid an error.
19701    Use char because int might match the return type of a GCC
19702    builtin and then its argument prototype would still apply.  */
19703 #ifdef __cplusplus
19704 extern "C"
19705 #endif
19706 char ldap_simple_bind ();
19707 int
19708 main ()
19709 {
19710 return ldap_simple_bind ();
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_link") 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } && {
19729          test -z "$ac_c_werror_flag" ||
19730          test ! -s conftest.err
19731        } && test -s conftest$ac_exeext &&
19732        $as_test_x conftest$ac_exeext; then
19733   ac_cv_lib_ldap_r_ldap_simple_bind=yes
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738         ac_cv_lib_ldap_r_ldap_simple_bind=no
19739 fi
19740
19741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19742       conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19744 fi
19745 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19746 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19747 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19748   cat >>confdefs.h <<_ACEOF
19749 #define HAVE_LIBLDAP_R 1
19750 _ACEOF
19751
19752   LIBS="-lldap_r $LIBS"
19753
19754 else
19755   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19756 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19757    { (exit 1); exit 1; }; }
19758 fi
19759
19760       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19761     else
19762       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19763     fi
19764   else
19765
19766 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19767 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19769   echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771   ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lwldap32  $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779
19780 /* Override any GCC internal prototype to avoid an error.
19781    Use char because int might match the return type of a GCC
19782    builtin and then its argument prototype would still apply.  */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char ldap_bind ();
19787 int
19788 main ()
19789 {
19790 return ldap_bind ();
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_link") 2>conftest.er1
19803   ac_status=$?
19804   grep -v '^ *+' conftest.er1 >conftest.err
19805   rm -f conftest.er1
19806   cat conftest.err >&5
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); } && {
19809          test -z "$ac_c_werror_flag" ||
19810          test ! -s conftest.err
19811        } && test -s conftest$ac_exeext &&
19812        $as_test_x conftest$ac_exeext; then
19813   ac_cv_lib_wldap32_ldap_bind=yes
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818         ac_cv_lib_wldap32_ldap_bind=no
19819 fi
19820
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822       conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19824 fi
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19826 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19827 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19828   cat >>confdefs.h <<_ACEOF
19829 #define HAVE_LIBWLDAP32 1
19830 _ACEOF
19831
19832   LIBS="-lwldap32 $LIBS"
19833
19834 else
19835   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19836 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19837    { (exit 1); exit 1; }; }
19838 fi
19839
19840     LDAP_LIBS_FE="-lwldap32"
19841     LDAP_LIBS_BE="-lwldap32"
19842   fi
19843   LIBS="$_LIBS"
19844 fi
19845
19846
19847
19848
19849 # This test makes sure that run tests work at all.  Sometimes a shared
19850 # library is found by the linker, but the runtime linker can't find it.
19851 # This check should come after all modifications of compiler or linker
19852 # variables, and before any other run tests.
19853 { echo "$as_me:$LINENO: checking test program" >&5
19854 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19855 if test "$cross_compiling" = yes; then
19856   { echo "$as_me:$LINENO: result: cross-compiling" >&5
19857 echo "${ECHO_T}cross-compiling" >&6; }
19858 else
19859   cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865 int main() { return 0; }
19866 _ACEOF
19867 rm -f conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_link") 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19878   { (case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_try") 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   { echo "$as_me:$LINENO: result: ok" >&5
19888 echo "${ECHO_T}ok" >&6; }
19889 else
19890   echo "$as_me: program exited with status $ac_status" >&5
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 ( exit $ac_status )
19895 { echo "$as_me:$LINENO: result: failed" >&5
19896 echo "${ECHO_T}failed" >&6; }
19897 { { echo "$as_me:$LINENO: error:
19898 Could not execute a simple test program.  This may be a problem
19899 related to locating shared libraries.  Check the file 'config.log'
19900 for the exact reason." >&5
19901 echo "$as_me: error:
19902 Could not execute a simple test program.  This may be a problem
19903 related to locating shared libraries.  Check the file 'config.log'
19904 for the exact reason." >&2;}
19905    { (exit 1); exit 1; }; }
19906 fi
19907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19908 fi
19909
19910
19911
19912 # --------------------
19913 # Run tests below here
19914 # --------------------
19915
19916 # Force use of our snprintf if system's doesn't do arg control
19917 # See comment above at snprintf test for details.
19918 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19919   { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19920 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19921 if test "${pgac_cv_printf_arg_control+set}" = set; then
19922   echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924   if test "$cross_compiling" = yes; then
19925   pgac_cv_printf_arg_control=cross
19926 else
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 #include <stdio.h>
19934 #include <string.h>
19935
19936 int main()
19937 {
19938   char buf[100];
19939
19940   /* can it swap arguments? */
19941   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19942   if (strcmp(buf, "4 3") != 0)
19943     return 1;
19944   return 0;
19945 }
19946 _ACEOF
19947 rm -f conftest$ac_exeext
19948 if { (ac_try="$ac_link"
19949 case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_link") 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19958   { (case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963   (eval "$ac_try") 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; }; then
19967   pgac_cv_printf_arg_control=yes
19968 else
19969   echo "$as_me: program exited with status $ac_status" >&5
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973 ( exit $ac_status )
19974 pgac_cv_printf_arg_control=no
19975 fi
19976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19977 fi
19978
19979
19980
19981 fi
19982 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19983 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19984
19985   if test $pgac_cv_printf_arg_control != yes ; then
19986     pgac_need_repl_snprintf=yes
19987   fi
19988 fi
19989
19990
19991
19992 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19993 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19994 if test "${pgac_cv_type_long_int_64+set}" = set; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997   if test "$cross_compiling" = yes; then
19998   # If cross-compiling, check the size reported by the compiler and
19999 # trust that the arithmetic works.
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006
20007 int
20008 main ()
20009 {
20010 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20011 test_array [0] = 0
20012
20013   ;
20014   return 0;
20015 }
20016 _ACEOF
20017 rm -f conftest.$ac_objext
20018 if { (ac_try="$ac_compile"
20019 case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_compile") 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } && {
20031          test -z "$ac_c_werror_flag" ||
20032          test ! -s conftest.err
20033        } && test -s conftest.$ac_objext; then
20034   pgac_cv_type_long_int_64=yes
20035 else
20036   echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039         pgac_cv_type_long_int_64=no
20040 fi
20041
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043 else
20044   cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h.  */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h.  */
20050 typedef long int ac_int64;
20051
20052 /*
20053  * These are globals to discourage the compiler from folding all the
20054  * arithmetic tests down to compile-time constants.
20055  */
20056 ac_int64 a = 20000001;
20057 ac_int64 b = 40000005;
20058
20059 int does_int64_work()
20060 {
20061   ac_int64 c,d;
20062
20063   if (sizeof(ac_int64) != 8)
20064     return 0;                   /* definitely not the right size */
20065
20066   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20067   c = a * b;
20068   d = (c + b) / b;
20069   if (d != a+1)
20070     return 0;
20071   return 1;
20072 }
20073 main() {
20074   exit(! does_int64_work());
20075 }
20076 _ACEOF
20077 rm -f conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_link") 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20088   { (case "(($ac_try" in
20089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090   *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093   (eval "$ac_try") 2>&5
20094   ac_status=$?
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); }; }; then
20097   pgac_cv_type_long_int_64=yes
20098 else
20099   echo "$as_me: program exited with status $ac_status" >&5
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103 ( exit $ac_status )
20104 pgac_cv_type_long_int_64=no
20105 fi
20106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20107 fi
20108
20109
20110 fi
20111 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20112 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20113
20114 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20115 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20116
20117 cat >>confdefs.h <<\_ACEOF
20118 #define HAVE_LONG_INT_64 1
20119 _ACEOF
20120
20121 fi
20122
20123
20124 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20125   { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20126 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20127 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20128   echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130   if test "$cross_compiling" = yes; then
20131   # If cross-compiling, check the size reported by the compiler and
20132 # trust that the arithmetic works.
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h.  */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h.  */
20139
20140 int
20141 main ()
20142 {
20143 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20144 test_array [0] = 0
20145
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_compile") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } && {
20164          test -z "$ac_c_werror_flag" ||
20165          test ! -s conftest.err
20166        } && test -s conftest.$ac_objext; then
20167   pgac_cv_type_long_long_int_64=yes
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172         pgac_cv_type_long_long_int_64=no
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 typedef long long int ac_int64;
20184
20185 /*
20186  * These are globals to discourage the compiler from folding all the
20187  * arithmetic tests down to compile-time constants.
20188  */
20189 ac_int64 a = 20000001;
20190 ac_int64 b = 40000005;
20191
20192 int does_int64_work()
20193 {
20194   ac_int64 c,d;
20195
20196   if (sizeof(ac_int64) != 8)
20197     return 0;                   /* definitely not the right size */
20198
20199   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20200   c = a * b;
20201   d = (c + b) / b;
20202   if (d != a+1)
20203     return 0;
20204   return 1;
20205 }
20206 main() {
20207   exit(! does_int64_work());
20208 }
20209 _ACEOF
20210 rm -f conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_link") 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20221   { (case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_try") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; }; then
20230   pgac_cv_type_long_long_int_64=yes
20231 else
20232   echo "$as_me: program exited with status $ac_status" >&5
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 ( exit $ac_status )
20237 pgac_cv_type_long_long_int_64=no
20238 fi
20239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20240 fi
20241
20242
20243 fi
20244 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20245 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20246
20247 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20248 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20249
20250 cat >>confdefs.h <<\_ACEOF
20251 #define HAVE_LONG_LONG_INT_64 1
20252 _ACEOF
20253
20254 fi
20255
20256 fi
20257
20258
20259
20260 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20261   cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267
20268 #define INT64CONST(x)  x##LL
20269 long long int foo = INT64CONST(0x1234567890123456);
20270
20271 int
20272 main ()
20273 {
20274
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_compile") 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } && {
20293          test -z "$ac_c_werror_flag" ||
20294          test ! -s conftest.err
20295        } && test -s conftest.$ac_objext; then
20296
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE_LL_CONSTANTS 1
20299 _ACEOF
20300
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305
20306 fi
20307
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 fi
20310
20311
20312 # If we found "long int" is 64 bits, assume snprintf handles it.  If
20313 # we found we need to use "long long int", better check.  We cope with
20314 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
20315 # work, fall back to our own snprintf emulation (which we know uses %lld).
20316
20317 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20318   if test $pgac_need_repl_snprintf = no; then
20319     { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20320 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20321 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20322   echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324   for pgac_format in '%lld' '%qd' '%I64d'; do
20325 if test "$cross_compiling" = yes; then
20326   pgac_cv_snprintf_long_long_int_format=cross; break
20327 else
20328   cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334 #include <stdio.h>
20335 typedef long long int ac_int64;
20336 #define INT64_FORMAT "$pgac_format"
20337
20338 ac_int64 a = 20000001;
20339 ac_int64 b = 40000005;
20340
20341 int does_int64_snprintf_work()
20342 {
20343   ac_int64 c;
20344   char buf[100];
20345
20346   if (sizeof(ac_int64) != 8)
20347     return 0;                   /* doesn't look like the right size */
20348
20349   c = a * b;
20350   snprintf(buf, 100, INT64_FORMAT, c);
20351   if (strcmp(buf, "800000140000005") != 0)
20352     return 0;                   /* either multiply or snprintf is busted */
20353   return 1;
20354 }
20355 main() {
20356   exit(! does_int64_snprintf_work());
20357 }
20358 _ACEOF
20359 rm -f conftest$ac_exeext
20360 if { (ac_try="$ac_link"
20361 case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_link") 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20370   { (case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_try") 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20380 else
20381   echo "$as_me: program exited with status $ac_status" >&5
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20384
20385 fi
20386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20387 fi
20388
20389
20390 done
20391 fi
20392
20393 LONG_LONG_INT_FORMAT=''
20394
20395 case $pgac_cv_snprintf_long_long_int_format in
20396   cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20397 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20398   ?*)    { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20399 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20400          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20401   *)     { echo "$as_me:$LINENO: result: none" >&5
20402 echo "${ECHO_T}none" >&6; };;
20403 esac
20404     if test "$LONG_LONG_INT_FORMAT" = ""; then
20405       # Force usage of our own snprintf, since system snprintf is broken
20406       pgac_need_repl_snprintf=yes
20407       LONG_LONG_INT_FORMAT='%lld'
20408     fi
20409   else
20410     # Here if we previously decided we needed to use our own snprintf
20411     LONG_LONG_INT_FORMAT='%lld'
20412   fi
20413   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20414   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20415   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20416 else
20417   # Here if we are not using 'long long int' at all
20418   INT64_FORMAT='"%ld"'
20419   UINT64_FORMAT='"%lu"'
20420 fi
20421
20422
20423 cat >>confdefs.h <<_ACEOF
20424 #define INT64_FORMAT $INT64_FORMAT
20425 _ACEOF
20426
20427
20428
20429 cat >>confdefs.h <<_ACEOF
20430 #define UINT64_FORMAT $UINT64_FORMAT
20431 _ACEOF
20432
20433
20434 # Now we have checked all the reasons to replace snprintf
20435 if test $pgac_need_repl_snprintf = yes; then
20436
20437 cat >>confdefs.h <<\_ACEOF
20438 #define USE_REPL_SNPRINTF 1
20439 _ACEOF
20440
20441   case " $LIBOBJS " in
20442   *" snprintf.$ac_objext "* ) ;;
20443   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20444  ;;
20445 esac
20446
20447 fi
20448
20449 # Need a #define for the size of Datum (unsigned long)
20450 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20451 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20452 if test "${ac_cv_type_unsigned_long+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455   cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 $ac_includes_default
20462 typedef unsigned long ac__type_new_;
20463 int
20464 main ()
20465 {
20466 if ((ac__type_new_ *) 0)
20467   return 0;
20468 if (sizeof (ac__type_new_))
20469   return 0;
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_compile") 2>conftest.er1
20482   ac_status=$?
20483   grep -v '^ *+' conftest.er1 >conftest.err
20484   rm -f conftest.er1
20485   cat conftest.err >&5
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } && {
20488          test -z "$ac_c_werror_flag" ||
20489          test ! -s conftest.err
20490        } && test -s conftest.$ac_objext; then
20491   ac_cv_type_unsigned_long=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496         ac_cv_type_unsigned_long=no
20497 fi
20498
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 fi
20501 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20502 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20503
20504 # The cast to long int works around a bug in the HP C Compiler
20505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20507 # This bug is HP SR number 8606223364.
20508 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20509 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20510 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   if test "$cross_compiling" = yes; then
20514   # Depending upon the size, compute the lo and hi bounds.
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h.  */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h.  */
20521 $ac_includes_default
20522    typedef unsigned long ac__type_sizeof_;
20523 int
20524 main ()
20525 {
20526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20527 test_array [0] = 0
20528
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_compile") 2>conftest.er1
20541   ac_status=$?
20542   grep -v '^ *+' conftest.er1 >conftest.err
20543   rm -f conftest.er1
20544   cat conftest.err >&5
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); } && {
20547          test -z "$ac_c_werror_flag" ||
20548          test ! -s conftest.err
20549        } && test -s conftest.$ac_objext; then
20550   ac_lo=0 ac_mid=0
20551   while :; do
20552     cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 $ac_includes_default
20559    typedef unsigned long ac__type_sizeof_;
20560 int
20561 main ()
20562 {
20563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20564 test_array [0] = 0
20565
20566   ;
20567   return 0;
20568 }
20569 _ACEOF
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574   *) ac_try_echo=$ac_try;;
20575 esac
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577   (eval "$ac_compile") 2>conftest.er1
20578   ac_status=$?
20579   grep -v '^ *+' conftest.er1 >conftest.err
20580   rm -f conftest.er1
20581   cat conftest.err >&5
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); } && {
20584          test -z "$ac_c_werror_flag" ||
20585          test ! -s conftest.err
20586        } && test -s conftest.$ac_objext; then
20587   ac_hi=$ac_mid; break
20588 else
20589   echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592         ac_lo=`expr $ac_mid + 1`
20593                         if test $ac_lo -le $ac_mid; then
20594                           ac_lo= ac_hi=
20595                           break
20596                         fi
20597                         ac_mid=`expr 2 '*' $ac_mid + 1`
20598 fi
20599
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601   done
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606         cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 $ac_includes_default
20613    typedef unsigned long ac__type_sizeof_;
20614 int
20615 main ()
20616 {
20617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20618 test_array [0] = 0
20619
20620   ;
20621   return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_compile") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && {
20638          test -z "$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        } && test -s conftest.$ac_objext; then
20641   ac_hi=-1 ac_mid=-1
20642   while :; do
20643     cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649 $ac_includes_default
20650    typedef unsigned long ac__type_sizeof_;
20651 int
20652 main ()
20653 {
20654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20655 test_array [0] = 0
20656
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
20663 case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_compile") 2>conftest.er1
20669   ac_status=$?
20670   grep -v '^ *+' conftest.er1 >conftest.err
20671   rm -f conftest.er1
20672   cat conftest.err >&5
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } && {
20675          test -z "$ac_c_werror_flag" ||
20676          test ! -s conftest.err
20677        } && test -s conftest.$ac_objext; then
20678   ac_lo=$ac_mid; break
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683         ac_hi=`expr '(' $ac_mid ')' - 1`
20684                         if test $ac_mid -le $ac_hi; then
20685                           ac_lo= ac_hi=
20686                           break
20687                         fi
20688                         ac_mid=`expr 2 '*' $ac_mid`
20689 fi
20690
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692   done
20693 else
20694   echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20696
20697         ac_lo= ac_hi=
20698 fi
20699
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 fi
20702
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 # Binary search between lo and hi bounds.
20705 while test "x$ac_lo" != "x$ac_hi"; do
20706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20707   cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 $ac_includes_default
20714    typedef unsigned long ac__type_sizeof_;
20715 int
20716 main ()
20717 {
20718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20719 test_array [0] = 0
20720
20721   ;
20722   return 0;
20723 }
20724 _ACEOF
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729   *) ac_try_echo=$ac_try;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732   (eval "$ac_compile") 2>conftest.er1
20733   ac_status=$?
20734   grep -v '^ *+' conftest.er1 >conftest.err
20735   rm -f conftest.er1
20736   cat conftest.err >&5
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } && {
20739          test -z "$ac_c_werror_flag" ||
20740          test ! -s conftest.err
20741        } && test -s conftest.$ac_objext; then
20742   ac_hi=$ac_mid
20743 else
20744   echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747         ac_lo=`expr '(' $ac_mid ')' + 1`
20748 fi
20749
20750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 done
20752 case $ac_lo in
20753 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20754 '') if test "$ac_cv_type_unsigned_long" = yes; then
20755      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20756 See \`config.log' for more details." >&5
20757 echo "$as_me: error: cannot compute sizeof (unsigned long)
20758 See \`config.log' for more details." >&2;}
20759    { (exit 77); exit 77; }; }
20760    else
20761      ac_cv_sizeof_unsigned_long=0
20762    fi ;;
20763 esac
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 $ac_includes_default
20772    typedef unsigned long ac__type_sizeof_;
20773 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20774 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20775 #include <stdio.h>
20776 #include <stdlib.h>
20777 int
20778 main ()
20779 {
20780
20781   FILE *f = fopen ("conftest.val", "w");
20782   if (! f)
20783     return 1;
20784   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20785     {
20786       long int i = longval ();
20787       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20788         return 1;
20789       fprintf (f, "%ld\n", i);
20790     }
20791   else
20792     {
20793       unsigned long int i = ulongval ();
20794       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20795         return 1;
20796       fprintf (f, "%lu\n", i);
20797     }
20798   return ferror (f) || fclose (f) != 0;
20799
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 rm -f conftest$ac_exeext
20805 if { (ac_try="$ac_link"
20806 case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_link") 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20815   { (case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820   (eval "$ac_try") 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; }; then
20824   ac_cv_sizeof_unsigned_long=`cat conftest.val`
20825 else
20826   echo "$as_me: program exited with status $ac_status" >&5
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 ( exit $ac_status )
20831 if test "$ac_cv_type_unsigned_long" = yes; then
20832      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20833 See \`config.log' for more details." >&5
20834 echo "$as_me: error: cannot compute sizeof (unsigned long)
20835 See \`config.log' for more details." >&2;}
20836    { (exit 77); exit 77; }; }
20837    else
20838      ac_cv_sizeof_unsigned_long=0
20839    fi
20840 fi
20841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20842 fi
20843 rm -f conftest.val
20844 fi
20845 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20846 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20847
20848
20849
20850 cat >>confdefs.h <<_ACEOF
20851 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20852 _ACEOF
20853
20854
20855
20856 # And one for the size of size_t (enables tweaks for > 32bit address space)
20857 { echo "$as_me:$LINENO: checking for size_t" >&5
20858 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20859 if test "${ac_cv_type_size_t+set}" = set; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 $ac_includes_default
20869 typedef size_t ac__type_new_;
20870 int
20871 main ()
20872 {
20873 if ((ac__type_new_ *) 0)
20874   return 0;
20875 if (sizeof (ac__type_new_))
20876   return 0;
20877   ;
20878   return 0;
20879 }
20880 _ACEOF
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
20883 case "(($ac_try" in
20884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885   *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888   (eval "$ac_compile") 2>conftest.er1
20889   ac_status=$?
20890   grep -v '^ *+' conftest.er1 >conftest.err
20891   rm -f conftest.er1
20892   cat conftest.err >&5
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } && {
20895          test -z "$ac_c_werror_flag" ||
20896          test ! -s conftest.err
20897        } && test -s conftest.$ac_objext; then
20898   ac_cv_type_size_t=yes
20899 else
20900   echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903         ac_cv_type_size_t=no
20904 fi
20905
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 fi
20908 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20909 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20910
20911 # The cast to long int works around a bug in the HP C Compiler
20912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20914 # This bug is HP SR number 8606223364.
20915 { echo "$as_me:$LINENO: checking size of size_t" >&5
20916 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20917 if test "${ac_cv_sizeof_size_t+set}" = set; then
20918   echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920   if test "$cross_compiling" = yes; then
20921   # Depending upon the size, compute the lo and hi bounds.
20922 cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 $ac_includes_default
20929    typedef size_t ac__type_sizeof_;
20930 int
20931 main ()
20932 {
20933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20934 test_array [0] = 0
20935
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944   *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947   (eval "$ac_compile") 2>conftest.er1
20948   ac_status=$?
20949   grep -v '^ *+' conftest.er1 >conftest.err
20950   rm -f conftest.er1
20951   cat conftest.err >&5
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } && {
20954          test -z "$ac_c_werror_flag" ||
20955          test ! -s conftest.err
20956        } && test -s conftest.$ac_objext; then
20957   ac_lo=0 ac_mid=0
20958   while :; do
20959     cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h.  */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h.  */
20965 $ac_includes_default
20966    typedef size_t ac__type_sizeof_;
20967 int
20968 main ()
20969 {
20970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20971 test_array [0] = 0
20972
20973   ;
20974   return 0;
20975 }
20976 _ACEOF
20977 rm -f conftest.$ac_objext
20978 if { (ac_try="$ac_compile"
20979 case "(($ac_try" in
20980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981   *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984   (eval "$ac_compile") 2>conftest.er1
20985   ac_status=$?
20986   grep -v '^ *+' conftest.er1 >conftest.err
20987   rm -f conftest.er1
20988   cat conftest.err >&5
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } && {
20991          test -z "$ac_c_werror_flag" ||
20992          test ! -s conftest.err
20993        } && test -s conftest.$ac_objext; then
20994   ac_hi=$ac_mid; break
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999         ac_lo=`expr $ac_mid + 1`
21000                         if test $ac_lo -le $ac_mid; then
21001                           ac_lo= ac_hi=
21002                           break
21003                         fi
21004                         ac_mid=`expr 2 '*' $ac_mid + 1`
21005 fi
21006
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008   done
21009 else
21010   echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013         cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 $ac_includes_default
21020    typedef size_t ac__type_sizeof_;
21021 int
21022 main ()
21023 {
21024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21025 test_array [0] = 0
21026
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (ac_try="$ac_compile"
21033 case "(($ac_try" in
21034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035   *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038   (eval "$ac_compile") 2>conftest.er1
21039   ac_status=$?
21040   grep -v '^ *+' conftest.er1 >conftest.err
21041   rm -f conftest.er1
21042   cat conftest.err >&5
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); } && {
21045          test -z "$ac_c_werror_flag" ||
21046          test ! -s conftest.err
21047        } && test -s conftest.$ac_objext; then
21048   ac_hi=-1 ac_mid=-1
21049   while :; do
21050     cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 $ac_includes_default
21057    typedef size_t ac__type_sizeof_;
21058 int
21059 main ()
21060 {
21061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21062 test_array [0] = 0
21063
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext
21069 if { (ac_try="$ac_compile"
21070 case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_compile") 2>conftest.er1
21076   ac_status=$?
21077   grep -v '^ *+' conftest.er1 >conftest.err
21078   rm -f conftest.er1
21079   cat conftest.err >&5
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } && {
21082          test -z "$ac_c_werror_flag" ||
21083          test ! -s conftest.err
21084        } && test -s conftest.$ac_objext; then
21085   ac_lo=$ac_mid; break
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090         ac_hi=`expr '(' $ac_mid ')' - 1`
21091                         if test $ac_mid -le $ac_hi; then
21092                           ac_lo= ac_hi=
21093                           break
21094                         fi
21095                         ac_mid=`expr 2 '*' $ac_mid`
21096 fi
21097
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099   done
21100 else
21101   echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104         ac_lo= ac_hi=
21105 fi
21106
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 fi
21109
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 # Binary search between lo and hi bounds.
21112 while test "x$ac_lo" != "x$ac_hi"; do
21113   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 $ac_includes_default
21121    typedef size_t ac__type_sizeof_;
21122 int
21123 main ()
21124 {
21125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21126 test_array [0] = 0
21127
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139   (eval "$ac_compile") 2>conftest.er1
21140   ac_status=$?
21141   grep -v '^ *+' conftest.er1 >conftest.err
21142   rm -f conftest.er1
21143   cat conftest.err >&5
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); } && {
21146          test -z "$ac_c_werror_flag" ||
21147          test ! -s conftest.err
21148        } && test -s conftest.$ac_objext; then
21149   ac_hi=$ac_mid
21150 else
21151   echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154         ac_lo=`expr '(' $ac_mid ')' + 1`
21155 fi
21156
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 done
21159 case $ac_lo in
21160 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21161 '') if test "$ac_cv_type_size_t" = yes; then
21162      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21163 See \`config.log' for more details." >&5
21164 echo "$as_me: error: cannot compute sizeof (size_t)
21165 See \`config.log' for more details." >&2;}
21166    { (exit 77); exit 77; }; }
21167    else
21168      ac_cv_sizeof_size_t=0
21169    fi ;;
21170 esac
21171 else
21172   cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 $ac_includes_default
21179    typedef size_t ac__type_sizeof_;
21180 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21181 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21182 #include <stdio.h>
21183 #include <stdlib.h>
21184 int
21185 main ()
21186 {
21187
21188   FILE *f = fopen ("conftest.val", "w");
21189   if (! f)
21190     return 1;
21191   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21192     {
21193       long int i = longval ();
21194       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21195         return 1;
21196       fprintf (f, "%ld\n", i);
21197     }
21198   else
21199     {
21200       unsigned long int i = ulongval ();
21201       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21202         return 1;
21203       fprintf (f, "%lu\n", i);
21204     }
21205   return ferror (f) || fclose (f) != 0;
21206
21207   ;
21208   return 0;
21209 }
21210 _ACEOF
21211 rm -f conftest$ac_exeext
21212 if { (ac_try="$ac_link"
21213 case "(($ac_try" in
21214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215   *) ac_try_echo=$ac_try;;
21216 esac
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218   (eval "$ac_link") 2>&5
21219   ac_status=$?
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21222   { (case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227   (eval "$ac_try") 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; }; then
21231   ac_cv_sizeof_size_t=`cat conftest.val`
21232 else
21233   echo "$as_me: program exited with status $ac_status" >&5
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237 ( exit $ac_status )
21238 if test "$ac_cv_type_size_t" = yes; then
21239      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21240 See \`config.log' for more details." >&5
21241 echo "$as_me: error: cannot compute sizeof (size_t)
21242 See \`config.log' for more details." >&2;}
21243    { (exit 77); exit 77; }; }
21244    else
21245      ac_cv_sizeof_size_t=0
21246    fi
21247 fi
21248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21249 fi
21250 rm -f conftest.val
21251 fi
21252 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21253 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21254
21255
21256
21257 cat >>confdefs.h <<_ACEOF
21258 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21259 _ACEOF
21260
21261
21262
21263 # Decide whether float4 is passed by value: user-selectable, enabled by default
21264 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21265 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21266
21267 pgac_args="$pgac_args enable_float4_byval"
21268
21269 # Check whether --enable-float4-byval was given.
21270 if test "${enable_float4_byval+set}" = set; then
21271   enableval=$enable_float4_byval;
21272   case $enableval in
21273     yes)
21274
21275 cat >>confdefs.h <<\_ACEOF
21276 #define USE_FLOAT4_BYVAL 1
21277 _ACEOF
21278
21279                float4passbyval=true
21280       ;;
21281     no)
21282       float4passbyval=false
21283       ;;
21284     *)
21285       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21286 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21287    { (exit 1); exit 1; }; }
21288       ;;
21289   esac
21290
21291 else
21292   enable_float4_byval=yes
21293
21294 cat >>confdefs.h <<\_ACEOF
21295 #define USE_FLOAT4_BYVAL 1
21296 _ACEOF
21297
21298                float4passbyval=true
21299 fi
21300
21301
21302 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21303 echo "${ECHO_T}$enable_float4_byval" >&6; }
21304
21305 cat >>confdefs.h <<_ACEOF
21306 #define FLOAT4PASSBYVAL $float4passbyval
21307 _ACEOF
21308
21309
21310 # Decide whether float8 is passed by value.
21311 # Note: this setting also controls int8 and related types such as timestamp.
21312 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21313 # If not, trying to select it is an error.
21314 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21315 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21316 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21317
21318 pgac_args="$pgac_args enable_float8_byval"
21319
21320 # Check whether --enable-float8-byval was given.
21321 if test "${enable_float8_byval+set}" = set; then
21322   enableval=$enable_float8_byval;
21323   case $enableval in
21324     yes)
21325       :
21326       ;;
21327     no)
21328       :
21329       ;;
21330     *)
21331       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21332 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21333    { (exit 1); exit 1; }; }
21334       ;;
21335   esac
21336
21337 else
21338   enable_float8_byval=yes
21339
21340 fi
21341
21342
21343 else
21344
21345 pgac_args="$pgac_args enable_float8_byval"
21346
21347 # Check whether --enable-float8-byval was given.
21348 if test "${enable_float8_byval+set}" = set; then
21349   enableval=$enable_float8_byval;
21350   case $enableval in
21351     yes)
21352       :
21353       ;;
21354     no)
21355       :
21356       ;;
21357     *)
21358       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21359 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21360    { (exit 1); exit 1; }; }
21361       ;;
21362   esac
21363
21364 else
21365   enable_float8_byval=no
21366
21367 fi
21368
21369
21370   if test "$enable_float8_byval" = yes ; then
21371     { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21372 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21373    { (exit 1); exit 1; }; }
21374   fi
21375 fi
21376 if test "$enable_float8_byval" = yes ; then
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define USE_FLOAT8_BYVAL 1
21380 _ACEOF
21381
21382   float8passbyval=true
21383 else
21384   float8passbyval=false
21385 fi
21386 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21387 echo "${ECHO_T}$enable_float8_byval" >&6; }
21388
21389 cat >>confdefs.h <<_ACEOF
21390 #define FLOAT8PASSBYVAL $float8passbyval
21391 _ACEOF
21392
21393
21394 # Determine memory alignment requirements for the basic C data types.
21395
21396 { echo "$as_me:$LINENO: checking for short" >&5
21397 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21398 if test "${ac_cv_type_short+set}" = set; then
21399   echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401   cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 $ac_includes_default
21408 typedef short ac__type_new_;
21409 int
21410 main ()
21411 {
21412 if ((ac__type_new_ *) 0)
21413   return 0;
21414 if (sizeof (ac__type_new_))
21415   return 0;
21416   ;
21417   return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424   *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427   (eval "$ac_compile") 2>conftest.er1
21428   ac_status=$?
21429   grep -v '^ *+' conftest.er1 >conftest.err
21430   rm -f conftest.er1
21431   cat conftest.err >&5
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } && {
21434          test -z "$ac_c_werror_flag" ||
21435          test ! -s conftest.err
21436        } && test -s conftest.$ac_objext; then
21437   ac_cv_type_short=yes
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442         ac_cv_type_short=no
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 fi
21447 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21448 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21449
21450 # The cast to long int works around a bug in the HP C Compiler,
21451 # see AC_CHECK_SIZEOF for more information.
21452 { echo "$as_me:$LINENO: checking alignment of short" >&5
21453 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21454 if test "${ac_cv_alignof_short+set}" = set; then
21455   echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457   if test "$cross_compiling" = yes; then
21458   # Depending upon the size, compute the lo and hi bounds.
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 $ac_includes_default
21466 #ifndef offsetof
21467 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21468 #endif
21469 typedef struct { char x; short y; } ac__type_alignof_;
21470 int
21471 main ()
21472 {
21473 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21474 test_array [0] = 0
21475
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (ac_try="$ac_compile"
21482 case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_compile") 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } && {
21494          test -z "$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        } && test -s conftest.$ac_objext; then
21497   ac_lo=0 ac_mid=0
21498   while :; do
21499     cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 $ac_includes_default
21506 #ifndef offsetof
21507 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21508 #endif
21509 typedef struct { char x; short y; } ac__type_alignof_;
21510 int
21511 main ()
21512 {
21513 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21514 test_array [0] = 0
21515
21516   ;
21517   return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524   *) ac_try_echo=$ac_try;;
21525 esac
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527   (eval "$ac_compile") 2>conftest.er1
21528   ac_status=$?
21529   grep -v '^ *+' conftest.er1 >conftest.err
21530   rm -f conftest.er1
21531   cat conftest.err >&5
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } && {
21534          test -z "$ac_c_werror_flag" ||
21535          test ! -s conftest.err
21536        } && test -s conftest.$ac_objext; then
21537   ac_hi=$ac_mid; break
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         ac_lo=`expr $ac_mid + 1`
21543                         if test $ac_lo -le $ac_mid; then
21544                           ac_lo= ac_hi=
21545                           break
21546                         fi
21547                         ac_mid=`expr 2 '*' $ac_mid + 1`
21548 fi
21549
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551   done
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556         cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562 $ac_includes_default
21563 #ifndef offsetof
21564 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21565 #endif
21566 typedef struct { char x; short y; } ac__type_alignof_;
21567 int
21568 main ()
21569 {
21570 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21571 test_array [0] = 0
21572
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest.$ac_objext
21578 if { (ac_try="$ac_compile"
21579 case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_compile") 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } && {
21591          test -z "$ac_c_werror_flag" ||
21592          test ! -s conftest.err
21593        } && test -s conftest.$ac_objext; then
21594   ac_hi=-1 ac_mid=-1
21595   while :; do
21596     cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 $ac_includes_default
21603 #ifndef offsetof
21604 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21605 #endif
21606 typedef struct { char x; short y; } ac__type_alignof_;
21607 int
21608 main ()
21609 {
21610 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21611 test_array [0] = 0
21612
21613   ;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_compile") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } && {
21631          test -z "$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        } && test -s conftest.$ac_objext; then
21634   ac_lo=$ac_mid; break
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         ac_hi=`expr '(' $ac_mid ')' - 1`
21640                         if test $ac_mid -le $ac_hi; then
21641                           ac_lo= ac_hi=
21642                           break
21643                         fi
21644                         ac_mid=`expr 2 '*' $ac_mid`
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648   done
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653         ac_lo= ac_hi=
21654 fi
21655
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657 fi
21658
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 # Binary search between lo and hi bounds.
21661 while test "x$ac_lo" != "x$ac_hi"; do
21662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 $ac_includes_default
21670 #ifndef offsetof
21671 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21672 #endif
21673 typedef struct { char x; short y; } ac__type_alignof_;
21674 int
21675 main ()
21676 {
21677 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21678 test_array [0] = 0
21679
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691   (eval "$ac_compile") 2>conftest.er1
21692   ac_status=$?
21693   grep -v '^ *+' conftest.er1 >conftest.err
21694   rm -f conftest.er1
21695   cat conftest.err >&5
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); } && {
21698          test -z "$ac_c_werror_flag" ||
21699          test ! -s conftest.err
21700        } && test -s conftest.$ac_objext; then
21701   ac_hi=$ac_mid
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706         ac_lo=`expr '(' $ac_mid ')' + 1`
21707 fi
21708
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 done
21711 case $ac_lo in
21712 ?*) ac_cv_alignof_short=$ac_lo;;
21713 '') if test "$ac_cv_type_short" = yes; then
21714      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21715 See \`config.log' for more details." >&5
21716 echo "$as_me: error: cannot compute alignment of short
21717 See \`config.log' for more details." >&2;}
21718    { (exit 77); exit 77; }; }
21719    else
21720      ac_cv_alignof_short=0
21721    fi ;;
21722 esac
21723 else
21724   cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h.  */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h.  */
21730 $ac_includes_default
21731 #ifndef offsetof
21732 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21733 #endif
21734 typedef struct { char x; short y; } ac__type_alignof_;
21735 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21736 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21737 #include <stdio.h>
21738 #include <stdlib.h>
21739 int
21740 main ()
21741 {
21742
21743   FILE *f = fopen ("conftest.val", "w");
21744   if (! f)
21745     return 1;
21746   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21747     {
21748       long int i = longval ();
21749       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21750         return 1;
21751       fprintf (f, "%ld\n", i);
21752     }
21753   else
21754     {
21755       unsigned long int i = ulongval ();
21756       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21757         return 1;
21758       fprintf (f, "%lu\n", i);
21759     }
21760   return ferror (f) || fclose (f) != 0;
21761
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 rm -f conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_link") 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777   { (case "(($ac_try" in
21778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779   *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782   (eval "$ac_try") 2>&5
21783   ac_status=$?
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); }; }; then
21786   ac_cv_alignof_short=`cat conftest.val`
21787 else
21788   echo "$as_me: program exited with status $ac_status" >&5
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792 ( exit $ac_status )
21793 if test "$ac_cv_type_short" = yes; then
21794      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21795 See \`config.log' for more details." >&5
21796 echo "$as_me: error: cannot compute alignment of short
21797 See \`config.log' for more details." >&2;}
21798    { (exit 77); exit 77; }; }
21799    else
21800      ac_cv_alignof_short=0
21801    fi
21802 fi
21803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21804 fi
21805 rm -f conftest.val
21806 fi
21807 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21808 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21809
21810
21811
21812 cat >>confdefs.h <<_ACEOF
21813 #define ALIGNOF_SHORT $ac_cv_alignof_short
21814 _ACEOF
21815
21816
21817 { echo "$as_me:$LINENO: checking for int" >&5
21818 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21819 if test "${ac_cv_type_int+set}" = set; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822   cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h.  */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h.  */
21828 $ac_includes_default
21829 typedef int ac__type_new_;
21830 int
21831 main ()
21832 {
21833 if ((ac__type_new_ *) 0)
21834   return 0;
21835 if (sizeof (ac__type_new_))
21836   return 0;
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_compile") 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } && {
21855          test -z "$ac_c_werror_flag" ||
21856          test ! -s conftest.err
21857        } && test -s conftest.$ac_objext; then
21858   ac_cv_type_int=yes
21859 else
21860   echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863         ac_cv_type_int=no
21864 fi
21865
21866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867 fi
21868 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21869 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21870
21871 # The cast to long int works around a bug in the HP C Compiler,
21872 # see AC_CHECK_SIZEOF for more information.
21873 { echo "$as_me:$LINENO: checking alignment of int" >&5
21874 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21875 if test "${ac_cv_alignof_int+set}" = set; then
21876   echo $ECHO_N "(cached) $ECHO_C" >&6
21877 else
21878   if test "$cross_compiling" = yes; then
21879   # Depending upon the size, compute the lo and hi bounds.
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h.  */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h.  */
21886 $ac_includes_default
21887 #ifndef offsetof
21888 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21889 #endif
21890 typedef struct { char x; int y; } ac__type_alignof_;
21891 int
21892 main ()
21893 {
21894 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21895 test_array [0] = 0
21896
21897   ;
21898   return 0;
21899 }
21900 _ACEOF
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905   *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908   (eval "$ac_compile") 2>conftest.er1
21909   ac_status=$?
21910   grep -v '^ *+' conftest.er1 >conftest.err
21911   rm -f conftest.er1
21912   cat conftest.err >&5
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); } && {
21915          test -z "$ac_c_werror_flag" ||
21916          test ! -s conftest.err
21917        } && test -s conftest.$ac_objext; then
21918   ac_lo=0 ac_mid=0
21919   while :; do
21920     cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h.  */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h.  */
21926 $ac_includes_default
21927 #ifndef offsetof
21928 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21929 #endif
21930 typedef struct { char x; int y; } ac__type_alignof_;
21931 int
21932 main ()
21933 {
21934 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21935 test_array [0] = 0
21936
21937   ;
21938   return 0;
21939 }
21940 _ACEOF
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945   *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948   (eval "$ac_compile") 2>conftest.er1
21949   ac_status=$?
21950   grep -v '^ *+' conftest.er1 >conftest.err
21951   rm -f conftest.er1
21952   cat conftest.err >&5
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } && {
21955          test -z "$ac_c_werror_flag" ||
21956          test ! -s conftest.err
21957        } && test -s conftest.$ac_objext; then
21958   ac_hi=$ac_mid; break
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963         ac_lo=`expr $ac_mid + 1`
21964                         if test $ac_lo -le $ac_mid; then
21965                           ac_lo= ac_hi=
21966                           break
21967                         fi
21968                         ac_mid=`expr 2 '*' $ac_mid + 1`
21969 fi
21970
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972   done
21973 else
21974   echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21976
21977         cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h.  */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h.  */
21983 $ac_includes_default
21984 #ifndef offsetof
21985 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21986 #endif
21987 typedef struct { char x; int y; } ac__type_alignof_;
21988 int
21989 main ()
21990 {
21991 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21992 test_array [0] = 0
21993
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005   (eval "$ac_compile") 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } && {
22012          test -z "$ac_c_werror_flag" ||
22013          test ! -s conftest.err
22014        } && test -s conftest.$ac_objext; then
22015   ac_hi=-1 ac_mid=-1
22016   while :; do
22017     cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 $ac_includes_default
22024 #ifndef offsetof
22025 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22026 #endif
22027 typedef struct { char x; int y; } ac__type_alignof_;
22028 int
22029 main ()
22030 {
22031 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22032 test_array [0] = 0
22033
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042   *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045   (eval "$ac_compile") 2>conftest.er1
22046   ac_status=$?
22047   grep -v '^ *+' conftest.er1 >conftest.err
22048   rm -f conftest.er1
22049   cat conftest.err >&5
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } && {
22052          test -z "$ac_c_werror_flag" ||
22053          test ! -s conftest.err
22054        } && test -s conftest.$ac_objext; then
22055   ac_lo=$ac_mid; break
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060         ac_hi=`expr '(' $ac_mid ')' - 1`
22061                         if test $ac_mid -le $ac_hi; then
22062                           ac_lo= ac_hi=
22063                           break
22064                         fi
22065                         ac_mid=`expr 2 '*' $ac_mid`
22066 fi
22067
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22069   done
22070 else
22071   echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074         ac_lo= ac_hi=
22075 fi
22076
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 fi
22079
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 # Binary search between lo and hi bounds.
22082 while test "x$ac_lo" != "x$ac_hi"; do
22083   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22084   cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h.  */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h.  */
22090 $ac_includes_default
22091 #ifndef offsetof
22092 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22093 #endif
22094 typedef struct { char x; int y; } ac__type_alignof_;
22095 int
22096 main ()
22097 {
22098 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22099 test_array [0] = 0
22100
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112   (eval "$ac_compile") 2>conftest.er1
22113   ac_status=$?
22114   grep -v '^ *+' conftest.er1 >conftest.err
22115   rm -f conftest.er1
22116   cat conftest.err >&5
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); } && {
22119          test -z "$ac_c_werror_flag" ||
22120          test ! -s conftest.err
22121        } && test -s conftest.$ac_objext; then
22122   ac_hi=$ac_mid
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127         ac_lo=`expr '(' $ac_mid ')' + 1`
22128 fi
22129
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 done
22132 case $ac_lo in
22133 ?*) ac_cv_alignof_int=$ac_lo;;
22134 '') if test "$ac_cv_type_int" = yes; then
22135      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22136 See \`config.log' for more details." >&5
22137 echo "$as_me: error: cannot compute alignment of int
22138 See \`config.log' for more details." >&2;}
22139    { (exit 77); exit 77; }; }
22140    else
22141      ac_cv_alignof_int=0
22142    fi ;;
22143 esac
22144 else
22145   cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 $ac_includes_default
22152 #ifndef offsetof
22153 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22154 #endif
22155 typedef struct { char x; int y; } ac__type_alignof_;
22156 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22157 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22158 #include <stdio.h>
22159 #include <stdlib.h>
22160 int
22161 main ()
22162 {
22163
22164   FILE *f = fopen ("conftest.val", "w");
22165   if (! f)
22166     return 1;
22167   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22168     {
22169       long int i = longval ();
22170       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22171         return 1;
22172       fprintf (f, "%ld\n", i);
22173     }
22174   else
22175     {
22176       unsigned long int i = ulongval ();
22177       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22178         return 1;
22179       fprintf (f, "%lu\n", i);
22180     }
22181   return ferror (f) || fclose (f) != 0;
22182
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191   *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194   (eval "$ac_link") 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22198   { (case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203   (eval "$ac_try") 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   ac_cv_alignof_int=`cat conftest.val`
22208 else
22209   echo "$as_me: program exited with status $ac_status" >&5
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 ( exit $ac_status )
22214 if test "$ac_cv_type_int" = yes; then
22215      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22216 See \`config.log' for more details." >&5
22217 echo "$as_me: error: cannot compute alignment of int
22218 See \`config.log' for more details." >&2;}
22219    { (exit 77); exit 77; }; }
22220    else
22221      ac_cv_alignof_int=0
22222    fi
22223 fi
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22225 fi
22226 rm -f conftest.val
22227 fi
22228 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22229 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22230
22231
22232
22233 cat >>confdefs.h <<_ACEOF
22234 #define ALIGNOF_INT $ac_cv_alignof_int
22235 _ACEOF
22236
22237
22238 { echo "$as_me:$LINENO: checking for long" >&5
22239 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22240 if test "${ac_cv_type_long+set}" = set; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 $ac_includes_default
22250 typedef long ac__type_new_;
22251 int
22252 main ()
22253 {
22254 if ((ac__type_new_ *) 0)
22255   return 0;
22256 if (sizeof (ac__type_new_))
22257   return 0;
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266   *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269   (eval "$ac_compile") 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } && {
22276          test -z "$ac_c_werror_flag" ||
22277          test ! -s conftest.err
22278        } && test -s conftest.$ac_objext; then
22279   ac_cv_type_long=yes
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284         ac_cv_type_long=no
22285 fi
22286
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 fi
22289 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22290 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22291
22292 # The cast to long int works around a bug in the HP C Compiler,
22293 # see AC_CHECK_SIZEOF for more information.
22294 { echo "$as_me:$LINENO: checking alignment of long" >&5
22295 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22296 if test "${ac_cv_alignof_long+set}" = set; then
22297   echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299   if test "$cross_compiling" = yes; then
22300   # Depending upon the size, compute the lo and hi bounds.
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307 $ac_includes_default
22308 #ifndef offsetof
22309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22310 #endif
22311 typedef struct { char x; long y; } ac__type_alignof_;
22312 int
22313 main ()
22314 {
22315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22316 test_array [0] = 0
22317
22318   ;
22319   return 0;
22320 }
22321 _ACEOF
22322 rm -f conftest.$ac_objext
22323 if { (ac_try="$ac_compile"
22324 case "(($ac_try" in
22325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326   *) ac_try_echo=$ac_try;;
22327 esac
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329   (eval "$ac_compile") 2>conftest.er1
22330   ac_status=$?
22331   grep -v '^ *+' conftest.er1 >conftest.err
22332   rm -f conftest.er1
22333   cat conftest.err >&5
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); } && {
22336          test -z "$ac_c_werror_flag" ||
22337          test ! -s conftest.err
22338        } && test -s conftest.$ac_objext; then
22339   ac_lo=0 ac_mid=0
22340   while :; do
22341     cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 $ac_includes_default
22348 #ifndef offsetof
22349 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22350 #endif
22351 typedef struct { char x; long y; } ac__type_alignof_;
22352 int
22353 main ()
22354 {
22355 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22356 test_array [0] = 0
22357
22358   ;
22359   return 0;
22360 }
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366   *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369   (eval "$ac_compile") 2>conftest.er1
22370   ac_status=$?
22371   grep -v '^ *+' conftest.er1 >conftest.err
22372   rm -f conftest.er1
22373   cat conftest.err >&5
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); } && {
22376          test -z "$ac_c_werror_flag" ||
22377          test ! -s conftest.err
22378        } && test -s conftest.$ac_objext; then
22379   ac_hi=$ac_mid; break
22380 else
22381   echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384         ac_lo=`expr $ac_mid + 1`
22385                         if test $ac_lo -le $ac_mid; then
22386                           ac_lo= ac_hi=
22387                           break
22388                         fi
22389                         ac_mid=`expr 2 '*' $ac_mid + 1`
22390 fi
22391
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393   done
22394 else
22395   echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22397
22398         cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 $ac_includes_default
22405 #ifndef offsetof
22406 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22407 #endif
22408 typedef struct { char x; long y; } ac__type_alignof_;
22409 int
22410 main ()
22411 {
22412 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22413 test_array [0] = 0
22414
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423   *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426   (eval "$ac_compile") 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } && {
22433          test -z "$ac_c_werror_flag" ||
22434          test ! -s conftest.err
22435        } && test -s conftest.$ac_objext; then
22436   ac_hi=-1 ac_mid=-1
22437   while :; do
22438     cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 $ac_includes_default
22445 #ifndef offsetof
22446 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22447 #endif
22448 typedef struct { char x; long y; } ac__type_alignof_;
22449 int
22450 main ()
22451 {
22452 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22453 test_array [0] = 0
22454
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463   *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466   (eval "$ac_compile") 2>conftest.er1
22467   ac_status=$?
22468   grep -v '^ *+' conftest.er1 >conftest.err
22469   rm -f conftest.er1
22470   cat conftest.err >&5
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); } && {
22473          test -z "$ac_c_werror_flag" ||
22474          test ! -s conftest.err
22475        } && test -s conftest.$ac_objext; then
22476   ac_lo=$ac_mid; break
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481         ac_hi=`expr '(' $ac_mid ')' - 1`
22482                         if test $ac_mid -le $ac_hi; then
22483                           ac_lo= ac_hi=
22484                           break
22485                         fi
22486                         ac_mid=`expr 2 '*' $ac_mid`
22487 fi
22488
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490   done
22491 else
22492   echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495         ac_lo= ac_hi=
22496 fi
22497
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 fi
22500
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 # Binary search between lo and hi bounds.
22503 while test "x$ac_lo" != "x$ac_hi"; do
22504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22505   cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h.  */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h.  */
22511 $ac_includes_default
22512 #ifndef offsetof
22513 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22514 #endif
22515 typedef struct { char x; long y; } ac__type_alignof_;
22516 int
22517 main ()
22518 {
22519 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22520 test_array [0] = 0
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } && {
22540          test -z "$ac_c_werror_flag" ||
22541          test ! -s conftest.err
22542        } && test -s conftest.$ac_objext; then
22543   ac_hi=$ac_mid
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         ac_lo=`expr '(' $ac_mid ')' + 1`
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 done
22553 case $ac_lo in
22554 ?*) ac_cv_alignof_long=$ac_lo;;
22555 '') if test "$ac_cv_type_long" = yes; then
22556      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22557 See \`config.log' for more details." >&5
22558 echo "$as_me: error: cannot compute alignment of long
22559 See \`config.log' for more details." >&2;}
22560    { (exit 77); exit 77; }; }
22561    else
22562      ac_cv_alignof_long=0
22563    fi ;;
22564 esac
22565 else
22566   cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572 $ac_includes_default
22573 #ifndef offsetof
22574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22575 #endif
22576 typedef struct { char x; long y; } ac__type_alignof_;
22577 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22578 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22579 #include <stdio.h>
22580 #include <stdlib.h>
22581 int
22582 main ()
22583 {
22584
22585   FILE *f = fopen ("conftest.val", "w");
22586   if (! f)
22587     return 1;
22588   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22589     {
22590       long int i = longval ();
22591       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22592         return 1;
22593       fprintf (f, "%ld\n", i);
22594     }
22595   else
22596     {
22597       unsigned long int i = ulongval ();
22598       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22599         return 1;
22600       fprintf (f, "%lu\n", i);
22601     }
22602   return ferror (f) || fclose (f) != 0;
22603
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_link") 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22619   { (case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_try") 2>&5
22625   ac_status=$?
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); }; }; then
22628   ac_cv_alignof_long=`cat conftest.val`
22629 else
22630   echo "$as_me: program exited with status $ac_status" >&5
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634 ( exit $ac_status )
22635 if test "$ac_cv_type_long" = yes; then
22636      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22637 See \`config.log' for more details." >&5
22638 echo "$as_me: error: cannot compute alignment of long
22639 See \`config.log' for more details." >&2;}
22640    { (exit 77); exit 77; }; }
22641    else
22642      ac_cv_alignof_long=0
22643    fi
22644 fi
22645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22646 fi
22647 rm -f conftest.val
22648 fi
22649 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22650 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22651
22652
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define ALIGNOF_LONG $ac_cv_alignof_long
22656 _ACEOF
22657
22658
22659 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22660   { echo "$as_me:$LINENO: checking for long long int" >&5
22661 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22662 if test "${ac_cv_type_long_long_int+set}" = set; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h.  */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h.  */
22671 $ac_includes_default
22672 typedef long long int ac__type_new_;
22673 int
22674 main ()
22675 {
22676 if ((ac__type_new_ *) 0)
22677   return 0;
22678 if (sizeof (ac__type_new_))
22679   return 0;
22680   ;
22681   return 0;
22682 }
22683 _ACEOF
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688   *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691   (eval "$ac_compile") 2>conftest.er1
22692   ac_status=$?
22693   grep -v '^ *+' conftest.er1 >conftest.err
22694   rm -f conftest.er1
22695   cat conftest.err >&5
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } && {
22698          test -z "$ac_c_werror_flag" ||
22699          test ! -s conftest.err
22700        } && test -s conftest.$ac_objext; then
22701   ac_cv_type_long_long_int=yes
22702 else
22703   echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706         ac_cv_type_long_long_int=no
22707 fi
22708
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 fi
22711 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22712 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22713
22714 # The cast to long int works around a bug in the HP C Compiler,
22715 # see AC_CHECK_SIZEOF for more information.
22716 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22717 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22718 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22719   echo $ECHO_N "(cached) $ECHO_C" >&6
22720 else
22721   if test "$cross_compiling" = yes; then
22722   # Depending upon the size, compute the lo and hi bounds.
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h.  */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h.  */
22729 $ac_includes_default
22730 #ifndef offsetof
22731 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22732 #endif
22733 typedef struct { char x; long long int y; } ac__type_alignof_;
22734 int
22735 main ()
22736 {
22737 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22738 test_array [0] = 0
22739
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext
22745 if { (ac_try="$ac_compile"
22746 case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_compile") 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } && {
22758          test -z "$ac_c_werror_flag" ||
22759          test ! -s conftest.err
22760        } && test -s conftest.$ac_objext; then
22761   ac_lo=0 ac_mid=0
22762   while :; do
22763     cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h.  */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h.  */
22769 $ac_includes_default
22770 #ifndef offsetof
22771 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22772 #endif
22773 typedef struct { char x; long long int y; } ac__type_alignof_;
22774 int
22775 main ()
22776 {
22777 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22778 test_array [0] = 0
22779
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_compile") 2>conftest.er1
22792   ac_status=$?
22793   grep -v '^ *+' conftest.er1 >conftest.err
22794   rm -f conftest.er1
22795   cat conftest.err >&5
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } && {
22798          test -z "$ac_c_werror_flag" ||
22799          test ! -s conftest.err
22800        } && test -s conftest.$ac_objext; then
22801   ac_hi=$ac_mid; break
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         ac_lo=`expr $ac_mid + 1`
22807                         if test $ac_lo -le $ac_mid; then
22808                           ac_lo= ac_hi=
22809                           break
22810                         fi
22811                         ac_mid=`expr 2 '*' $ac_mid + 1`
22812 fi
22813
22814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815   done
22816 else
22817   echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820         cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h.  */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h.  */
22826 $ac_includes_default
22827 #ifndef offsetof
22828 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22829 #endif
22830 typedef struct { char x; long long int y; } ac__type_alignof_;
22831 int
22832 main ()
22833 {
22834 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22835 test_array [0] = 0
22836
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 rm -f conftest.$ac_objext
22842 if { (ac_try="$ac_compile"
22843 case "(($ac_try" in
22844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845   *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848   (eval "$ac_compile") 2>conftest.er1
22849   ac_status=$?
22850   grep -v '^ *+' conftest.er1 >conftest.err
22851   rm -f conftest.er1
22852   cat conftest.err >&5
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } && {
22855          test -z "$ac_c_werror_flag" ||
22856          test ! -s conftest.err
22857        } && test -s conftest.$ac_objext; then
22858   ac_hi=-1 ac_mid=-1
22859   while :; do
22860     cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h.  */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h.  */
22866 $ac_includes_default
22867 #ifndef offsetof
22868 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22869 #endif
22870 typedef struct { char x; long long int y; } ac__type_alignof_;
22871 int
22872 main ()
22873 {
22874 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22875 test_array [0] = 0
22876
22877   ;
22878   return 0;
22879 }
22880 _ACEOF
22881 rm -f conftest.$ac_objext
22882 if { (ac_try="$ac_compile"
22883 case "(($ac_try" in
22884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885   *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888   (eval "$ac_compile") 2>conftest.er1
22889   ac_status=$?
22890   grep -v '^ *+' conftest.er1 >conftest.err
22891   rm -f conftest.er1
22892   cat conftest.err >&5
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); } && {
22895          test -z "$ac_c_werror_flag" ||
22896          test ! -s conftest.err
22897        } && test -s conftest.$ac_objext; then
22898   ac_lo=$ac_mid; break
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903         ac_hi=`expr '(' $ac_mid ')' - 1`
22904                         if test $ac_mid -le $ac_hi; then
22905                           ac_lo= ac_hi=
22906                           break
22907                         fi
22908                         ac_mid=`expr 2 '*' $ac_mid`
22909 fi
22910
22911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22912   done
22913 else
22914   echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22916
22917         ac_lo= ac_hi=
22918 fi
22919
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921 fi
22922
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 # Binary search between lo and hi bounds.
22925 while test "x$ac_lo" != "x$ac_hi"; do
22926   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22927   cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 $ac_includes_default
22934 #ifndef offsetof
22935 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22936 #endif
22937 typedef struct { char x; long long int y; } ac__type_alignof_;
22938 int
22939 main ()
22940 {
22941 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22942 test_array [0] = 0
22943
22944   ;
22945   return 0;
22946 }
22947 _ACEOF
22948 rm -f conftest.$ac_objext
22949 if { (ac_try="$ac_compile"
22950 case "(($ac_try" in
22951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22952   *) ac_try_echo=$ac_try;;
22953 esac
22954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22955   (eval "$ac_compile") 2>conftest.er1
22956   ac_status=$?
22957   grep -v '^ *+' conftest.er1 >conftest.err
22958   rm -f conftest.er1
22959   cat conftest.err >&5
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); } && {
22962          test -z "$ac_c_werror_flag" ||
22963          test ! -s conftest.err
22964        } && test -s conftest.$ac_objext; then
22965   ac_hi=$ac_mid
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970         ac_lo=`expr '(' $ac_mid ')' + 1`
22971 fi
22972
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 done
22975 case $ac_lo in
22976 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22977 '') if test "$ac_cv_type_long_long_int" = yes; then
22978      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22979 See \`config.log' for more details." >&5
22980 echo "$as_me: error: cannot compute alignment of long long int
22981 See \`config.log' for more details." >&2;}
22982    { (exit 77); exit 77; }; }
22983    else
22984      ac_cv_alignof_long_long_int=0
22985    fi ;;
22986 esac
22987 else
22988   cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 $ac_includes_default
22995 #ifndef offsetof
22996 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22997 #endif
22998 typedef struct { char x; long long int y; } ac__type_alignof_;
22999 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23000 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23001 #include <stdio.h>
23002 #include <stdlib.h>
23003 int
23004 main ()
23005 {
23006
23007   FILE *f = fopen ("conftest.val", "w");
23008   if (! f)
23009     return 1;
23010   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23011     {
23012       long int i = longval ();
23013       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23014         return 1;
23015       fprintf (f, "%ld\n", i);
23016     }
23017   else
23018     {
23019       unsigned long int i = ulongval ();
23020       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23021         return 1;
23022       fprintf (f, "%lu\n", i);
23023     }
23024   return ferror (f) || fclose (f) != 0;
23025
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest$ac_exeext
23031 if { (ac_try="$ac_link"
23032 case "(($ac_try" in
23033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034   *) ac_try_echo=$ac_try;;
23035 esac
23036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23037   (eval "$ac_link") 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23041   { (case "(($ac_try" in
23042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043   *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046   (eval "$ac_try") 2>&5
23047   ac_status=$?
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); }; }; then
23050   ac_cv_alignof_long_long_int=`cat conftest.val`
23051 else
23052   echo "$as_me: program exited with status $ac_status" >&5
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 ( exit $ac_status )
23057 if test "$ac_cv_type_long_long_int" = yes; then
23058      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23059 See \`config.log' for more details." >&5
23060 echo "$as_me: error: cannot compute alignment of long long int
23061 See \`config.log' for more details." >&2;}
23062    { (exit 77); exit 77; }; }
23063    else
23064      ac_cv_alignof_long_long_int=0
23065    fi
23066 fi
23067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23068 fi
23069 rm -f conftest.val
23070 fi
23071 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23072 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23073
23074
23075
23076 cat >>confdefs.h <<_ACEOF
23077 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23078 _ACEOF
23079
23080
23081 fi
23082 { echo "$as_me:$LINENO: checking for double" >&5
23083 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23084 if test "${ac_cv_type_double+set}" = set; then
23085   echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087   cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 $ac_includes_default
23094 typedef double ac__type_new_;
23095 int
23096 main ()
23097 {
23098 if ((ac__type_new_ *) 0)
23099   return 0;
23100 if (sizeof (ac__type_new_))
23101   return 0;
23102   ;
23103   return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext
23107 if { (ac_try="$ac_compile"
23108 case "(($ac_try" in
23109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110   *) ac_try_echo=$ac_try;;
23111 esac
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113   (eval "$ac_compile") 2>conftest.er1
23114   ac_status=$?
23115   grep -v '^ *+' conftest.er1 >conftest.err
23116   rm -f conftest.er1
23117   cat conftest.err >&5
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); } && {
23120          test -z "$ac_c_werror_flag" ||
23121          test ! -s conftest.err
23122        } && test -s conftest.$ac_objext; then
23123   ac_cv_type_double=yes
23124 else
23125   echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23127
23128         ac_cv_type_double=no
23129 fi
23130
23131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23132 fi
23133 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23134 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23135
23136 # The cast to long int works around a bug in the HP C Compiler,
23137 # see AC_CHECK_SIZEOF for more information.
23138 { echo "$as_me:$LINENO: checking alignment of double" >&5
23139 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23140 if test "${ac_cv_alignof_double+set}" = set; then
23141   echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143   if test "$cross_compiling" = yes; then
23144   # Depending upon the size, compute the lo and hi bounds.
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h.  */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h.  */
23151 $ac_includes_default
23152 #ifndef offsetof
23153 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23154 #endif
23155 typedef struct { char x; double y; } ac__type_alignof_;
23156 int
23157 main ()
23158 {
23159 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23160 test_array [0] = 0
23161
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext
23167 if { (ac_try="$ac_compile"
23168 case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_compile") 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } && {
23180          test -z "$ac_c_werror_flag" ||
23181          test ! -s conftest.err
23182        } && test -s conftest.$ac_objext; then
23183   ac_lo=0 ac_mid=0
23184   while :; do
23185     cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 $ac_includes_default
23192 #ifndef offsetof
23193 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23194 #endif
23195 typedef struct { char x; double y; } ac__type_alignof_;
23196 int
23197 main ()
23198 {
23199 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23200 test_array [0] = 0
23201
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext
23207 if { (ac_try="$ac_compile"
23208 case "(($ac_try" in
23209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210   *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213   (eval "$ac_compile") 2>conftest.er1
23214   ac_status=$?
23215   grep -v '^ *+' conftest.er1 >conftest.err
23216   rm -f conftest.er1
23217   cat conftest.err >&5
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); } && {
23220          test -z "$ac_c_werror_flag" ||
23221          test ! -s conftest.err
23222        } && test -s conftest.$ac_objext; then
23223   ac_hi=$ac_mid; break
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228         ac_lo=`expr $ac_mid + 1`
23229                         if test $ac_lo -le $ac_mid; then
23230                           ac_lo= ac_hi=
23231                           break
23232                         fi
23233                         ac_mid=`expr 2 '*' $ac_mid + 1`
23234 fi
23235
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237   done
23238 else
23239   echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23241
23242         cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 $ac_includes_default
23249 #ifndef offsetof
23250 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23251 #endif
23252 typedef struct { char x; double y; } ac__type_alignof_;
23253 int
23254 main ()
23255 {
23256 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23257 test_array [0] = 0
23258
23259   ;
23260   return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest.$ac_objext
23264 if { (ac_try="$ac_compile"
23265 case "(($ac_try" in
23266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267   *) ac_try_echo=$ac_try;;
23268 esac
23269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270   (eval "$ac_compile") 2>conftest.er1
23271   ac_status=$?
23272   grep -v '^ *+' conftest.er1 >conftest.err
23273   rm -f conftest.er1
23274   cat conftest.err >&5
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); } && {
23277          test -z "$ac_c_werror_flag" ||
23278          test ! -s conftest.err
23279        } && test -s conftest.$ac_objext; then
23280   ac_hi=-1 ac_mid=-1
23281   while :; do
23282     cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h.  */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h.  */
23288 $ac_includes_default
23289 #ifndef offsetof
23290 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23291 #endif
23292 typedef struct { char x; double y; } ac__type_alignof_;
23293 int
23294 main ()
23295 {
23296 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23297 test_array [0] = 0
23298
23299   ;
23300   return 0;
23301 }
23302 _ACEOF
23303 rm -f conftest.$ac_objext
23304 if { (ac_try="$ac_compile"
23305 case "(($ac_try" in
23306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307   *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310   (eval "$ac_compile") 2>conftest.er1
23311   ac_status=$?
23312   grep -v '^ *+' conftest.er1 >conftest.err
23313   rm -f conftest.er1
23314   cat conftest.err >&5
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); } && {
23317          test -z "$ac_c_werror_flag" ||
23318          test ! -s conftest.err
23319        } && test -s conftest.$ac_objext; then
23320   ac_lo=$ac_mid; break
23321 else
23322   echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23324
23325         ac_hi=`expr '(' $ac_mid ')' - 1`
23326                         if test $ac_mid -le $ac_hi; then
23327                           ac_lo= ac_hi=
23328                           break
23329                         fi
23330                         ac_mid=`expr 2 '*' $ac_mid`
23331 fi
23332
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334   done
23335 else
23336   echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23338
23339         ac_lo= ac_hi=
23340 fi
23341
23342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343 fi
23344
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 # Binary search between lo and hi bounds.
23347 while test "x$ac_lo" != "x$ac_hi"; do
23348   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23349   cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355 $ac_includes_default
23356 #ifndef offsetof
23357 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23358 #endif
23359 typedef struct { char x; double y; } ac__type_alignof_;
23360 int
23361 main ()
23362 {
23363 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23364 test_array [0] = 0
23365
23366   ;
23367   return 0;
23368 }
23369 _ACEOF
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374   *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377   (eval "$ac_compile") 2>conftest.er1
23378   ac_status=$?
23379   grep -v '^ *+' conftest.er1 >conftest.err
23380   rm -f conftest.er1
23381   cat conftest.err >&5
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); } && {
23384          test -z "$ac_c_werror_flag" ||
23385          test ! -s conftest.err
23386        } && test -s conftest.$ac_objext; then
23387   ac_hi=$ac_mid
23388 else
23389   echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392         ac_lo=`expr '(' $ac_mid ')' + 1`
23393 fi
23394
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 done
23397 case $ac_lo in
23398 ?*) ac_cv_alignof_double=$ac_lo;;
23399 '') if test "$ac_cv_type_double" = yes; then
23400      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23401 See \`config.log' for more details." >&5
23402 echo "$as_me: error: cannot compute alignment of double
23403 See \`config.log' for more details." >&2;}
23404    { (exit 77); exit 77; }; }
23405    else
23406      ac_cv_alignof_double=0
23407    fi ;;
23408 esac
23409 else
23410   cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416 $ac_includes_default
23417 #ifndef offsetof
23418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23419 #endif
23420 typedef struct { char x; double y; } ac__type_alignof_;
23421 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23422 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23423 #include <stdio.h>
23424 #include <stdlib.h>
23425 int
23426 main ()
23427 {
23428
23429   FILE *f = fopen ("conftest.val", "w");
23430   if (! f)
23431     return 1;
23432   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23433     {
23434       long int i = longval ();
23435       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23436         return 1;
23437       fprintf (f, "%ld\n", i);
23438     }
23439   else
23440     {
23441       unsigned long int i = ulongval ();
23442       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23443         return 1;
23444       fprintf (f, "%lu\n", i);
23445     }
23446   return ferror (f) || fclose (f) != 0;
23447
23448   ;
23449   return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest$ac_exeext
23453 if { (ac_try="$ac_link"
23454 case "(($ac_try" in
23455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456   *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459   (eval "$ac_link") 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23463   { (case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_try") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   ac_cv_alignof_double=`cat conftest.val`
23473 else
23474   echo "$as_me: program exited with status $ac_status" >&5
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23477
23478 ( exit $ac_status )
23479 if test "$ac_cv_type_double" = yes; then
23480      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23481 See \`config.log' for more details." >&5
23482 echo "$as_me: error: cannot compute alignment of double
23483 See \`config.log' for more details." >&2;}
23484    { (exit 77); exit 77; }; }
23485    else
23486      ac_cv_alignof_double=0
23487    fi
23488 fi
23489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23490 fi
23491 rm -f conftest.val
23492 fi
23493 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23494 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23495
23496
23497
23498 cat >>confdefs.h <<_ACEOF
23499 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23500 _ACEOF
23501
23502
23503
23504 # Compute maximum alignment of any basic type.
23505 # We assume long's alignment is at least as strong as char, short, or int;
23506 # but we must check long long (if it exists) and double.
23507
23508 MAX_ALIGNOF=$ac_cv_alignof_long
23509 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23510   MAX_ALIGNOF=$ac_cv_alignof_double
23511 fi
23512 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23513   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23514 fi
23515
23516 cat >>confdefs.h <<_ACEOF
23517 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23518 _ACEOF
23519
23520
23521
23522 # Some platforms predefine the types int8, int16, etc.  Only check
23523 # a (hopefully) representative subset.
23524 { echo "$as_me:$LINENO: checking for int8" >&5
23525 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23526 if test "${ac_cv_type_int8+set}" = set; then
23527   echo $ECHO_N "(cached) $ECHO_C" >&6
23528 else
23529   cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535 #include <stdio.h>
23536 #ifdef HAVE_SUPPORTDEFS_H
23537 #include <SupportDefs.h>
23538 #endif
23539
23540 typedef int8 ac__type_new_;
23541 int
23542 main ()
23543 {
23544 if ((ac__type_new_ *) 0)
23545   return 0;
23546 if (sizeof (ac__type_new_))
23547   return 0;
23548   ;
23549   return 0;
23550 }
23551 _ACEOF
23552 rm -f conftest.$ac_objext
23553 if { (ac_try="$ac_compile"
23554 case "(($ac_try" in
23555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556   *) ac_try_echo=$ac_try;;
23557 esac
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559   (eval "$ac_compile") 2>conftest.er1
23560   ac_status=$?
23561   grep -v '^ *+' conftest.er1 >conftest.err
23562   rm -f conftest.er1
23563   cat conftest.err >&5
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); } && {
23566          test -z "$ac_c_werror_flag" ||
23567          test ! -s conftest.err
23568        } && test -s conftest.$ac_objext; then
23569   ac_cv_type_int8=yes
23570 else
23571   echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23573
23574         ac_cv_type_int8=no
23575 fi
23576
23577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23578 fi
23579 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23580 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23581 if test $ac_cv_type_int8 = yes; then
23582
23583 cat >>confdefs.h <<_ACEOF
23584 #define HAVE_INT8 1
23585 _ACEOF
23586
23587
23588 fi
23589 { echo "$as_me:$LINENO: checking for uint8" >&5
23590 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23591 if test "${ac_cv_type_uint8+set}" = set; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594   cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h.  */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h.  */
23600 #include <stdio.h>
23601 #ifdef HAVE_SUPPORTDEFS_H
23602 #include <SupportDefs.h>
23603 #endif
23604
23605 typedef uint8 ac__type_new_;
23606 int
23607 main ()
23608 {
23609 if ((ac__type_new_ *) 0)
23610   return 0;
23611 if (sizeof (ac__type_new_))
23612   return 0;
23613   ;
23614   return 0;
23615 }
23616 _ACEOF
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621   *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624   (eval "$ac_compile") 2>conftest.er1
23625   ac_status=$?
23626   grep -v '^ *+' conftest.er1 >conftest.err
23627   rm -f conftest.er1
23628   cat conftest.err >&5
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); } && {
23631          test -z "$ac_c_werror_flag" ||
23632          test ! -s conftest.err
23633        } && test -s conftest.$ac_objext; then
23634   ac_cv_type_uint8=yes
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639         ac_cv_type_uint8=no
23640 fi
23641
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643 fi
23644 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23645 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23646 if test $ac_cv_type_uint8 = yes; then
23647
23648 cat >>confdefs.h <<_ACEOF
23649 #define HAVE_UINT8 1
23650 _ACEOF
23651
23652
23653 fi
23654 { echo "$as_me:$LINENO: checking for int64" >&5
23655 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23656 if test "${ac_cv_type_int64+set}" = set; then
23657   echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659   cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 #include <stdio.h>
23666 #ifdef HAVE_SUPPORTDEFS_H
23667 #include <SupportDefs.h>
23668 #endif
23669
23670 typedef int64 ac__type_new_;
23671 int
23672 main ()
23673 {
23674 if ((ac__type_new_ *) 0)
23675   return 0;
23676 if (sizeof (ac__type_new_))
23677   return 0;
23678   ;
23679   return 0;
23680 }
23681 _ACEOF
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686   *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689   (eval "$ac_compile") 2>conftest.er1
23690   ac_status=$?
23691   grep -v '^ *+' conftest.er1 >conftest.err
23692   rm -f conftest.er1
23693   cat conftest.err >&5
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); } && {
23696          test -z "$ac_c_werror_flag" ||
23697          test ! -s conftest.err
23698        } && test -s conftest.$ac_objext; then
23699   ac_cv_type_int64=yes
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704         ac_cv_type_int64=no
23705 fi
23706
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 fi
23709 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23710 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23711 if test $ac_cv_type_int64 = yes; then
23712
23713 cat >>confdefs.h <<_ACEOF
23714 #define HAVE_INT64 1
23715 _ACEOF
23716
23717
23718 fi
23719 { echo "$as_me:$LINENO: checking for uint64" >&5
23720 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23721 if test "${ac_cv_type_uint64+set}" = set; then
23722   echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724   cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h.  */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h.  */
23730 #include <stdio.h>
23731 #ifdef HAVE_SUPPORTDEFS_H
23732 #include <SupportDefs.h>
23733 #endif
23734
23735 typedef uint64 ac__type_new_;
23736 int
23737 main ()
23738 {
23739 if ((ac__type_new_ *) 0)
23740   return 0;
23741 if (sizeof (ac__type_new_))
23742   return 0;
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754   (eval "$ac_compile") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_c_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest.$ac_objext; then
23764   ac_cv_type_uint64=yes
23765 else
23766   echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23768
23769         ac_cv_type_uint64=no
23770 fi
23771
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 fi
23774 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23775 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23776 if test $ac_cv_type_uint64 = yes; then
23777
23778 cat >>confdefs.h <<_ACEOF
23779 #define HAVE_UINT64 1
23780 _ACEOF
23781
23782
23783 fi
23784
23785
23786 # We also check for sig_atomic_t, which *should* be defined per ANSI
23787 # C, but is missing on some old platforms.
23788 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23789 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23790 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23791   echo $ECHO_N "(cached) $ECHO_C" >&6
23792 else
23793   cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799 #include <signal.h>
23800
23801 typedef sig_atomic_t ac__type_new_;
23802 int
23803 main ()
23804 {
23805 if ((ac__type_new_ *) 0)
23806   return 0;
23807 if (sizeof (ac__type_new_))
23808   return 0;
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext
23814 if { (ac_try="$ac_compile"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820   (eval "$ac_compile") 2>conftest.er1
23821   ac_status=$?
23822   grep -v '^ *+' conftest.er1 >conftest.err
23823   rm -f conftest.er1
23824   cat conftest.err >&5
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); } && {
23827          test -z "$ac_c_werror_flag" ||
23828          test ! -s conftest.err
23829        } && test -s conftest.$ac_objext; then
23830   ac_cv_type_sig_atomic_t=yes
23831 else
23832   echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835         ac_cv_type_sig_atomic_t=no
23836 fi
23837
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 fi
23840 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23841 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23842 if test $ac_cv_type_sig_atomic_t = yes; then
23843
23844 cat >>confdefs.h <<_ACEOF
23845 #define HAVE_SIG_ATOMIC_T 1
23846 _ACEOF
23847
23848
23849 fi
23850
23851
23852
23853 # If the user did not disable integer datetimes, check that
23854 # there is a working 64-bit integral type to use.
23855 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23856    test x"$HAVE_LONG_INT_64" = x"no" &&
23857    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23858    test x"$HAVE_INT64" = x"no" ; then
23859   { { echo "$as_me:$LINENO: error:
23860 Integer-based datetime support requires a 64-bit integer type,
23861 but no such type could be found. The --disable-integer-datetimes
23862 configure option can be used to disable integer-based storage
23863 of datetime values." >&5
23864 echo "$as_me: error:
23865 Integer-based datetime support requires a 64-bit integer type,
23866 but no such type could be found. The --disable-integer-datetimes
23867 configure option can be used to disable integer-based storage
23868 of datetime values." >&2;}
23869    { (exit 1); exit 1; }; }
23870 fi
23871
23872
23873 if test "$PORTNAME" != "win32"
23874 then
23875 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23876 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23877 if test "${pgac_cv_func_posix_signals+set}" = set; then
23878   echo $ECHO_N "(cached) $ECHO_C" >&6
23879 else
23880   cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h.  */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h.  */
23886 #include <signal.h>
23887
23888 int
23889 main ()
23890 {
23891 struct sigaction act, oact;
23892 sigemptyset(&act.sa_mask);
23893 act.sa_flags = SA_RESTART;
23894 sigaction(0, &act, &oact);
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 rm -f conftest.$ac_objext conftest$ac_exeext
23900 if { (ac_try="$ac_link"
23901 case "(($ac_try" in
23902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903   *) ac_try_echo=$ac_try;;
23904 esac
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906   (eval "$ac_link") 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } && {
23913          test -z "$ac_c_werror_flag" ||
23914          test ! -s conftest.err
23915        } && test -s conftest$ac_exeext &&
23916        $as_test_x conftest$ac_exeext; then
23917   pgac_cv_func_posix_signals=yes
23918 else
23919   echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23921
23922         pgac_cv_func_posix_signals=no
23923 fi
23924
23925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23926       conftest$ac_exeext conftest.$ac_ext
23927 fi
23928 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23929 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23930 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23931
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_POSIX_SIGNALS
23934 _ACEOF
23935
23936 fi
23937 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23938
23939 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23940   { { echo "$as_me:$LINENO: error:
23941 Thread-safety requires POSIX signals, which are not supported by this
23942 operating system." >&5
23943 echo "$as_me: error:
23944 Thread-safety requires POSIX signals, which are not supported by this
23945 operating system." >&2;}
23946    { (exit 1); exit 1; }; }
23947 fi
23948 fi
23949
23950 if test $ac_cv_func_fseeko = yes; then
23951 # Check whether --enable-largefile was given.
23952 if test "${enable_largefile+set}" = set; then
23953   enableval=$enable_largefile;
23954 fi
23955
23956 if test "$enable_largefile" != no; then
23957
23958   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23959 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23960 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23961   echo $ECHO_N "(cached) $ECHO_C" >&6
23962 else
23963   ac_cv_sys_largefile_CC=no
23964      if test "$GCC" != yes; then
23965        ac_save_CC=$CC
23966        while :; do
23967          # IRIX 6.2 and later do not support large files by default,
23968          # so use the C compiler's -n32 option if that helps.
23969          cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975 #include <sys/types.h>
23976  /* Check that off_t can represent 2**63 - 1 correctly.
23977     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23978     since some C++ compilers masquerading as C compilers
23979     incorrectly reject 9223372036854775807.  */
23980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23981   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23982                        && LARGE_OFF_T % 2147483647 == 1)
23983                       ? 1 : -1];
23984 int
23985 main ()
23986 {
23987
23988   ;
23989   return 0;
23990 }
23991 _ACEOF
23992          rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996   *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999   (eval "$ac_compile") 2>conftest.er1
24000   ac_status=$?
24001   grep -v '^ *+' conftest.er1 >conftest.err
24002   rm -f conftest.er1
24003   cat conftest.err >&5
24004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); } && {
24006          test -z "$ac_c_werror_flag" ||
24007          test ! -s conftest.err
24008        } && test -s conftest.$ac_objext; then
24009   break
24010 else
24011   echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24013
24014
24015 fi
24016
24017 rm -f core conftest.err conftest.$ac_objext
24018          CC="$CC -n32"
24019          rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023   *) ac_try_echo=$ac_try;;
24024 esac
24025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24026   (eval "$ac_compile") 2>conftest.er1
24027   ac_status=$?
24028   grep -v '^ *+' conftest.er1 >conftest.err
24029   rm -f conftest.er1
24030   cat conftest.err >&5
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); } && {
24033          test -z "$ac_c_werror_flag" ||
24034          test ! -s conftest.err
24035        } && test -s conftest.$ac_objext; then
24036   ac_cv_sys_largefile_CC=' -n32'; break
24037 else
24038   echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24040
24041
24042 fi
24043
24044 rm -f core conftest.err conftest.$ac_objext
24045          break
24046        done
24047        CC=$ac_save_CC
24048        rm -f conftest.$ac_ext
24049     fi
24050 fi
24051 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24052 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24053   if test "$ac_cv_sys_largefile_CC" != no; then
24054     CC=$CC$ac_cv_sys_largefile_CC
24055   fi
24056
24057   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24058 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24059 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24060   echo $ECHO_N "(cached) $ECHO_C" >&6
24061 else
24062   while :; do
24063   cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h.  */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h.  */
24069 #include <sys/types.h>
24070  /* Check that off_t can represent 2**63 - 1 correctly.
24071     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24072     since some C++ compilers masquerading as C compilers
24073     incorrectly reject 9223372036854775807.  */
24074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24075   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24076                        && LARGE_OFF_T % 2147483647 == 1)
24077                       ? 1 : -1];
24078 int
24079 main ()
24080 {
24081
24082   ;
24083   return 0;
24084 }
24085 _ACEOF
24086 rm -f conftest.$ac_objext
24087 if { (ac_try="$ac_compile"
24088 case "(($ac_try" in
24089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090   *) ac_try_echo=$ac_try;;
24091 esac
24092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24093   (eval "$ac_compile") 2>conftest.er1
24094   ac_status=$?
24095   grep -v '^ *+' conftest.er1 >conftest.err
24096   rm -f conftest.er1
24097   cat conftest.err >&5
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); } && {
24100          test -z "$ac_c_werror_flag" ||
24101          test ! -s conftest.err
24102        } && test -s conftest.$ac_objext; then
24103   ac_cv_sys_file_offset_bits=no; break
24104 else
24105   echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24107
24108
24109 fi
24110
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112   cat >conftest.$ac_ext <<_ACEOF
24113 /* confdefs.h.  */
24114 _ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h.  */
24118 #define _FILE_OFFSET_BITS 64
24119 #include <sys/types.h>
24120  /* Check that off_t can represent 2**63 - 1 correctly.
24121     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24122     since some C++ compilers masquerading as C compilers
24123     incorrectly reject 9223372036854775807.  */
24124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24125   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24126                        && LARGE_OFF_T % 2147483647 == 1)
24127                       ? 1 : -1];
24128 int
24129 main ()
24130 {
24131
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (ac_try="$ac_compile"
24138 case "(($ac_try" in
24139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140   *) ac_try_echo=$ac_try;;
24141 esac
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143   (eval "$ac_compile") 2>conftest.er1
24144   ac_status=$?
24145   grep -v '^ *+' conftest.er1 >conftest.err
24146   rm -f conftest.er1
24147   cat conftest.err >&5
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } && {
24150          test -z "$ac_c_werror_flag" ||
24151          test ! -s conftest.err
24152        } && test -s conftest.$ac_objext; then
24153   ac_cv_sys_file_offset_bits=64; break
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158
24159 fi
24160
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162   ac_cv_sys_file_offset_bits=unknown
24163   break
24164 done
24165 fi
24166 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24167 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24168 case $ac_cv_sys_file_offset_bits in #(
24169   no | unknown) ;;
24170   *)
24171 cat >>confdefs.h <<_ACEOF
24172 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24173 _ACEOF
24174 ;;
24175 esac
24176 rm -f conftest*
24177   if test $ac_cv_sys_file_offset_bits = unknown; then
24178     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24179 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24180 if test "${ac_cv_sys_large_files+set}" = set; then
24181   echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183   while :; do
24184   cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h.  */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h.  */
24190 #include <sys/types.h>
24191  /* Check that off_t can represent 2**63 - 1 correctly.
24192     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24193     since some C++ compilers masquerading as C compilers
24194     incorrectly reject 9223372036854775807.  */
24195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24196   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24197                        && LARGE_OFF_T % 2147483647 == 1)
24198                       ? 1 : -1];
24199 int
24200 main ()
24201 {
24202
24203   ;
24204   return 0;
24205 }
24206 _ACEOF
24207 rm -f conftest.$ac_objext
24208 if { (ac_try="$ac_compile"
24209 case "(($ac_try" in
24210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211   *) ac_try_echo=$ac_try;;
24212 esac
24213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24214   (eval "$ac_compile") 2>conftest.er1
24215   ac_status=$?
24216   grep -v '^ *+' conftest.er1 >conftest.err
24217   rm -f conftest.er1
24218   cat conftest.err >&5
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); } && {
24221          test -z "$ac_c_werror_flag" ||
24222          test ! -s conftest.err
24223        } && test -s conftest.$ac_objext; then
24224   ac_cv_sys_large_files=no; break
24225 else
24226   echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24228
24229
24230 fi
24231
24232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24233   cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h.  */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h.  */
24239 #define _LARGE_FILES 1
24240 #include <sys/types.h>
24241  /* Check that off_t can represent 2**63 - 1 correctly.
24242     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24243     since some C++ compilers masquerading as C compilers
24244     incorrectly reject 9223372036854775807.  */
24245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24246   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24247                        && LARGE_OFF_T % 2147483647 == 1)
24248                       ? 1 : -1];
24249 int
24250 main ()
24251 {
24252
24253   ;
24254   return 0;
24255 }
24256 _ACEOF
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261   *) ac_try_echo=$ac_try;;
24262 esac
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264   (eval "$ac_compile") 2>conftest.er1
24265   ac_status=$?
24266   grep -v '^ *+' conftest.er1 >conftest.err
24267   rm -f conftest.er1
24268   cat conftest.err >&5
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } && {
24271          test -z "$ac_c_werror_flag" ||
24272          test ! -s conftest.err
24273        } && test -s conftest.$ac_objext; then
24274   ac_cv_sys_large_files=1; break
24275 else
24276   echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279
24280 fi
24281
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283   ac_cv_sys_large_files=unknown
24284   break
24285 done
24286 fi
24287 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24288 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24289 case $ac_cv_sys_large_files in #(
24290   no | unknown) ;;
24291   *)
24292 cat >>confdefs.h <<_ACEOF
24293 #define _LARGE_FILES $ac_cv_sys_large_files
24294 _ACEOF
24295 ;;
24296 esac
24297 rm -f conftest*
24298   fi
24299 fi
24300
24301 fi
24302
24303 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24304 { echo "$as_me:$LINENO: checking for off_t" >&5
24305 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24306 if test "${ac_cv_type_off_t+set}" = set; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24309   cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h.  */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h.  */
24315 $ac_includes_default
24316 typedef off_t ac__type_new_;
24317 int
24318 main ()
24319 {
24320 if ((ac__type_new_ *) 0)
24321   return 0;
24322 if (sizeof (ac__type_new_))
24323   return 0;
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332   *) ac_try_echo=$ac_try;;
24333 esac
24334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24335   (eval "$ac_compile") 2>conftest.er1
24336   ac_status=$?
24337   grep -v '^ *+' conftest.er1 >conftest.err
24338   rm -f conftest.er1
24339   cat conftest.err >&5
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } && {
24342          test -z "$ac_c_werror_flag" ||
24343          test ! -s conftest.err
24344        } && test -s conftest.$ac_objext; then
24345   ac_cv_type_off_t=yes
24346 else
24347   echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350         ac_cv_type_off_t=no
24351 fi
24352
24353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24354 fi
24355 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24356 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24357
24358 # The cast to long int works around a bug in the HP C Compiler
24359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24361 # This bug is HP SR number 8606223364.
24362 { echo "$as_me:$LINENO: checking size of off_t" >&5
24363 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24364 if test "${ac_cv_sizeof_off_t+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367   if test "$cross_compiling" = yes; then
24368   # Depending upon the size, compute the lo and hi bounds.
24369 cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375 $ac_includes_default
24376    typedef off_t ac__type_sizeof_;
24377 int
24378 main ()
24379 {
24380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24381 test_array [0] = 0
24382
24383   ;
24384   return 0;
24385 }
24386 _ACEOF
24387 rm -f conftest.$ac_objext
24388 if { (ac_try="$ac_compile"
24389 case "(($ac_try" in
24390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391   *) ac_try_echo=$ac_try;;
24392 esac
24393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394   (eval "$ac_compile") 2>conftest.er1
24395   ac_status=$?
24396   grep -v '^ *+' conftest.er1 >conftest.err
24397   rm -f conftest.er1
24398   cat conftest.err >&5
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); } && {
24401          test -z "$ac_c_werror_flag" ||
24402          test ! -s conftest.err
24403        } && test -s conftest.$ac_objext; then
24404   ac_lo=0 ac_mid=0
24405   while :; do
24406     cat >conftest.$ac_ext <<_ACEOF
24407 /* confdefs.h.  */
24408 _ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h.  */
24412 $ac_includes_default
24413    typedef off_t ac__type_sizeof_;
24414 int
24415 main ()
24416 {
24417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24418 test_array [0] = 0
24419
24420   ;
24421   return 0;
24422 }
24423 _ACEOF
24424 rm -f conftest.$ac_objext
24425 if { (ac_try="$ac_compile"
24426 case "(($ac_try" in
24427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428   *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431   (eval "$ac_compile") 2>conftest.er1
24432   ac_status=$?
24433   grep -v '^ *+' conftest.er1 >conftest.err
24434   rm -f conftest.er1
24435   cat conftest.err >&5
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); } && {
24438          test -z "$ac_c_werror_flag" ||
24439          test ! -s conftest.err
24440        } && test -s conftest.$ac_objext; then
24441   ac_hi=$ac_mid; break
24442 else
24443   echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446         ac_lo=`expr $ac_mid + 1`
24447                         if test $ac_lo -le $ac_mid; then
24448                           ac_lo= ac_hi=
24449                           break
24450                         fi
24451                         ac_mid=`expr 2 '*' $ac_mid + 1`
24452 fi
24453
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455   done
24456 else
24457   echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460         cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 $ac_includes_default
24467    typedef off_t ac__type_sizeof_;
24468 int
24469 main ()
24470 {
24471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24472 test_array [0] = 0
24473
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest.$ac_objext
24479 if { (ac_try="$ac_compile"
24480 case "(($ac_try" in
24481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482   *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485   (eval "$ac_compile") 2>conftest.er1
24486   ac_status=$?
24487   grep -v '^ *+' conftest.er1 >conftest.err
24488   rm -f conftest.er1
24489   cat conftest.err >&5
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); } && {
24492          test -z "$ac_c_werror_flag" ||
24493          test ! -s conftest.err
24494        } && test -s conftest.$ac_objext; then
24495   ac_hi=-1 ac_mid=-1
24496   while :; do
24497     cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 $ac_includes_default
24504    typedef off_t ac__type_sizeof_;
24505 int
24506 main ()
24507 {
24508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24509 test_array [0] = 0
24510
24511   ;
24512   return 0;
24513 }
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_compile") 2>conftest.er1
24523   ac_status=$?
24524   grep -v '^ *+' conftest.er1 >conftest.err
24525   rm -f conftest.er1
24526   cat conftest.err >&5
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); } && {
24529          test -z "$ac_c_werror_flag" ||
24530          test ! -s conftest.err
24531        } && test -s conftest.$ac_objext; then
24532   ac_lo=$ac_mid; break
24533 else
24534   echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537         ac_hi=`expr '(' $ac_mid ')' - 1`
24538                         if test $ac_mid -le $ac_hi; then
24539                           ac_lo= ac_hi=
24540                           break
24541                         fi
24542                         ac_mid=`expr 2 '*' $ac_mid`
24543 fi
24544
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546   done
24547 else
24548   echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551         ac_lo= ac_hi=
24552 fi
24553
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24555 fi
24556
24557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24558 # Binary search between lo and hi bounds.
24559 while test "x$ac_lo" != "x$ac_hi"; do
24560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24561   cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 $ac_includes_default
24568    typedef off_t ac__type_sizeof_;
24569 int
24570 main ()
24571 {
24572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24573 test_array [0] = 0
24574
24575   ;
24576   return 0;
24577 }
24578 _ACEOF
24579 rm -f conftest.$ac_objext
24580 if { (ac_try="$ac_compile"
24581 case "(($ac_try" in
24582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583   *) ac_try_echo=$ac_try;;
24584 esac
24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586   (eval "$ac_compile") 2>conftest.er1
24587   ac_status=$?
24588   grep -v '^ *+' conftest.er1 >conftest.err
24589   rm -f conftest.er1
24590   cat conftest.err >&5
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); } && {
24593          test -z "$ac_c_werror_flag" ||
24594          test ! -s conftest.err
24595        } && test -s conftest.$ac_objext; then
24596   ac_hi=$ac_mid
24597 else
24598   echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24600
24601         ac_lo=`expr '(' $ac_mid ')' + 1`
24602 fi
24603
24604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24605 done
24606 case $ac_lo in
24607 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24608 '') if test "$ac_cv_type_off_t" = yes; then
24609      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24610 See \`config.log' for more details." >&5
24611 echo "$as_me: error: cannot compute sizeof (off_t)
24612 See \`config.log' for more details." >&2;}
24613    { (exit 77); exit 77; }; }
24614    else
24615      ac_cv_sizeof_off_t=0
24616    fi ;;
24617 esac
24618 else
24619   cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625 $ac_includes_default
24626    typedef off_t ac__type_sizeof_;
24627 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24628 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24629 #include <stdio.h>
24630 #include <stdlib.h>
24631 int
24632 main ()
24633 {
24634
24635   FILE *f = fopen ("conftest.val", "w");
24636   if (! f)
24637     return 1;
24638   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24639     {
24640       long int i = longval ();
24641       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24642         return 1;
24643       fprintf (f, "%ld\n", i);
24644     }
24645   else
24646     {
24647       unsigned long int i = ulongval ();
24648       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24649         return 1;
24650       fprintf (f, "%lu\n", i);
24651     }
24652   return ferror (f) || fclose (f) != 0;
24653
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 rm -f conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_link") 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24669   { (case "(($ac_try" in
24670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671   *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674   (eval "$ac_try") 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); }; }; then
24678   ac_cv_sizeof_off_t=`cat conftest.val`
24679 else
24680   echo "$as_me: program exited with status $ac_status" >&5
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684 ( exit $ac_status )
24685 if test "$ac_cv_type_off_t" = yes; then
24686      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24687 See \`config.log' for more details." >&5
24688 echo "$as_me: error: cannot compute sizeof (off_t)
24689 See \`config.log' for more details." >&2;}
24690    { (exit 77); exit 77; }; }
24691    else
24692      ac_cv_sizeof_off_t=0
24693    fi
24694 fi
24695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24696 fi
24697 rm -f conftest.val
24698 fi
24699 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24700 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24701
24702
24703
24704 cat >>confdefs.h <<_ACEOF
24705 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24706 _ACEOF
24707
24708
24709
24710 # If we don't have largefile support, can't handle segsize >= 2GB.
24711 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24712    { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24713 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24714    { (exit 1); exit 1; }; }
24715 fi
24716
24717 # SunOS doesn't handle negative byte comparisons properly with +/- return
24718 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24719 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24720 if test "${ac_cv_func_memcmp_working+set}" = set; then
24721   echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723   if test "$cross_compiling" = yes; then
24724   ac_cv_func_memcmp_working=no
24725 else
24726   cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h.  */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h.  */
24732 $ac_includes_default
24733 int
24734 main ()
24735 {
24736
24737   /* Some versions of memcmp are not 8-bit clean.  */
24738   char c0 = '\100', c1 = '\200', c2 = '\201';
24739   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24740     return 1;
24741
24742   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24743      or more and with at least one buffer not starting on a 4-byte boundary.
24744      William Lewis provided this test program.   */
24745   {
24746     char foo[21];
24747     char bar[21];
24748     int i;
24749     for (i = 0; i < 4; i++)
24750       {
24751         char *a = foo + i;
24752         char *b = bar + i;
24753         strcpy (a, "--------01111111");
24754         strcpy (b, "--------10000000");
24755         if (memcmp (a, b, 16) >= 0)
24756           return 1;
24757       }
24758     return 0;
24759   }
24760
24761   ;
24762   return 0;
24763 }
24764 _ACEOF
24765 rm -f conftest$ac_exeext
24766 if { (ac_try="$ac_link"
24767 case "(($ac_try" in
24768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769   *) ac_try_echo=$ac_try;;
24770 esac
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772   (eval "$ac_link") 2>&5
24773   ac_status=$?
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24776   { (case "(($ac_try" in
24777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778   *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781   (eval "$ac_try") 2>&5
24782   ac_status=$?
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); }; }; then
24785   ac_cv_func_memcmp_working=yes
24786 else
24787   echo "$as_me: program exited with status $ac_status" >&5
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24790
24791 ( exit $ac_status )
24792 ac_cv_func_memcmp_working=no
24793 fi
24794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24795 fi
24796
24797
24798 fi
24799 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24800 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24801 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24802   *" memcmp.$ac_objext "* ) ;;
24803   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24804  ;;
24805 esac
24806
24807
24808
24809
24810 # Select semaphore implementation type.
24811 if test "$PORTNAME" != "win32"; then
24812   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24813
24814 cat >>confdefs.h <<\_ACEOF
24815 #define USE_NAMED_POSIX_SEMAPHORES 1
24816 _ACEOF
24817
24818     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24819   else
24820     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24821
24822 cat >>confdefs.h <<\_ACEOF
24823 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24824 _ACEOF
24825
24826       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24827     else
24828
24829 cat >>confdefs.h <<\_ACEOF
24830 #define USE_SYSV_SEMAPHORES 1
24831 _ACEOF
24832
24833       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24834     fi
24835   fi
24836 else
24837
24838 cat >>confdefs.h <<\_ACEOF
24839 #define USE_WIN32_SEMAPHORES 1
24840 _ACEOF
24841
24842   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24843 fi
24844
24845
24846 # Select shared-memory implementation type.
24847 if test "$PORTNAME" != "win32"; then
24848
24849 cat >>confdefs.h <<\_ACEOF
24850 #define USE_SYSV_SHARED_MEMORY 1
24851 _ACEOF
24852
24853   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24854 else
24855
24856 cat >>confdefs.h <<\_ACEOF
24857 #define USE_WIN32_SHARED_MEMORY 1
24858 _ACEOF
24859
24860   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24861 fi
24862
24863 # If not set in template file, set bytes to use libc memset()
24864 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24865   MEMSET_LOOP_LIMIT=1024
24866 fi
24867
24868 cat >>confdefs.h <<_ACEOF
24869 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24870 _ACEOF
24871
24872
24873
24874 if test "$enable_nls" = yes ; then
24875
24876   { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24877 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24878 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881   ac_func_search_save_LIBS=$LIBS
24882 cat >conftest.$ac_ext <<_ACEOF
24883 /* confdefs.h.  */
24884 _ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h.  */
24888
24889 /* Override any GCC internal prototype to avoid an error.
24890    Use char because int might match the return type of a GCC
24891    builtin and then its argument prototype would still apply.  */
24892 #ifdef __cplusplus
24893 extern "C"
24894 #endif
24895 char bind_textdomain_codeset ();
24896 int
24897 main ()
24898 {
24899 return bind_textdomain_codeset ();
24900   ;
24901   return 0;
24902 }
24903 _ACEOF
24904 for ac_lib in '' intl; do
24905   if test -z "$ac_lib"; then
24906     ac_res="none required"
24907   else
24908     ac_res=-l$ac_lib
24909     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24910   fi
24911   rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (ac_try="$ac_link"
24913 case "(($ac_try" in
24914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915   *) ac_try_echo=$ac_try;;
24916 esac
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918   (eval "$ac_link") 2>conftest.er1
24919   ac_status=$?
24920   grep -v '^ *+' conftest.er1 >conftest.err
24921   rm -f conftest.er1
24922   cat conftest.err >&5
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } && {
24925          test -z "$ac_c_werror_flag" ||
24926          test ! -s conftest.err
24927        } && test -s conftest$ac_exeext &&
24928        $as_test_x conftest$ac_exeext; then
24929   ac_cv_search_bind_textdomain_codeset=$ac_res
24930 else
24931   echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24933
24934
24935 fi
24936
24937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24938       conftest$ac_exeext
24939   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24940   break
24941 fi
24942 done
24943 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24944   :
24945 else
24946   ac_cv_search_bind_textdomain_codeset=no
24947 fi
24948 rm conftest.$ac_ext
24949 LIBS=$ac_func_search_save_LIBS
24950 fi
24951 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24952 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24953 ac_res=$ac_cv_search_bind_textdomain_codeset
24954 if test "$ac_res" != no; then
24955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24956
24957 else
24958   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24959 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24960    { (exit 1); exit 1; }; }
24961 fi
24962
24963   if test "${ac_cv_header_libintl_h+set}" = set; then
24964   { echo "$as_me:$LINENO: checking for libintl.h" >&5
24965 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24966 if test "${ac_cv_header_libintl_h+set}" = set; then
24967   echo $ECHO_N "(cached) $ECHO_C" >&6
24968 fi
24969 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24970 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24971 else
24972   # Is the header compilable?
24973 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24974 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24975 cat >conftest.$ac_ext <<_ACEOF
24976 /* confdefs.h.  */
24977 _ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h.  */
24981 $ac_includes_default
24982 #include <libintl.h>
24983 _ACEOF
24984 rm -f conftest.$ac_objext
24985 if { (ac_try="$ac_compile"
24986 case "(($ac_try" in
24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988   *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991   (eval "$ac_compile") 2>conftest.er1
24992   ac_status=$?
24993   grep -v '^ *+' conftest.er1 >conftest.err
24994   rm -f conftest.er1
24995   cat conftest.err >&5
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); } && {
24998          test -z "$ac_c_werror_flag" ||
24999          test ! -s conftest.err
25000        } && test -s conftest.$ac_objext; then
25001   ac_header_compiler=yes
25002 else
25003   echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25005
25006         ac_header_compiler=no
25007 fi
25008
25009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25011 echo "${ECHO_T}$ac_header_compiler" >&6; }
25012
25013 # Is the header present?
25014 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25015 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25016 cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022 #include <libintl.h>
25023 _ACEOF
25024 if { (ac_try="$ac_cpp conftest.$ac_ext"
25025 case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } >/dev/null && {
25037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25038          test ! -s conftest.err
25039        }; then
25040   ac_header_preproc=yes
25041 else
25042   echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045   ac_header_preproc=no
25046 fi
25047
25048 rm -f conftest.err conftest.$ac_ext
25049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25050 echo "${ECHO_T}$ac_header_preproc" >&6; }
25051
25052 # So?  What about this header?
25053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25054   yes:no: )
25055     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25056 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25057     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25058 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25059     ac_header_preproc=yes
25060     ;;
25061   no:yes:* )
25062     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25063 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25064     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
25065 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
25066     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25067 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25068     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
25069 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25070     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25071 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25072     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25073 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25074     ( cat <<\_ASBOX
25075 ## ---------------------------------------- ##
25076 ## Report this to pgsql-bugs@postgresql.org ##
25077 ## ---------------------------------------- ##
25078 _ASBOX
25079      ) | sed "s/^/$as_me: WARNING:     /" >&2
25080     ;;
25081 esac
25082 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25083 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25084 if test "${ac_cv_header_libintl_h+set}" = set; then
25085   echo $ECHO_N "(cached) $ECHO_C" >&6
25086 else
25087   ac_cv_header_libintl_h=$ac_header_preproc
25088 fi
25089 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25090 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25091
25092 fi
25093 if test $ac_cv_header_libintl_h = yes; then
25094   :
25095 else
25096   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25097 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25098    { (exit 1); exit 1; }; }
25099 fi
25100
25101
25102   for ac_prog in msgfmt
25103 do
25104   # Extract the first word of "$ac_prog", so it can be a program name with args.
25105 set dummy $ac_prog; ac_word=$2
25106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25108 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25109   echo $ECHO_N "(cached) $ECHO_C" >&6
25110 else
25111   if test -n "$MSGFMT"; then
25112   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25113 else
25114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25115 for as_dir in $PATH
25116 do
25117   IFS=$as_save_IFS
25118   test -z "$as_dir" && as_dir=.
25119   for ac_exec_ext in '' $ac_executable_extensions; do
25120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25121     ac_cv_prog_MSGFMT="$ac_prog"
25122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25123     break 2
25124   fi
25125 done
25126 done
25127 IFS=$as_save_IFS
25128
25129 fi
25130 fi
25131 MSGFMT=$ac_cv_prog_MSGFMT
25132 if test -n "$MSGFMT"; then
25133   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25134 echo "${ECHO_T}$MSGFMT" >&6; }
25135 else
25136   { echo "$as_me:$LINENO: result: no" >&5
25137 echo "${ECHO_T}no" >&6; }
25138 fi
25139
25140
25141   test -n "$MSGFMT" && break
25142 done
25143
25144   if test -z "$MSGFMT"; then
25145     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25146 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25147    { (exit 1); exit 1; }; }
25148   fi
25149   for ac_prog in msgmerge
25150 do
25151   # Extract the first word of "$ac_prog", so it can be a program name with args.
25152 set dummy $ac_prog; ac_word=$2
25153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25155 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25156   echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158   if test -n "$MSGMERGE"; then
25159   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25160 else
25161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25162 for as_dir in $PATH
25163 do
25164   IFS=$as_save_IFS
25165   test -z "$as_dir" && as_dir=.
25166   for ac_exec_ext in '' $ac_executable_extensions; do
25167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25168     ac_cv_prog_MSGMERGE="$ac_prog"
25169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25170     break 2
25171   fi
25172 done
25173 done
25174 IFS=$as_save_IFS
25175
25176 fi
25177 fi
25178 MSGMERGE=$ac_cv_prog_MSGMERGE
25179 if test -n "$MSGMERGE"; then
25180   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25181 echo "${ECHO_T}$MSGMERGE" >&6; }
25182 else
25183   { echo "$as_me:$LINENO: result: no" >&5
25184 echo "${ECHO_T}no" >&6; }
25185 fi
25186
25187
25188   test -n "$MSGMERGE" && break
25189 done
25190
25191   for ac_prog in xgettext
25192 do
25193   # Extract the first word of "$ac_prog", so it can be a program name with args.
25194 set dummy $ac_prog; ac_word=$2
25195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25197 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25198   echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200   if test -n "$XGETTEXT"; then
25201   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25202 else
25203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25204 for as_dir in $PATH
25205 do
25206   IFS=$as_save_IFS
25207   test -z "$as_dir" && as_dir=.
25208   for ac_exec_ext in '' $ac_executable_extensions; do
25209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25210     ac_cv_prog_XGETTEXT="$ac_prog"
25211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25212     break 2
25213   fi
25214 done
25215 done
25216 IFS=$as_save_IFS
25217
25218 fi
25219 fi
25220 XGETTEXT=$ac_cv_prog_XGETTEXT
25221 if test -n "$XGETTEXT"; then
25222   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25223 echo "${ECHO_T}$XGETTEXT" >&6; }
25224 else
25225   { echo "$as_me:$LINENO: result: no" >&5
25226 echo "${ECHO_T}no" >&6; }
25227 fi
25228
25229
25230   test -n "$XGETTEXT" && break
25231 done
25232
25233
25234 fi
25235
25236 # Check for Tcl configuration script tclConfig.sh
25237 if test "$with_tcl" = yes; then
25238     for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25239 do
25240   # Extract the first word of "$ac_prog", so it can be a program name with args.
25241 set dummy $ac_prog; ac_word=$2
25242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25244 if test "${ac_cv_path_TCLSH+set}" = set; then
25245   echo $ECHO_N "(cached) $ECHO_C" >&6
25246 else
25247   case $TCLSH in
25248   [\\/]* | ?:[\\/]*)
25249   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25250   ;;
25251   *)
25252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25253 for as_dir in $PATH
25254 do
25255   IFS=$as_save_IFS
25256   test -z "$as_dir" && as_dir=.
25257   for ac_exec_ext in '' $ac_executable_extensions; do
25258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25259     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25261     break 2
25262   fi
25263 done
25264 done
25265 IFS=$as_save_IFS
25266
25267   ;;
25268 esac
25269 fi
25270 TCLSH=$ac_cv_path_TCLSH
25271 if test -n "$TCLSH"; then
25272   { echo "$as_me:$LINENO: result: $TCLSH" >&5
25273 echo "${ECHO_T}$TCLSH" >&6; }
25274 else
25275   { echo "$as_me:$LINENO: result: no" >&5
25276 echo "${ECHO_T}no" >&6; }
25277 fi
25278
25279
25280   test -n "$TCLSH" && break
25281 done
25282
25283 if test x"$TCLSH" = x""; then
25284   { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25285 echo "$as_me: error: Tcl shell not found" >&2;}
25286    { (exit 1); exit 1; }; }
25287 fi
25288
25289 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25290 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25291 # Let user override test
25292 if test -z "$TCL_CONFIG_SH"; then
25293     pgac_test_dirs="$with_tclconfig"
25294
25295     set X $pgac_test_dirs; shift
25296     if test $# -eq 0; then
25297         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25298 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25299    { (exit 1); exit 1; }; }
25300         set X `echo 'puts $auto_path' | $TCLSH`; shift
25301     fi
25302
25303     for pgac_dir do
25304         if test -r "$pgac_dir/tclConfig.sh"; then
25305             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25306             break
25307         fi
25308     done
25309 fi
25310
25311 if test -z "$TCL_CONFIG_SH"; then
25312     { echo "$as_me:$LINENO: result: no" >&5
25313 echo "${ECHO_T}no" >&6; }
25314     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25315 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25316    { (exit 1); exit 1; }; }
25317 else
25318     { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25319 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25320 fi
25321
25322
25323
25324     . "$TCL_CONFIG_SH"
25325 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25326 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25327 eval TCL_LIBS=\"$TCL_LIBS\"
25328 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25329 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25330
25331         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25332     ac_save_CPPFLAGS=$CPPFLAGS
25333     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25334     if test "${ac_cv_header_tcl_h+set}" = set; then
25335   { echo "$as_me:$LINENO: checking for tcl.h" >&5
25336 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25337 if test "${ac_cv_header_tcl_h+set}" = set; then
25338   echo $ECHO_N "(cached) $ECHO_C" >&6
25339 fi
25340 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25341 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25342 else
25343   # Is the header compilable?
25344 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25345 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25346 cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 $ac_includes_default
25353 #include <tcl.h>
25354 _ACEOF
25355 rm -f conftest.$ac_objext
25356 if { (ac_try="$ac_compile"
25357 case "(($ac_try" in
25358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25359   *) ac_try_echo=$ac_try;;
25360 esac
25361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25362   (eval "$ac_compile") 2>conftest.er1
25363   ac_status=$?
25364   grep -v '^ *+' conftest.er1 >conftest.err
25365   rm -f conftest.er1
25366   cat conftest.err >&5
25367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368   (exit $ac_status); } && {
25369          test -z "$ac_c_werror_flag" ||
25370          test ! -s conftest.err
25371        } && test -s conftest.$ac_objext; then
25372   ac_header_compiler=yes
25373 else
25374   echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25376
25377         ac_header_compiler=no
25378 fi
25379
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25382 echo "${ECHO_T}$ac_header_compiler" >&6; }
25383
25384 # Is the header present?
25385 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25386 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25387 cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h.  */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h.  */
25393 #include <tcl.h>
25394 _ACEOF
25395 if { (ac_try="$ac_cpp conftest.$ac_ext"
25396 case "(($ac_try" in
25397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398   *) ac_try_echo=$ac_try;;
25399 esac
25400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25402   ac_status=$?
25403   grep -v '^ *+' conftest.er1 >conftest.err
25404   rm -f conftest.er1
25405   cat conftest.err >&5
25406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407   (exit $ac_status); } >/dev/null && {
25408          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25409          test ! -s conftest.err
25410        }; then
25411   ac_header_preproc=yes
25412 else
25413   echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25415
25416   ac_header_preproc=no
25417 fi
25418
25419 rm -f conftest.err conftest.$ac_ext
25420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25421 echo "${ECHO_T}$ac_header_preproc" >&6; }
25422
25423 # So?  What about this header?
25424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25425   yes:no: )
25426     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25427 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25428     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25429 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25430     ac_header_preproc=yes
25431     ;;
25432   no:yes:* )
25433     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25434 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25435     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
25436 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
25437     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25438 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25439     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
25440 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25441     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25442 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25443     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25444 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25445     ( cat <<\_ASBOX
25446 ## ---------------------------------------- ##
25447 ## Report this to pgsql-bugs@postgresql.org ##
25448 ## ---------------------------------------- ##
25449 _ASBOX
25450      ) | sed "s/^/$as_me: WARNING:     /" >&2
25451     ;;
25452 esac
25453 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25454 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25455 if test "${ac_cv_header_tcl_h+set}" = set; then
25456   echo $ECHO_N "(cached) $ECHO_C" >&6
25457 else
25458   ac_cv_header_tcl_h=$ac_header_preproc
25459 fi
25460 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25461 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25462
25463 fi
25464 if test $ac_cv_header_tcl_h = yes; then
25465   :
25466 else
25467   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25468 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25469    { (exit 1); exit 1; }; }
25470 fi
25471
25472
25473     CPPFLAGS=$ac_save_CPPFLAGS
25474 fi
25475
25476 #
25477 # Check for DocBook and tools
25478 #
25479 for ac_prog in onsgmls nsgmls
25480 do
25481   # Extract the first word of "$ac_prog", so it can be a program name with args.
25482 set dummy $ac_prog; ac_word=$2
25483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25485 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25486   echo $ECHO_N "(cached) $ECHO_C" >&6
25487 else
25488   if test -n "$NSGMLS"; then
25489   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25490 else
25491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25492 for as_dir in $PATH
25493 do
25494   IFS=$as_save_IFS
25495   test -z "$as_dir" && as_dir=.
25496   for ac_exec_ext in '' $ac_executable_extensions; do
25497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25498     ac_cv_prog_NSGMLS="$ac_prog"
25499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25500     break 2
25501   fi
25502 done
25503 done
25504 IFS=$as_save_IFS
25505
25506 fi
25507 fi
25508 NSGMLS=$ac_cv_prog_NSGMLS
25509 if test -n "$NSGMLS"; then
25510   { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25511 echo "${ECHO_T}$NSGMLS" >&6; }
25512 else
25513   { echo "$as_me:$LINENO: result: no" >&5
25514 echo "${ECHO_T}no" >&6; }
25515 fi
25516
25517
25518   test -n "$NSGMLS" && break
25519 done
25520
25521 for ac_prog in openjade jade
25522 do
25523   # Extract the first word of "$ac_prog", so it can be a program name with args.
25524 set dummy $ac_prog; ac_word=$2
25525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25527 if test "${ac_cv_prog_JADE+set}" = set; then
25528   echo $ECHO_N "(cached) $ECHO_C" >&6
25529 else
25530   if test -n "$JADE"; then
25531   ac_cv_prog_JADE="$JADE" # Let the user override the test.
25532 else
25533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25534 for as_dir in $PATH
25535 do
25536   IFS=$as_save_IFS
25537   test -z "$as_dir" && as_dir=.
25538   for ac_exec_ext in '' $ac_executable_extensions; do
25539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25540     ac_cv_prog_JADE="$ac_prog"
25541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25542     break 2
25543   fi
25544 done
25545 done
25546 IFS=$as_save_IFS
25547
25548 fi
25549 fi
25550 JADE=$ac_cv_prog_JADE
25551 if test -n "$JADE"; then
25552   { echo "$as_me:$LINENO: result: $JADE" >&5
25553 echo "${ECHO_T}$JADE" >&6; }
25554 else
25555   { echo "$as_me:$LINENO: result: no" >&5
25556 echo "${ECHO_T}no" >&6; }
25557 fi
25558
25559
25560   test -n "$JADE" && break
25561 done
25562
25563
25564 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25565 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25566 if test "${pgac_cv_check_docbook+set}" = set; then
25567   echo $ECHO_N "(cached) $ECHO_C" >&6
25568 else
25569   cat >conftest.sgml <<EOF
25570 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25571 <book>
25572  <title>test</title>
25573  <chapter>
25574   <title>random</title>
25575    <sect1>
25576     <title>testsect</title>
25577     <para>text</para>
25578   </sect1>
25579  </chapter>
25580 </book>
25581 EOF
25582
25583 pgac_cv_check_docbook=no
25584
25585 if test -n "$NSGMLS"; then
25586   $NSGMLS -s conftest.sgml 1>&5 2>&1
25587   if test $? -eq 0; then
25588     pgac_cv_check_docbook=yes
25589   fi
25590 fi
25591 rm -f conftest.sgml
25592 fi
25593 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25594 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25595
25596 have_docbook=$pgac_cv_check_docbook
25597
25598
25599 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25600 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25601 if test "${pgac_cv_path_stylesheets+set}" = set; then
25602   echo $ECHO_N "(cached) $ECHO_C" >&6
25603 else
25604   if test -n "$DOCBOOKSTYLE"; then
25605   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25606 else
25607   for pgac_prefix in /usr /usr/local /opt /sw; do
25608     for pgac_infix in share lib; do
25609       for pgac_postfix in \
25610         sgml/stylesheets/nwalsh-modular \
25611         sgml/stylesheets/docbook \
25612         sgml/stylesheets/dsssl/docbook \
25613         sgml/docbook-dsssl \
25614         sgml/docbook/dsssl/modular \
25615         sgml/docbook/stylesheet/dsssl/modular \
25616         sgml/docbook/dsssl-stylesheets \
25617         sgml/dsssl/docbook-dsssl-nwalsh
25618       do
25619         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25620         if test -r "$pgac_candidate/html/docbook.dsl" \
25621            && test -r "$pgac_candidate/print/docbook.dsl"
25622         then
25623           pgac_cv_path_stylesheets=$pgac_candidate
25624           break 3
25625         fi
25626       done
25627     done
25628   done
25629 fi
25630 fi
25631
25632 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25633
25634 if test -n "$DOCBOOKSTYLE"; then
25635   { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25636 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25637 else
25638   { echo "$as_me:$LINENO: result: no" >&5
25639 echo "${ECHO_T}no" >&6; }
25640 fi
25641 if test -n "$DOCBOOKSTYLE"; then
25642   for ac_prog in collateindex.pl
25643 do
25644   # Extract the first word of "$ac_prog", so it can be a program name with args.
25645 set dummy $ac_prog; ac_word=$2
25646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25648 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25649   echo $ECHO_N "(cached) $ECHO_C" >&6
25650 else
25651   case $COLLATEINDEX in
25652   [\\/]* | ?:[\\/]*)
25653   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25654   ;;
25655   *)
25656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25657 for as_dir in $DOCBOOKSTYLE/bin $PATH
25658 do
25659   IFS=$as_save_IFS
25660   test -z "$as_dir" && as_dir=.
25661   for ac_exec_ext in '' $ac_executable_extensions; do
25662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25663     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25665     break 2
25666   fi
25667 done
25668 done
25669 IFS=$as_save_IFS
25670
25671   ;;
25672 esac
25673 fi
25674 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25675 if test -n "$COLLATEINDEX"; then
25676   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25677 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25678 else
25679   { echo "$as_me:$LINENO: result: no" >&5
25680 echo "${ECHO_T}no" >&6; }
25681 fi
25682
25683
25684   test -n "$COLLATEINDEX" && break
25685 done
25686
25687 else
25688   for ac_prog in collateindex.pl
25689 do
25690   # Extract the first word of "$ac_prog", so it can be a program name with args.
25691 set dummy $ac_prog; ac_word=$2
25692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25694 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25695   echo $ECHO_N "(cached) $ECHO_C" >&6
25696 else
25697   case $COLLATEINDEX in
25698   [\\/]* | ?:[\\/]*)
25699   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25700   ;;
25701   *)
25702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25703 for as_dir in $PATH
25704 do
25705   IFS=$as_save_IFS
25706   test -z "$as_dir" && as_dir=.
25707   for ac_exec_ext in '' $ac_executable_extensions; do
25708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25709     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25711     break 2
25712   fi
25713 done
25714 done
25715 IFS=$as_save_IFS
25716
25717   ;;
25718 esac
25719 fi
25720 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25721 if test -n "$COLLATEINDEX"; then
25722   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25723 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25724 else
25725   { echo "$as_me:$LINENO: result: no" >&5
25726 echo "${ECHO_T}no" >&6; }
25727 fi
25728
25729
25730   test -n "$COLLATEINDEX" && break
25731 done
25732
25733 fi
25734 for ac_prog in sgmlspl
25735 do
25736   # Extract the first word of "$ac_prog", so it can be a program name with args.
25737 set dummy $ac_prog; ac_word=$2
25738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25740 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743   if test -n "$SGMLSPL"; then
25744   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25745 else
25746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25747 for as_dir in $PATH
25748 do
25749   IFS=$as_save_IFS
25750   test -z "$as_dir" && as_dir=.
25751   for ac_exec_ext in '' $ac_executable_extensions; do
25752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25753     ac_cv_prog_SGMLSPL="$ac_prog"
25754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25755     break 2
25756   fi
25757 done
25758 done
25759 IFS=$as_save_IFS
25760
25761 fi
25762 fi
25763 SGMLSPL=$ac_cv_prog_SGMLSPL
25764 if test -n "$SGMLSPL"; then
25765   { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25766 echo "${ECHO_T}$SGMLSPL" >&6; }
25767 else
25768   { echo "$as_me:$LINENO: result: no" >&5
25769 echo "${ECHO_T}no" >&6; }
25770 fi
25771
25772
25773   test -n "$SGMLSPL" && break
25774 done
25775
25776
25777 # Thread testing
25778
25779 # We have to run the thread test near the end so we have all our symbols
25780 # defined.  Cross compiling throws a warning.
25781 #
25782 if test "$enable_thread_safety_force" = yes; then
25783 if test "$PORTNAME" != "win32"
25784 then
25785   { echo "$as_me:$LINENO: WARNING:
25786 *** Skipping thread test program.  --enable-thread-safety-force was used.
25787 *** Run the program in src/test/thread on the your machine and add proper
25788 *** locking function calls to your applications to guarantee thread safety.
25789 " >&5
25790 echo "$as_me: WARNING:
25791 *** Skipping thread test program.  --enable-thread-safety-force was used.
25792 *** Run the program in src/test/thread on the your machine and add proper
25793 *** locking function calls to your applications to guarantee thread safety.
25794 " >&2;}
25795 else
25796 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25797 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25798 fi
25799 elif test "$enable_thread_safety" = yes; then
25800 if test "$PORTNAME" != "win32"
25801 then
25802 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25803 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25804
25805 _CFLAGS="$CFLAGS"
25806 _LIBS="$LIBS"
25807 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25808 LIBS="$LIBS $PTHREAD_LIBS"
25809 if test "$cross_compiling" = yes; then
25810   { echo "$as_me:$LINENO: result: maybe" >&5
25811 echo "${ECHO_T}maybe" >&6; }
25812   { echo "$as_me:$LINENO: WARNING:
25813 *** Skipping thread test program because of cross-compile build.
25814 *** Run the program in src/test/thread on the target machine.
25815 " >&5
25816 echo "$as_me: WARNING:
25817 *** Skipping thread test program because of cross-compile build.
25818 *** Run the program in src/test/thread on the target machine.
25819 " >&2;}
25820 else
25821   cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h.  */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h.  */
25827 #include "$srcdir/src/test/thread/thread_test.c"
25828 _ACEOF
25829 rm -f conftest$ac_exeext
25830 if { (ac_try="$ac_link"
25831 case "(($ac_try" in
25832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833   *) ac_try_echo=$ac_try;;
25834 esac
25835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836   (eval "$ac_link") 2>&5
25837   ac_status=$?
25838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25840   { (case "(($ac_try" in
25841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842   *) ac_try_echo=$ac_try;;
25843 esac
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845   (eval "$ac_try") 2>&5
25846   ac_status=$?
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); }; }; then
25849   { echo "$as_me:$LINENO: result: yes" >&5
25850 echo "${ECHO_T}yes" >&6; }
25851 else
25852   echo "$as_me: program exited with status $ac_status" >&5
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25855
25856 ( exit $ac_status )
25857 { echo "$as_me:$LINENO: result: no" >&5
25858 echo "${ECHO_T}no" >&6; }
25859   { { echo "$as_me:$LINENO: error: thread test program failed
25860 This platform is not thread-safe.  Check the file 'config.log'for the
25861 exact reason.
25862
25863 You can use the configure option --enable-thread-safety-force to force
25864 threads to be enabled.  But you must then run the program in
25865 src/test/thread and add locking function calls to your applications to
25866 guarantee thread safety." >&5
25867 echo "$as_me: error: thread test program failed
25868 This platform is not thread-safe.  Check the file 'config.log'for the
25869 exact reason.
25870
25871 You can use the configure option --enable-thread-safety-force to force
25872 threads to be enabled.  But you must then run the program in
25873 src/test/thread and add locking function calls to your applications to
25874 guarantee thread safety." >&2;}
25875    { (exit 1); exit 1; }; }
25876 fi
25877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25878 fi
25879
25880
25881 CFLAGS="$_CFLAGS"
25882 LIBS="$_LIBS"
25883 else
25884 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25885 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25886 fi
25887 fi
25888
25889 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25890 # This is much easier than trying to filter LIBS to the minimum for each
25891 # executable.  (Note that shared library links won't use this switch, though.)
25892 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25893 # libreadline; therefore we postpone testing it until we know what library
25894 # dependencies readline has.  The test code will try to link with $LIBS.
25895 if test "$with_readline" = yes; then
25896   link_test_func=readline
25897 else
25898   link_test_func=exit
25899 fi
25900 if test "$PORTNAME" != "darwin"; then
25901   { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25902 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25903 pgac_save_LDFLAGS=$LDFLAGS
25904 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25905 if test "$cross_compiling" = yes; then
25906   LDFLAGS="$pgac_save_LDFLAGS"
25907                { echo "$as_me:$LINENO: result: assuming no" >&5
25908 echo "${ECHO_T}assuming no" >&6; }
25909 else
25910   cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25917 int
25918 main ()
25919 {
25920
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929   *) ac_try_echo=$ac_try;;
25930 esac
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932   (eval "$ac_link") 2>&5
25933   ac_status=$?
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25936   { (case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_try") 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; }; then
25945   { echo "$as_me:$LINENO: result: yes" >&5
25946 echo "${ECHO_T}yes" >&6; }
25947 else
25948   echo "$as_me: program exited with status $ac_status" >&5
25949 echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952 ( exit $ac_status )
25953 LDFLAGS="$pgac_save_LDFLAGS"
25954                { echo "$as_me:$LINENO: result: no" >&5
25955 echo "${ECHO_T}no" >&6; }
25956 fi
25957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25958 fi
25959
25960
25961
25962 else
25963   # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25964   { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25965 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25966 pgac_save_LDFLAGS=$LDFLAGS
25967 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25968 if test "$cross_compiling" = yes; then
25969   LDFLAGS="$pgac_save_LDFLAGS"
25970                { echo "$as_me:$LINENO: result: assuming no" >&5
25971 echo "${ECHO_T}assuming no" >&6; }
25972 else
25973   cat >conftest.$ac_ext <<_ACEOF
25974 /* confdefs.h.  */
25975 _ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h.  */
25979 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25980 int
25981 main ()
25982 {
25983
25984   ;
25985   return 0;
25986 }
25987 _ACEOF
25988 rm -f conftest$ac_exeext
25989 if { (ac_try="$ac_link"
25990 case "(($ac_try" in
25991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25992   *) ac_try_echo=$ac_try;;
25993 esac
25994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25995   (eval "$ac_link") 2>&5
25996   ac_status=$?
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25999   { (case "(($ac_try" in
26000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001   *) ac_try_echo=$ac_try;;
26002 esac
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004   (eval "$ac_try") 2>&5
26005   ac_status=$?
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); }; }; then
26008   { echo "$as_me:$LINENO: result: yes" >&5
26009 echo "${ECHO_T}yes" >&6; }
26010 else
26011   echo "$as_me: program exited with status $ac_status" >&5
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26014
26015 ( exit $ac_status )
26016 LDFLAGS="$pgac_save_LDFLAGS"
26017                { echo "$as_me:$LINENO: result: no" >&5
26018 echo "${ECHO_T}no" >&6; }
26019 fi
26020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26021 fi
26022
26023
26024
26025 fi
26026
26027
26028 # Begin output steps
26029
26030 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26031 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26032 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26033 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26034 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26035 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26036
26037 # prepare build tree if outside source tree
26038 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26039 # Note 2: /bin/pwd might be better than shell's built-in at getting
26040 #         a symlink-free name.
26041 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26042   vpath_build=no
26043 else
26044   vpath_build=yes
26045   if test "$no_create" != yes; then
26046     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26047     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26048     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26049       || { { echo "$as_me:$LINENO: error: failed" >&5
26050 echo "$as_me: error: failed" >&2;}
26051    { (exit 1); exit 1; }; }
26052     { echo "$as_me:$LINENO: result: done" >&5
26053 echo "${ECHO_T}done" >&6; }
26054   fi
26055 fi
26056
26057
26058
26059 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26060
26061
26062 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}"
26063
26064
26065 if test "$PORTNAME" = "win32"; then
26066 ac_config_commands="$ac_config_commands check_win32_symlinks"
26067
26068 fi
26069
26070 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26071
26072
26073 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26074
26075
26076 cat >confcache <<\_ACEOF
26077 # This file is a shell script that caches the results of configure
26078 # tests run on this system so they can be shared between configure
26079 # scripts and configure runs, see configure's option --config-cache.
26080 # It is not useful on other systems.  If it contains results you don't
26081 # want to keep, you may remove or edit it.
26082 #
26083 # config.status only pays attention to the cache file if you give it
26084 # the --recheck option to rerun configure.
26085 #
26086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26088 # following values.
26089
26090 _ACEOF
26091
26092 # The following way of writing the cache mishandles newlines in values,
26093 # but we know of no workaround that is simple, portable, and efficient.
26094 # So, we kill variables containing newlines.
26095 # Ultrix sh set writes to stderr and can't be redirected directly,
26096 # and sets the high bit in the cache file unless we assign to the vars.
26097 (
26098   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26099     eval ac_val=\$$ac_var
26100     case $ac_val in #(
26101     *${as_nl}*)
26102       case $ac_var in #(
26103       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26104 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26105       esac
26106       case $ac_var in #(
26107       _ | IFS | as_nl) ;; #(
26108       *) $as_unset $ac_var ;;
26109       esac ;;
26110     esac
26111   done
26112
26113   (set) 2>&1 |
26114     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26115     *${as_nl}ac_space=\ *)
26116       # `set' does not quote correctly, so add quotes (double-quote
26117       # substitution turns \\\\ into \\, and sed turns \\ into \).
26118       sed -n \
26119         "s/'/'\\\\''/g;
26120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26121       ;; #(
26122     *)
26123       # `set' quotes correctly as required by POSIX, so do not add quotes.
26124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26125       ;;
26126     esac |
26127     sort
26128 ) |
26129   sed '
26130      /^ac_cv_env_/b end
26131      t clear
26132      :clear
26133      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26134      t end
26135      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26136      :end' >>confcache
26137 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26138   if test -w "$cache_file"; then
26139     test "x$cache_file" != "x/dev/null" &&
26140       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26141 echo "$as_me: updating cache $cache_file" >&6;}
26142     cat confcache >$cache_file
26143   else
26144     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26145 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26146   fi
26147 fi
26148 rm -f confcache
26149
26150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26151 # Let make expand exec_prefix.
26152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26153
26154 DEFS=-DHAVE_CONFIG_H
26155
26156 ac_libobjs=
26157 ac_ltlibobjs=
26158 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26159   # 1. Remove the extension, and $U if already installed.
26160   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26161   ac_i=`echo "$ac_i" | sed "$ac_script"`
26162   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26163   #    will be set to the directory where LIBOBJS objects are built.
26164   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26165   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26166 done
26167 LIBOBJS=$ac_libobjs
26168
26169 LTLIBOBJS=$ac_ltlibobjs
26170
26171
26172
26173 : ${CONFIG_STATUS=./config.status}
26174 ac_clean_files_save=$ac_clean_files
26175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26178 cat >$CONFIG_STATUS <<_ACEOF
26179 #! $SHELL
26180 # Generated by $as_me.
26181 # Run this file to recreate the current configuration.
26182 # Compiler output produced by configure, useful for debugging
26183 # configure, is in config.log if it exists.
26184
26185 debug=false
26186 ac_cs_recheck=false
26187 ac_cs_silent=false
26188 SHELL=\${CONFIG_SHELL-$SHELL}
26189 _ACEOF
26190
26191 cat >>$CONFIG_STATUS <<\_ACEOF
26192 ## --------------------- ##
26193 ## M4sh Initialization.  ##
26194 ## --------------------- ##
26195
26196 # Be more Bourne compatible
26197 DUALCASE=1; export DUALCASE # for MKS sh
26198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26199   emulate sh
26200   NULLCMD=:
26201   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26202   # is contrary to our usage.  Disable this feature.
26203   alias -g '${1+"$@"}'='"$@"'
26204   setopt NO_GLOB_SUBST
26205 else
26206   case `(set -o) 2>/dev/null` in
26207   *posix*) set -o posix ;;
26208 esac
26209
26210 fi
26211
26212
26213
26214
26215 # PATH needs CR
26216 # Avoid depending upon Character Ranges.
26217 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26218 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26219 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26220 as_cr_digits='0123456789'
26221 as_cr_alnum=$as_cr_Letters$as_cr_digits
26222
26223 # The user is always right.
26224 if test "${PATH_SEPARATOR+set}" != set; then
26225   echo "#! /bin/sh" >conf$$.sh
26226   echo  "exit 0"   >>conf$$.sh
26227   chmod +x conf$$.sh
26228   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26229     PATH_SEPARATOR=';'
26230   else
26231     PATH_SEPARATOR=:
26232   fi
26233   rm -f conf$$.sh
26234 fi
26235
26236 # Support unset when possible.
26237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26238   as_unset=unset
26239 else
26240   as_unset=false
26241 fi
26242
26243
26244 # IFS
26245 # We need space, tab and new line, in precisely that order.  Quoting is
26246 # there to prevent editors from complaining about space-tab.
26247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26248 # splitting by setting IFS to empty value.)
26249 as_nl='
26250 '
26251 IFS=" ""        $as_nl"
26252
26253 # Find who we are.  Look in the path if we contain no directory separator.
26254 case $0 in
26255   *[\\/]* ) as_myself=$0 ;;
26256   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26257 for as_dir in $PATH
26258 do
26259   IFS=$as_save_IFS
26260   test -z "$as_dir" && as_dir=.
26261   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26262 done
26263 IFS=$as_save_IFS
26264
26265      ;;
26266 esac
26267 # We did not find ourselves, most probably we were run as `sh COMMAND'
26268 # in which case we are not to be found in the path.
26269 if test "x$as_myself" = x; then
26270   as_myself=$0
26271 fi
26272 if test ! -f "$as_myself"; then
26273   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26274   { (exit 1); exit 1; }
26275 fi
26276
26277 # Work around bugs in pre-3.0 UWIN ksh.
26278 for as_var in ENV MAIL MAILPATH
26279 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26280 done
26281 PS1='$ '
26282 PS2='> '
26283 PS4='+ '
26284
26285 # NLS nuisances.
26286 for as_var in \
26287   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26288   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26289   LC_TELEPHONE LC_TIME
26290 do
26291   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26292     eval $as_var=C; export $as_var
26293   else
26294     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26295   fi
26296 done
26297
26298 # Required to use basename.
26299 if expr a : '\(a\)' >/dev/null 2>&1 &&
26300    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26301   as_expr=expr
26302 else
26303   as_expr=false
26304 fi
26305
26306 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26307   as_basename=basename
26308 else
26309   as_basename=false
26310 fi
26311
26312
26313 # Name of the executable.
26314 as_me=`$as_basename -- "$0" ||
26315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26316          X"$0" : 'X\(//\)$' \| \
26317          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26318 echo X/"$0" |
26319     sed '/^.*\/\([^/][^/]*\)\/*$/{
26320             s//\1/
26321             q
26322           }
26323           /^X\/\(\/\/\)$/{
26324             s//\1/
26325             q
26326           }
26327           /^X\/\(\/\).*/{
26328             s//\1/
26329             q
26330           }
26331           s/.*/./; q'`
26332
26333 # CDPATH.
26334 $as_unset CDPATH
26335
26336
26337
26338   as_lineno_1=$LINENO
26339   as_lineno_2=$LINENO
26340   test "x$as_lineno_1" != "x$as_lineno_2" &&
26341   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26342
26343   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26344   # uniformly replaced by the line number.  The first 'sed' inserts a
26345   # line-number line after each line using $LINENO; the second 'sed'
26346   # does the real work.  The second script uses 'N' to pair each
26347   # line-number line with the line containing $LINENO, and appends
26348   # trailing '-' during substitution so that $LINENO is not a special
26349   # case at line end.
26350   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26351   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26352   # E. McMahon (1931-1989) for sed's syntax.  :-)
26353   sed -n '
26354     p
26355     /[$]LINENO/=
26356   ' <$as_myself |
26357     sed '
26358       s/[$]LINENO.*/&-/
26359       t lineno
26360       b
26361       :lineno
26362       N
26363       :loop
26364       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26365       t loop
26366       s/-\n.*//
26367     ' >$as_me.lineno &&
26368   chmod +x "$as_me.lineno" ||
26369     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26370    { (exit 1); exit 1; }; }
26371
26372   # Don't try to exec as it changes $[0], causing all sort of problems
26373   # (the dirname of $[0] is not the place where we might find the
26374   # original and so on.  Autoconf is especially sensitive to this).
26375   . "./$as_me.lineno"
26376   # Exit status is that of the last command.
26377   exit
26378 }
26379
26380
26381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26382   as_dirname=dirname
26383 else
26384   as_dirname=false
26385 fi
26386
26387 ECHO_C= ECHO_N= ECHO_T=
26388 case `echo -n x` in
26389 -n*)
26390   case `echo 'x\c'` in
26391   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26392   *)   ECHO_C='\c';;
26393   esac;;
26394 *)
26395   ECHO_N='-n';;
26396 esac
26397
26398 if expr a : '\(a\)' >/dev/null 2>&1 &&
26399    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26400   as_expr=expr
26401 else
26402   as_expr=false
26403 fi
26404
26405 rm -f conf$$ conf$$.exe conf$$.file
26406 if test -d conf$$.dir; then
26407   rm -f conf$$.dir/conf$$.file
26408 else
26409   rm -f conf$$.dir
26410   mkdir conf$$.dir
26411 fi
26412 echo >conf$$.file
26413 if ln -s conf$$.file conf$$ 2>/dev/null; then
26414   as_ln_s='ln -s'
26415   # ... but there are two gotchas:
26416   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26417   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26418   # In both cases, we have to default to `cp -p'.
26419   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26420     as_ln_s='cp -p'
26421 elif ln conf$$.file conf$$ 2>/dev/null; then
26422   as_ln_s=ln
26423 else
26424   as_ln_s='cp -p'
26425 fi
26426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26427 rmdir conf$$.dir 2>/dev/null
26428
26429 if mkdir -p . 2>/dev/null; then
26430   as_mkdir_p=:
26431 else
26432   test -d ./-p && rmdir ./-p
26433   as_mkdir_p=false
26434 fi
26435
26436 if test -x / >/dev/null 2>&1; then
26437   as_test_x='test -x'
26438 else
26439   if ls -dL / >/dev/null 2>&1; then
26440     as_ls_L_option=L
26441   else
26442     as_ls_L_option=
26443   fi
26444   as_test_x='
26445     eval sh -c '\''
26446       if test -d "$1"; then
26447         test -d "$1/.";
26448       else
26449         case $1 in
26450         -*)set "./$1";;
26451         esac;
26452         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26453         ???[sx]*):;;*)false;;esac;fi
26454     '\'' sh
26455   '
26456 fi
26457 as_executable_p=$as_test_x
26458
26459 # Sed expression to map a string onto a valid CPP name.
26460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26461
26462 # Sed expression to map a string onto a valid variable name.
26463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26464
26465
26466 exec 6>&1
26467
26468 # Save the log message, to keep $[0] and so on meaningful, and to
26469 # report actual input values of CONFIG_FILES etc. instead of their
26470 # values after options handling.
26471 ac_log="
26472 This file was extended by PostgreSQL $as_me 8.4devel, which was
26473 generated by GNU Autoconf 2.61.  Invocation command line was
26474
26475   CONFIG_FILES    = $CONFIG_FILES
26476   CONFIG_HEADERS  = $CONFIG_HEADERS
26477   CONFIG_LINKS    = $CONFIG_LINKS
26478   CONFIG_COMMANDS = $CONFIG_COMMANDS
26479   $ $0 $@
26480
26481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26482 "
26483
26484 _ACEOF
26485
26486 cat >>$CONFIG_STATUS <<_ACEOF
26487 # Files that config.status was made for.
26488 config_files="$ac_config_files"
26489 config_headers="$ac_config_headers"
26490 config_links="$ac_config_links"
26491 config_commands="$ac_config_commands"
26492
26493 _ACEOF
26494
26495 cat >>$CONFIG_STATUS <<\_ACEOF
26496 ac_cs_usage="\
26497 \`$as_me' instantiates files from templates according to the
26498 current configuration.
26499
26500 Usage: $0 [OPTIONS] [FILE]...
26501
26502   -h, --help       print this help, then exit
26503   -V, --version    print version number and configuration settings, then exit
26504   -q, --quiet      do not print progress messages
26505   -d, --debug      don't remove temporary files
26506       --recheck    update $as_me by reconfiguring in the same conditions
26507   --file=FILE[:TEMPLATE]
26508                    instantiate the configuration file FILE
26509   --header=FILE[:TEMPLATE]
26510                    instantiate the configuration header FILE
26511
26512 Configuration files:
26513 $config_files
26514
26515 Configuration headers:
26516 $config_headers
26517
26518 Configuration links:
26519 $config_links
26520
26521 Configuration commands:
26522 $config_commands
26523
26524 Report bugs to <bug-autoconf@gnu.org>."
26525
26526 _ACEOF
26527 cat >>$CONFIG_STATUS <<_ACEOF
26528 ac_cs_version="\\
26529 PostgreSQL config.status 8.4devel
26530 configured by $0, generated by GNU Autoconf 2.61,
26531   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26532
26533 Copyright (C) 2006 Free Software Foundation, Inc.
26534 This config.status script is free software; the Free Software Foundation
26535 gives unlimited permission to copy, distribute and modify it."
26536
26537 ac_pwd='$ac_pwd'
26538 srcdir='$srcdir'
26539 _ACEOF
26540
26541 cat >>$CONFIG_STATUS <<\_ACEOF
26542 # If no file are specified by the user, then we need to provide default
26543 # value.  By we need to know if files were specified by the user.
26544 ac_need_defaults=:
26545 while test $# != 0
26546 do
26547   case $1 in
26548   --*=*)
26549     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26550     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26551     ac_shift=:
26552     ;;
26553   *)
26554     ac_option=$1
26555     ac_optarg=$2
26556     ac_shift=shift
26557     ;;
26558   esac
26559
26560   case $ac_option in
26561   # Handling of the options.
26562   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26563     ac_cs_recheck=: ;;
26564   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26565     echo "$ac_cs_version"; exit ;;
26566   --debug | --debu | --deb | --de | --d | -d )
26567     debug=: ;;
26568   --file | --fil | --fi | --f )
26569     $ac_shift
26570     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26571     ac_need_defaults=false;;
26572   --header | --heade | --head | --hea )
26573     $ac_shift
26574     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26575     ac_need_defaults=false;;
26576   --he | --h)
26577     # Conflict between --help and --header
26578     { echo "$as_me: error: ambiguous option: $1
26579 Try \`$0 --help' for more information." >&2
26580    { (exit 1); exit 1; }; };;
26581   --help | --hel | -h )
26582     echo "$ac_cs_usage"; exit ;;
26583   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26584   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26585     ac_cs_silent=: ;;
26586
26587   # This is an error.
26588   -*) { echo "$as_me: error: unrecognized option: $1
26589 Try \`$0 --help' for more information." >&2
26590    { (exit 1); exit 1; }; } ;;
26591
26592   *) ac_config_targets="$ac_config_targets $1"
26593      ac_need_defaults=false ;;
26594
26595   esac
26596   shift
26597 done
26598
26599 ac_configure_extra_args=
26600
26601 if $ac_cs_silent; then
26602   exec 6>/dev/null
26603   ac_configure_extra_args="$ac_configure_extra_args --silent"
26604 fi
26605
26606 _ACEOF
26607 cat >>$CONFIG_STATUS <<_ACEOF
26608 if \$ac_cs_recheck; then
26609   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26610   CONFIG_SHELL=$SHELL
26611   export CONFIG_SHELL
26612   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26613 fi
26614
26615 _ACEOF
26616 cat >>$CONFIG_STATUS <<\_ACEOF
26617 exec 5>>config.log
26618 {
26619   echo
26620   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26621 ## Running $as_me. ##
26622 _ASBOX
26623   echo "$ac_log"
26624 } >&5
26625
26626 _ACEOF
26627 cat >>$CONFIG_STATUS <<_ACEOF
26628 _ACEOF
26629
26630 cat >>$CONFIG_STATUS <<\_ACEOF
26631
26632 # Handling of arguments.
26633 for ac_config_target in $ac_config_targets
26634 do
26635   case $ac_config_target in
26636     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26637     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26638     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26639     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26640     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26641     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26642     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26643     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26644     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26645     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26646     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26647     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26648
26649   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26651    { (exit 1); exit 1; }; };;
26652   esac
26653 done
26654
26655
26656 # If the user did not use the arguments to specify the items to instantiate,
26657 # then the envvar interface is used.  Set only those that are not.
26658 # We use the long form for the default assignment because of an extremely
26659 # bizarre bug on SunOS 4.1.3.
26660 if $ac_need_defaults; then
26661   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26662   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26663   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26664   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26665 fi
26666
26667 # Have a temporary directory for convenience.  Make it in the build tree
26668 # simply because there is no reason against having it here, and in addition,
26669 # creating and moving files from /tmp can sometimes cause problems.
26670 # Hook for its removal unless debugging.
26671 # Note that there is a small window in which the directory will not be cleaned:
26672 # after its creation but before its name has been assigned to `$tmp'.
26673 $debug ||
26674 {
26675   tmp=
26676   trap 'exit_status=$?
26677   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26678 ' 0
26679   trap '{ (exit 1); exit 1; }' 1 2 13 15
26680 }
26681 # Create a (secure) tmp directory for tmp files.
26682
26683 {
26684   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26685   test -n "$tmp" && test -d "$tmp"
26686 }  ||
26687 {
26688   tmp=./conf$$-$RANDOM
26689   (umask 077 && mkdir "$tmp")
26690 } ||
26691 {
26692    echo "$me: cannot create a temporary directory in ." >&2
26693    { (exit 1); exit 1; }
26694 }
26695
26696 #
26697 # Set up the sed scripts for CONFIG_FILES section.
26698 #
26699
26700 # No need to generate the scripts if there are no CONFIG_FILES.
26701 # This happens for instance when ./config.status config.h
26702 if test -n "$CONFIG_FILES"; then
26703
26704 _ACEOF
26705
26706
26707
26708 ac_delim='%!_!# '
26709 for ac_last_try in false false false false false :; do
26710   cat >conf$$subs.sed <<_ACEOF
26711 SHELL!$SHELL$ac_delim
26712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26718 exec_prefix!$exec_prefix$ac_delim
26719 prefix!$prefix$ac_delim
26720 program_transform_name!$program_transform_name$ac_delim
26721 bindir!$bindir$ac_delim
26722 sbindir!$sbindir$ac_delim
26723 libexecdir!$libexecdir$ac_delim
26724 datarootdir!$datarootdir$ac_delim
26725 datadir!$datadir$ac_delim
26726 sysconfdir!$sysconfdir$ac_delim
26727 sharedstatedir!$sharedstatedir$ac_delim
26728 localstatedir!$localstatedir$ac_delim
26729 includedir!$includedir$ac_delim
26730 oldincludedir!$oldincludedir$ac_delim
26731 docdir!$docdir$ac_delim
26732 infodir!$infodir$ac_delim
26733 htmldir!$htmldir$ac_delim
26734 dvidir!$dvidir$ac_delim
26735 pdfdir!$pdfdir$ac_delim
26736 psdir!$psdir$ac_delim
26737 libdir!$libdir$ac_delim
26738 localedir!$localedir$ac_delim
26739 mandir!$mandir$ac_delim
26740 DEFS!$DEFS$ac_delim
26741 ECHO_C!$ECHO_C$ac_delim
26742 ECHO_N!$ECHO_N$ac_delim
26743 ECHO_T!$ECHO_T$ac_delim
26744 LIBS!$LIBS$ac_delim
26745 build_alias!$build_alias$ac_delim
26746 host_alias!$host_alias$ac_delim
26747 target_alias!$target_alias$ac_delim
26748 configure_args!$configure_args$ac_delim
26749 build!$build$ac_delim
26750 build_cpu!$build_cpu$ac_delim
26751 build_vendor!$build_vendor$ac_delim
26752 build_os!$build_os$ac_delim
26753 host!$host$ac_delim
26754 host_cpu!$host_cpu$ac_delim
26755 host_vendor!$host_vendor$ac_delim
26756 host_os!$host_os$ac_delim
26757 PORTNAME!$PORTNAME$ac_delim
26758 enable_nls!$enable_nls$ac_delim
26759 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26760 default_port!$default_port$ac_delim
26761 enable_shared!$enable_shared$ac_delim
26762 enable_rpath!$enable_rpath$ac_delim
26763 enable_debug!$enable_debug$ac_delim
26764 enable_profiling!$enable_profiling$ac_delim
26765 GCOV!$GCOV$ac_delim
26766 LCOV!$LCOV$ac_delim
26767 GENHTML!$GENHTML$ac_delim
26768 enable_coverage!$enable_coverage$ac_delim
26769 DTRACE!$DTRACE$ac_delim
26770 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26771 enable_dtrace!$enable_dtrace$ac_delim
26772 CC!$CC$ac_delim
26773 CFLAGS!$CFLAGS$ac_delim
26774 LDFLAGS!$LDFLAGS$ac_delim
26775 CPPFLAGS!$CPPFLAGS$ac_delim
26776 ac_ct_CC!$ac_ct_CC$ac_delim
26777 EXEEXT!$EXEEXT$ac_delim
26778 OBJEXT!$OBJEXT$ac_delim
26779 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26780 CPP!$CPP$ac_delim
26781 GCC!$GCC$ac_delim
26782 TAS!$TAS$ac_delim
26783 autodepend!$autodepend$ac_delim
26784 INCLUDES!$INCLUDES$ac_delim
26785 enable_thread_safety!$enable_thread_safety$ac_delim
26786 with_tcl!$with_tcl$ac_delim
26787 with_perl!$with_perl$ac_delim
26788 with_python!$with_python$ac_delim
26789 with_gssapi!$with_gssapi$ac_delim
26790 with_krb5!$with_krb5$ac_delim
26791 krb_srvtab!$krb_srvtab$ac_delim
26792 with_pam!$with_pam$ac_delim
26793 with_ldap!$with_ldap$ac_delim
26794 with_bonjour!$with_bonjour$ac_delim
26795 with_openssl!$with_openssl$ac_delim
26796 with_ossp_uuid!$with_ossp_uuid$ac_delim
26797 XML2_CONFIG!$XML2_CONFIG$ac_delim
26798 with_libxml!$with_libxml$ac_delim
26799 with_libxslt!$with_libxslt$ac_delim
26800 with_system_tzdata!$with_system_tzdata$ac_delim
26801 with_zlib!$with_zlib$ac_delim
26802 GREP!$GREP$ac_delim
26803 EGREP!$EGREP$ac_delim
26804 ELF_SYS!$ELF_SYS$ac_delim
26805 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26806 LD!$LD$ac_delim
26807 with_gnu_ld!$with_gnu_ld$ac_delim
26808 _ACEOF
26809
26810   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26811     break
26812   elif $ac_last_try; then
26813     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26815    { (exit 1); exit 1; }; }
26816   else
26817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26818   fi
26819 done
26820
26821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26822 if test -n "$ac_eof"; then
26823   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26824   ac_eof=`expr $ac_eof + 1`
26825 fi
26826
26827 cat >>$CONFIG_STATUS <<_ACEOF
26828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26830 _ACEOF
26831 sed '
26832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26833 s/^/s,@/; s/!/@,|#_!!_#|/
26834 :n
26835 t n
26836 s/'"$ac_delim"'$/,g/; t
26837 s/$/\\/; p
26838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26839 ' >>$CONFIG_STATUS <conf$$subs.sed
26840 rm -f conf$$subs.sed
26841 cat >>$CONFIG_STATUS <<_ACEOF
26842 CEOF$ac_eof
26843 _ACEOF
26844
26845
26846 ac_delim='%!_!# '
26847 for ac_last_try in false false false false false :; do
26848   cat >conf$$subs.sed <<_ACEOF
26849 ld_R_works!$ld_R_works$ac_delim
26850 RANLIB!$RANLIB$ac_delim
26851 STRIP!$STRIP$ac_delim
26852 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26853 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26854 TAR!$TAR$ac_delim
26855 LN_S!$LN_S$ac_delim
26856 AWK!$AWK$ac_delim
26857 BISON!$BISON$ac_delim
26858 BISONFLAGS!$BISONFLAGS$ac_delim
26859 FLEX!$FLEX$ac_delim
26860 FLEXFLAGS!$FLEXFLAGS$ac_delim
26861 PERL!$PERL$ac_delim
26862 perl_archlibexp!$perl_archlibexp$ac_delim
26863 perl_privlibexp!$perl_privlibexp$ac_delim
26864 perl_useshrplib!$perl_useshrplib$ac_delim
26865 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26866 PYTHON!$PYTHON$ac_delim
26867 python_version!$python_version$ac_delim
26868 python_configdir!$python_configdir$ac_delim
26869 python_includespec!$python_includespec$ac_delim
26870 python_libdir!$python_libdir$ac_delim
26871 python_libspec!$python_libspec$ac_delim
26872 python_additional_libs!$python_additional_libs$ac_delim
26873 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26874 HAVE_IPV6!$HAVE_IPV6$ac_delim
26875 LIBOBJS!$LIBOBJS$ac_delim
26876 acx_pthread_config!$acx_pthread_config$ac_delim
26877 PTHREAD_CC!$PTHREAD_CC$ac_delim
26878 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26879 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26880 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26881 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26882 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26883 MSGFMT!$MSGFMT$ac_delim
26884 MSGMERGE!$MSGMERGE$ac_delim
26885 XGETTEXT!$XGETTEXT$ac_delim
26886 TCLSH!$TCLSH$ac_delim
26887 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26888 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26889 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26890 TCL_LIBS!$TCL_LIBS$ac_delim
26891 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26892 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26893 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26894 NSGMLS!$NSGMLS$ac_delim
26895 JADE!$JADE$ac_delim
26896 have_docbook!$have_docbook$ac_delim
26897 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26898 COLLATEINDEX!$COLLATEINDEX$ac_delim
26899 SGMLSPL!$SGMLSPL$ac_delim
26900 vpath_build!$vpath_build$ac_delim
26901 LTLIBOBJS!$LTLIBOBJS$ac_delim
26902 _ACEOF
26903
26904   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
26905     break
26906   elif $ac_last_try; then
26907     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26909    { (exit 1); exit 1; }; }
26910   else
26911     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26912   fi
26913 done
26914
26915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26916 if test -n "$ac_eof"; then
26917   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26918   ac_eof=`expr $ac_eof + 1`
26919 fi
26920
26921 cat >>$CONFIG_STATUS <<_ACEOF
26922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26924 _ACEOF
26925 sed '
26926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26927 s/^/s,@/; s/!/@,|#_!!_#|/
26928 :n
26929 t n
26930 s/'"$ac_delim"'$/,g/; t
26931 s/$/\\/; p
26932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26933 ' >>$CONFIG_STATUS <conf$$subs.sed
26934 rm -f conf$$subs.sed
26935 cat >>$CONFIG_STATUS <<_ACEOF
26936 :end
26937 s/|#_!!_#|//g
26938 CEOF$ac_eof
26939 _ACEOF
26940
26941
26942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26944 # trailing colons and then remove the whole line if VPATH becomes empty
26945 # (actually we leave an empty line to preserve line numbers).
26946 if test "x$srcdir" = x.; then
26947   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26948 s/:*\$(srcdir):*/:/
26949 s/:*\${srcdir}:*/:/
26950 s/:*@srcdir@:*/:/
26951 s/^\([^=]*=[     ]*\):*/\1/
26952 s/:*$//
26953 s/^[^=]*=[       ]*$//
26954 }'
26955 fi
26956
26957 cat >>$CONFIG_STATUS <<\_ACEOF
26958 fi # test -n "$CONFIG_FILES"
26959
26960
26961 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
26962 do
26963   case $ac_tag in
26964   :[FHLC]) ac_mode=$ac_tag; continue;;
26965   esac
26966   case $ac_mode$ac_tag in
26967   :[FHL]*:*);;
26968   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26970    { (exit 1); exit 1; }; };;
26971   :[FH]-) ac_tag=-:-;;
26972   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26973   esac
26974   ac_save_IFS=$IFS
26975   IFS=:
26976   set x $ac_tag
26977   IFS=$ac_save_IFS
26978   shift
26979   ac_file=$1
26980   shift
26981
26982   case $ac_mode in
26983   :L) ac_source=$1;;
26984   :[FH])
26985     ac_file_inputs=
26986     for ac_f
26987     do
26988       case $ac_f in
26989       -) ac_f="$tmp/stdin";;
26990       *) # Look for the file first in the build tree, then in the source tree
26991          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26992          # because $ac_f cannot contain `:'.
26993          test -f "$ac_f" ||
26994            case $ac_f in
26995            [\\/$]*) false;;
26996            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26997            esac ||
26998            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27000    { (exit 1); exit 1; }; };;
27001       esac
27002       ac_file_inputs="$ac_file_inputs $ac_f"
27003     done
27004
27005     # Let's still pretend it is `configure' which instantiates (i.e., don't
27006     # use $as_me), people would be surprised to read:
27007     #    /* config.h.  Generated by config.status.  */
27008     configure_input="Generated from "`IFS=:
27009           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27010     if test x"$ac_file" != x-; then
27011       configure_input="$ac_file.  $configure_input"
27012       { echo "$as_me:$LINENO: creating $ac_file" >&5
27013 echo "$as_me: creating $ac_file" >&6;}
27014     fi
27015
27016     case $ac_tag in
27017     *:-:* | *:-) cat >"$tmp/stdin";;
27018     esac
27019     ;;
27020   esac
27021
27022   ac_dir=`$as_dirname -- "$ac_file" ||
27023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27024          X"$ac_file" : 'X\(//\)[^/]' \| \
27025          X"$ac_file" : 'X\(//\)$' \| \
27026          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27027 echo X"$ac_file" |
27028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27029             s//\1/
27030             q
27031           }
27032           /^X\(\/\/\)[^/].*/{
27033             s//\1/
27034             q
27035           }
27036           /^X\(\/\/\)$/{
27037             s//\1/
27038             q
27039           }
27040           /^X\(\/\).*/{
27041             s//\1/
27042             q
27043           }
27044           s/.*/./; q'`
27045   { as_dir="$ac_dir"
27046   case $as_dir in #(
27047   -*) as_dir=./$as_dir;;
27048   esac
27049   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27050     as_dirs=
27051     while :; do
27052       case $as_dir in #(
27053       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27054       *) as_qdir=$as_dir;;
27055       esac
27056       as_dirs="'$as_qdir' $as_dirs"
27057       as_dir=`$as_dirname -- "$as_dir" ||
27058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27059          X"$as_dir" : 'X\(//\)[^/]' \| \
27060          X"$as_dir" : 'X\(//\)$' \| \
27061          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27062 echo X"$as_dir" |
27063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27064             s//\1/
27065             q
27066           }
27067           /^X\(\/\/\)[^/].*/{
27068             s//\1/
27069             q
27070           }
27071           /^X\(\/\/\)$/{
27072             s//\1/
27073             q
27074           }
27075           /^X\(\/\).*/{
27076             s//\1/
27077             q
27078           }
27079           s/.*/./; q'`
27080       test -d "$as_dir" && break
27081     done
27082     test -z "$as_dirs" || eval "mkdir $as_dirs"
27083   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27085    { (exit 1); exit 1; }; }; }
27086   ac_builddir=.
27087
27088 case "$ac_dir" in
27089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27090 *)
27091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27092   # A ".." for each directory in $ac_dir_suffix.
27093   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27094   case $ac_top_builddir_sub in
27095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27097   esac ;;
27098 esac
27099 ac_abs_top_builddir=$ac_pwd
27100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27101 # for backward compatibility:
27102 ac_top_builddir=$ac_top_build_prefix
27103
27104 case $srcdir in
27105   .)  # We are building in place.
27106     ac_srcdir=.
27107     ac_top_srcdir=$ac_top_builddir_sub
27108     ac_abs_top_srcdir=$ac_pwd ;;
27109   [\\/]* | ?:[\\/]* )  # Absolute name.
27110     ac_srcdir=$srcdir$ac_dir_suffix;
27111     ac_top_srcdir=$srcdir
27112     ac_abs_top_srcdir=$srcdir ;;
27113   *) # Relative name.
27114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27115     ac_top_srcdir=$ac_top_build_prefix$srcdir
27116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27117 esac
27118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27119
27120
27121   case $ac_mode in
27122   :F)
27123   #
27124   # CONFIG_FILE
27125   #
27126
27127 _ACEOF
27128
27129 cat >>$CONFIG_STATUS <<\_ACEOF
27130 # If the template does not know about datarootdir, expand it.
27131 # FIXME: This hack should be removed a few years after 2.60.
27132 ac_datarootdir_hack=; ac_datarootdir_seen=
27133
27134 case `sed -n '/datarootdir/ {
27135   p
27136   q
27137 }
27138 /@datadir@/p
27139 /@docdir@/p
27140 /@infodir@/p
27141 /@localedir@/p
27142 /@mandir@/p
27143 ' $ac_file_inputs` in
27144 *datarootdir*) ac_datarootdir_seen=yes;;
27145 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27146   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27147 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27148 _ACEOF
27149 cat >>$CONFIG_STATUS <<_ACEOF
27150   ac_datarootdir_hack='
27151   s&@datadir@&$datadir&g
27152   s&@docdir@&$docdir&g
27153   s&@infodir@&$infodir&g
27154   s&@localedir@&$localedir&g
27155   s&@mandir@&$mandir&g
27156     s&\\\${datarootdir}&$datarootdir&g' ;;
27157 esac
27158 _ACEOF
27159
27160 # Neutralize VPATH when `$srcdir' = `.'.
27161 # Shell code in configure.ac might set extrasub.
27162 # FIXME: do we really want to maintain this feature?
27163 cat >>$CONFIG_STATUS <<_ACEOF
27164   sed "$ac_vpsub
27165 $extrasub
27166 _ACEOF
27167 cat >>$CONFIG_STATUS <<\_ACEOF
27168 :t
27169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27170 s&@configure_input@&$configure_input&;t t
27171 s&@top_builddir@&$ac_top_builddir_sub&;t t
27172 s&@srcdir@&$ac_srcdir&;t t
27173 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27174 s&@top_srcdir@&$ac_top_srcdir&;t t
27175 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27176 s&@builddir@&$ac_builddir&;t t
27177 s&@abs_builddir@&$ac_abs_builddir&;t t
27178 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27179 $ac_datarootdir_hack
27180 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27181
27182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27183   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27184   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27185   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27186 which seems to be undefined.  Please make sure it is defined." >&5
27187 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27188 which seems to be undefined.  Please make sure it is defined." >&2;}
27189
27190   rm -f "$tmp/stdin"
27191   case $ac_file in
27192   -) cat "$tmp/out"; rm -f "$tmp/out";;
27193   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27194   esac
27195  ;;
27196   :H)
27197   #
27198   # CONFIG_HEADER
27199   #
27200 _ACEOF
27201
27202 # Transform confdefs.h into a sed script `conftest.defines', that
27203 # substitutes the proper values into config.h.in to produce config.h.
27204 rm -f conftest.defines conftest.tail
27205 # First, append a space to every undef/define line, to ease matching.
27206 echo 's/$/ /' >conftest.defines
27207 # Then, protect against being on the right side of a sed subst, or in
27208 # an unquoted here document, in config.status.  If some macros were
27209 # called several times there might be several #defines for the same
27210 # symbol, which is useless.  But do not sort them, since the last
27211 # AC_DEFINE must be honored.
27212 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27213 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27214 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27215 # PARAMS is the parameter list in the macro definition--in most cases, it's
27216 # just an empty string.
27217 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27218 ac_dB='\\)[      (].*,\\1define\\2'
27219 ac_dC=' '
27220 ac_dD=' ,'
27221
27222 uniq confdefs.h |
27223   sed -n '
27224         t rset
27225         :rset
27226         s/^[     ]*#[    ]*define[       ][      ]*//
27227         t ok
27228         d
27229         :ok
27230         s/[\\&,]/\\&/g
27231         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27232         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27233   ' >>conftest.defines
27234
27235 # Remove the space that was appended to ease matching.
27236 # Then replace #undef with comments.  This is necessary, for
27237 # example, in the case of _POSIX_SOURCE, which is predefined and required
27238 # on some systems where configure will not decide to define it.
27239 # (The regexp can be short, since the line contains either #define or #undef.)
27240 echo 's/ $//
27241 s,^[     #]*u.*,/* & */,' >>conftest.defines
27242
27243 # Break up conftest.defines:
27244 ac_max_sed_lines=50
27245
27246 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27247 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27248 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27249 # et cetera.
27250 ac_in='$ac_file_inputs'
27251 ac_out='"$tmp/out1"'
27252 ac_nxt='"$tmp/out2"'
27253
27254 while :
27255 do
27256   # Write a here document:
27257     cat >>$CONFIG_STATUS <<_ACEOF
27258     # First, check the format of the line:
27259     cat >"\$tmp/defines.sed" <<\\CEOF
27260 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27261 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27262 b
27263 :def
27264 _ACEOF
27265   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27266   echo 'CEOF
27267     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27268   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27269   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27270   grep . conftest.tail >/dev/null || break
27271   rm -f conftest.defines
27272   mv conftest.tail conftest.defines
27273 done
27274 rm -f conftest.defines conftest.tail
27275
27276 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27277 cat >>$CONFIG_STATUS <<\_ACEOF
27278   if test x"$ac_file" != x-; then
27279     echo "/* $configure_input  */" >"$tmp/config.h"
27280     cat "$ac_result" >>"$tmp/config.h"
27281     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27282       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27283 echo "$as_me: $ac_file is unchanged" >&6;}
27284     else
27285       rm -f $ac_file
27286       mv "$tmp/config.h" $ac_file
27287     fi
27288   else
27289     echo "/* $configure_input  */"
27290     cat "$ac_result"
27291   fi
27292   rm -f "$tmp/out12"
27293  ;;
27294   :L)
27295   #
27296   # CONFIG_LINK
27297   #
27298
27299   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27300 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27301
27302   if test ! -r "$srcdir/$ac_source"; then
27303     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27304 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27305    { (exit 1); exit 1; }; }
27306   fi
27307   rm -f "$ac_file"
27308
27309   # Try a relative symlink, then a hard link, then a copy.
27310   case $srcdir in
27311   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27312       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27313   esac
27314   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27315     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27316     cp -p "$srcdir/$ac_source" "$ac_file" ||
27317     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27318 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27319    { (exit 1); exit 1; }; }
27320  ;;
27321   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27322 echo "$as_me: executing $ac_file commands" >&6;}
27323  ;;
27324   esac
27325
27326
27327   case $ac_file$ac_mode in
27328     "check_win32_symlinks":C)
27329 # Links sometimes fail undetected on Mingw -
27330 # so here we detect it and warn the user
27331 for FILE in $CONFIG_LINKS
27332  do
27333         # test -e works for symlinks in the MinGW console
27334         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27335 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27336  done
27337  ;;
27338     "src/include/pg_config.h":H)
27339 # Update timestamp for pg_config.h (see Makefile.global)
27340 echo >src/include/stamp-h
27341  ;;
27342
27343   esac
27344 done # for ac_tag
27345
27346
27347 { (exit 0); exit 0; }
27348 _ACEOF
27349 chmod +x $CONFIG_STATUS
27350 ac_clean_files=$ac_clean_files_save
27351
27352
27353 # configure is writing to config.log, and then calls config.status.
27354 # config.status does its own redirection, appending to config.log.
27355 # Unfortunately, on DOS this fails, as config.log is still kept open
27356 # by configure, so config.status won't be able to write to it; its
27357 # output is simply discarded.  So we exec the FD to /dev/null,
27358 # effectively closing config.log, so it can be properly (re)opened and
27359 # appended to by config.status.  When coming back to configure, we
27360 # need to make the FD available again.
27361 if test "$no_create" != yes; then
27362   ac_cs_success=:
27363   ac_config_status_args=
27364   test "$silent" = yes &&
27365     ac_config_status_args="$ac_config_status_args --quiet"
27366   exec 5>/dev/null
27367   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27368   exec 5>>config.log
27369   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27370   # would make configure fail if this is the last instruction.
27371   $ac_cs_success || { (exit 1); exit 1; }
27372 fi
27373
27374
27375 # Warn about unknown options
27376 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27377   for pgac_arg in $pgac_args with_gnu_ld; do
27378     if test "$pgac_var" = "$pgac_arg"; then
27379       continue 2
27380     fi
27381   done
27382   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27383   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27384 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27385 done