]> granicus.if.org Git - postgresql/blob - configure
Move Client Authentication right after Server Configuration in docs.
[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 DTRACE
676 DTRACEFLAGS
677 enable_dtrace
678 CC
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
685 CPP
686 GCC
687 TAS
688 autodepend
689 INCLUDES
690 enable_thread_safety
691 with_tcl
692 with_perl
693 with_python
694 with_gssapi
695 with_krb5
696 krb_srvtab
697 with_pam
698 with_ldap
699 with_bonjour
700 with_openssl
701 with_ossp_uuid
702 XML2_CONFIG
703 with_libxml
704 with_libxslt
705 with_system_tzdata
706 with_zlib
707 GREP
708 EGREP
709 ELF_SYS
710 LDFLAGS_SL
711 LD
712 with_gnu_ld
713 ld_R_works
714 RANLIB
715 STRIP
716 STRIP_STATIC_LIB
717 STRIP_SHARED_LIB
718 TAR
719 LN_S
720 AWK
721 YACC
722 YFLAGS
723 FLEX
724 FLEXFLAGS
725 PERL
726 perl_archlibexp
727 perl_privlibexp
728 perl_useshrplib
729 perl_embed_ldflags
730 PYTHON
731 python_version
732 python_configdir
733 python_includespec
734 python_libdir
735 python_libspec
736 python_additional_libs
737 OSSP_UUID_LIBS
738 HAVE_IPV6
739 LIBOBJS
740 acx_pthread_config
741 PTHREAD_CC
742 PTHREAD_LIBS
743 PTHREAD_CFLAGS
744 LDAP_LIBS_FE
745 LDAP_LIBS_BE
746 HAVE_POSIX_SIGNALS
747 MSGFMT
748 MSGMERGE
749 XGETTEXT
750 TCLSH
751 TCL_CONFIG_SH
752 TCL_INCLUDE_SPEC
753 TCL_LIB_FILE
754 TCL_LIBS
755 TCL_LIB_SPEC
756 TCL_SHARED_BUILD
757 TCL_SHLIB_LD_LIBS
758 NSGMLS
759 JADE
760 have_docbook
761 DOCBOOKSTYLE
762 COLLATEINDEX
763 SGMLSPL
764 vpath_build
765 LTLIBOBJS'
766 ac_subst_files=''
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 LDFLAGS_SL
777 DOCBOOKSTYLE'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885    { (exit 1); exit 1; }; }
886     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887     eval enable_$ac_feature=no ;;
888
889   -docdir | --docdir | --docdi | --doc | --do)
890     ac_prev=docdir ;;
891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892     docdir=$ac_optarg ;;
893
894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895     ac_prev=dvidir ;;
896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897     dvidir=$ac_optarg ;;
898
899   -enable-* | --enable-*)
900     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904    { (exit 1); exit 1; }; }
905     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906     eval enable_$ac_feature=\$ac_optarg ;;
907
908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910   | --exec | --exe | --ex)
911     ac_prev=exec_prefix ;;
912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914   | --exec=* | --exe=* | --ex=*)
915     exec_prefix=$ac_optarg ;;
916
917   -gas | --gas | --ga | --g)
918     # Obsolete; use --with-gas.
919     with_gas=yes ;;
920
921   -help | --help | --hel | --he | -h)
922     ac_init_help=long ;;
923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924     ac_init_help=recursive ;;
925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926     ac_init_help=short ;;
927
928   -host | --host | --hos | --ho)
929     ac_prev=host_alias ;;
930   -host=* | --host=* | --hos=* | --ho=*)
931     host_alias=$ac_optarg ;;
932
933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934     ac_prev=htmldir ;;
935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936   | --ht=*)
937     htmldir=$ac_optarg ;;
938
939   -includedir | --includedir | --includedi | --included | --include \
940   | --includ | --inclu | --incl | --inc)
941     ac_prev=includedir ;;
942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943   | --includ=* | --inclu=* | --incl=* | --inc=*)
944     includedir=$ac_optarg ;;
945
946   -infodir | --infodir | --infodi | --infod | --info | --inf)
947     ac_prev=infodir ;;
948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949     infodir=$ac_optarg ;;
950
951   -libdir | --libdir | --libdi | --libd)
952     ac_prev=libdir ;;
953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
954     libdir=$ac_optarg ;;
955
956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957   | --libexe | --libex | --libe)
958     ac_prev=libexecdir ;;
959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960   | --libexe=* | --libex=* | --libe=*)
961     libexecdir=$ac_optarg ;;
962
963   -localedir | --localedir | --localedi | --localed | --locale)
964     ac_prev=localedir ;;
965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966     localedir=$ac_optarg ;;
967
968   -localstatedir | --localstatedir | --localstatedi | --localstated \
969   | --localstate | --localstat | --localsta | --localst | --locals)
970     ac_prev=localstatedir ;;
971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973     localstatedir=$ac_optarg ;;
974
975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976     ac_prev=mandir ;;
977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978     mandir=$ac_optarg ;;
979
980   -nfp | --nfp | --nf)
981     # Obsolete; use --without-fp.
982     with_fp=no ;;
983
984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985   | --no-cr | --no-c | -n)
986     no_create=yes ;;
987
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990     no_recursion=yes ;;
991
992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994   | --oldin | --oldi | --old | --ol | --o)
995     ac_prev=oldincludedir ;;
996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999     oldincludedir=$ac_optarg ;;
1000
1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002     ac_prev=prefix ;;
1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004     prefix=$ac_optarg ;;
1005
1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007   | --program-pre | --program-pr | --program-p)
1008     ac_prev=program_prefix ;;
1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011     program_prefix=$ac_optarg ;;
1012
1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014   | --program-suf | --program-su | --program-s)
1015     ac_prev=program_suffix ;;
1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018     program_suffix=$ac_optarg ;;
1019
1020   -program-transform-name | --program-transform-name \
1021   | --program-transform-nam | --program-transform-na \
1022   | --program-transform-n | --program-transform- \
1023   | --program-transform | --program-transfor \
1024   | --program-transfo | --program-transf \
1025   | --program-trans | --program-tran \
1026   | --progr-tra | --program-tr | --program-t)
1027     ac_prev=program_transform_name ;;
1028   -program-transform-name=* | --program-transform-name=* \
1029   | --program-transform-nam=* | --program-transform-na=* \
1030   | --program-transform-n=* | --program-transform-=* \
1031   | --program-transform=* | --program-transfor=* \
1032   | --program-transfo=* | --program-transf=* \
1033   | --program-trans=* | --program-tran=* \
1034   | --progr-tra=* | --program-tr=* | --program-t=*)
1035     program_transform_name=$ac_optarg ;;
1036
1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038     ac_prev=pdfdir ;;
1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040     pdfdir=$ac_optarg ;;
1041
1042   -psdir | --psdir | --psdi | --psd | --ps)
1043     ac_prev=psdir ;;
1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045     psdir=$ac_optarg ;;
1046
1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048   | -silent | --silent | --silen | --sile | --sil)
1049     silent=yes ;;
1050
1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052     ac_prev=sbindir ;;
1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054   | --sbi=* | --sb=*)
1055     sbindir=$ac_optarg ;;
1056
1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059   | --sharedst | --shareds | --shared | --share | --shar \
1060   | --sha | --sh)
1061     ac_prev=sharedstatedir ;;
1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065   | --sha=* | --sh=*)
1066     sharedstatedir=$ac_optarg ;;
1067
1068   -site | --site | --sit)
1069     ac_prev=site ;;
1070   -site=* | --site=* | --sit=*)
1071     site=$ac_optarg ;;
1072
1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074     ac_prev=srcdir ;;
1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076     srcdir=$ac_optarg ;;
1077
1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079   | --syscon | --sysco | --sysc | --sys | --sy)
1080     ac_prev=sysconfdir ;;
1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083     sysconfdir=$ac_optarg ;;
1084
1085   -target | --target | --targe | --targ | --tar | --ta | --t)
1086     ac_prev=target_alias ;;
1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088     target_alias=$ac_optarg ;;
1089
1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091     verbose=yes ;;
1092
1093   -version | --version | --versio | --versi | --vers | -V)
1094     ac_init_version=: ;;
1095
1096   -with-* | --with-*)
1097     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid package name: $ac_package" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103     eval with_$ac_package=\$ac_optarg ;;
1104
1105   -without-* | --without-*)
1106     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109       { echo "$as_me: error: invalid package name: $ac_package" >&2
1110    { (exit 1); exit 1; }; }
1111     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112     eval with_$ac_package=no ;;
1113
1114   --x)
1115     # Obsolete; use --with-x.
1116     with_x=yes ;;
1117
1118   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119   | --x-incl | --x-inc | --x-in | --x-i)
1120     ac_prev=x_includes ;;
1121   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123     x_includes=$ac_optarg ;;
1124
1125   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127     ac_prev=x_libraries ;;
1128   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130     x_libraries=$ac_optarg ;;
1131
1132   -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134    { (exit 1); exit 1; }; }
1135     ;;
1136
1137   *=*)
1138     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142    { (exit 1); exit 1; }; }
1143     eval $ac_envvar=\$ac_optarg
1144     export $ac_envvar ;;
1145
1146   *)
1147     # FIXME: should be removed in autoconf 3.0.
1148     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152     ;;
1153
1154   esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159   { echo "$as_me: error: missing argument to $ac_option" >&2
1160    { (exit 1); exit 1; }; }
1161 fi
1162
1163 # Be sure to have absolute directory names.
1164 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165                 datadir sysconfdir sharedstatedir localstatedir includedir \
1166                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167                 libdir localedir mandir
1168 do
1169   eval ac_val=\$$ac_var
1170   case $ac_val in
1171     [\\/$]* | ?:[\\/]* )  continue;;
1172     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173   esac
1174   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175    { (exit 1); exit 1; }; }
1176 done
1177
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1184
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187   if test "x$build_alias" = x; then
1188     cross_compiling=maybe
1189     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190     If a cross compiler is detected then cross compile mode will be used." >&2
1191   elif test "x$build_alias" != "x$host_alias"; then
1192     cross_compiling=yes
1193   fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205   { echo "$as_me: error: Working directory cannot be determined" >&2
1206    { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208   { echo "$as_me: error: pwd does not report name of working directory" >&2
1209    { (exit 1); exit 1; }; }
1210
1211
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214   ac_srcdir_defaulted=yes
1215   # Try the directory containing this script, then the parent directory.
1216   ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218          X"$0" : 'X\(//\)[^/]' \| \
1219          X"$0" : 'X\(//\)$' \| \
1220          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)[^/].*/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\/\)$/{
1231             s//\1/
1232             q
1233           }
1234           /^X\(\/\).*/{
1235             s//\1/
1236             q
1237           }
1238           s/.*/./; q'`
1239   srcdir=$ac_confdir
1240   if test ! -r "$srcdir/$ac_unique_file"; then
1241     srcdir=..
1242   fi
1243 else
1244   ac_srcdir_defaulted=no
1245 fi
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249    { (exit 1); exit 1; }; }
1250 fi
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254    { (exit 1); exit 1; }; }
1255         pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258   srcdir=.
1259 fi
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268   eval ac_env_${ac_var}_value=\$${ac_var}
1269   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1272
1273 #
1274 # Report the --help message.
1275 #
1276 if test "$ac_init_help" = "long"; then
1277   # Omit some internal or obsolete options to make the list less imposing.
1278   # This message is too long to be a string in the A/UX 3.1 sh.
1279   cat <<_ACEOF
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1281
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE.  See below for descriptions of some of the useful variables.
1286
1287 Defaults for the options are specified in brackets.
1288
1289 Configuration:
1290   -h, --help              display this help and exit
1291       --help=short        display options specific to this package
1292       --help=recursive    display the short help of all the included packages
1293   -V, --version           display version information and exit
1294   -q, --quiet, --silent   do not print \`checking...' messages
1295       --cache-file=FILE   cache test results in FILE [disabled]
1296   -C, --config-cache      alias for \`--cache-file=config.cache'
1297   -n, --no-create         do not create output files
1298       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1299
1300 Installation directories:
1301   --prefix=PREFIX         install architecture-independent files in PREFIX
1302                           [$ac_default_prefix]
1303   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1304                           [PREFIX]
1305
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1310
1311 For better control, use the options below.
1312
1313 Fine tuning of the installation directories:
1314   --bindir=DIR           user executables [EPREFIX/bin]
1315   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1316   --libexecdir=DIR       program executables [EPREFIX/libexec]
1317   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1318   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1319   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1320   --libdir=DIR           object code libraries [EPREFIX/lib]
1321   --includedir=DIR       C header files [PREFIX/include]
1322   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1323   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1324   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1325   --infodir=DIR          info documentation [DATAROOTDIR/info]
1326   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1327   --mandir=DIR           man documentation [DATAROOTDIR/man]
1328   --docdir=DIR           documentation root [DATAROOTDIR/doc/postgresql]
1329   --htmldir=DIR          html documentation [DOCDIR]
1330   --dvidir=DIR           dvi documentation [DOCDIR]
1331   --pdfdir=DIR           pdf documentation [DOCDIR]
1332   --psdir=DIR            ps documentation [DOCDIR]
1333 _ACEOF
1334
1335   cat <<\_ACEOF
1336
1337 System types:
1338   --build=BUILD     configure for building on BUILD [guessed]
1339   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1340 _ACEOF
1341 fi
1342
1343 if test -n "$ac_init_help"; then
1344   case $ac_init_help in
1345      short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1346    esac
1347   cat <<\_ACEOF
1348
1349 Optional Features:
1350   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1351   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1352   --disable-integer-datetimes  disable 64-bit integer date/time support
1353   --enable-nls[=LANGUAGES]  enable Native Language Support
1354   --disable-shared        do not build shared libraries
1355   --disable-rpath         do not embed shared library search path in executables
1356   --disable-spinlocks     do not use spinlocks
1357   --enable-debug          build with debugging symbols (-g)
1358   --enable-profiling      build with profiling enabled
1359   --enable-dtrace         build with DTrace support
1360   --enable-depend         turn on automatic dependency tracking
1361   --enable-cassert        enable assertion checks (for debugging)
1362   --enable-thread-safety  make client libraries thread-safe
1363   --enable-thread-safety-force  force thread-safety despite thread test failure
1364   --disable-float4-byval  disable float4 passed by value
1365   --disable-float8-byval  disable float8 passed by value
1366   --disable-largefile     omit support for large files
1367
1368 Optional Packages:
1369   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1370   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1371
1372   --with-includes=DIRS    look for additional header files in DIRS
1373   --with-libraries=DIRS   look for additional libraries in DIRS
1374   --with-libs=DIRS        alternative spelling of --with-libraries
1375   --with-pgport=PORTNUM   set default port number [5432]
1376   --with-blocksize=BLOCKSIZE  set table block size in kB [8]
1377   --with-segsize=SEGSIZE  set table segment size in GB [1]
1378   --with-wal-blocksize=BLOCKSIZE  set WAL block size in kB [8]
1379   --with-wal-segsize=SEGSIZE  set WAL segment size in MB [16]
1380   --with-tcl              build Tcl modules (PL/Tcl)
1381   --with-tclconfig=DIR    tclConfig.sh is in DIR
1382   --with-perl             build Perl modules (PL/Perl)
1383   --with-python           build Python modules (PL/Python)
1384   --with-gssapi           build with GSSAPI support
1385   --with-krb5             build with Kerberos 5 support
1386   --with-krb-srvnam=NAME  default service principal name in Kerberos [postgres]
1387   --with-pam              build with PAM support
1388   --with-ldap             build with LDAP support
1389   --with-bonjour          build with Bonjour support
1390   --with-openssl          build with OpenSSL support
1391   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1392   --with-libedit-preferred  prefer BSD Libedit over GNU Readline
1393   --with-ossp-uuid        use OSSP UUID library when building contrib/uuid-ossp
1394   --with-libxml           build with XML support
1395   --with-libxslt          use XSLT support when building contrib/xml2
1396   --with-system-tzdata=DIR  use system time zone data in DIR
1397   --without-zlib          do not use Zlib
1398   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1399
1400 Some influential environment variables:
1401   CC          C compiler command
1402   CFLAGS      C compiler flags
1403   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1404               nonstandard directory <lib dir>
1405   LIBS        libraries to pass to the linker, e.g. -l<library>
1406   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407               you have headers in a nonstandard directory <include dir>
1408   CPP         C preprocessor
1409   LDFLAGS_SL
1410   DOCBOOKSTYLE
1411               location of DocBook stylesheets
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 Report bugs to <pgsql-bugs@postgresql.org>.
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422   # If there are subdirs, report their specific --help.
1423   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424     test -d "$ac_dir" || continue
1425     ac_builddir=.
1426
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *)
1430   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431   # A ".." for each directory in $ac_dir_suffix.
1432   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433   case $ac_top_builddir_sub in
1434   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436   esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1442
1443 case $srcdir in
1444   .)  # We are building in place.
1445     ac_srcdir=.
1446     ac_top_srcdir=$ac_top_builddir_sub
1447     ac_abs_top_srcdir=$ac_pwd ;;
1448   [\\/]* | ?:[\\/]* )  # Absolute name.
1449     ac_srcdir=$srcdir$ac_dir_suffix;
1450     ac_top_srcdir=$srcdir
1451     ac_abs_top_srcdir=$srcdir ;;
1452   *) # Relative name.
1453     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454     ac_top_srcdir=$ac_top_build_prefix$srcdir
1455     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459     cd "$ac_dir" || { ac_status=$?; continue; }
1460     # Check for guested configure.
1461     if test -f "$ac_srcdir/configure.gnu"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464     elif test -f "$ac_srcdir/configure"; then
1465       echo &&
1466       $SHELL "$ac_srcdir/configure" --help=recursive
1467     else
1468       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469     fi || ac_status=$?
1470     cd "$ac_pwd" || { ac_status=$?; break; }
1471   done
1472 fi
1473
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476   cat <<\_ACEOF
1477 PostgreSQL configure 8.4devel
1478 generated by GNU Autoconf 2.61
1479
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484
1485 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1486 _ACEOF
1487   exit
1488 fi
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1492
1493 It was created by PostgreSQL $as_me 8.4devel, which was
1494 generated by GNU Autoconf 2.61.  Invocation command line was
1495
1496   $ $0 $@
1497
1498 _ACEOF
1499 exec 5>>config.log
1500 {
1501 cat <<_ASUNAME
1502 ## --------- ##
1503 ## Platform. ##
1504 ## --------- ##
1505
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1511
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1514
1515 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1516 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1519 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1520 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1521 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1522
1523 _ASUNAME
1524
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528   IFS=$as_save_IFS
1529   test -z "$as_dir" && as_dir=.
1530   echo "PATH: $as_dir"
1531 done
1532 IFS=$as_save_IFS
1533
1534 } >&5
1535
1536 cat >&5 <<_ACEOF
1537
1538
1539 ## ----------- ##
1540 ## Core tests. ##
1541 ## ----------- ##
1542
1543 _ACEOF
1544
1545
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_configure_args=
1552 ac_configure_args0=
1553 ac_configure_args1=
1554 ac_must_keep_next=false
1555 for ac_pass in 1 2
1556 do
1557   for ac_arg
1558   do
1559     case $ac_arg in
1560     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562     | -silent | --silent | --silen | --sile | --sil)
1563       continue ;;
1564     *\'*)
1565       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566     esac
1567     case $ac_pass in
1568     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569     2)
1570       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571       if test $ac_must_keep_next = true; then
1572         ac_must_keep_next=false # Got value, back to normal.
1573       else
1574         case $ac_arg in
1575           *=* | --config-cache | -C | -disable-* | --disable-* \
1576           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578           | -with-* | --with-* | -without-* | --without-* | --x)
1579             case "$ac_configure_args0 " in
1580               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581             esac
1582             ;;
1583           -* ) ac_must_keep_next=true ;;
1584         esac
1585       fi
1586       ac_configure_args="$ac_configure_args '$ac_arg'"
1587       ;;
1588     esac
1589   done
1590 done
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log.  We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600   # Save into config.log some information that might help in debugging.
1601   {
1602     echo
1603
1604     cat <<\_ASBOX
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1608 _ASBOX
1609     echo
1610     # The following way of writing the cache mishandles newlines in values,
1611 (
1612   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613     eval ac_val=\$$ac_var
1614     case $ac_val in #(
1615     *${as_nl}*)
1616       case $ac_var in #(
1617       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1618 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1619       esac
1620       case $ac_var in #(
1621       _ | IFS | as_nl) ;; #(
1622       *) $as_unset $ac_var ;;
1623       esac ;;
1624     esac
1625   done
1626   (set) 2>&1 |
1627     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1628     *${as_nl}ac_space=\ *)
1629       sed -n \
1630         "s/'\''/'\''\\\\'\'''\''/g;
1631           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1632       ;; #(
1633     *)
1634       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1635       ;;
1636     esac |
1637     sort
1638 )
1639     echo
1640
1641     cat <<\_ASBOX
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1645 _ASBOX
1646     echo
1647     for ac_var in $ac_subst_vars
1648     do
1649       eval ac_val=\$$ac_var
1650       case $ac_val in
1651       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652       esac
1653       echo "$ac_var='\''$ac_val'\''"
1654     done | sort
1655     echo
1656
1657     if test -n "$ac_subst_files"; then
1658       cat <<\_ASBOX
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1662 _ASBOX
1663       echo
1664       for ac_var in $ac_subst_files
1665       do
1666         eval ac_val=\$$ac_var
1667         case $ac_val in
1668         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669         esac
1670         echo "$ac_var='\''$ac_val'\''"
1671       done | sort
1672       echo
1673     fi
1674
1675     if test -s confdefs.h; then
1676       cat <<\_ASBOX
1677 ## ----------- ##
1678 ## confdefs.h. ##
1679 ## ----------- ##
1680 _ASBOX
1681       echo
1682       cat confdefs.h
1683       echo
1684     fi
1685     test "$ac_signal" != 0 &&
1686       echo "$as_me: caught signal $ac_signal"
1687     echo "$as_me: exit $exit_status"
1688   } >&5
1689   rm -f core *.core core.conftest.* &&
1690     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1691     exit $exit_status
1692 ' 0
1693 for ac_signal in 1 2 13 15; do
1694   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 done
1696 ac_signal=0
1697
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1700
1701 # Predefined preprocessor variables.
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 _ACEOF
1711
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 _ACEOF
1721
1722
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 _ACEOF
1726
1727
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer explicitly selected file to automatically selected ones.
1730 if test -n "$CONFIG_SITE"; then
1731   set x "$CONFIG_SITE"
1732 elif test "x$prefix" != xNONE; then
1733   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1734 else
1735   set x "$ac_default_prefix/share/config.site" \
1736         "$ac_default_prefix/etc/config.site"
1737 fi
1738 shift
1739 for ac_site_file
1740 do
1741   if test -r "$ac_site_file"; then
1742     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 echo "$as_me: loading site script $ac_site_file" >&6;}
1744     sed 's/^/| /' "$ac_site_file" >&5
1745     . "$ac_site_file"
1746   fi
1747 done
1748
1749 if test -r "$cache_file"; then
1750   # Some versions of bash will fail to source /dev/null (special
1751   # files actually), so we avoid doing that.
1752   if test -f "$cache_file"; then
1753     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 echo "$as_me: loading cache $cache_file" >&6;}
1755     case $cache_file in
1756       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757       *)                      . "./$cache_file";;
1758     esac
1759   fi
1760 else
1761   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 echo "$as_me: creating cache $cache_file" >&6;}
1763   >$cache_file
1764 fi
1765
1766 # Check that the precious variables saved in the cache have kept the same
1767 # value.
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771   eval ac_new_set=\$ac_env_${ac_var}_set
1772   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773   eval ac_new_val=\$ac_env_${ac_var}_value
1774   case $ac_old_set,$ac_new_set in
1775     set,)
1776       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778       ac_cache_corrupted=: ;;
1779     ,set)
1780       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782       ac_cache_corrupted=: ;;
1783     ,);;
1784     *)
1785       if test "x$ac_old_val" != "x$ac_new_val"; then
1786         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1787 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1788         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1789 echo "$as_me:   former value:  $ac_old_val" >&2;}
1790         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1791 echo "$as_me:   current value: $ac_new_val" >&2;}
1792         ac_cache_corrupted=:
1793       fi;;
1794   esac
1795   # Pass precious variables to config.status.
1796   if test "$ac_new_set" = set; then
1797     case $ac_new_val in
1798     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1799     *) ac_arg=$ac_var=$ac_new_val ;;
1800     esac
1801     case " $ac_configure_args " in
1802       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1803       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804     esac
1805   fi
1806 done
1807 if $ac_cache_corrupted; then
1808   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839 ac_ext=c
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844
1845
1846
1847
1848
1849
1850 ac_aux_dir=
1851 for ac_dir in config "$srcdir"/config; do
1852   if test -f "$ac_dir/install-sh"; then
1853     ac_aux_dir=$ac_dir
1854     ac_install_sh="$ac_aux_dir/install-sh -c"
1855     break
1856   elif test -f "$ac_dir/install.sh"; then
1857     ac_aux_dir=$ac_dir
1858     ac_install_sh="$ac_aux_dir/install.sh -c"
1859     break
1860   elif test -f "$ac_dir/shtool"; then
1861     ac_aux_dir=$ac_dir
1862     ac_install_sh="$ac_aux_dir/shtool install -c"
1863     break
1864   fi
1865 done
1866 if test -z "$ac_aux_dir"; then
1867   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1868 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
1872 # These three variables are undocumented and unsupported,
1873 # and are intended to be withdrawn in a future Autoconf release.
1874 # They can cause serious problems if a builder's source tree is in a directory
1875 # whose full name contains unusual characters.
1876 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1877 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1878 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1879
1880
1881
1882 configure_args=$ac_configure_args
1883
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PG_VERSION "$PACKAGE_VERSION"
1888 _ACEOF
1889
1890
1891 # Make sure we can run config.sub.
1892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1895    { (exit 1); exit 1; }; }
1896
1897 { echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_build+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   ac_build_alias=$build_alias
1903 test "x$ac_build_alias" = x &&
1904   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905 test "x$ac_build_alias" = x &&
1906   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908    { (exit 1); exit 1; }; }
1909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1912    { (exit 1); exit 1; }; }
1913
1914 fi
1915 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6; }
1917 case $ac_cv_build in
1918 *-*-*) ;;
1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920 echo "$as_me: error: invalid value of canonical build" >&2;}
1921    { (exit 1); exit 1; }; };;
1922 esac
1923 build=$ac_cv_build
1924 ac_save_IFS=$IFS; IFS='-'
1925 set x $ac_cv_build
1926 shift
1927 build_cpu=$1
1928 build_vendor=$2
1929 shift; shift
1930 # Remember, the first character of IFS is used to create $*,
1931 # except with old shells:
1932 build_os=$*
1933 IFS=$ac_save_IFS
1934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1935
1936
1937 { echo "$as_me:$LINENO: checking host system type" >&5
1938 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1939 if test "${ac_cv_host+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test "x$host_alias" = x; then
1943   ac_cv_host=$ac_cv_build
1944 else
1945   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1946     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951 fi
1952 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1953 echo "${ECHO_T}$ac_cv_host" >&6; }
1954 case $ac_cv_host in
1955 *-*-*) ;;
1956 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1957 echo "$as_me: error: invalid value of canonical host" >&2;}
1958    { (exit 1); exit 1; }; };;
1959 esac
1960 host=$ac_cv_host
1961 ac_save_IFS=$IFS; IFS='-'
1962 set x $ac_cv_host
1963 shift
1964 host_cpu=$1
1965 host_vendor=$2
1966 shift; shift
1967 # Remember, the first character of IFS is used to create $*,
1968 # except with old shells:
1969 host_os=$*
1970 IFS=$ac_save_IFS
1971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1972
1973
1974
1975 template=
1976 { echo "$as_me:$LINENO: checking which template to use" >&5
1977 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1978
1979
1980 pgac_args="$pgac_args with_template"
1981
1982
1983 # Check whether --with-template was given.
1984 if test "${with_template+set}" = set; then
1985   withval=$with_template;
1986   case $withval in
1987     yes)
1988       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1989 echo "$as_me: error: argument required for --with-template option" >&2;}
1990    { (exit 1); exit 1; }; }
1991       ;;
1992     no)
1993       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1994 echo "$as_me: error: argument required for --with-template option" >&2;}
1995    { (exit 1); exit 1; }; }
1996       ;;
1997     *)
1998
1999   case $withval in
2000     list)   echo; ls "$srcdir/src/template"; exit;;
2001     *)      if test -f "$srcdir/src/template/$with_template" ; then
2002               template=$withval
2003             else
2004               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2005 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2006    { (exit 1); exit 1; }; }
2007             fi;;
2008   esac
2009
2010       ;;
2011   esac
2012
2013 else
2014
2015 # --with-template not given
2016
2017 case $host_os in
2018      aix*) template=aix ;;
2019     bsdi*) template=bsdi ;;
2020   cygwin*) template=cygwin ;;
2021   darwin*) template=darwin ;;
2022     dgux*) template=dgux ;;
2023  freebsd*) template=freebsd ;;
2024     hpux*) template=hpux ;;
2025     irix*) template=irix ;;
2026  linux*|gnu*|k*bsd*-gnu)
2027            template=linux ;;
2028    mingw*) template=win32 ;;
2029   netbsd*) template=netbsd ;;
2030 nextstep*) template=nextstep ;;
2031  openbsd*) template=openbsd ;;
2032      osf*) template=osf ;;
2033      sco*) template=sco ;;
2034  solaris*) template=solaris ;;
2035    sunos*) template=sunos4 ;;
2036  sysv4.2*)
2037         case $host_vendor in
2038           univel) template=univel ;;
2039         esac ;;
2040    sysv4*) template=svr4 ;;
2041    sysv5*) template=unixware ;;
2042   ultrix*) template=ultrix4 ;;
2043 esac
2044
2045   if test x"$template" = x"" ; then
2046     { { echo "$as_me:$LINENO: error:
2047 *******************************************************************
2048 PostgreSQL has apparently not been ported to your platform yet.
2049 To try a manual configuration, look into the src/template directory
2050 for a similar platform and use the '--with-template=' option.
2051
2052 Please also contact <pgsql-ports@postgresql.org> to see about
2053 rectifying this.  Include the above 'checking host system type...'
2054 line.
2055 *******************************************************************
2056 " >&5
2057 echo "$as_me: error:
2058 *******************************************************************
2059 PostgreSQL has apparently not been ported to your platform yet.
2060 To try a manual configuration, look into the src/template directory
2061 for a similar platform and use the '--with-template=' option.
2062
2063 Please also contact <pgsql-ports@postgresql.org> to see about
2064 rectifying this.  Include the above 'checking host system type...'
2065 line.
2066 *******************************************************************
2067 " >&2;}
2068    { (exit 1); exit 1; }; }
2069   fi
2070
2071
2072 fi
2073
2074
2075
2076 { echo "$as_me:$LINENO: result: $template" >&5
2077 echo "${ECHO_T}$template" >&6; }
2078
2079 PORTNAME=$template
2080
2081
2082 # Initialize default assumption that we do not need separate assembly code
2083 # for TAS (test-and-set).  This can be overridden by the template file
2084 # when it's executed.
2085 need_tas=no
2086 tas_file=dummy.s
2087
2088
2089
2090 ##
2091 ## Command line options
2092 ##
2093
2094 #
2095 # Add non-standard directories to the include path
2096 #
2097
2098 pgac_args="$pgac_args with_includes"
2099
2100
2101 # Check whether --with-includes was given.
2102 if test "${with_includes+set}" = set; then
2103   withval=$with_includes;
2104   case $withval in
2105     yes)
2106       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2107 echo "$as_me: error: argument required for --with-includes option" >&2;}
2108    { (exit 1); exit 1; }; }
2109       ;;
2110     no)
2111       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2112 echo "$as_me: error: argument required for --with-includes option" >&2;}
2113    { (exit 1); exit 1; }; }
2114       ;;
2115     *)
2116
2117       ;;
2118   esac
2119
2120 fi
2121
2122
2123
2124
2125 #
2126 # Add non-standard directories to the library search path
2127 #
2128
2129 pgac_args="$pgac_args with_libraries"
2130
2131
2132 # Check whether --with-libraries was given.
2133 if test "${with_libraries+set}" = set; then
2134   withval=$with_libraries;
2135   case $withval in
2136     yes)
2137       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2138 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2139    { (exit 1); exit 1; }; }
2140       ;;
2141     no)
2142       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2143 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2144    { (exit 1); exit 1; }; }
2145       ;;
2146     *)
2147       LIBRARY_DIRS=$withval
2148       ;;
2149   esac
2150
2151 fi
2152
2153
2154
2155
2156 pgac_args="$pgac_args with_libs"
2157
2158
2159 # Check whether --with-libs was given.
2160 if test "${with_libs+set}" = set; then
2161   withval=$with_libs;
2162   case $withval in
2163     yes)
2164       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2165 echo "$as_me: error: argument required for --with-libs option" >&2;}
2166    { (exit 1); exit 1; }; }
2167       ;;
2168     no)
2169       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2170 echo "$as_me: error: argument required for --with-libs option" >&2;}
2171    { (exit 1); exit 1; }; }
2172       ;;
2173     *)
2174       LIBRARY_DIRS=$withval
2175       ;;
2176   esac
2177
2178 fi
2179
2180
2181
2182
2183 #
2184 # 64-bit integer date/time storage: enabled by default.
2185 #
2186 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2187 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2188
2189 pgac_args="$pgac_args enable_integer_datetimes"
2190
2191 # Check whether --enable-integer-datetimes was given.
2192 if test "${enable_integer_datetimes+set}" = set; then
2193   enableval=$enable_integer_datetimes;
2194   case $enableval in
2195     yes)
2196
2197 cat >>confdefs.h <<\_ACEOF
2198 #define USE_INTEGER_DATETIMES 1
2199 _ACEOF
2200
2201       ;;
2202     no)
2203       :
2204       ;;
2205     *)
2206       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2207 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2208    { (exit 1); exit 1; }; }
2209       ;;
2210   esac
2211
2212 else
2213   enable_integer_datetimes=yes
2214
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2217 _ACEOF
2218
2219 fi
2220
2221
2222 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2223 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2224
2225
2226 #
2227 # NLS
2228 #
2229 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2230 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2231
2232 pgac_args="$pgac_args enable_nls"
2233
2234 # Check whether --enable-nls was given.
2235 if test "${enable_nls+set}" = set; then
2236   enableval=$enable_nls;
2237   case $enableval in
2238     yes)
2239       :
2240       ;;
2241     no)
2242       :
2243       ;;
2244     *)
2245       enable_nls=yes
2246 WANTED_LANGUAGES=$enableval
2247       ;;
2248   esac
2249
2250 else
2251   enable_nls=no
2252 fi
2253
2254
2255
2256 if test "$enable_nls" = yes; then
2257
2258 cat >>confdefs.h <<\_ACEOF
2259 #define ENABLE_NLS 1
2260 _ACEOF
2261
2262 fi
2263
2264 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2265 echo "${ECHO_T}$enable_nls" >&6; }
2266
2267
2268
2269 #
2270 # Default port number (--with-pgport), default 5432
2271 #
2272 { echo "$as_me:$LINENO: checking for default port number" >&5
2273 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2274
2275 pgac_args="$pgac_args with_pgport"
2276
2277
2278 # Check whether --with-pgport was given.
2279 if test "${with_pgport+set}" = set; then
2280   withval=$with_pgport;
2281   case $withval in
2282     yes)
2283       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2284 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2285    { (exit 1); exit 1; }; }
2286       ;;
2287     no)
2288       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2289 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2290    { (exit 1); exit 1; }; }
2291       ;;
2292     *)
2293       default_port=$withval
2294       ;;
2295   esac
2296
2297 else
2298   default_port=5432
2299 fi
2300
2301
2302 { echo "$as_me:$LINENO: result: $default_port" >&5
2303 echo "${ECHO_T}$default_port" >&6; }
2304 # Need both of these because some places want an integer and some a string
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define DEF_PGPORT ${default_port}
2308 _ACEOF
2309
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define DEF_PGPORT_STR "${default_port}"
2313 _ACEOF
2314
2315
2316
2317 #
2318 # Option to disable shared libraries
2319 #
2320
2321 pgac_args="$pgac_args enable_shared"
2322
2323 # Check whether --enable-shared was given.
2324 if test "${enable_shared+set}" = set; then
2325   enableval=$enable_shared;
2326   case $enableval in
2327     yes)
2328       :
2329       ;;
2330     no)
2331       :
2332       ;;
2333     *)
2334       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2335 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2336    { (exit 1); exit 1; }; }
2337       ;;
2338   esac
2339
2340 else
2341   enable_shared=yes
2342
2343 fi
2344
2345
2346
2347
2348 #
2349 # '-rpath'-like feature can be disabled
2350 #
2351
2352 pgac_args="$pgac_args enable_rpath"
2353
2354 # Check whether --enable-rpath was given.
2355 if test "${enable_rpath+set}" = set; then
2356   enableval=$enable_rpath;
2357   case $enableval in
2358     yes)
2359       :
2360       ;;
2361     no)
2362       :
2363       ;;
2364     *)
2365       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2366 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2367    { (exit 1); exit 1; }; }
2368       ;;
2369   esac
2370
2371 else
2372   enable_rpath=yes
2373
2374 fi
2375
2376
2377
2378
2379 #
2380 # Spinlocks
2381 #
2382
2383 pgac_args="$pgac_args enable_spinlocks"
2384
2385 # Check whether --enable-spinlocks was given.
2386 if test "${enable_spinlocks+set}" = set; then
2387   enableval=$enable_spinlocks;
2388   case $enableval in
2389     yes)
2390       :
2391       ;;
2392     no)
2393       :
2394       ;;
2395     *)
2396       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2397 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2398    { (exit 1); exit 1; }; }
2399       ;;
2400   esac
2401
2402 else
2403   enable_spinlocks=yes
2404
2405 fi
2406
2407
2408
2409 #
2410 # --enable-debug adds -g to compiler flags
2411 #
2412
2413 pgac_args="$pgac_args enable_debug"
2414
2415 # Check whether --enable-debug was given.
2416 if test "${enable_debug+set}" = set; then
2417   enableval=$enable_debug;
2418   case $enableval in
2419     yes)
2420       :
2421       ;;
2422     no)
2423       :
2424       ;;
2425     *)
2426       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2427 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2428    { (exit 1); exit 1; }; }
2429       ;;
2430   esac
2431
2432 else
2433   enable_debug=no
2434
2435 fi
2436
2437
2438
2439
2440 #
2441 # --enable-profiling enables gcc profiling
2442 #
2443
2444 pgac_args="$pgac_args enable_profiling"
2445
2446 # Check whether --enable-profiling was given.
2447 if test "${enable_profiling+set}" = set; then
2448   enableval=$enable_profiling;
2449   case $enableval in
2450     yes)
2451       :
2452       ;;
2453     no)
2454       :
2455       ;;
2456     *)
2457       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2458 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2459    { (exit 1); exit 1; }; }
2460       ;;
2461   esac
2462
2463 else
2464   enable_profiling=no
2465
2466 fi
2467
2468
2469
2470
2471 #
2472 # DTrace
2473 #
2474
2475 pgac_args="$pgac_args enable_dtrace"
2476
2477 # Check whether --enable-dtrace was given.
2478 if test "${enable_dtrace+set}" = set; then
2479   enableval=$enable_dtrace;
2480   case $enableval in
2481     yes)
2482
2483 cat >>confdefs.h <<\_ACEOF
2484 #define ENABLE_DTRACE 1
2485 _ACEOF
2486
2487 for ac_prog in dtrace
2488 do
2489   # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_DTRACE+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$DTRACE"; then
2497   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_DTRACE="$ac_prog"
2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 DTRACE=$ac_cv_prog_DTRACE
2517 if test -n "$DTRACE"; then
2518   { echo "$as_me:$LINENO: result: $DTRACE" >&5
2519 echo "${ECHO_T}$DTRACE" >&6; }
2520 else
2521   { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2524
2525
2526   test -n "$DTRACE" && break
2527 done
2528
2529 if test -z "$DTRACE"; then
2530   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2531 echo "$as_me: error: dtrace not found" >&2;}
2532    { (exit 1); exit 1; }; }
2533 fi
2534
2535       ;;
2536     no)
2537       :
2538       ;;
2539     *)
2540       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2541 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2542    { (exit 1); exit 1; }; }
2543       ;;
2544   esac
2545
2546 else
2547   enable_dtrace=no
2548
2549 fi
2550
2551
2552
2553
2554 #
2555 # Block size
2556 #
2557 { echo "$as_me:$LINENO: checking for block size" >&5
2558 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2559
2560 pgac_args="$pgac_args with_blocksize"
2561
2562
2563 # Check whether --with-blocksize was given.
2564 if test "${with_blocksize+set}" = set; then
2565   withval=$with_blocksize;
2566   case $withval in
2567     yes)
2568       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2569 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2570    { (exit 1); exit 1; }; }
2571       ;;
2572     no)
2573       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2574 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2575    { (exit 1); exit 1; }; }
2576       ;;
2577     *)
2578       blocksize=$withval
2579       ;;
2580   esac
2581
2582 else
2583   blocksize=8
2584 fi
2585
2586
2587 case ${blocksize} in
2588   1) BLCKSZ=1024;;
2589   2) BLCKSZ=2048;;
2590   4) BLCKSZ=4096;;
2591   8) BLCKSZ=8192;;
2592  16) BLCKSZ=16384;;
2593  32) BLCKSZ=32768;;
2594   *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2595 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2596    { (exit 1); exit 1; }; }
2597 esac
2598 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2599 echo "${ECHO_T}${blocksize}kB" >&6; }
2600
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define BLCKSZ ${BLCKSZ}
2604 _ACEOF
2605
2606
2607 #
2608 # Relation segment size
2609 #
2610 { echo "$as_me:$LINENO: checking for segment size" >&5
2611 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2612
2613 pgac_args="$pgac_args with_segsize"
2614
2615
2616 # Check whether --with-segsize was given.
2617 if test "${with_segsize+set}" = set; then
2618   withval=$with_segsize;
2619   case $withval in
2620     yes)
2621       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2622 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2623    { (exit 1); exit 1; }; }
2624       ;;
2625     no)
2626       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2627 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2628    { (exit 1); exit 1; }; }
2629       ;;
2630     *)
2631       segsize=$withval
2632       ;;
2633   esac
2634
2635 else
2636   segsize=1
2637 fi
2638
2639
2640 # this expression is set up to avoid unnecessary integer overflow
2641 # blocksize is already guaranteed to be a factor of 1024
2642 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2643 test $? -eq 0 || exit 1
2644 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2645 echo "${ECHO_T}${segsize}GB" >&6; }
2646
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define RELSEG_SIZE ${RELSEG_SIZE}
2650 _ACEOF
2651
2652
2653 #
2654 # WAL block size
2655 #
2656 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2657 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2658
2659 pgac_args="$pgac_args with_wal_blocksize"
2660
2661
2662 # Check whether --with-wal-blocksize was given.
2663 if test "${with_wal_blocksize+set}" = set; then
2664   withval=$with_wal_blocksize;
2665   case $withval in
2666     yes)
2667       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2668 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2669    { (exit 1); exit 1; }; }
2670       ;;
2671     no)
2672       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2673 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2674    { (exit 1); exit 1; }; }
2675       ;;
2676     *)
2677       wal_blocksize=$withval
2678       ;;
2679   esac
2680
2681 else
2682   wal_blocksize=8
2683 fi
2684
2685
2686 case ${wal_blocksize} in
2687   1) XLOG_BLCKSZ=1024;;
2688   2) XLOG_BLCKSZ=2048;;
2689   4) XLOG_BLCKSZ=4096;;
2690   8) XLOG_BLCKSZ=8192;;
2691  16) XLOG_BLCKSZ=16384;;
2692  32) XLOG_BLCKSZ=32768;;
2693  64) XLOG_BLCKSZ=65536;;
2694   *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2695 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2696    { (exit 1); exit 1; }; }
2697 esac
2698 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2699 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2700
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2704 _ACEOF
2705
2706
2707 #
2708 # WAL segment size
2709 #
2710 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2711 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2712
2713 pgac_args="$pgac_args with_wal_segsize"
2714
2715
2716 # Check whether --with-wal-segsize was given.
2717 if test "${with_wal_segsize+set}" = set; then
2718   withval=$with_wal_segsize;
2719   case $withval in
2720     yes)
2721       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2722 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2723    { (exit 1); exit 1; }; }
2724       ;;
2725     no)
2726       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2727 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2728    { (exit 1); exit 1; }; }
2729       ;;
2730     *)
2731       wal_segsize=$withval
2732       ;;
2733   esac
2734
2735 else
2736   wal_segsize=16
2737 fi
2738
2739
2740 case ${wal_segsize} in
2741   1) ;;
2742   2) ;;
2743   4) ;;
2744   8) ;;
2745  16) ;;
2746  32) ;;
2747  64) ;;
2748   *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2749 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2750    { (exit 1); exit 1; }; }
2751 esac
2752 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2753 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2758 _ACEOF
2759
2760
2761 #
2762 # C compiler
2763 #
2764
2765 # For historical reasons you can also use --with-CC to specify the C compiler
2766 # to use, although the standard way to do this is to set the CC environment
2767 # variable.
2768
2769 pgac_args="$pgac_args with_CC"
2770
2771
2772 # Check whether --with-CC was given.
2773 if test "${with_CC+set}" = set; then
2774   withval=$with_CC;
2775   case $withval in
2776     yes)
2777       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2778 echo "$as_me: error: argument required for --with-CC option" >&2;}
2779    { (exit 1); exit 1; }; }
2780       ;;
2781     no)
2782       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2783 echo "$as_me: error: argument required for --with-CC option" >&2;}
2784    { (exit 1); exit 1; }; }
2785       ;;
2786     *)
2787       CC=$with_CC
2788       ;;
2789   esac
2790
2791 fi
2792
2793
2794
2795 case $template in
2796   aix) pgac_cc_list="gcc xlc";;
2797  irix) pgac_cc_list="cc";; # no gcc
2798     *) pgac_cc_list="gcc cc";;
2799 esac
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test -n "$ac_tool_prefix"; then
2807   for ac_prog in $pgac_cc_list
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CC"; then
2817   ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CC" && break
2847   done
2848 fi
2849 if test -z "$CC"; then
2850   ac_ct_CC=$CC
2851   for ac_prog in $pgac_cc_list
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CC"; then
2861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CC="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883 echo "${ECHO_T}$ac_ct_CC" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CC" && break
2891 done
2892
2893   if test "x$ac_ct_CC" = x; then
2894     CC=""
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CC=$ac_ct_CC
2907   fi
2908 fi
2909
2910
2911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details." >&2;}
2915    { (exit 1); exit 1; }; }
2916
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2921 case "(($ac_try" in
2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923   *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926   (eval "$ac_compiler --version >&5") 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compiler -v >&5") 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compiler -V >&5") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }
2950
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2970 # of exeext.
2971 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2972 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2973 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2974 #
2975 # List of possible output files, starting from the most likely.
2976 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2977 # only as a last resort.  b.out is created by i960 compilers.
2978 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2979 #
2980 # The IRIX 6 linker writes into existing files which may not be
2981 # executable, retaining their permissions.  Remove them first so a
2982 # subsequent execution test works.
2983 ac_rmfiles=
2984 for ac_file in $ac_files
2985 do
2986   case $ac_file in
2987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2988     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989   esac
2990 done
2991 rm -f $ac_rmfiles
2992
2993 if { (ac_try="$ac_link_default"
2994 case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_link_default") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; then
3003   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3005 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3006 # so that the user can short-circuit this test for compilers unknown to
3007 # Autoconf.
3008 for ac_file in $ac_files ''
3009 do
3010   test -f "$ac_file" || continue
3011   case $ac_file in
3012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3013         ;;
3014     [ab].out )
3015         # We found the default executable, but exeext='' is most
3016         # certainly right.
3017         break;;
3018     *.* )
3019         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3020         then :; else
3021            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022         fi
3023         # We set ac_cv_exeext here because the later test for it is not
3024         # safe: cross compilers may not add the suffix if given an `-o'
3025         # argument, so we may need to know it at that point already.
3026         # Even if this section looks crufty: it has the advantage of
3027         # actually working.
3028         break;;
3029     * )
3030         break;;
3031   esac
3032 done
3033 test "$ac_cv_exeext" = no && ac_cv_exeext=
3034
3035 else
3036   ac_file=''
3037 fi
3038
3039 { echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6; }
3041 if test -z "$ac_file"; then
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: C compiler cannot create executables
3048 See \`config.log' for more details." >&2;}
3049    { (exit 77); exit 77; }; }
3050 fi
3051
3052 ac_exeext=$ac_cv_exeext
3053
3054 # Check that the compiler produces executables we can run.  If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3059 # If not cross compiling, check that we can run a simple program.
3060 if test "$cross_compiling" != yes; then
3061   if { ac_try='./$ac_file'
3062   { (case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071     cross_compiling=no
3072   else
3073     if test "$cross_compiling" = maybe; then
3074         cross_compiling=yes
3075     else
3076         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3077 If you meant to cross compile, use \`--host'.
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot run C compiled programs.
3080 If you meant to cross compile, use \`--host'.
3081 See \`config.log' for more details." >&2;}
3082    { (exit 1); exit 1; }; }
3083     fi
3084   fi
3085 fi
3086 { echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3088
3089 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3090 ac_clean_files=$ac_clean_files_save
3091 # Check that the compiler produces executables we can run.  If not, either
3092 # the compiler is broken, or we cross compile.
3093 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3094 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3095 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3096 echo "${ECHO_T}$cross_compiling" >&6; }
3097
3098 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3099 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3100 if { (ac_try="$ac_link"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_link") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; then
3110   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 # `rm'.
3114 for ac_file in conftest.exe conftest conftest.*; do
3115   test -f "$ac_file" || continue
3116   case $ac_file in
3117     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119           break;;
3120     * ) break;;
3121   esac
3122 done
3123 else
3124   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&5
3126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3127 See \`config.log' for more details." >&2;}
3128    { (exit 1); exit 1; }; }
3129 fi
3130
3131 rm -f conftest$ac_cv_exeext
3132 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3133 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3134
3135 rm -f conftest.$ac_ext
3136 EXEEXT=$ac_cv_exeext
3137 ac_exeext=$EXEEXT
3138 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3140 if test "${ac_cv_objext+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149
3150 int
3151 main ()
3152 {
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.o conftest.obj
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_compile") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; then
3169   for ac_file in conftest.o conftest.obj conftest.*; do
3170   test -f "$ac_file" || continue;
3171   case $ac_file in
3172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3173     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174        break;;
3175   esac
3176 done
3177 else
3178   echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details." >&2;}
3185    { (exit 1); exit 1; }; }
3186 fi
3187
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189 fi
3190 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3191 echo "${ECHO_T}$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3193 ac_objext=$OBJEXT
3194 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209 #ifndef __GNUC__
3210        choke me
3211 #endif
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_compile") 2>conftest.er1
3225   ac_status=$?
3226   grep -v '^ *+' conftest.er1 >conftest.err
3227   rm -f conftest.er1
3228   cat conftest.err >&5
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } && {
3231          test -z "$ac_c_werror_flag" ||
3232          test ! -s conftest.err
3233        } && test -s conftest.$ac_objext; then
3234   ac_compiler_gnu=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239         ac_compiler_gnu=no
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244
3245 fi
3246 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3248 GCC=`test $ac_compiler_gnu = yes && echo yes`
3249 ac_test_CFLAGS=${CFLAGS+set}
3250 ac_save_CFLAGS=$CFLAGS
3251 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_g+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_save_c_werror_flag=$ac_c_werror_flag
3257    ac_c_werror_flag=yes
3258    ac_cv_prog_cc_g=no
3259    CFLAGS="-g"
3260    cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266
3267 int
3268 main ()
3269 {
3270
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_compile") 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } && {
3289          test -z "$ac_c_werror_flag" ||
3290          test ! -s conftest.err
3291        } && test -s conftest.$ac_objext; then
3292   ac_cv_prog_cc_g=yes
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297         CFLAGS=""
3298       cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304
3305 int
3306 main ()
3307 {
3308
3309   ;
3310   return 0;
3311 }
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_compile") 2>conftest.er1
3321   ac_status=$?
3322   grep -v '^ *+' conftest.er1 >conftest.err
3323   rm -f conftest.er1
3324   cat conftest.err >&5
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); } && {
3327          test -z "$ac_c_werror_flag" ||
3328          test ! -s conftest.err
3329        } && test -s conftest.$ac_objext; then
3330   :
3331 else
3332   echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335         ac_c_werror_flag=$ac_save_c_werror_flag
3336          CFLAGS="-g"
3337          cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h.  */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h.  */
3343
3344 int
3345 main ()
3346 {
3347
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_compile") 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } && {
3366          test -z "$ac_c_werror_flag" ||
3367          test ! -s conftest.err
3368        } && test -s conftest.$ac_objext; then
3369   ac_cv_prog_cc_g=yes
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374
3375 fi
3376
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 fi
3379
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384    ac_c_werror_flag=$ac_save_c_werror_flag
3385 fi
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389   CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391   if test "$GCC" = yes; then
3392     CFLAGS="-g -O2"
3393   else
3394     CFLAGS="-g"
3395   fi
3396 else
3397   if test "$GCC" = yes; then
3398     CFLAGS="-O2"
3399   else
3400     CFLAGS=
3401   fi
3402 fi
3403 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3404 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3405 if test "${ac_cv_prog_cc_c89+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   ac_cv_prog_cc_c89=no
3409 ac_save_CC=$CC
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416 #include <stdarg.h>
3417 #include <stdio.h>
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3424      char **p;
3425      int i;
3426 {
3427   return p[i];
3428 }
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3430 {
3431   char *s;
3432   va_list v;
3433   va_start (v,p);
3434   s = g (p, va_arg (v,int));
3435   va_end (v);
3436   return s;
3437 }
3438
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3440    function prototypes and stuff, but not '\xHH' hex character constants.
3441    These don't provoke an error unfortunately, instead are silently treated
3442    as 'x'.  The following induces an error, until -std is added to get
3443    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3444    array size at least.  It's necessary to write '\x00'==0 to get something
3445    that's true only with -std.  */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449    inside strings and character constants.  */
3450 #define FOO(x) 'x'
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 int argc;
3458 char **argv;
3459 int
3460 main ()
3461 {
3462 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3469 do
3470   CC="$ac_save_CC $ac_arg"
3471   rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_compile") 2>conftest.er1
3479   ac_status=$?
3480   grep -v '^ *+' conftest.er1 >conftest.err
3481   rm -f conftest.er1
3482   cat conftest.err >&5
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); } && {
3485          test -z "$ac_c_werror_flag" ||
3486          test ! -s conftest.err
3487        } && test -s conftest.$ac_objext; then
3488   ac_cv_prog_cc_c89=$ac_arg
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493
3494 fi
3495
3496 rm -f core conftest.err conftest.$ac_objext
3497   test "x$ac_cv_prog_cc_c89" != "xno" && break
3498 done
3499 rm -f conftest.$ac_ext
3500 CC=$ac_save_CC
3501
3502 fi
3503 # AC_CACHE_VAL
3504 case "x$ac_cv_prog_cc_c89" in
3505   x)
3506     { echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6; } ;;
3508   xno)
3509     { echo "$as_me:$LINENO: result: unsupported" >&5
3510 echo "${ECHO_T}unsupported" >&6; } ;;
3511   *)
3512     CC="$CC $ac_cv_prog_cc_c89"
3513     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3515 esac
3516
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
3525 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3526 # but has idiosyncrasies of its own.  We assume icc will define
3527 # __INTEL_COMPILER regardless of CFLAGS.
3528
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539 #ifndef __INTEL_COMPILER
3540 choke me
3541 #endif
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_compile") 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } && {
3560          test -z "$ac_c_werror_flag" ||
3561          test ! -s conftest.err
3562        } && test -s conftest.$ac_objext; then
3563   ICC=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568         ICC=no
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572
3573 unset CFLAGS
3574
3575 #
3576 # Read the template
3577 #
3578 . "$srcdir/src/template/$template" || exit
3579
3580 # CFLAGS are selected so:
3581 # If the user specifies something in the environment, that is used.
3582 # else:  If the template file set something, that is used.
3583 # else:  If the compiler is GCC, then we use -O2.
3584 # else:  If the compiler is something else, then we use -0.
3585
3586 if test "$ac_env_CFLAGS_set" = set; then
3587   CFLAGS=$ac_env_CFLAGS_value
3588 elif test "${CFLAGS+set}" = set; then
3589   : # (keep what template set)
3590 elif test "$GCC" = yes; then
3591   CFLAGS="-O2"
3592 else
3593   # if the user selected debug mode, don't use -O
3594   if test "$enable_debug" != yes; then
3595     CFLAGS="-O"
3596   fi
3597 fi
3598
3599 # Some versions of GCC support some additional useful warning flags.
3600 # Check whether they are supported, and add them to CFLAGS if so.
3601 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3602
3603 if test "$GCC" = yes -a "$ICC" = no; then
3604   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3605   # These work in some but not all gcc versions
3606   { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3607 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3608 pgac_save_CFLAGS=$CFLAGS
3609 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_compile") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } && {
3639          test -z "$ac_c_werror_flag" ||
3640          test ! -s conftest.err
3641        } && test -s conftest.$ac_objext; then
3642   { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 else
3645   echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648         CFLAGS="$pgac_save_CFLAGS"
3649                     { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3651 fi
3652
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654
3655   { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3656 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3657 pgac_save_CFLAGS=$CFLAGS
3658 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665
3666 int
3667 main ()
3668 {
3669
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_compile") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } && {
3688          test -z "$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        } && test -s conftest.$ac_objext; then
3691   { echo "$as_me:$LINENO: result: yes" >&5
3692 echo "${ECHO_T}yes" >&6; }
3693 else
3694   echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697         CFLAGS="$pgac_save_CFLAGS"
3698                     { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703
3704   # Disable strict-aliasing rules; needed for gcc 3.3+
3705   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3706 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3707 pgac_save_CFLAGS=$CFLAGS
3708 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h.  */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h.  */
3715
3716 int
3717 main ()
3718 {
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_compile") 2>conftest.er1
3732   ac_status=$?
3733   grep -v '^ *+' conftest.er1 >conftest.err
3734   rm -f conftest.er1
3735   cat conftest.err >&5
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); } && {
3738          test -z "$ac_c_werror_flag" ||
3739          test ! -s conftest.err
3740        } && test -s conftest.$ac_objext; then
3741   { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747         CFLAGS="$pgac_save_CFLAGS"
3748                     { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3750 fi
3751
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753
3754   # Disable optimizations that assume no overflow; needed for gcc 4.3+
3755   { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3756 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3757 pgac_save_CFLAGS=$CFLAGS
3758 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h.  */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h.  */
3765
3766 int
3767 main ()
3768 {
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778   *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781   (eval "$ac_compile") 2>conftest.er1
3782   ac_status=$?
3783   grep -v '^ *+' conftest.er1 >conftest.err
3784   rm -f conftest.er1
3785   cat conftest.err >&5
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); } && {
3788          test -z "$ac_c_werror_flag" ||
3789          test ! -s conftest.err
3790        } && test -s conftest.$ac_objext; then
3791   { echo "$as_me:$LINENO: result: yes" >&5
3792 echo "${ECHO_T}yes" >&6; }
3793 else
3794   echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797         CFLAGS="$pgac_save_CFLAGS"
3798                     { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3800 fi
3801
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803
3804 elif test "$ICC" = yes; then
3805   # Intel's compiler has a bug/misoptimization in checking for
3806   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3807   { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3808 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3809 pgac_save_CFLAGS=$CFLAGS
3810 CFLAGS="$pgac_save_CFLAGS -mp1"
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833   (eval "$ac_compile") 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } && {
3840          test -z "$ac_c_werror_flag" ||
3841          test ! -s conftest.err
3842        } && test -s conftest.$ac_objext; then
3843   { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849         CFLAGS="$pgac_save_CFLAGS"
3850                     { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3852 fi
3853
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855
3856   # Make sure strict aliasing is off (though this is said to be the default)
3857   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3858 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3859 pgac_save_CFLAGS=$CFLAGS
3860 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h.  */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h.  */
3867
3868 int
3869 main ()
3870 {
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880   *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883   (eval "$ac_compile") 2>conftest.er1
3884   ac_status=$?
3885   grep -v '^ *+' conftest.er1 >conftest.err
3886   rm -f conftest.er1
3887   cat conftest.err >&5
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); } && {
3890          test -z "$ac_c_werror_flag" ||
3891          test ! -s conftest.err
3892        } && test -s conftest.$ac_objext; then
3893   { echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6; }
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899         CFLAGS="$pgac_save_CFLAGS"
3900                     { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3902 fi
3903
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905
3906 elif test x"${CC}" = x"xlc"; then
3907   # AIX xlc has to have strict aliasing turned off too
3908   { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3909 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3910 pgac_save_CFLAGS=$CFLAGS
3911 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h.  */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h.  */
3918
3919 int
3920 main ()
3921 {
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3929 case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934   (eval "$ac_compile") 2>conftest.er1
3935   ac_status=$?
3936   grep -v '^ *+' conftest.er1 >conftest.err
3937   rm -f conftest.er1
3938   cat conftest.err >&5
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } && {
3941          test -z "$ac_c_werror_flag" ||
3942          test ! -s conftest.err
3943        } && test -s conftest.$ac_objext; then
3944   { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950         CFLAGS="$pgac_save_CFLAGS"
3951                     { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3953 fi
3954
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956
3957 fi
3958
3959 # supply -g if --enable-debug
3960 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3961   CFLAGS="$CFLAGS -g"
3962 fi
3963
3964 # enable profiling if --enable-profiling
3965 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3966   if test "$GCC" = yes; then
3967
3968 cat >>confdefs.h <<\_ACEOF
3969 #define PROFILE_PID_DIR 1
3970 _ACEOF
3971
3972     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3973   else
3974     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3975 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3976    { (exit 1); exit 1; }; }
3977   fi
3978 fi
3979
3980 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3981 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3982
3983 # We already have this in Makefile.win32, but configure needs it too
3984 if test "$PORTNAME" = "win32"; then
3985   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3986 fi
3987
3988 # Check if the compiler still works with the template settings
3989 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3990 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001 return 0;
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext conftest$ac_exeext
4007 if { (ac_try="$ac_link"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_link") 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } && {
4020          test -z "$ac_c_werror_flag" ||
4021          test ! -s conftest.err
4022        } && test -s conftest$ac_exeext &&
4023        $as_test_x conftest$ac_exeext; then
4024   { echo "$as_me:$LINENO: result: yes" >&5
4025 echo "${ECHO_T}yes" >&6; }
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030         { echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6; }
4032    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4033 echo "$as_me: error: cannot proceed" >&2;}
4034    { (exit 1); exit 1; }; }
4035 fi
4036
4037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4038       conftest$ac_exeext conftest.$ac_ext
4039
4040 # Defend against gcc -ffast-math
4041 if test "$GCC" = yes; then
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048
4049 int
4050 main ()
4051 {
4052 #ifdef __FAST_MATH__
4053 choke me
4054 #endif
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4061 case "(($ac_try" in
4062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063   *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066   (eval "$ac_compile") 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } && {
4073          test -z "$ac_c_werror_flag" ||
4074          test ! -s conftest.err
4075        } && test -s conftest.$ac_objext; then
4076   :
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081         { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4082 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4083    { (exit 1); exit 1; }; }
4084 fi
4085
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 fi
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4098   CPP=
4099 fi
4100 if test -z "$CPP"; then
4101   if test "${ac_cv_prog_CPP+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104       # Double quotes because CPP needs to be expanded
4105     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106     do
4107       ac_preproc_ok=false
4108 for ac_c_preproc_warn_flag in '' yes
4109 do
4110   # Use a header file that comes with gcc, so configuring glibc
4111   # with a fresh cross-compiler works.
4112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113   # <limits.h> exists even on freestanding compilers.
4114   # On the NeXT, cc -E runs the code through the compiler's parser,
4115   # not just through cpp. "Syntax error" is here to catch this case.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #ifdef __STDC__
4123 # include <limits.h>
4124 #else
4125 # include <assert.h>
4126 #endif
4127                      Syntax error
4128 _ACEOF
4129 if { (ac_try="$ac_cpp conftest.$ac_ext"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } >/dev/null && {
4142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143          test ! -s conftest.err
4144        }; then
4145   :
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150   # Broken: fails on valid input.
4151 continue
4152 fi
4153
4154 rm -f conftest.err conftest.$ac_ext
4155
4156   # OK, works on sane cases.  Now check whether nonexistent headers
4157   # can be detected and how.
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <ac_nonexistent.h>
4165 _ACEOF
4166 if { (ac_try="$ac_cpp conftest.$ac_ext"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } >/dev/null && {
4179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4180          test ! -s conftest.err
4181        }; then
4182   # Broken: success on invalid input.
4183 continue
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188   # Passes both tests.
4189 ac_preproc_ok=:
4190 break
4191 fi
4192
4193 rm -f conftest.err conftest.$ac_ext
4194
4195 done
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.err conftest.$ac_ext
4198 if $ac_preproc_ok; then
4199   break
4200 fi
4201
4202     done
4203     ac_cv_prog_CPP=$CPP
4204
4205 fi
4206   CPP=$ac_cv_prog_CPP
4207 else
4208   ac_cv_prog_CPP=$CPP
4209 fi
4210 { echo "$as_me:$LINENO: result: $CPP" >&5
4211 echo "${ECHO_T}$CPP" >&6; }
4212 ac_preproc_ok=false
4213 for ac_c_preproc_warn_flag in '' yes
4214 do
4215   # Use a header file that comes with gcc, so configuring glibc
4216   # with a fresh cross-compiler works.
4217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218   # <limits.h> exists even on freestanding compilers.
4219   # On the NeXT, cc -E runs the code through the compiler's parser,
4220   # not just through cpp. "Syntax error" is here to catch this case.
4221   cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h.  */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h.  */
4227 #ifdef __STDC__
4228 # include <limits.h>
4229 #else
4230 # include <assert.h>
4231 #endif
4232                      Syntax error
4233 _ACEOF
4234 if { (ac_try="$ac_cpp conftest.$ac_ext"
4235 case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4241   ac_status=$?
4242   grep -v '^ *+' conftest.er1 >conftest.err
4243   rm -f conftest.er1
4244   cat conftest.err >&5
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } >/dev/null && {
4247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4248          test ! -s conftest.err
4249        }; then
4250   :
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255   # Broken: fails on valid input.
4256 continue
4257 fi
4258
4259 rm -f conftest.err conftest.$ac_ext
4260
4261   # OK, works on sane cases.  Now check whether nonexistent headers
4262   # can be detected and how.
4263   cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 #include <ac_nonexistent.h>
4270 _ACEOF
4271 if { (ac_try="$ac_cpp conftest.$ac_ext"
4272 case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4278   ac_status=$?
4279   grep -v '^ *+' conftest.er1 >conftest.err
4280   rm -f conftest.er1
4281   cat conftest.err >&5
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } >/dev/null && {
4284          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4285          test ! -s conftest.err
4286        }; then
4287   # Broken: success on invalid input.
4288 continue
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293   # Passes both tests.
4294 ac_preproc_ok=:
4295 break
4296 fi
4297
4298 rm -f conftest.err conftest.$ac_ext
4299
4300 done
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then
4304   :
4305 else
4306   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4309 See \`config.log' for more details." >&2;}
4310    { (exit 1); exit 1; }; }
4311 fi
4312
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319
4320
4321 # Create compiler version string
4322 if test x"$GCC" = x"yes" ; then
4323   cc_string="GCC `${CC} --version | sed q`"
4324 else
4325   cc_string=$CC
4326 fi
4327
4328 cat >>confdefs.h <<_ACEOF
4329 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4330 _ACEOF
4331
4332
4333
4334 #
4335 # Set up TAS assembly code if needed; the template file has now had its
4336 # chance to request this.
4337 #
4338 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4339
4340
4341 if test "$need_tas" = yes ; then
4342   TAS=tas.o
4343 else
4344   TAS=""
4345 fi
4346
4347
4348
4349 #
4350 # Automatic dependency tracking
4351 #
4352
4353 pgac_args="$pgac_args enable_depend"
4354
4355 # Check whether --enable-depend was given.
4356 if test "${enable_depend+set}" = set; then
4357   enableval=$enable_depend;
4358   case $enableval in
4359     yes)
4360       autodepend=yes
4361       ;;
4362     no)
4363       :
4364       ;;
4365     *)
4366       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4367 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4368    { (exit 1); exit 1; }; }
4369       ;;
4370   esac
4371
4372 else
4373   enable_depend=no
4374
4375 fi
4376
4377
4378
4379
4380
4381 #
4382 # Enable assert checks
4383 #
4384
4385 pgac_args="$pgac_args enable_cassert"
4386
4387 # Check whether --enable-cassert was given.
4388 if test "${enable_cassert+set}" = set; then
4389   enableval=$enable_cassert;
4390   case $enableval in
4391     yes)
4392
4393 cat >>confdefs.h <<\_ACEOF
4394 #define USE_ASSERT_CHECKING 1
4395 _ACEOF
4396
4397       ;;
4398     no)
4399       :
4400       ;;
4401     *)
4402       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4403 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4404    { (exit 1); exit 1; }; }
4405       ;;
4406   esac
4407
4408 else
4409   enable_cassert=no
4410
4411 fi
4412
4413
4414
4415
4416 #
4417 # Include directories
4418 #
4419 ac_save_IFS=$IFS
4420 IFS="${IFS}${PATH_SEPARATOR}"
4421 # SRCH_INC comes from the template file
4422 for dir in $with_includes $SRCH_INC; do
4423   if test -d "$dir"; then
4424     INCLUDES="$INCLUDES -I$dir"
4425   else
4426     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4427 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4428   fi
4429 done
4430 IFS=$ac_save_IFS
4431
4432
4433
4434 #
4435 # Library directories
4436 #
4437 ac_save_IFS=$IFS
4438 IFS="${IFS}${PATH_SEPARATOR}"
4439 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4440 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4441   if test -d "$dir"; then
4442     LIBDIRS="$LIBDIRS -L$dir"
4443   else
4444     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4445 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4446   fi
4447 done
4448 IFS=$ac_save_IFS
4449
4450 #
4451 # Enable thread-safe client libraries
4452 #
4453 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4454 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4455 if test "$PORTNAME" != "win32"; then
4456
4457 pgac_args="$pgac_args enable_thread_safety"
4458
4459 # Check whether --enable-thread-safety was given.
4460 if test "${enable_thread_safety+set}" = set; then
4461   enableval=$enable_thread_safety;
4462   case $enableval in
4463     yes)
4464       :
4465       ;;
4466     no)
4467       :
4468       ;;
4469     *)
4470       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4471 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4472    { (exit 1); exit 1; }; }
4473       ;;
4474   esac
4475
4476 else
4477   enable_thread_safety=no
4478
4479 fi
4480
4481
4482 else
4483 # Win32 should always use threads
4484
4485 pgac_args="$pgac_args enable_thread_safety"
4486
4487 # Check whether --enable-thread-safety was given.
4488 if test "${enable_thread_safety+set}" = set; then
4489   enableval=$enable_thread_safety;
4490   case $enableval in
4491     yes)
4492       :
4493       ;;
4494     no)
4495       :
4496       ;;
4497     *)
4498       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4499 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4500    { (exit 1); exit 1; }; }
4501       ;;
4502   esac
4503
4504 else
4505   enable_thread_safety=yes
4506
4507 fi
4508
4509
4510 fi
4511
4512
4513 pgac_args="$pgac_args enable_thread_safety_force"
4514
4515 # Check whether --enable-thread-safety-force was given.
4516 if test "${enable_thread_safety_force+set}" = set; then
4517   enableval=$enable_thread_safety_force;
4518   case $enableval in
4519     yes)
4520       :
4521       ;;
4522     no)
4523       :
4524       ;;
4525     *)
4526       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4527 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4528    { (exit 1); exit 1; }; }
4529       ;;
4530   esac
4531
4532 else
4533   enable_thread_safety_force=no
4534
4535 fi
4536
4537
4538 if test "$enable_thread_safety" = yes -o \
4539         "$enable_thread_safety_force" = yes; then
4540   enable_thread_safety="yes"    # for 'force'
4541
4542 cat >>confdefs.h <<\_ACEOF
4543 #define ENABLE_THREAD_SAFETY 1
4544 _ACEOF
4545
4546 fi
4547 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4548 echo "${ECHO_T}$enable_thread_safety" >&6; }
4549
4550
4551 #
4552 # Optionally build Tcl modules (PL/Tcl)
4553 #
4554 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4555 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4556
4557 pgac_args="$pgac_args with_tcl"
4558
4559
4560 # Check whether --with-tcl was given.
4561 if test "${with_tcl+set}" = set; then
4562   withval=$with_tcl;
4563   case $withval in
4564     yes)
4565       :
4566       ;;
4567     no)
4568       :
4569       ;;
4570     *)
4571       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4572 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4573    { (exit 1); exit 1; }; }
4574       ;;
4575   esac
4576
4577 else
4578   with_tcl=no
4579
4580 fi
4581
4582
4583 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4584 echo "${ECHO_T}$with_tcl" >&6; }
4585
4586
4587 # We see if the path to the Tcl/Tk configuration scripts is specified.
4588 # This will override the use of tclsh to find the paths to search.
4589
4590
4591 pgac_args="$pgac_args with_tclconfig"
4592
4593
4594 # Check whether --with-tclconfig was given.
4595 if test "${with_tclconfig+set}" = set; then
4596   withval=$with_tclconfig;
4597   case $withval in
4598     yes)
4599       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4600 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4601    { (exit 1); exit 1; }; }
4602       ;;
4603     no)
4604       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4605 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4606    { (exit 1); exit 1; }; }
4607       ;;
4608     *)
4609
4610       ;;
4611   esac
4612
4613 fi
4614
4615
4616
4617 #
4618 # Optionally build Perl modules (PL/Perl)
4619 #
4620 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4621 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4622
4623 pgac_args="$pgac_args with_perl"
4624
4625
4626 # Check whether --with-perl was given.
4627 if test "${with_perl+set}" = set; then
4628   withval=$with_perl;
4629   case $withval in
4630     yes)
4631       :
4632       ;;
4633     no)
4634       :
4635       ;;
4636     *)
4637       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4638 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4639    { (exit 1); exit 1; }; }
4640       ;;
4641   esac
4642
4643 else
4644   with_perl=no
4645
4646 fi
4647
4648
4649 { echo "$as_me:$LINENO: result: $with_perl" >&5
4650 echo "${ECHO_T}$with_perl" >&6; }
4651
4652
4653 #
4654 # Optionally build Python modules (PL/Python)
4655 #
4656 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4657 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4658
4659 pgac_args="$pgac_args with_python"
4660
4661
4662 # Check whether --with-python was given.
4663 if test "${with_python+set}" = set; then
4664   withval=$with_python;
4665   case $withval in
4666     yes)
4667       :
4668       ;;
4669     no)
4670       :
4671       ;;
4672     *)
4673       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4674 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4675    { (exit 1); exit 1; }; }
4676       ;;
4677   esac
4678
4679 else
4680   with_python=no
4681
4682 fi
4683
4684
4685 { echo "$as_me:$LINENO: result: $with_python" >&5
4686 echo "${ECHO_T}$with_python" >&6; }
4687
4688
4689 #
4690 # GSSAPI
4691 #
4692 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4693 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4694
4695 pgac_args="$pgac_args with_gssapi"
4696
4697
4698 # Check whether --with-gssapi was given.
4699 if test "${with_gssapi+set}" = set; then
4700   withval=$with_gssapi;
4701   case $withval in
4702     yes)
4703
4704
4705 cat >>confdefs.h <<\_ACEOF
4706 #define ENABLE_GSS 1
4707 _ACEOF
4708
4709   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4710
4711       ;;
4712     no)
4713       :
4714       ;;
4715     *)
4716       { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4717 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4718    { (exit 1); exit 1; }; }
4719       ;;
4720   esac
4721
4722 else
4723   with_gssapi=no
4724
4725 fi
4726
4727
4728 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4729 echo "${ECHO_T}$with_gssapi" >&6; }
4730
4731
4732 #
4733 # Kerberos 5
4734 #
4735 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4736 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4737
4738 pgac_args="$pgac_args with_krb5"
4739
4740
4741 # Check whether --with-krb5 was given.
4742 if test "${with_krb5+set}" = set; then
4743   withval=$with_krb5;
4744   case $withval in
4745     yes)
4746
4747
4748 cat >>confdefs.h <<\_ACEOF
4749 #define KRB5 1
4750 _ACEOF
4751
4752   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4753
4754       ;;
4755     no)
4756       :
4757       ;;
4758     *)
4759       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4760 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4761    { (exit 1); exit 1; }; }
4762       ;;
4763   esac
4764
4765 else
4766   with_krb5=no
4767
4768 fi
4769
4770
4771 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4772 echo "${ECHO_T}$with_krb5" >&6; }
4773
4774
4775
4776
4777
4778
4779 #
4780 # Kerberos configuration parameters
4781 #
4782
4783 pgac_args="$pgac_args with_krb_srvnam"
4784
4785
4786 # Check whether --with-krb-srvnam was given.
4787 if test "${with_krb_srvnam+set}" = set; then
4788   withval=$with_krb_srvnam;
4789   case $withval in
4790     yes)
4791       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4792 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4793    { (exit 1); exit 1; }; }
4794       ;;
4795     no)
4796       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4797 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4798    { (exit 1); exit 1; }; }
4799       ;;
4800     *)
4801
4802       ;;
4803   esac
4804
4805 else
4806   with_krb_srvnam="postgres"
4807 fi
4808
4809
4810
4811 cat >>confdefs.h <<_ACEOF
4812 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4813 _ACEOF
4814
4815
4816
4817 #
4818 # PAM
4819 #
4820 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4821 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4822
4823 pgac_args="$pgac_args with_pam"
4824
4825
4826 # Check whether --with-pam was given.
4827 if test "${with_pam+set}" = set; then
4828   withval=$with_pam;
4829   case $withval in
4830     yes)
4831
4832 cat >>confdefs.h <<\_ACEOF
4833 #define USE_PAM 1
4834 _ACEOF
4835
4836       ;;
4837     no)
4838       :
4839       ;;
4840     *)
4841       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4842 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4843    { (exit 1); exit 1; }; }
4844       ;;
4845   esac
4846
4847 else
4848   with_pam=no
4849
4850 fi
4851
4852
4853 { echo "$as_me:$LINENO: result: $with_pam" >&5
4854 echo "${ECHO_T}$with_pam" >&6; }
4855
4856
4857
4858 #
4859 # LDAP
4860 #
4861 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4862 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4863
4864 pgac_args="$pgac_args with_ldap"
4865
4866
4867 # Check whether --with-ldap was given.
4868 if test "${with_ldap+set}" = set; then
4869   withval=$with_ldap;
4870   case $withval in
4871     yes)
4872
4873 cat >>confdefs.h <<\_ACEOF
4874 #define USE_LDAP 1
4875 _ACEOF
4876
4877       ;;
4878     no)
4879       :
4880       ;;
4881     *)
4882       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4883 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4884    { (exit 1); exit 1; }; }
4885       ;;
4886   esac
4887
4888 else
4889   with_ldap=no
4890
4891 fi
4892
4893
4894 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4895 echo "${ECHO_T}$with_ldap" >&6; }
4896
4897
4898
4899 #
4900 # Bonjour
4901 #
4902 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4903 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4904
4905 pgac_args="$pgac_args with_bonjour"
4906
4907
4908 # Check whether --with-bonjour was given.
4909 if test "${with_bonjour+set}" = set; then
4910   withval=$with_bonjour;
4911   case $withval in
4912     yes)
4913
4914 cat >>confdefs.h <<\_ACEOF
4915 #define USE_BONJOUR 1
4916 _ACEOF
4917
4918       ;;
4919     no)
4920       :
4921       ;;
4922     *)
4923       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4924 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4925    { (exit 1); exit 1; }; }
4926       ;;
4927   esac
4928
4929 else
4930   with_bonjour=no
4931
4932 fi
4933
4934
4935 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4936 echo "${ECHO_T}$with_bonjour" >&6; }
4937
4938
4939
4940 #
4941 # OpenSSL
4942 #
4943 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4944 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4945
4946 pgac_args="$pgac_args with_openssl"
4947
4948
4949 # Check whether --with-openssl was given.
4950 if test "${with_openssl+set}" = set; then
4951   withval=$with_openssl;
4952   case $withval in
4953     yes)
4954
4955 cat >>confdefs.h <<\_ACEOF
4956 #define USE_SSL 1
4957 _ACEOF
4958
4959       ;;
4960     no)
4961       :
4962       ;;
4963     *)
4964       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4965 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4966    { (exit 1); exit 1; }; }
4967       ;;
4968   esac
4969
4970 else
4971   with_openssl=no
4972
4973 fi
4974
4975
4976 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4977 echo "${ECHO_T}$with_openssl" >&6; }
4978
4979
4980
4981 #
4982 # Readline
4983 #
4984
4985 pgac_args="$pgac_args with_readline"
4986
4987
4988 # Check whether --with-readline was given.
4989 if test "${with_readline+set}" = set; then
4990   withval=$with_readline;
4991   case $withval in
4992     yes)
4993       :
4994       ;;
4995     no)
4996       :
4997       ;;
4998     *)
4999       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5000 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5001    { (exit 1); exit 1; }; }
5002       ;;
5003   esac
5004
5005 else
5006   with_readline=yes
5007
5008 fi
5009
5010
5011 # readline on MinGW has problems with backslashes in psql and other bugs.
5012 # This is particularly a problem with non-US code pages.
5013 # Therefore disable its use until we understand the cause. 2004-07-20
5014 if test "$PORTNAME" = "win32"; then
5015   if test "$with_readline" = yes; then
5016     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5017 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5018     with_readline=no
5019   fi
5020 fi
5021
5022
5023 #
5024 # Prefer libedit
5025 #
5026
5027 pgac_args="$pgac_args with_libedit_preferred"
5028
5029
5030 # Check whether --with-libedit-preferred was given.
5031 if test "${with_libedit_preferred+set}" = set; then
5032   withval=$with_libedit_preferred;
5033   case $withval in
5034     yes)
5035       :
5036       ;;
5037     no)
5038       :
5039       ;;
5040     *)
5041       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5042 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5043    { (exit 1); exit 1; }; }
5044       ;;
5045   esac
5046
5047 else
5048   with_libedit_preferred=no
5049
5050 fi
5051
5052
5053
5054
5055 #
5056 # OSSP UUID library
5057 #
5058
5059 pgac_args="$pgac_args with_ossp_uuid"
5060
5061
5062 # Check whether --with-ossp-uuid was given.
5063 if test "${with_ossp_uuid+set}" = set; then
5064   withval=$with_ossp_uuid;
5065   case $withval in
5066     yes)
5067       :
5068       ;;
5069     no)
5070       :
5071       ;;
5072     *)
5073       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5074 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5075    { (exit 1); exit 1; }; }
5076       ;;
5077   esac
5078
5079 else
5080   with_ossp_uuid=no
5081
5082 fi
5083
5084
5085
5086
5087
5088 #
5089 # XML
5090 #
5091
5092 pgac_args="$pgac_args with_libxml"
5093
5094
5095 # Check whether --with-libxml was given.
5096 if test "${with_libxml+set}" = set; then
5097   withval=$with_libxml;
5098   case $withval in
5099     yes)
5100
5101 cat >>confdefs.h <<\_ACEOF
5102 #define USE_LIBXML 1
5103 _ACEOF
5104
5105       ;;
5106     no)
5107       :
5108       ;;
5109     *)
5110       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5111 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5112    { (exit 1); exit 1; }; }
5113       ;;
5114   esac
5115
5116 else
5117   with_libxml=no
5118
5119 fi
5120
5121
5122
5123 if test "$with_libxml" = yes ; then
5124   for ac_prog in xml2-config
5125 do
5126   # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   if test -n "$XML2_CONFIG"; then
5134   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141   for ac_exec_ext in '' $ac_executable_extensions; do
5142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143     ac_cv_prog_XML2_CONFIG="$ac_prog"
5144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5154 if test -n "$XML2_CONFIG"; then
5155   { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5156 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5157 else
5158   { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5160 fi
5161
5162
5163   test -n "$XML2_CONFIG" && break
5164 done
5165
5166   if test -n "$XML2_CONFIG"; then
5167     for pgac_option in `$XML2_CONFIG --cflags`; do
5168       case $pgac_option in
5169         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5170       esac
5171     done
5172     for pgac_option in `$XML2_CONFIG --libs`; do
5173       case $pgac_option in
5174         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5175       esac
5176     done
5177   fi
5178 fi
5179
5180
5181
5182 #
5183 # XSLT
5184 #
5185
5186 pgac_args="$pgac_args with_libxslt"
5187
5188
5189 # Check whether --with-libxslt was given.
5190 if test "${with_libxslt+set}" = set; then
5191   withval=$with_libxslt;
5192   case $withval in
5193     yes)
5194
5195 cat >>confdefs.h <<\_ACEOF
5196 #define USE_LIBXSLT 1
5197 _ACEOF
5198
5199       ;;
5200     no)
5201       :
5202       ;;
5203     *)
5204       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5205 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5206    { (exit 1); exit 1; }; }
5207       ;;
5208   esac
5209
5210 else
5211   with_libxslt=no
5212
5213 fi
5214
5215
5216
5217
5218
5219
5220 #
5221 # tzdata
5222 #
5223
5224 pgac_args="$pgac_args with_system_tzdata"
5225
5226
5227 # Check whether --with-system-tzdata was given.
5228 if test "${with_system_tzdata+set}" = set; then
5229   withval=$with_system_tzdata;
5230   case $withval in
5231     yes)
5232       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5233 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5234    { (exit 1); exit 1; }; }
5235       ;;
5236     no)
5237       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5238 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5239    { (exit 1); exit 1; }; }
5240       ;;
5241     *)
5242
5243       ;;
5244   esac
5245
5246 fi
5247
5248
5249
5250
5251 #
5252 # Zlib
5253 #
5254
5255 pgac_args="$pgac_args with_zlib"
5256
5257
5258 # Check whether --with-zlib was given.
5259 if test "${with_zlib+set}" = set; then
5260   withval=$with_zlib;
5261   case $withval in
5262     yes)
5263       :
5264       ;;
5265     no)
5266       :
5267       ;;
5268     *)
5269       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5270 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5271    { (exit 1); exit 1; }; }
5272       ;;
5273   esac
5274
5275 else
5276   with_zlib=yes
5277
5278 fi
5279
5280
5281
5282
5283 #
5284 # Elf
5285 #
5286
5287 # Assume system is ELF if it predefines __ELF__ as 1,
5288 # otherwise believe host_os based default.
5289 case $host_os in
5290     freebsd1*|freebsd2*) elf=no;;
5291     freebsd3*|freebsd4*) elf=yes;;
5292 esac
5293
5294
5295 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5296 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5297 if test "${ac_cv_path_GREP+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   # Extract the first word of "grep ggrep" to use in msg output
5301 if test -z "$GREP"; then
5302 set dummy grep ggrep; ac_prog_name=$2
5303 if test "${ac_cv_path_GREP+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   ac_path_GREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313   for ac_prog in grep ggrep; do
5314   for ac_exec_ext in '' $ac_executable_extensions; do
5315     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5316     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5317     # Check for GNU ac_path_GREP and select it if it is found.
5318   # Check for GNU $ac_path_GREP
5319 case `"$ac_path_GREP" --version 2>&1` in
5320 *GNU*)
5321   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5322 *)
5323   ac_count=0
5324   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5325   while :
5326   do
5327     cat "conftest.in" "conftest.in" >"conftest.tmp"
5328     mv "conftest.tmp" "conftest.in"
5329     cp "conftest.in" "conftest.nl"
5330     echo 'GREP' >> "conftest.nl"
5331     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333     ac_count=`expr $ac_count + 1`
5334     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5335       # Best one so far, save it but keep looking for a better one
5336       ac_cv_path_GREP="$ac_path_GREP"
5337       ac_path_GREP_max=$ac_count
5338     fi
5339     # 10*(2^10) chars as input seems more than enough
5340     test $ac_count -gt 10 && break
5341   done
5342   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5344
5345
5346     $ac_path_GREP_found && break 3
5347   done
5348 done
5349
5350 done
5351 IFS=$as_save_IFS
5352
5353
5354 fi
5355
5356 GREP="$ac_cv_path_GREP"
5357 if test -z "$GREP"; then
5358   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5360    { (exit 1); exit 1; }; }
5361 fi
5362
5363 else
5364   ac_cv_path_GREP=$GREP
5365 fi
5366
5367
5368 fi
5369 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5370 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5371  GREP="$ac_cv_path_GREP"
5372
5373
5374 { echo "$as_me:$LINENO: checking for egrep" >&5
5375 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5376 if test "${ac_cv_path_EGREP+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5380    then ac_cv_path_EGREP="$GREP -E"
5381    else
5382      # Extract the first word of "egrep" to use in msg output
5383 if test -z "$EGREP"; then
5384 set dummy egrep; ac_prog_name=$2
5385 if test "${ac_cv_path_EGREP+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   ac_path_EGREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_prog in egrep; do
5396   for ac_exec_ext in '' $ac_executable_extensions; do
5397     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5398     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5399     # Check for GNU ac_path_EGREP and select it if it is found.
5400   # Check for GNU $ac_path_EGREP
5401 case `"$ac_path_EGREP" --version 2>&1` in
5402 *GNU*)
5403   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5404 *)
5405   ac_count=0
5406   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5407   while :
5408   do
5409     cat "conftest.in" "conftest.in" >"conftest.tmp"
5410     mv "conftest.tmp" "conftest.in"
5411     cp "conftest.in" "conftest.nl"
5412     echo 'EGREP' >> "conftest.nl"
5413     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5414     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5415     ac_count=`expr $ac_count + 1`
5416     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5417       # Best one so far, save it but keep looking for a better one
5418       ac_cv_path_EGREP="$ac_path_EGREP"
5419       ac_path_EGREP_max=$ac_count
5420     fi
5421     # 10*(2^10) chars as input seems more than enough
5422     test $ac_count -gt 10 && break
5423   done
5424   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425 esac
5426
5427
5428     $ac_path_EGREP_found && break 3
5429   done
5430 done
5431
5432 done
5433 IFS=$as_save_IFS
5434
5435
5436 fi
5437
5438 EGREP="$ac_cv_path_EGREP"
5439 if test -z "$EGREP"; then
5440   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5441 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5442    { (exit 1); exit 1; }; }
5443 fi
5444
5445 else
5446   ac_cv_path_EGREP=$EGREP
5447 fi
5448
5449
5450    fi
5451 fi
5452 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5453 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5454  EGREP="$ac_cv_path_EGREP"
5455
5456
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h.  */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h.  */
5463 #if __ELF__
5464   yes
5465 #endif
5466
5467 _ACEOF
5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5469   $EGREP "yes" >/dev/null 2>&1; then
5470   ELF_SYS=true
5471 else
5472   if test "X$elf" = "Xyes" ; then
5473   ELF_SYS=true
5474 else
5475   ELF_SYS=
5476 fi
5477 fi
5478 rm -f conftest*
5479
5480
5481
5482 #
5483 # Assignments
5484 #
5485
5486 CPPFLAGS="$CPPFLAGS $INCLUDES"
5487 LDFLAGS="$LDFLAGS $LIBDIRS"
5488
5489 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
5490 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5491 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
5492 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5493
5494
5495
5496
5497 # Check whether --with-gnu-ld was given.
5498 if test "${with_gnu_ld+set}" = set; then
5499   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5500 else
5501   with_gnu_ld=no
5502 fi
5503
5504 ac_prog=ld
5505 if test "$GCC" = yes; then
5506   # Check if gcc -print-prog-name=ld gives a path.
5507   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5508 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5509   case $host in
5510   *-*-mingw*)
5511     # gcc leaves a trailing carriage return which upsets mingw
5512     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5513   *)
5514     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5515   esac
5516   case "$ac_prog" in
5517     # Accept absolute paths.
5518     [\\/]* | [A-Za-z]:[\\/]*)
5519       re_direlt='/[^/][^/]*/\.\./'
5520       # Canonicalize the path of ld
5521       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5522       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5523         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5524       done
5525       test -z "$LD" && LD="$ac_prog"
5526       ;;
5527   "")
5528     # If it fails, then pretend we aren't using GCC.
5529     ac_prog=ld
5530     ;;
5531   *)
5532     # If it is relative, then search for the first ld in PATH.
5533     with_gnu_ld=unknown
5534     ;;
5535   esac
5536 elif test "$with_gnu_ld" = yes; then
5537   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5538 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5539 else
5540   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5541 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5542 fi
5543 if test "${ac_cv_path_LD+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   if test -z "$LD"; then
5547   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5548   for ac_dir in $PATH; do
5549     test -z "$ac_dir" && ac_dir=.
5550     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551       ac_cv_path_LD="$ac_dir/$ac_prog"
5552       # Check to see if the program is GNU ld.  I'd rather use --version,
5553       # but apparently some GNU ld's only accept -v.
5554       # Break only if it was the GNU/non-GNU ld that we prefer.
5555       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5556         test "$with_gnu_ld" != no && break
5557       else
5558         test "$with_gnu_ld" != yes && break
5559       fi
5560     fi
5561   done
5562   IFS="$ac_save_ifs"
5563 else
5564   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5565 fi
5566 fi
5567
5568 LD="$ac_cv_path_LD"
5569 if test -n "$LD"; then
5570   { echo "$as_me:$LINENO: result: $LD" >&5
5571 echo "${ECHO_T}$LD" >&6; }
5572 else
5573   { echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6; }
5575 fi
5576 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5577 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5578    { (exit 1); exit 1; }; }
5579 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5580 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5581 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5585 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5586   ac_cv_prog_gnu_ld=yes
5587 else
5588   ac_cv_prog_gnu_ld=no
5589 fi
5590 fi
5591 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5592 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5593 with_gnu_ld=$ac_cv_prog_gnu_ld
5594
5595
5596
5597
5598 case $host_os in sysv5*)
5599   { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5600 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5601 if test "${pgac_cv_prog_ld_R+set}" = set; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604
5605     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5606     cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612
5613 int
5614 main ()
5615 {
5616
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_link") 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } && {
5635          test -z "$ac_c_werror_flag" ||
5636          test ! -s conftest.err
5637        } && test -s conftest$ac_exeext &&
5638        $as_test_x conftest$ac_exeext; then
5639   pgac_cv_prog_ld_R=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644         pgac_cv_prog_ld_R=no
5645 fi
5646
5647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5648       conftest$ac_exeext conftest.$ac_ext
5649     LDFLAGS=$pgac_save_LDFLAGS
5650
5651 fi
5652 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5653 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5654   ld_R_works=$pgac_cv_prog_ld_R
5655
5656 esac
5657 if test -n "$ac_tool_prefix"; then
5658   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_RANLIB+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   if test -n "$RANLIB"; then
5666   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673   for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 RANLIB=$ac_cv_prog_RANLIB
5686 if test -n "$RANLIB"; then
5687   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5688 echo "${ECHO_T}$RANLIB" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5692 fi
5693
5694
5695 fi
5696 if test -z "$ac_cv_prog_RANLIB"; then
5697   ac_ct_RANLIB=$RANLIB
5698   # Extract the first word of "ranlib", so it can be a program name with args.
5699 set dummy ranlib; ac_word=$2
5700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   if test -n "$ac_ct_RANLIB"; then
5706   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713   for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_ac_ct_RANLIB="ranlib"
5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5726 if test -n "$ac_ct_RANLIB"; then
5727   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5728 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5729 else
5730   { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 fi
5733
5734   if test "x$ac_ct_RANLIB" = x; then
5735     RANLIB=":"
5736   else
5737     case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet.  If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet.  If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747     RANLIB=$ac_ct_RANLIB
5748   fi
5749 else
5750   RANLIB="$ac_cv_prog_RANLIB"
5751 fi
5752
5753
5754   if test -n "$ac_tool_prefix"; then
5755   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}strip; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_prog_STRIP+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   if test -n "$STRIP"; then
5763   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770   for ac_exec_ext in '' $ac_executable_extensions; do
5771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 STRIP=$ac_cv_prog_STRIP
5783 if test -n "$STRIP"; then
5784   { echo "$as_me:$LINENO: result: $STRIP" >&5
5785 echo "${ECHO_T}$STRIP" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792 fi
5793 if test -z "$ac_cv_prog_STRIP"; then
5794   ac_ct_STRIP=$STRIP
5795   # Extract the first word of "strip", so it can be a program name with args.
5796 set dummy strip; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$ac_ct_STRIP"; then
5803   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_ac_ct_STRIP="strip"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5823 if test -n "$ac_ct_STRIP"; then
5824   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5825 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5826 else
5827   { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5829 fi
5830
5831   if test "x$ac_ct_STRIP" = x; then
5832     STRIP=":"
5833   else
5834     case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet.  If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&5
5839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet.  If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844     STRIP=$ac_ct_STRIP
5845   fi
5846 else
5847   STRIP="$ac_cv_prog_STRIP"
5848 fi
5849
5850
5851   { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5852 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5853   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5854     STRIP_STATIC_LIB="$STRIP -x"
5855     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5856     { echo "$as_me:$LINENO: result: yes" >&5
5857 echo "${ECHO_T}yes" >&6; }
5858   else
5859     STRIP_STATIC_LIB=:
5860     STRIP_SHARED_LIB=:
5861     { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5863   fi
5864
5865
5866
5867
5868 # Extract the first word of "tar", so it can be a program name with args.
5869 set dummy tar; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_TAR+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   case $TAR in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895   ;;
5896 esac
5897 fi
5898 TAR=$ac_cv_path_TAR
5899 if test -n "$TAR"; then
5900   { echo "$as_me:$LINENO: result: $TAR" >&5
5901 echo "${ECHO_T}$TAR" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5910 LN_S=$as_ln_s
5911 if test "$LN_S" = "ln -s"; then
5912   { echo "$as_me:$LINENO: result: yes" >&5
5913 echo "${ECHO_T}yes" >&6; }
5914 else
5915   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5916 echo "${ECHO_T}no, using $LN_S" >&6; }
5917 fi
5918
5919 for ac_prog in gawk mawk nawk awk
5920 do
5921   # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_AWK+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$AWK"; then
5929   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938     ac_cv_prog_AWK="$ac_prog"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 AWK=$ac_cv_prog_AWK
5949 if test -n "$AWK"; then
5950   { echo "$as_me:$LINENO: result: $AWK" >&5
5951 echo "${ECHO_T}$AWK" >&6; }
5952 else
5953   { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5955 fi
5956
5957
5958   test -n "$AWK" && break
5959 done
5960
5961
5962 # Let the user override the search
5963 if test -z "$YACC"; then
5964   for ac_prog in 'bison -y'
5965 do
5966   # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_prog_YACC+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   if test -n "$YACC"; then
5974   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_prog_YACC="$ac_prog"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 YACC=$ac_cv_prog_YACC
5994 if test -n "$YACC"; then
5995   { echo "$as_me:$LINENO: result: $YACC" >&5
5996 echo "${ECHO_T}$YACC" >&6; }
5997 else
5998   { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6000 fi
6001
6002
6003   test -n "$YACC" && break
6004 done
6005
6006 fi
6007
6008 if test "$YACC"; then
6009   pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
6010   { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
6011 echo "$as_me: using $pgac_yacc_version" >&6;}
6012   if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6013   then
6014     { echo "$as_me:$LINENO: WARNING:
6015 *** The installed version of Bison is too old to use with PostgreSQL.
6016 *** Bison version 1.875 or later is required." >&5
6017 echo "$as_me: WARNING:
6018 *** The installed version of Bison is too old to use with PostgreSQL.
6019 *** Bison version 1.875 or later is required." >&2;}
6020     YACC=""
6021   fi
6022 fi
6023
6024 if test -z "$YACC"; then
6025   { echo "$as_me:$LINENO: WARNING:
6026 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6027 *** change any of the parser definition files.  You can obtain Bison from
6028 *** a GNU mirror site.  (If you are using the official distribution of
6029 *** PostgreSQL then you do not need to worry about this, because the Bison
6030 *** output is pre-generated.)  To use a different yacc program (possible,
6031 *** but not recommended), set the environment variable YACC before running
6032 *** 'configure'." >&5
6033 echo "$as_me: WARNING:
6034 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6035 *** change any of the parser definition files.  You can obtain Bison from
6036 *** a GNU mirror site.  (If you are using the official distribution of
6037 *** PostgreSQL then you do not need to worry about this, because the Bison
6038 *** output is pre-generated.)  To use a different yacc program (possible,
6039 *** but not recommended), set the environment variable YACC before running
6040 *** 'configure'." >&2;}
6041 fi
6042 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
6043
6044
6045 { echo "$as_me:$LINENO: checking for flex" >&5
6046 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6047 if test "${pgac_cv_path_flex+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   # Let the user override the test
6051 if test -n "$FLEX"; then
6052   pgac_cv_path_flex=$FLEX
6053 else
6054   pgac_save_IFS=$IFS
6055   IFS=$PATH_SEPARATOR
6056   for pgac_dir in $PATH; do
6057     IFS=$pgac_save_IFS
6058     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6059       pgac_dir=`pwd`
6060     fi
6061     for pgac_prog in flex lex; do
6062       pgac_candidate="$pgac_dir/$pgac_prog"
6063       if test -f "$pgac_candidate" \
6064         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6065       then
6066         echo '%%'  > conftest.l
6067         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6068           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6069             pgac_broken_flex=$pgac_candidate
6070             continue
6071           fi
6072
6073           pgac_cv_path_flex=$pgac_candidate
6074           break 2
6075         fi
6076       fi
6077     done
6078   done
6079   rm -f conftest.l lex.yy.c
6080   : ${pgac_cv_path_flex=no}
6081 fi
6082
6083 fi
6084 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6085 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6086 if test x"$pgac_cv_path_flex" = x"no"; then
6087   if test -n "$pgac_broken_flex"; then
6088     { echo "$as_me:$LINENO: WARNING:
6089 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6090 *** should get version 2.5.4 or later." >&5
6091 echo "$as_me: WARNING:
6092 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6093 *** should get version 2.5.4 or later." >&2;}
6094   fi
6095
6096   { echo "$as_me:$LINENO: WARNING:
6097 *** Without Flex you will not be able to build PostgreSQL from CVS or
6098 *** change any of the scanner definition files.  You can obtain Flex from
6099 *** a GNU mirror site.  (If you are using the official distribution of
6100 *** PostgreSQL then you do not need to worry about this because the Flex
6101 *** output is pre-generated.)" >&5
6102 echo "$as_me: WARNING:
6103 *** Without Flex you will not be able to build PostgreSQL from CVS or
6104 *** change any of the scanner definition files.  You can obtain Flex from
6105 *** a GNU mirror site.  (If you are using the official distribution of
6106 *** PostgreSQL then you do not need to worry about this because the Flex
6107 *** output is pre-generated.)" >&2;}
6108
6109   FLEX=
6110 else
6111   FLEX=$pgac_cv_path_flex
6112   pgac_flex_version=`$FLEX -V 2>/dev/null`
6113   { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6114 echo "$as_me: using $pgac_flex_version" >&6;}
6115 fi
6116
6117
6118
6119
6120
6121 # Extract the first word of "perl", so it can be a program name with args.
6122 set dummy perl; ac_word=$2
6123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6125 if test "${ac_cv_path_PERL+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   case $PERL in
6129   [\\/]* | ?:[\\/]*)
6130   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6131   ;;
6132   *)
6133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138   for ac_exec_ext in '' $ac_executable_extensions; do
6139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145 done
6146 IFS=$as_save_IFS
6147
6148   ;;
6149 esac
6150 fi
6151 PERL=$ac_cv_path_PERL
6152 if test -n "$PERL"; then
6153   { echo "$as_me:$LINENO: result: $PERL" >&5
6154 echo "${ECHO_T}$PERL" >&6; }
6155 else
6156   { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6158 fi
6159
6160
6161 if test "$with_perl" = yes; then
6162
6163 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6164 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6165 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6166 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6167 echo "${ECHO_T}$perl_archlibexp" >&6; }
6168 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6169 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6170 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6171 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6172 echo "${ECHO_T}$perl_privlibexp" >&6; }
6173 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6174 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6175 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6176 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6177 echo "${ECHO_T}$perl_useshrplib" >&6; }
6178
6179 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6180 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6181 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6182 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6183 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6184 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6185 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6186 fi
6187
6188 if test "$with_python" = yes; then
6189   # Extract the first word of "python", so it can be a program name with args.
6190 set dummy python; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_PYTHON+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   case $PYTHON in
6197   [\\/]* | ?:[\\/]*)
6198   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6199   ;;
6200   *)
6201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216   ;;
6217 esac
6218 fi
6219 PYTHON=$ac_cv_path_PYTHON
6220 if test -n "$PYTHON"; then
6221   { echo "$as_me:$LINENO: result: $PYTHON" >&5
6222 echo "${ECHO_T}$PYTHON" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 if test x"$PYTHON" = x""; then
6230   { { echo "$as_me:$LINENO: error: Python not found" >&5
6231 echo "$as_me: error: Python not found" >&2;}
6232    { (exit 1); exit 1; }; }
6233 fi
6234
6235
6236 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6237 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6238 if "${PYTHON}" 2>&- -c 'import distutils'
6239 then
6240     { echo "$as_me:$LINENO: result: yes" >&5
6241 echo "${ECHO_T}yes" >&6; }
6242 else
6243     { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6246 echo "$as_me: error: distutils module not found" >&2;}
6247    { (exit 1); exit 1; }; }
6248 fi
6249 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6250 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6251 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6252 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')"`
6253 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6254
6255 # This should be enough of a message.
6256 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6257 echo "${ECHO_T}$python_configdir" >&6; }
6258
6259
6260 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6261 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6262
6263 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6264 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6265 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6266 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6267
6268 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6269 then
6270         # New way: use the official shared library
6271         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6272         python_libspec="-L${python_libdir} -l${ldlibrary}"
6273 else
6274         # Old way: use libpython from python_configdir
6275         python_libdir="${python_configdir}"
6276         python_libspec="-L${python_libdir} -lpython${python_version}"
6277 fi
6278
6279 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6280
6281 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6282 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6283
6284
6285 # threaded python is not supported on bsd's
6286 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6287 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6288 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6289 if test "$pythreads" = "1"; then
6290   { echo "$as_me:$LINENO: result: yes" >&5
6291 echo "${ECHO_T}yes" >&6; }
6292   case $host_os in
6293   openbsd*|freebsd*)
6294     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6295 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6296    { (exit 1); exit 1; }; }
6297     ;;
6298   esac
6299 else
6300   { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 fi
6303
6304
6305 fi
6306
6307 # Supply a numeric version string for use by 3rd party add-ons
6308 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6309 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6310 tr '.' '        ' |
6311 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6312
6313 cat >>confdefs.h <<_ACEOF
6314 #define PG_VERSION_NUM $PG_VERSION_NUM
6315 _ACEOF
6316
6317
6318 ##
6319 ## Libraries
6320 ##
6321 ## Most libraries are included only if they demonstrably provide a function
6322 ## we need, but libm is an exception: always include it, because there are
6323 ## too many compilers that play cute optimization games that will break
6324 ## probes for standard functions such as pow().
6325 ##
6326
6327
6328 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6329 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6330 if test "${ac_cv_lib_m_main+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   ac_check_lib_save_LIBS=$LIBS
6334 LIBS="-lm  $LIBS"
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341
6342
6343 int
6344 main ()
6345 {
6346 return main ();
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_link") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_c_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest$ac_exeext &&
6368        $as_test_x conftest$ac_exeext; then
6369   ac_cv_lib_m_main=yes
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374         ac_cv_lib_m_main=no
6375 fi
6376
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378       conftest$ac_exeext conftest.$ac_ext
6379 LIBS=$ac_check_lib_save_LIBS
6380 fi
6381 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6382 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6383 if test $ac_cv_lib_m_main = yes; then
6384   cat >>confdefs.h <<_ACEOF
6385 #define HAVE_LIBM 1
6386 _ACEOF
6387
6388   LIBS="-lm $LIBS"
6389
6390 fi
6391
6392 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6393 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6394 if test "${ac_cv_search_setproctitle+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   ac_func_search_save_LIBS=$LIBS
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404
6405 /* Override any GCC internal prototype to avoid an error.
6406    Use char because int might match the return type of a GCC
6407    builtin and then its argument prototype would still apply.  */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 char setproctitle ();
6412 int
6413 main ()
6414 {
6415 return setproctitle ();
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 for ac_lib in '' util; do
6421   if test -z "$ac_lib"; then
6422     ac_res="none required"
6423   else
6424     ac_res=-l$ac_lib
6425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6426   fi
6427   rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6429 case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434   (eval "$ac_link") 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && {
6441          test -z "$ac_c_werror_flag" ||
6442          test ! -s conftest.err
6443        } && test -s conftest$ac_exeext &&
6444        $as_test_x conftest$ac_exeext; then
6445   ac_cv_search_setproctitle=$ac_res
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450
6451 fi
6452
6453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454       conftest$ac_exeext
6455   if test "${ac_cv_search_setproctitle+set}" = set; then
6456   break
6457 fi
6458 done
6459 if test "${ac_cv_search_setproctitle+set}" = set; then
6460   :
6461 else
6462   ac_cv_search_setproctitle=no
6463 fi
6464 rm conftest.$ac_ext
6465 LIBS=$ac_func_search_save_LIBS
6466 fi
6467 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6468 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6469 ac_res=$ac_cv_search_setproctitle
6470 if test "$ac_res" != no; then
6471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6472
6473 fi
6474
6475 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6476 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6477 if test "${ac_cv_search_dlopen+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   ac_func_search_save_LIBS=$LIBS
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487
6488 /* Override any GCC internal prototype to avoid an error.
6489    Use char because int might match the return type of a GCC
6490    builtin and then its argument prototype would still apply.  */
6491 #ifdef __cplusplus
6492 extern "C"
6493 #endif
6494 char dlopen ();
6495 int
6496 main ()
6497 {
6498 return dlopen ();
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 for ac_lib in '' dl; do
6504   if test -z "$ac_lib"; then
6505     ac_res="none required"
6506   else
6507     ac_res=-l$ac_lib
6508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6509   fi
6510   rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6512 case "(($ac_try" in
6513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514   *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517   (eval "$ac_link") 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } && {
6524          test -z "$ac_c_werror_flag" ||
6525          test ! -s conftest.err
6526        } && test -s conftest$ac_exeext &&
6527        $as_test_x conftest$ac_exeext; then
6528   ac_cv_search_dlopen=$ac_res
6529 else
6530   echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533
6534 fi
6535
6536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6537       conftest$ac_exeext
6538   if test "${ac_cv_search_dlopen+set}" = set; then
6539   break
6540 fi
6541 done
6542 if test "${ac_cv_search_dlopen+set}" = set; then
6543   :
6544 else
6545   ac_cv_search_dlopen=no
6546 fi
6547 rm conftest.$ac_ext
6548 LIBS=$ac_func_search_save_LIBS
6549 fi
6550 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6551 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6552 ac_res=$ac_cv_search_dlopen
6553 if test "$ac_res" != no; then
6554   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6555
6556 fi
6557
6558 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6559 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6560 if test "${ac_cv_search_socket+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   ac_func_search_save_LIBS=$LIBS
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570
6571 /* Override any GCC internal prototype to avoid an error.
6572    Use char because int might match the return type of a GCC
6573    builtin and then its argument prototype would still apply.  */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 char socket ();
6578 int
6579 main ()
6580 {
6581 return socket ();
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 for ac_lib in '' socket wsock32; do
6587   if test -z "$ac_lib"; then
6588     ac_res="none required"
6589   else
6590     ac_res=-l$ac_lib
6591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6592   fi
6593   rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (ac_try="$ac_link"
6595 case "(($ac_try" in
6596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597   *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600   (eval "$ac_link") 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } && {
6607          test -z "$ac_c_werror_flag" ||
6608          test ! -s conftest.err
6609        } && test -s conftest$ac_exeext &&
6610        $as_test_x conftest$ac_exeext; then
6611   ac_cv_search_socket=$ac_res
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616
6617 fi
6618
6619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6620       conftest$ac_exeext
6621   if test "${ac_cv_search_socket+set}" = set; then
6622   break
6623 fi
6624 done
6625 if test "${ac_cv_search_socket+set}" = set; then
6626   :
6627 else
6628   ac_cv_search_socket=no
6629 fi
6630 rm conftest.$ac_ext
6631 LIBS=$ac_func_search_save_LIBS
6632 fi
6633 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6634 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6635 ac_res=$ac_cv_search_socket
6636 if test "$ac_res" != no; then
6637   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6638
6639 fi
6640
6641 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6642 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6643 if test "${ac_cv_search_shl_load+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   ac_func_search_save_LIBS=$LIBS
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h.  */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h.  */
6653
6654 /* Override any GCC internal prototype to avoid an error.
6655    Use char because int might match the return type of a GCC
6656    builtin and then its argument prototype would still apply.  */
6657 #ifdef __cplusplus
6658 extern "C"
6659 #endif
6660 char shl_load ();
6661 int
6662 main ()
6663 {
6664 return shl_load ();
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 for ac_lib in '' dld; do
6670   if test -z "$ac_lib"; then
6671     ac_res="none required"
6672   else
6673     ac_res=-l$ac_lib
6674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6675   fi
6676   rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (ac_try="$ac_link"
6678 case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683   (eval "$ac_link") 2>conftest.er1
6684   ac_status=$?
6685   grep -v '^ *+' conftest.er1 >conftest.err
6686   rm -f conftest.er1
6687   cat conftest.err >&5
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } && {
6690          test -z "$ac_c_werror_flag" ||
6691          test ! -s conftest.err
6692        } && test -s conftest$ac_exeext &&
6693        $as_test_x conftest$ac_exeext; then
6694   ac_cv_search_shl_load=$ac_res
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699
6700 fi
6701
6702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6703       conftest$ac_exeext
6704   if test "${ac_cv_search_shl_load+set}" = set; then
6705   break
6706 fi
6707 done
6708 if test "${ac_cv_search_shl_load+set}" = set; then
6709   :
6710 else
6711   ac_cv_search_shl_load=no
6712 fi
6713 rm conftest.$ac_ext
6714 LIBS=$ac_func_search_save_LIBS
6715 fi
6716 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6717 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6718 ac_res=$ac_cv_search_shl_load
6719 if test "$ac_res" != no; then
6720   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6721
6722 fi
6723
6724 # We only use libld in port/dynloader/aix.c
6725 case $host_os in
6726      aix*)
6727         { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6728 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6729 if test "${ac_cv_search_ldopen+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732   ac_func_search_save_LIBS=$LIBS
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739
6740 /* Override any GCC internal prototype to avoid an error.
6741    Use char because int might match the return type of a GCC
6742    builtin and then its argument prototype would still apply.  */
6743 #ifdef __cplusplus
6744 extern "C"
6745 #endif
6746 char ldopen ();
6747 int
6748 main ()
6749 {
6750 return ldopen ();
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 for ac_lib in '' ld; do
6756   if test -z "$ac_lib"; then
6757     ac_res="none required"
6758   else
6759     ac_res=-l$ac_lib
6760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6761   fi
6762   rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6764 case "(($ac_try" in
6765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766   *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769   (eval "$ac_link") 2>conftest.er1
6770   ac_status=$?
6771   grep -v '^ *+' conftest.er1 >conftest.err
6772   rm -f conftest.er1
6773   cat conftest.err >&5
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } && {
6776          test -z "$ac_c_werror_flag" ||
6777          test ! -s conftest.err
6778        } && test -s conftest$ac_exeext &&
6779        $as_test_x conftest$ac_exeext; then
6780   ac_cv_search_ldopen=$ac_res
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785
6786 fi
6787
6788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6789       conftest$ac_exeext
6790   if test "${ac_cv_search_ldopen+set}" = set; then
6791   break
6792 fi
6793 done
6794 if test "${ac_cv_search_ldopen+set}" = set; then
6795   :
6796 else
6797   ac_cv_search_ldopen=no
6798 fi
6799 rm conftest.$ac_ext
6800 LIBS=$ac_func_search_save_LIBS
6801 fi
6802 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6803 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6804 ac_res=$ac_cv_search_ldopen
6805 if test "$ac_res" != no; then
6806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6807
6808 fi
6809
6810         ;;
6811 esac
6812 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6813 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6814 if test "${ac_cv_search_getopt_long+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   ac_func_search_save_LIBS=$LIBS
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h.  */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h.  */
6824
6825 /* Override any GCC internal prototype to avoid an error.
6826    Use char because int might match the return type of a GCC
6827    builtin and then its argument prototype would still apply.  */
6828 #ifdef __cplusplus
6829 extern "C"
6830 #endif
6831 char getopt_long ();
6832 int
6833 main ()
6834 {
6835 return getopt_long ();
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 for ac_lib in '' getopt gnugetopt; do
6841   if test -z "$ac_lib"; then
6842     ac_res="none required"
6843   else
6844     ac_res=-l$ac_lib
6845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6846   fi
6847   rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (ac_try="$ac_link"
6849 case "(($ac_try" in
6850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851   *) ac_try_echo=$ac_try;;
6852 esac
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854   (eval "$ac_link") 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } && {
6861          test -z "$ac_c_werror_flag" ||
6862          test ! -s conftest.err
6863        } && test -s conftest$ac_exeext &&
6864        $as_test_x conftest$ac_exeext; then
6865   ac_cv_search_getopt_long=$ac_res
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870
6871 fi
6872
6873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6874       conftest$ac_exeext
6875   if test "${ac_cv_search_getopt_long+set}" = set; then
6876   break
6877 fi
6878 done
6879 if test "${ac_cv_search_getopt_long+set}" = set; then
6880   :
6881 else
6882   ac_cv_search_getopt_long=no
6883 fi
6884 rm conftest.$ac_ext
6885 LIBS=$ac_func_search_save_LIBS
6886 fi
6887 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6888 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6889 ac_res=$ac_cv_search_getopt_long
6890 if test "$ac_res" != no; then
6891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6892
6893 fi
6894
6895 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6896 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6897 if test "${ac_cv_search_crypt+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   ac_func_search_save_LIBS=$LIBS
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907
6908 /* Override any GCC internal prototype to avoid an error.
6909    Use char because int might match the return type of a GCC
6910    builtin and then its argument prototype would still apply.  */
6911 #ifdef __cplusplus
6912 extern "C"
6913 #endif
6914 char crypt ();
6915 int
6916 main ()
6917 {
6918 return crypt ();
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 for ac_lib in '' crypt; do
6924   if test -z "$ac_lib"; then
6925     ac_res="none required"
6926   else
6927     ac_res=-l$ac_lib
6928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6929   fi
6930   rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (ac_try="$ac_link"
6932 case "(($ac_try" in
6933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934   *) ac_try_echo=$ac_try;;
6935 esac
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937   (eval "$ac_link") 2>conftest.er1
6938   ac_status=$?
6939   grep -v '^ *+' conftest.er1 >conftest.err
6940   rm -f conftest.er1
6941   cat conftest.err >&5
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); } && {
6944          test -z "$ac_c_werror_flag" ||
6945          test ! -s conftest.err
6946        } && test -s conftest$ac_exeext &&
6947        $as_test_x conftest$ac_exeext; then
6948   ac_cv_search_crypt=$ac_res
6949 else
6950   echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953
6954 fi
6955
6956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6957       conftest$ac_exeext
6958   if test "${ac_cv_search_crypt+set}" = set; then
6959   break
6960 fi
6961 done
6962 if test "${ac_cv_search_crypt+set}" = set; then
6963   :
6964 else
6965   ac_cv_search_crypt=no
6966 fi
6967 rm conftest.$ac_ext
6968 LIBS=$ac_func_search_save_LIBS
6969 fi
6970 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6971 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6972 ac_res=$ac_cv_search_crypt
6973 if test "$ac_res" != no; then
6974   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6975
6976 fi
6977
6978 # Solaris:
6979 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6980 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6981 if test "${ac_cv_search_fdatasync+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   ac_func_search_save_LIBS=$LIBS
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991
6992 /* Override any GCC internal prototype to avoid an error.
6993    Use char because int might match the return type of a GCC
6994    builtin and then its argument prototype would still apply.  */
6995 #ifdef __cplusplus
6996 extern "C"
6997 #endif
6998 char fdatasync ();
6999 int
7000 main ()
7001 {
7002 return fdatasync ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 for ac_lib in '' rt posix4; do
7008   if test -z "$ac_lib"; then
7009     ac_res="none required"
7010   else
7011     ac_res=-l$ac_lib
7012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7013   fi
7014   rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (ac_try="$ac_link"
7016 case "(($ac_try" in
7017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018   *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021   (eval "$ac_link") 2>conftest.er1
7022   ac_status=$?
7023   grep -v '^ *+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } && {
7028          test -z "$ac_c_werror_flag" ||
7029          test ! -s conftest.err
7030        } && test -s conftest$ac_exeext &&
7031        $as_test_x conftest$ac_exeext; then
7032   ac_cv_search_fdatasync=$ac_res
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037
7038 fi
7039
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041       conftest$ac_exeext
7042   if test "${ac_cv_search_fdatasync+set}" = set; then
7043   break
7044 fi
7045 done
7046 if test "${ac_cv_search_fdatasync+set}" = set; then
7047   :
7048 else
7049   ac_cv_search_fdatasync=no
7050 fi
7051 rm conftest.$ac_ext
7052 LIBS=$ac_func_search_save_LIBS
7053 fi
7054 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7055 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7056 ac_res=$ac_cv_search_fdatasync
7057 if test "$ac_res" != no; then
7058   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7059
7060 fi
7061
7062 # Cygwin:
7063 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7064 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7065 if test "${ac_cv_search_shmget+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   ac_func_search_save_LIBS=$LIBS
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075
7076 /* Override any GCC internal prototype to avoid an error.
7077    Use char because int might match the return type of a GCC
7078    builtin and then its argument prototype would still apply.  */
7079 #ifdef __cplusplus
7080 extern "C"
7081 #endif
7082 char shmget ();
7083 int
7084 main ()
7085 {
7086 return shmget ();
7087   ;
7088   return 0;
7089 }
7090 _ACEOF
7091 for ac_lib in '' cygipc; do
7092   if test -z "$ac_lib"; then
7093     ac_res="none required"
7094   else
7095     ac_res=-l$ac_lib
7096     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7097   fi
7098   rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (ac_try="$ac_link"
7100 case "(($ac_try" in
7101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102   *) ac_try_echo=$ac_try;;
7103 esac
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105   (eval "$ac_link") 2>conftest.er1
7106   ac_status=$?
7107   grep -v '^ *+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
7109   cat conftest.err >&5
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } && {
7112          test -z "$ac_c_werror_flag" ||
7113          test ! -s conftest.err
7114        } && test -s conftest$ac_exeext &&
7115        $as_test_x conftest$ac_exeext; then
7116   ac_cv_search_shmget=$ac_res
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121
7122 fi
7123
7124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7125       conftest$ac_exeext
7126   if test "${ac_cv_search_shmget+set}" = set; then
7127   break
7128 fi
7129 done
7130 if test "${ac_cv_search_shmget+set}" = set; then
7131   :
7132 else
7133   ac_cv_search_shmget=no
7134 fi
7135 rm conftest.$ac_ext
7136 LIBS=$ac_func_search_save_LIBS
7137 fi
7138 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7139 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7140 ac_res=$ac_cv_search_shmget
7141 if test "$ac_res" != no; then
7142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7143
7144 fi
7145
7146
7147 if test "$with_readline" = yes; then
7148
7149
7150 if test "${pgac_cv_check_readline+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   pgac_cv_check_readline=no
7154 pgac_save_LIBS=$LIBS
7155 if test x"$with_libedit_preferred" != x"yes"
7156 then    READLINE_ORDER="-lreadline -ledit"
7157 else    READLINE_ORDER="-ledit -lreadline"
7158 fi
7159 for pgac_rllib in $READLINE_ORDER ; do
7160   { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7161 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7162   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7163     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7164     cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 /* Override any GCC internal prototype to avoid an error.
7172    Use char because int might match the return type of a GCC
7173    builtin and then its argument prototype would still apply.  */
7174 #ifdef __cplusplus
7175 extern "C"
7176 #endif
7177 char readline ();
7178 int
7179 main ()
7180 {
7181 return readline ();
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193   (eval "$ac_link") 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } && {
7200          test -z "$ac_c_werror_flag" ||
7201          test ! -s conftest.err
7202        } && test -s conftest$ac_exeext &&
7203        $as_test_x conftest$ac_exeext; then
7204
7205       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7206       # recognize dependent libraries; assume curses is needed if we didn't
7207       # find any dependency.
7208       case $host_os in
7209         netbsd* | openbsd* | irix*)
7210           if test x"$pgac_lib" = x"" ; then
7211             pgac_lib=" -lcurses"
7212           fi ;;
7213       esac
7214
7215       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7216       break
7217
7218 else
7219   echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222
7223 fi
7224
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226       conftest$ac_exeext conftest.$ac_ext
7227   done
7228   if test "$pgac_cv_check_readline" != no ; then
7229     { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7230 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7231     break
7232   else
7233     { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235   fi
7236 done
7237 LIBS=$pgac_save_LIBS
7238
7239 fi
7240
7241 if test "$pgac_cv_check_readline" != no ; then
7242   LIBS="$pgac_cv_check_readline $LIBS"
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_LIBREADLINE 1
7246 _ACEOF
7247
7248 fi
7249
7250
7251   if test x"$pgac_cv_check_readline" = x"no"; then
7252     { { echo "$as_me:$LINENO: error: readline library not found
7253 If you have readline already installed, see config.log for details on the
7254 failure.  It is possible the compiler isn't looking in the proper directory.
7255 Use --without-readline to disable readline support." >&5
7256 echo "$as_me: error: readline library not found
7257 If you have readline already installed, see config.log for details on the
7258 failure.  It is possible the compiler isn't looking in the proper directory.
7259 Use --without-readline to disable readline support." >&2;}
7260    { (exit 1); exit 1; }; }
7261   fi
7262 fi
7263
7264 if test "$with_zlib" = yes; then
7265
7266 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7267 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7268 if test "${ac_cv_lib_z_inflate+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lz  $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h.  */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h.  */
7279
7280 /* Override any GCC internal prototype to avoid an error.
7281    Use char because int might match the return type of a GCC
7282    builtin and then its argument prototype would still apply.  */
7283 #ifdef __cplusplus
7284 extern "C"
7285 #endif
7286 char inflate ();
7287 int
7288 main ()
7289 {
7290 return inflate ();
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (ac_try="$ac_link"
7297 case "(($ac_try" in
7298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299   *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302   (eval "$ac_link") 2>conftest.er1
7303   ac_status=$?
7304   grep -v '^ *+' conftest.er1 >conftest.err
7305   rm -f conftest.er1
7306   cat conftest.err >&5
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } && {
7309          test -z "$ac_c_werror_flag" ||
7310          test ! -s conftest.err
7311        } && test -s conftest$ac_exeext &&
7312        $as_test_x conftest$ac_exeext; then
7313   ac_cv_lib_z_inflate=yes
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318         ac_cv_lib_z_inflate=no
7319 fi
7320
7321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7322       conftest$ac_exeext conftest.$ac_ext
7323 LIBS=$ac_check_lib_save_LIBS
7324 fi
7325 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7326 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7327 if test $ac_cv_lib_z_inflate = yes; then
7328   cat >>confdefs.h <<_ACEOF
7329 #define HAVE_LIBZ 1
7330 _ACEOF
7331
7332   LIBS="-lz $LIBS"
7333
7334 else
7335   { { echo "$as_me:$LINENO: error: zlib library not found
7336 If you have zlib already installed, see config.log for details on the
7337 failure.  It is possible the compiler isn't looking in the proper directory.
7338 Use --without-zlib to disable zlib support." >&5
7339 echo "$as_me: error: zlib library not found
7340 If you have zlib already installed, see config.log for details on the
7341 failure.  It is possible the compiler isn't looking in the proper directory.
7342 Use --without-zlib to disable zlib support." >&2;}
7343    { (exit 1); exit 1; }; }
7344 fi
7345
7346 fi
7347
7348 if test "$enable_spinlocks" = yes; then
7349
7350 cat >>confdefs.h <<\_ACEOF
7351 #define HAVE_SPINLOCKS 1
7352 _ACEOF
7353
7354 else
7355   { echo "$as_me:$LINENO: WARNING:
7356 *** Not using spinlocks will cause poor performance." >&5
7357 echo "$as_me: WARNING:
7358 *** Not using spinlocks will cause poor performance." >&2;}
7359 fi
7360
7361 if test "$with_gssapi" = yes ; then
7362   if test "$PORTNAME" != "win32"; then
7363     { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7364 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7365 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   ac_func_search_save_LIBS=$LIBS
7369 cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h.  */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h.  */
7375
7376 /* Override any GCC internal prototype to avoid an error.
7377    Use char because int might match the return type of a GCC
7378    builtin and then its argument prototype would still apply.  */
7379 #ifdef __cplusplus
7380 extern "C"
7381 #endif
7382 char gss_init_sec_context ();
7383 int
7384 main ()
7385 {
7386 return gss_init_sec_context ();
7387   ;
7388   return 0;
7389 }
7390 _ACEOF
7391 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7392   if test -z "$ac_lib"; then
7393     ac_res="none required"
7394   else
7395     ac_res=-l$ac_lib
7396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7397   fi
7398   rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7400 case "(($ac_try" in
7401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402   *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405   (eval "$ac_link") 2>conftest.er1
7406   ac_status=$?
7407   grep -v '^ *+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } && {
7412          test -z "$ac_c_werror_flag" ||
7413          test ! -s conftest.err
7414        } && test -s conftest$ac_exeext &&
7415        $as_test_x conftest$ac_exeext; then
7416   ac_cv_search_gss_init_sec_context=$ac_res
7417 else
7418   echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421
7422 fi
7423
7424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7425       conftest$ac_exeext
7426   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7427   break
7428 fi
7429 done
7430 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7431   :
7432 else
7433   ac_cv_search_gss_init_sec_context=no
7434 fi
7435 rm conftest.$ac_ext
7436 LIBS=$ac_func_search_save_LIBS
7437 fi
7438 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7439 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7440 ac_res=$ac_cv_search_gss_init_sec_context
7441 if test "$ac_res" != no; then
7442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7443
7444 else
7445   { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7446 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7447    { (exit 1); exit 1; }; }
7448 fi
7449
7450   else
7451     LIBS="$LIBS -lgssapi32"
7452   fi
7453 fi
7454
7455 if test "$with_krb5" = yes ; then
7456   if test "$PORTNAME" != "win32"; then
7457      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7458 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7459 if test "${ac_cv_search_com_err+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   ac_func_search_save_LIBS=$LIBS
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h.  */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h.  */
7469
7470 /* Override any GCC internal prototype to avoid an error.
7471    Use char because int might match the return type of a GCC
7472    builtin and then its argument prototype would still apply.  */
7473 #ifdef __cplusplus
7474 extern "C"
7475 #endif
7476 char com_err ();
7477 int
7478 main ()
7479 {
7480 return com_err ();
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7486   if test -z "$ac_lib"; then
7487     ac_res="none required"
7488   else
7489     ac_res=-l$ac_lib
7490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7491   fi
7492   rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (ac_try="$ac_link"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499   (eval "$ac_link") 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } && {
7506          test -z "$ac_c_werror_flag" ||
7507          test ! -s conftest.err
7508        } && test -s conftest$ac_exeext &&
7509        $as_test_x conftest$ac_exeext; then
7510   ac_cv_search_com_err=$ac_res
7511 else
7512   echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7514
7515
7516 fi
7517
7518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7519       conftest$ac_exeext
7520   if test "${ac_cv_search_com_err+set}" = set; then
7521   break
7522 fi
7523 done
7524 if test "${ac_cv_search_com_err+set}" = set; then
7525   :
7526 else
7527   ac_cv_search_com_err=no
7528 fi
7529 rm conftest.$ac_ext
7530 LIBS=$ac_func_search_save_LIBS
7531 fi
7532 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7533 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7534 ac_res=$ac_cv_search_com_err
7535 if test "$ac_res" != no; then
7536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7537
7538 else
7539   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7540 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7541    { (exit 1); exit 1; }; }
7542 fi
7543
7544      { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7545 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7546 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   ac_func_search_save_LIBS=$LIBS
7550 cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556
7557 /* Override any GCC internal prototype to avoid an error.
7558    Use char because int might match the return type of a GCC
7559    builtin and then its argument prototype would still apply.  */
7560 #ifdef __cplusplus
7561 extern "C"
7562 #endif
7563 char krb5_sendauth ();
7564 int
7565 main ()
7566 {
7567 return krb5_sendauth ();
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7573   if test -z "$ac_lib"; then
7574     ac_res="none required"
7575   else
7576     ac_res=-l$ac_lib
7577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7578   fi
7579   rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (ac_try="$ac_link"
7581 case "(($ac_try" in
7582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583   *) ac_try_echo=$ac_try;;
7584 esac
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586   (eval "$ac_link") 2>conftest.er1
7587   ac_status=$?
7588   grep -v '^ *+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } && {
7593          test -z "$ac_c_werror_flag" ||
7594          test ! -s conftest.err
7595        } && test -s conftest$ac_exeext &&
7596        $as_test_x conftest$ac_exeext; then
7597   ac_cv_search_krb5_sendauth=$ac_res
7598 else
7599   echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602
7603 fi
7604
7605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7606       conftest$ac_exeext
7607   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7608   break
7609 fi
7610 done
7611 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7612   :
7613 else
7614   ac_cv_search_krb5_sendauth=no
7615 fi
7616 rm conftest.$ac_ext
7617 LIBS=$ac_func_search_save_LIBS
7618 fi
7619 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7620 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7621 ac_res=$ac_cv_search_krb5_sendauth
7622 if test "$ac_res" != no; then
7623   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7624
7625 else
7626   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7627 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7628    { (exit 1); exit 1; }; }
7629 fi
7630
7631   else
7632      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7633 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7634 if test "${ac_cv_search_com_err+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   ac_func_search_save_LIBS=$LIBS
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644
7645 /* Override any GCC internal prototype to avoid an error.
7646    Use char because int might match the return type of a GCC
7647    builtin and then its argument prototype would still apply.  */
7648 #ifdef __cplusplus
7649 extern "C"
7650 #endif
7651 char com_err ();
7652 int
7653 main ()
7654 {
7655 return com_err ();
7656   ;
7657   return 0;
7658 }
7659 _ACEOF
7660 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7661   if test -z "$ac_lib"; then
7662     ac_res="none required"
7663   else
7664     ac_res=-l$ac_lib
7665     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7666   fi
7667   rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7669 case "(($ac_try" in
7670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671   *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674   (eval "$ac_link") 2>conftest.er1
7675   ac_status=$?
7676   grep -v '^ *+' conftest.er1 >conftest.err
7677   rm -f conftest.er1
7678   cat conftest.err >&5
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); } && {
7681          test -z "$ac_c_werror_flag" ||
7682          test ! -s conftest.err
7683        } && test -s conftest$ac_exeext &&
7684        $as_test_x conftest$ac_exeext; then
7685   ac_cv_search_com_err=$ac_res
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690
7691 fi
7692
7693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694       conftest$ac_exeext
7695   if test "${ac_cv_search_com_err+set}" = set; then
7696   break
7697 fi
7698 done
7699 if test "${ac_cv_search_com_err+set}" = set; then
7700   :
7701 else
7702   ac_cv_search_com_err=no
7703 fi
7704 rm conftest.$ac_ext
7705 LIBS=$ac_func_search_save_LIBS
7706 fi
7707 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7708 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7709 ac_res=$ac_cv_search_com_err
7710 if test "$ac_res" != no; then
7711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7712
7713 else
7714   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7715 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7716    { (exit 1); exit 1; }; }
7717 fi
7718
7719   fi
7720 fi
7721
7722 if test "$with_openssl" = yes ; then
7723     if test "$PORTNAME" != "win32"; then
7724
7725 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7726 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7727 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lcrypto  $LIBS"
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738
7739 /* Override any GCC internal prototype to avoid an error.
7740    Use char because int might match the return type of a GCC
7741    builtin and then its argument prototype would still apply.  */
7742 #ifdef __cplusplus
7743 extern "C"
7744 #endif
7745 char CRYPTO_new_ex_data ();
7746 int
7747 main ()
7748 {
7749 return CRYPTO_new_ex_data ();
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7756 case "(($ac_try" in
7757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758   *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761   (eval "$ac_link") 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } && {
7768          test -z "$ac_c_werror_flag" ||
7769          test ! -s conftest.err
7770        } && test -s conftest$ac_exeext &&
7771        $as_test_x conftest$ac_exeext; then
7772   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7773 else
7774   echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7776
7777         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7781       conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7783 fi
7784 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7785 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7786 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7787   cat >>confdefs.h <<_ACEOF
7788 #define HAVE_LIBCRYPTO 1
7789 _ACEOF
7790
7791   LIBS="-lcrypto $LIBS"
7792
7793 else
7794   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7795 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7796    { (exit 1); exit 1; }; }
7797 fi
7798
7799
7800 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7801 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7802 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   ac_check_lib_save_LIBS=$LIBS
7806 LIBS="-lssl  $LIBS"
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813
7814 /* Override any GCC internal prototype to avoid an error.
7815    Use char because int might match the return type of a GCC
7816    builtin and then its argument prototype would still apply.  */
7817 #ifdef __cplusplus
7818 extern "C"
7819 #endif
7820 char SSL_library_init ();
7821 int
7822 main ()
7823 {
7824 return SSL_library_init ();
7825   ;
7826   return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7831 case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_link") 2>conftest.er1
7837   ac_status=$?
7838   grep -v '^ *+' conftest.er1 >conftest.err
7839   rm -f conftest.er1
7840   cat conftest.err >&5
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); } && {
7843          test -z "$ac_c_werror_flag" ||
7844          test ! -s conftest.err
7845        } && test -s conftest$ac_exeext &&
7846        $as_test_x conftest$ac_exeext; then
7847   ac_cv_lib_ssl_SSL_library_init=yes
7848 else
7849   echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852         ac_cv_lib_ssl_SSL_library_init=no
7853 fi
7854
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856       conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7858 fi
7859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7860 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7861 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7862   cat >>confdefs.h <<_ACEOF
7863 #define HAVE_LIBSSL 1
7864 _ACEOF
7865
7866   LIBS="-lssl $LIBS"
7867
7868 else
7869   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7870 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7871    { (exit 1); exit 1; }; }
7872 fi
7873
7874   else
7875
7876 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7877 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7878 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   ac_check_lib_save_LIBS=$LIBS
7882 LIBS="-leay32  $LIBS"
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h.  */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h.  */
7889
7890 /* Override any GCC internal prototype to avoid an error.
7891    Use char because int might match the return type of a GCC
7892    builtin and then its argument prototype would still apply.  */
7893 #ifdef __cplusplus
7894 extern "C"
7895 #endif
7896 char CRYPTO_new_ex_data ();
7897 int
7898 main ()
7899 {
7900 return CRYPTO_new_ex_data ();
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (ac_try="$ac_link"
7907 case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_link") 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } && {
7919          test -z "$ac_c_werror_flag" ||
7920          test ! -s conftest.err
7921        } && test -s conftest$ac_exeext &&
7922        $as_test_x conftest$ac_exeext; then
7923   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932       conftest$ac_exeext conftest.$ac_ext
7933 LIBS=$ac_check_lib_save_LIBS
7934 fi
7935 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7936 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7937 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7938   cat >>confdefs.h <<_ACEOF
7939 #define HAVE_LIBEAY32 1
7940 _ACEOF
7941
7942   LIBS="-leay32 $LIBS"
7943
7944 else
7945   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7946 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7947    { (exit 1); exit 1; }; }
7948 fi
7949
7950
7951 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7952 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7953 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   ac_check_lib_save_LIBS=$LIBS
7957 LIBS="-lssleay32  $LIBS"
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 /* Override any GCC internal prototype to avoid an error.
7966    Use char because int might match the return type of a GCC
7967    builtin and then its argument prototype would still apply.  */
7968 #ifdef __cplusplus
7969 extern "C"
7970 #endif
7971 char SSL_library_init ();
7972 int
7973 main ()
7974 {
7975 return SSL_library_init ();
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (ac_try="$ac_link"
7982 case "(($ac_try" in
7983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984   *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987   (eval "$ac_link") 2>conftest.er1
7988   ac_status=$?
7989   grep -v '^ *+' conftest.er1 >conftest.err
7990   rm -f conftest.er1
7991   cat conftest.err >&5
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); } && {
7994          test -z "$ac_c_werror_flag" ||
7995          test ! -s conftest.err
7996        } && test -s conftest$ac_exeext &&
7997        $as_test_x conftest$ac_exeext; then
7998   ac_cv_lib_ssleay32_SSL_library_init=yes
7999 else
8000   echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003         ac_cv_lib_ssleay32_SSL_library_init=no
8004 fi
8005
8006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8007       conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8009 fi
8010 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8011 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8012 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8013   cat >>confdefs.h <<_ACEOF
8014 #define HAVE_LIBSSLEAY32 1
8015 _ACEOF
8016
8017   LIBS="-lssleay32 $LIBS"
8018
8019 else
8020   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8021 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8022    { (exit 1); exit 1; }; }
8023 fi
8024
8025   fi
8026 fi
8027
8028 if test "$with_pam" = yes ; then
8029
8030 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8031 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8032 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lpam  $LIBS"
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 /* Override any GCC internal prototype to avoid an error.
8045    Use char because int might match the return type of a GCC
8046    builtin and then its argument prototype would still apply.  */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 char pam_start ();
8051 int
8052 main ()
8053 {
8054 return pam_start ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (ac_try="$ac_link"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_link") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest$ac_exeext &&
8076        $as_test_x conftest$ac_exeext; then
8077   ac_cv_lib_pam_pam_start=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082         ac_cv_lib_pam_pam_start=no
8083 fi
8084
8085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8086       conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8088 fi
8089 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8090 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8091 if test $ac_cv_lib_pam_pam_start = yes; then
8092   cat >>confdefs.h <<_ACEOF
8093 #define HAVE_LIBPAM 1
8094 _ACEOF
8095
8096   LIBS="-lpam $LIBS"
8097
8098 else
8099   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8100 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8101    { (exit 1); exit 1; }; }
8102 fi
8103
8104 fi
8105
8106 if test "$with_libxml" = yes ; then
8107
8108 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8109 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8110 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   ac_check_lib_save_LIBS=$LIBS
8114 LIBS="-lxml2  $LIBS"
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121
8122 /* Override any GCC internal prototype to avoid an error.
8123    Use char because int might match the return type of a GCC
8124    builtin and then its argument prototype would still apply.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 #endif
8128 char xmlSaveToBuffer ();
8129 int
8130 main ()
8131 {
8132 return xmlSaveToBuffer ();
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 rm -f conftest.$ac_objext conftest$ac_exeext
8138 if { (ac_try="$ac_link"
8139 case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_link") 2>conftest.er1
8145   ac_status=$?
8146   grep -v '^ *+' conftest.er1 >conftest.err
8147   rm -f conftest.er1
8148   cat conftest.err >&5
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } && {
8151          test -z "$ac_c_werror_flag" ||
8152          test ! -s conftest.err
8153        } && test -s conftest$ac_exeext &&
8154        $as_test_x conftest$ac_exeext; then
8155   ac_cv_lib_xml2_xmlSaveToBuffer=yes
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160         ac_cv_lib_xml2_xmlSaveToBuffer=no
8161 fi
8162
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164       conftest$ac_exeext conftest.$ac_ext
8165 LIBS=$ac_check_lib_save_LIBS
8166 fi
8167 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8168 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8169 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8170   cat >>confdefs.h <<_ACEOF
8171 #define HAVE_LIBXML2 1
8172 _ACEOF
8173
8174   LIBS="-lxml2 $LIBS"
8175
8176 else
8177   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8178 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8179    { (exit 1); exit 1; }; }
8180 fi
8181
8182 fi
8183
8184 if test "$with_libxslt" = yes ; then
8185
8186 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8187 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8188 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8189   echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191   ac_check_lib_save_LIBS=$LIBS
8192 LIBS="-lxslt  $LIBS"
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199
8200 /* Override any GCC internal prototype to avoid an error.
8201    Use char because int might match the return type of a GCC
8202    builtin and then its argument prototype would still apply.  */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 char xsltCleanupGlobals ();
8207 int
8208 main ()
8209 {
8210 return xsltCleanupGlobals ();
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (ac_try="$ac_link"
8217 case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_link") 2>conftest.er1
8223   ac_status=$?
8224   grep -v '^ *+' conftest.er1 >conftest.err
8225   rm -f conftest.er1
8226   cat conftest.err >&5
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); } && {
8229          test -z "$ac_c_werror_flag" ||
8230          test ! -s conftest.err
8231        } && test -s conftest$ac_exeext &&
8232        $as_test_x conftest$ac_exeext; then
8233   ac_cv_lib_xslt_xsltCleanupGlobals=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238         ac_cv_lib_xslt_xsltCleanupGlobals=no
8239 fi
8240
8241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242       conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8244 fi
8245 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8246 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8247 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8248   cat >>confdefs.h <<_ACEOF
8249 #define HAVE_LIBXSLT 1
8250 _ACEOF
8251
8252   LIBS="-lxslt $LIBS"
8253
8254 else
8255   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8256 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8257    { (exit 1); exit 1; }; }
8258 fi
8259
8260 fi
8261
8262 # for contrib/uuid-ossp
8263 if test "$with_ossp_uuid" = yes ; then
8264   { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8265 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8266 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   ac_check_lib_save_LIBS=$LIBS
8270 LIBS="-lossp-uuid  $LIBS"
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 /* Override any GCC internal prototype to avoid an error.
8279    Use char because int might match the return type of a GCC
8280    builtin and then its argument prototype would still apply.  */
8281 #ifdef __cplusplus
8282 extern "C"
8283 #endif
8284 char uuid_export ();
8285 int
8286 main ()
8287 {
8288 return uuid_export ();
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8295 case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_link") 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } && {
8307          test -z "$ac_c_werror_flag" ||
8308          test ! -s conftest.err
8309        } && test -s conftest$ac_exeext &&
8310        $as_test_x conftest$ac_exeext; then
8311   ac_cv_lib_ossp_uuid_uuid_export=yes
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316         ac_cv_lib_ossp_uuid_uuid_export=no
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8320       conftest$ac_exeext conftest.$ac_ext
8321 LIBS=$ac_check_lib_save_LIBS
8322 fi
8323 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8324 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8325 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8326   OSSP_UUID_LIBS="-lossp-uuid"
8327 else
8328   { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8329 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8330 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   ac_check_lib_save_LIBS=$LIBS
8334 LIBS="-luuid  $LIBS"
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341
8342 /* Override any GCC internal prototype to avoid an error.
8343    Use char because int might match the return type of a GCC
8344    builtin and then its argument prototype would still apply.  */
8345 #ifdef __cplusplus
8346 extern "C"
8347 #endif
8348 char uuid_export ();
8349 int
8350 main ()
8351 {
8352 return uuid_export ();
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8359 case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_link") 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } && {
8371          test -z "$ac_c_werror_flag" ||
8372          test ! -s conftest.err
8373        } && test -s conftest$ac_exeext &&
8374        $as_test_x conftest$ac_exeext; then
8375   ac_cv_lib_uuid_uuid_export=yes
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380         ac_cv_lib_uuid_uuid_export=no
8381 fi
8382
8383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8384       conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8388 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8389 if test $ac_cv_lib_uuid_uuid_export = yes; then
8390   OSSP_UUID_LIBS="-luuid"
8391 else
8392   { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8393 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8394    { (exit 1); exit 1; }; }
8395 fi
8396
8397 fi
8398
8399 fi
8400
8401
8402
8403 ##
8404 ## Header files
8405 ##
8406
8407 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8409 if test "${ac_cv_header_stdc+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418 #include <stdlib.h>
8419 #include <stdarg.h>
8420 #include <string.h>
8421 #include <float.h>
8422
8423 int
8424 main ()
8425 {
8426
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } && {
8445          test -z "$ac_c_werror_flag" ||
8446          test ! -s conftest.err
8447        } && test -s conftest.$ac_objext; then
8448   ac_cv_header_stdc=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453         ac_cv_header_stdc=no
8454 fi
8455
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457
8458 if test $ac_cv_header_stdc = yes; then
8459   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8460   cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466 #include <string.h>
8467
8468 _ACEOF
8469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8470   $EGREP "memchr" >/dev/null 2>&1; then
8471   :
8472 else
8473   ac_cv_header_stdc=no
8474 fi
8475 rm -f conftest*
8476
8477 fi
8478
8479 if test $ac_cv_header_stdc = yes; then
8480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8481   cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 #include <stdlib.h>
8488
8489 _ACEOF
8490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8491   $EGREP "free" >/dev/null 2>&1; then
8492   :
8493 else
8494   ac_cv_header_stdc=no
8495 fi
8496 rm -f conftest*
8497
8498 fi
8499
8500 if test $ac_cv_header_stdc = yes; then
8501   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8502   if test "$cross_compiling" = yes; then
8503   :
8504 else
8505   cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h.  */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h.  */
8511 #include <ctype.h>
8512 #include <stdlib.h>
8513 #if ((' ' & 0x0FF) == 0x020)
8514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8516 #else
8517 # define ISLOWER(c) \
8518                    (('a' <= (c) && (c) <= 'i') \
8519                      || ('j' <= (c) && (c) <= 'r') \
8520                      || ('s' <= (c) && (c) <= 'z'))
8521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8522 #endif
8523
8524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8525 int
8526 main ()
8527 {
8528   int i;
8529   for (i = 0; i < 256; i++)
8530     if (XOR (islower (i), ISLOWER (i))
8531         || toupper (i) != TOUPPER (i))
8532       return 2;
8533   return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest$ac_exeext
8537 if { (ac_try="$ac_link"
8538 case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543   (eval "$ac_link") 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8547   { (case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_try") 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   :
8557 else
8558   echo "$as_me: program exited with status $ac_status" >&5
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ( exit $ac_status )
8563 ac_cv_header_stdc=no
8564 fi
8565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8566 fi
8567
8568
8569 fi
8570 fi
8571 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8572 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8573 if test $ac_cv_header_stdc = yes; then
8574
8575 cat >>confdefs.h <<\_ACEOF
8576 #define STDC_HEADERS 1
8577 _ACEOF
8578
8579 fi
8580
8581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8592                   inttypes.h stdint.h unistd.h
8593 do
8594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 $ac_includes_default
8607
8608 #include <$ac_header>
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_compile") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } && {
8624          test -z "$ac_c_werror_flag" ||
8625          test ! -s conftest.err
8626        } && test -s conftest.$ac_objext; then
8627   eval "$as_ac_Header=yes"
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         eval "$as_ac_Header=no"
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 ac_res=`eval echo '${'$as_ac_Header'}'`
8638                { echo "$as_me:$LINENO: result: $ac_res" >&5
8639 echo "${ECHO_T}$ac_res" >&6; }
8640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8641   cat >>confdefs.h <<_ACEOF
8642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8643 _ACEOF
8644
8645 fi
8646
8647 done
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676 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
8677 do
8678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 fi
8685 ac_res=`eval echo '${'$as_ac_Header'}'`
8686                { echo "$as_me:$LINENO: result: $ac_res" >&5
8687 echo "${ECHO_T}$ac_res" >&6; }
8688 else
8689   # Is the header compilable?
8690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698 $ac_includes_default
8699 #include <$ac_header>
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708   (eval "$ac_compile") 2>conftest.er1
8709   ac_status=$?
8710   grep -v '^ *+' conftest.er1 >conftest.err
8711   rm -f conftest.er1
8712   cat conftest.err >&5
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } && {
8715          test -z "$ac_c_werror_flag" ||
8716          test ! -s conftest.err
8717        } && test -s conftest.$ac_objext; then
8718   ac_header_compiler=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723         ac_header_compiler=no
8724 fi
8725
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728 echo "${ECHO_T}$ac_header_compiler" >&6; }
8729
8730 # Is the header present?
8731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 #include <$ac_header>
8740 _ACEOF
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } >/dev/null && {
8754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8755          test ! -s conftest.err
8756        }; then
8757   ac_header_preproc=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762   ac_header_preproc=no
8763 fi
8764
8765 rm -f conftest.err conftest.$ac_ext
8766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8767 echo "${ECHO_T}$ac_header_preproc" >&6; }
8768
8769 # So?  What about this header?
8770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8771   yes:no: )
8772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8776     ac_header_preproc=yes
8777     ;;
8778   no:yes:* )
8779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8791     ( cat <<\_ASBOX
8792 ## ---------------------------------------- ##
8793 ## Report this to pgsql-bugs@postgresql.org ##
8794 ## ---------------------------------------- ##
8795 _ASBOX
8796      ) | sed "s/^/$as_me: WARNING:     /" >&2
8797     ;;
8798 esac
8799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   eval "$as_ac_Header=\$ac_header_preproc"
8805 fi
8806 ac_res=`eval echo '${'$as_ac_Header'}'`
8807                { echo "$as_me:$LINENO: result: $ac_res" >&5
8808 echo "${ECHO_T}$ac_res" >&6; }
8809
8810 fi
8811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8812   cat >>confdefs.h <<_ACEOF
8813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814 _ACEOF
8815
8816 fi
8817
8818 done
8819
8820
8821 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8822 # netinet/in.h is included first.
8823
8824 for ac_header in netinet/in.h
8825 do
8826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8828   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 fi
8833 ac_res=`eval echo '${'$as_ac_Header'}'`
8834                { echo "$as_me:$LINENO: result: $ac_res" >&5
8835 echo "${ECHO_T}$ac_res" >&6; }
8836 else
8837   # Is the header compilable?
8838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 $ac_includes_default
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   ac_header_compiler=yes
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871         ac_header_compiler=no
8872 fi
8873
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876 echo "${ECHO_T}$ac_header_compiler" >&6; }
8877
8878 # Is the header present?
8879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8881 cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 #include <$ac_header>
8888 _ACEOF
8889 if { (ac_try="$ac_cpp conftest.$ac_ext"
8890 case "(($ac_try" in
8891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892   *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8896   ac_status=$?
8897   grep -v '^ *+' conftest.er1 >conftest.err
8898   rm -f conftest.er1
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } >/dev/null && {
8902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8903          test ! -s conftest.err
8904        }; then
8905   ac_header_preproc=yes
8906 else
8907   echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910   ac_header_preproc=no
8911 fi
8912
8913 rm -f conftest.err conftest.$ac_ext
8914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8915 echo "${ECHO_T}$ac_header_preproc" >&6; }
8916
8917 # So?  What about this header?
8918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8919   yes:no: )
8920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8924     ac_header_preproc=yes
8925     ;;
8926   no:yes:* )
8927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8939     ( cat <<\_ASBOX
8940 ## ---------------------------------------- ##
8941 ## Report this to pgsql-bugs@postgresql.org ##
8942 ## ---------------------------------------- ##
8943 _ASBOX
8944      ) | sed "s/^/$as_me: WARNING:     /" >&2
8945     ;;
8946 esac
8947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   eval "$as_ac_Header=\$ac_header_preproc"
8953 fi
8954 ac_res=`eval echo '${'$as_ac_Header'}'`
8955                { echo "$as_me:$LINENO: result: $ac_res" >&5
8956 echo "${ECHO_T}$ac_res" >&6; }
8957
8958 fi
8959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8960   cat >>confdefs.h <<_ACEOF
8961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8962 _ACEOF
8963
8964 fi
8965
8966 done
8967
8968
8969 for ac_header in netinet/tcp.h
8970 do
8971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977   cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983 $ac_includes_default
8984 #ifdef HAVE_NETINET_IN_H
8985 #include <netinet/in.h>
8986 #endif
8987
8988
8989 #include <$ac_header>
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8993 case "(($ac_try" in
8994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995   *) ac_try_echo=$ac_try;;
8996 esac
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998   (eval "$ac_compile") 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } && {
9005          test -z "$ac_c_werror_flag" ||
9006          test ! -s conftest.err
9007        } && test -s conftest.$ac_objext; then
9008   eval "$as_ac_Header=yes"
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013         eval "$as_ac_Header=no"
9014 fi
9015
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 fi
9018 ac_res=`eval echo '${'$as_ac_Header'}'`
9019                { echo "$as_me:$LINENO: result: $ac_res" >&5
9020 echo "${ECHO_T}$ac_res" >&6; }
9021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022   cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024 _ACEOF
9025
9026 fi
9027
9028 done
9029
9030
9031 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9032
9033 for ac_header in readline/readline.h
9034 do
9035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9037   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 fi
9042 ac_res=`eval echo '${'$as_ac_Header'}'`
9043                { echo "$as_me:$LINENO: result: $ac_res" >&5
9044 echo "${ECHO_T}$ac_res" >&6; }
9045 else
9046   # Is the header compilable?
9047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h.  */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h.  */
9055 $ac_includes_default
9056 #include <$ac_header>
9057 _ACEOF
9058 rm -f conftest.$ac_objext
9059 if { (ac_try="$ac_compile"
9060 case "(($ac_try" in
9061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062   *) ac_try_echo=$ac_try;;
9063 esac
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065   (eval "$ac_compile") 2>conftest.er1
9066   ac_status=$?
9067   grep -v '^ *+' conftest.er1 >conftest.err
9068   rm -f conftest.er1
9069   cat conftest.err >&5
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } && {
9072          test -z "$ac_c_werror_flag" ||
9073          test ! -s conftest.err
9074        } && test -s conftest.$ac_objext; then
9075   ac_header_compiler=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080         ac_header_compiler=no
9081 fi
9082
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9085 echo "${ECHO_T}$ac_header_compiler" >&6; }
9086
9087 # Is the header present?
9088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096 #include <$ac_header>
9097 _ACEOF
9098 if { (ac_try="$ac_cpp conftest.$ac_ext"
9099 case "(($ac_try" in
9100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101   *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9105   ac_status=$?
9106   grep -v '^ *+' conftest.er1 >conftest.err
9107   rm -f conftest.er1
9108   cat conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } >/dev/null && {
9111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9112          test ! -s conftest.err
9113        }; then
9114   ac_header_preproc=yes
9115 else
9116   echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119   ac_header_preproc=no
9120 fi
9121
9122 rm -f conftest.err conftest.$ac_ext
9123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9124 echo "${ECHO_T}$ac_header_preproc" >&6; }
9125
9126 # So?  What about this header?
9127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9128   yes:no: )
9129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9133     ac_header_preproc=yes
9134     ;;
9135   no:yes:* )
9136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9148     ( cat <<\_ASBOX
9149 ## ---------------------------------------- ##
9150 ## Report this to pgsql-bugs@postgresql.org ##
9151 ## ---------------------------------------- ##
9152 _ASBOX
9153      ) | sed "s/^/$as_me: WARNING:     /" >&2
9154     ;;
9155 esac
9156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161   eval "$as_ac_Header=\$ac_header_preproc"
9162 fi
9163 ac_res=`eval echo '${'$as_ac_Header'}'`
9164                { echo "$as_me:$LINENO: result: $ac_res" >&5
9165 echo "${ECHO_T}$ac_res" >&6; }
9166
9167 fi
9168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9169   cat >>confdefs.h <<_ACEOF
9170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9171 _ACEOF
9172
9173 else
9174
9175 for ac_header in readline.h
9176 do
9177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 fi
9184 ac_res=`eval echo '${'$as_ac_Header'}'`
9185                { echo "$as_me:$LINENO: result: $ac_res" >&5
9186 echo "${ECHO_T}$ac_res" >&6; }
9187 else
9188   # Is the header compilable?
9189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 $ac_includes_default
9198 #include <$ac_header>
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9202 case "(($ac_try" in
9203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204   *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207   (eval "$ac_compile") 2>conftest.er1
9208   ac_status=$?
9209   grep -v '^ *+' conftest.er1 >conftest.err
9210   rm -f conftest.er1
9211   cat conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } && {
9214          test -z "$ac_c_werror_flag" ||
9215          test ! -s conftest.err
9216        } && test -s conftest.$ac_objext; then
9217   ac_header_compiler=yes
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222         ac_header_compiler=no
9223 fi
9224
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9227 echo "${ECHO_T}$ac_header_compiler" >&6; }
9228
9229 # Is the header present?
9230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 #include <$ac_header>
9239 _ACEOF
9240 if { (ac_try="$ac_cpp conftest.$ac_ext"
9241 case "(($ac_try" in
9242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243   *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } >/dev/null && {
9253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9254          test ! -s conftest.err
9255        }; then
9256   ac_header_preproc=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261   ac_header_preproc=no
9262 fi
9263
9264 rm -f conftest.err conftest.$ac_ext
9265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9266 echo "${ECHO_T}$ac_header_preproc" >&6; }
9267
9268 # So?  What about this header?
9269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9270   yes:no: )
9271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9275     ac_header_preproc=yes
9276     ;;
9277   no:yes:* )
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9290     ( cat <<\_ASBOX
9291 ## ---------------------------------------- ##
9292 ## Report this to pgsql-bugs@postgresql.org ##
9293 ## ---------------------------------------- ##
9294 _ASBOX
9295      ) | sed "s/^/$as_me: WARNING:     /" >&2
9296     ;;
9297 esac
9298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303   eval "$as_ac_Header=\$ac_header_preproc"
9304 fi
9305 ac_res=`eval echo '${'$as_ac_Header'}'`
9306                { echo "$as_me:$LINENO: result: $ac_res" >&5
9307 echo "${ECHO_T}$ac_res" >&6; }
9308
9309 fi
9310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9311   cat >>confdefs.h <<_ACEOF
9312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9313 _ACEOF
9314
9315 else
9316   { { echo "$as_me:$LINENO: error: readline header not found
9317 If you have readline already installed, see config.log for details on the
9318 failure.  It is possible the compiler isn't looking in the proper directory.
9319 Use --without-readline to disable readline support." >&5
9320 echo "$as_me: error: readline header not found
9321 If you have readline already installed, see config.log for details on the
9322 failure.  It is possible the compiler isn't looking in the proper directory.
9323 Use --without-readline to disable readline support." >&2;}
9324    { (exit 1); exit 1; }; }
9325 fi
9326
9327 done
9328
9329 fi
9330
9331 done
9332
9333
9334 for ac_header in readline/history.h
9335 do
9336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9338   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 fi
9343 ac_res=`eval echo '${'$as_ac_Header'}'`
9344                { echo "$as_me:$LINENO: result: $ac_res" >&5
9345 echo "${ECHO_T}$ac_res" >&6; }
9346 else
9347   # Is the header compilable?
9348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356 $ac_includes_default
9357 #include <$ac_header>
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363   *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366   (eval "$ac_compile") 2>conftest.er1
9367   ac_status=$?
9368   grep -v '^ *+' conftest.er1 >conftest.err
9369   rm -f conftest.er1
9370   cat conftest.err >&5
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } && {
9373          test -z "$ac_c_werror_flag" ||
9374          test ! -s conftest.err
9375        } && test -s conftest.$ac_objext; then
9376   ac_header_compiler=yes
9377 else
9378   echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381         ac_header_compiler=no
9382 fi
9383
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9386 echo "${ECHO_T}$ac_header_compiler" >&6; }
9387
9388 # Is the header present?
9389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397 #include <$ac_header>
9398 _ACEOF
9399 if { (ac_try="$ac_cpp conftest.$ac_ext"
9400 case "(($ac_try" in
9401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402   *) ac_try_echo=$ac_try;;
9403 esac
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9406   ac_status=$?
9407   grep -v '^ *+' conftest.er1 >conftest.err
9408   rm -f conftest.er1
9409   cat conftest.err >&5
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); } >/dev/null && {
9412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9413          test ! -s conftest.err
9414        }; then
9415   ac_header_preproc=yes
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420   ac_header_preproc=no
9421 fi
9422
9423 rm -f conftest.err conftest.$ac_ext
9424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9425 echo "${ECHO_T}$ac_header_preproc" >&6; }
9426
9427 # So?  What about this header?
9428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9429   yes:no: )
9430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9434     ac_header_preproc=yes
9435     ;;
9436   no:yes:* )
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9449     ( cat <<\_ASBOX
9450 ## ---------------------------------------- ##
9451 ## Report this to pgsql-bugs@postgresql.org ##
9452 ## ---------------------------------------- ##
9453 _ASBOX
9454      ) | sed "s/^/$as_me: WARNING:     /" >&2
9455     ;;
9456 esac
9457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   eval "$as_ac_Header=\$ac_header_preproc"
9463 fi
9464 ac_res=`eval echo '${'$as_ac_Header'}'`
9465                { echo "$as_me:$LINENO: result: $ac_res" >&5
9466 echo "${ECHO_T}$ac_res" >&6; }
9467
9468 fi
9469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9470   cat >>confdefs.h <<_ACEOF
9471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 _ACEOF
9473
9474 else
9475
9476 for ac_header in history.h
9477 do
9478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9480   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 fi
9485 ac_res=`eval echo '${'$as_ac_Header'}'`
9486                { echo "$as_me:$LINENO: result: $ac_res" >&5
9487 echo "${ECHO_T}$ac_res" >&6; }
9488 else
9489   # Is the header compilable?
9490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498 $ac_includes_default
9499 #include <$ac_header>
9500 _ACEOF
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9503 case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_compile") 2>conftest.er1
9509   ac_status=$?
9510   grep -v '^ *+' conftest.er1 >conftest.err
9511   rm -f conftest.er1
9512   cat conftest.err >&5
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } && {
9515          test -z "$ac_c_werror_flag" ||
9516          test ! -s conftest.err
9517        } && test -s conftest.$ac_objext; then
9518   ac_header_compiler=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523         ac_header_compiler=no
9524 fi
9525
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9528 echo "${ECHO_T}$ac_header_compiler" >&6; }
9529
9530 # Is the header present?
9531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 #include <$ac_header>
9540 _ACEOF
9541 if { (ac_try="$ac_cpp conftest.$ac_ext"
9542 case "(($ac_try" in
9543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544   *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9548   ac_status=$?
9549   grep -v '^ *+' conftest.er1 >conftest.err
9550   rm -f conftest.er1
9551   cat conftest.err >&5
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } >/dev/null && {
9554          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9555          test ! -s conftest.err
9556        }; then
9557   ac_header_preproc=yes
9558 else
9559   echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562   ac_header_preproc=no
9563 fi
9564
9565 rm -f conftest.err conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9567 echo "${ECHO_T}$ac_header_preproc" >&6; }
9568
9569 # So?  What about this header?
9570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9571   yes:no: )
9572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9576     ac_header_preproc=yes
9577     ;;
9578   no:yes:* )
9579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9591     ( cat <<\_ASBOX
9592 ## ---------------------------------------- ##
9593 ## Report this to pgsql-bugs@postgresql.org ##
9594 ## ---------------------------------------- ##
9595 _ASBOX
9596      ) | sed "s/^/$as_me: WARNING:     /" >&2
9597     ;;
9598 esac
9599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602   echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604   eval "$as_ac_Header=\$ac_header_preproc"
9605 fi
9606 ac_res=`eval echo '${'$as_ac_Header'}'`
9607                { echo "$as_me:$LINENO: result: $ac_res" >&5
9608 echo "${ECHO_T}$ac_res" >&6; }
9609
9610 fi
9611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9612   cat >>confdefs.h <<_ACEOF
9613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9614 _ACEOF
9615
9616 else
9617   { { echo "$as_me:$LINENO: error: history header not found
9618 If you have readline already installed, see config.log for details on the
9619 failure.  It is possible the compiler isn't looking in the proper directory.
9620 Use --without-readline to disable readline support." >&5
9621 echo "$as_me: error: history header not found
9622 If you have readline already installed, see config.log for details on the
9623 failure.  It is possible the compiler isn't looking in the proper directory.
9624 Use --without-readline to disable readline support." >&2;}
9625    { (exit 1); exit 1; }; }
9626 fi
9627
9628 done
9629
9630 fi
9631
9632 done
9633
9634 fi
9635
9636 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9637 # Some installations of libedit usurp /usr/include/readline/, which seems
9638 # bad practice, since in combined installations readline will have its headers
9639 # there.  We might have to resort to AC_EGREP checks to make sure we found
9640 # the proper header...
9641
9642 for ac_header in editline/readline.h
9643 do
9644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 fi
9651 ac_res=`eval echo '${'$as_ac_Header'}'`
9652                { echo "$as_me:$LINENO: result: $ac_res" >&5
9653 echo "${ECHO_T}$ac_res" >&6; }
9654 else
9655   # Is the header compilable?
9656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664 $ac_includes_default
9665 #include <$ac_header>
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9669 case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_compile") 2>conftest.er1
9675   ac_status=$?
9676   grep -v '^ *+' conftest.er1 >conftest.err
9677   rm -f conftest.er1
9678   cat conftest.err >&5
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } && {
9681          test -z "$ac_c_werror_flag" ||
9682          test ! -s conftest.err
9683        } && test -s conftest.$ac_objext; then
9684   ac_header_compiler=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689         ac_header_compiler=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9694 echo "${ECHO_T}$ac_header_compiler" >&6; }
9695
9696 # Is the header present?
9697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 #include <$ac_header>
9706 _ACEOF
9707 if { (ac_try="$ac_cpp conftest.$ac_ext"
9708 case "(($ac_try" in
9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710   *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } >/dev/null && {
9720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9721          test ! -s conftest.err
9722        }; then
9723   ac_header_preproc=yes
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728   ac_header_preproc=no
9729 fi
9730
9731 rm -f conftest.err conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733 echo "${ECHO_T}$ac_header_preproc" >&6; }
9734
9735 # So?  What about this header?
9736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737   yes:no: )
9738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9742     ac_header_preproc=yes
9743     ;;
9744   no:yes:* )
9745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9757     ( cat <<\_ASBOX
9758 ## ---------------------------------------- ##
9759 ## Report this to pgsql-bugs@postgresql.org ##
9760 ## ---------------------------------------- ##
9761 _ASBOX
9762      ) | sed "s/^/$as_me: WARNING:     /" >&2
9763     ;;
9764 esac
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   eval "$as_ac_Header=\$ac_header_preproc"
9771 fi
9772 ac_res=`eval echo '${'$as_ac_Header'}'`
9773                { echo "$as_me:$LINENO: result: $ac_res" >&5
9774 echo "${ECHO_T}$ac_res" >&6; }
9775
9776 fi
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778   cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9780 _ACEOF
9781
9782 else
9783
9784 for ac_header in readline.h
9785 do
9786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 fi
9793 ac_res=`eval echo '${'$as_ac_Header'}'`
9794                { echo "$as_me:$LINENO: result: $ac_res" >&5
9795 echo "${ECHO_T}$ac_res" >&6; }
9796 else
9797   # Is the header compilable?
9798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9800 cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h.  */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h.  */
9806 $ac_includes_default
9807 #include <$ac_header>
9808 _ACEOF
9809 rm -f conftest.$ac_objext
9810 if { (ac_try="$ac_compile"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_compile") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } && {
9823          test -z "$ac_c_werror_flag" ||
9824          test ! -s conftest.err
9825        } && test -s conftest.$ac_objext; then
9826   ac_header_compiler=yes
9827 else
9828   echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831         ac_header_compiler=no
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9836 echo "${ECHO_T}$ac_header_compiler" >&6; }
9837
9838 # Is the header present?
9839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847 #include <$ac_header>
9848 _ACEOF
9849 if { (ac_try="$ac_cpp conftest.$ac_ext"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } >/dev/null && {
9862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9863          test ! -s conftest.err
9864        }; then
9865   ac_header_preproc=yes
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870   ac_header_preproc=no
9871 fi
9872
9873 rm -f conftest.err conftest.$ac_ext
9874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9875 echo "${ECHO_T}$ac_header_preproc" >&6; }
9876
9877 # So?  What about this header?
9878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9879   yes:no: )
9880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9884     ac_header_preproc=yes
9885     ;;
9886   no:yes:* )
9887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9899     ( cat <<\_ASBOX
9900 ## ---------------------------------------- ##
9901 ## Report this to pgsql-bugs@postgresql.org ##
9902 ## ---------------------------------------- ##
9903 _ASBOX
9904      ) | sed "s/^/$as_me: WARNING:     /" >&2
9905     ;;
9906 esac
9907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   eval "$as_ac_Header=\$ac_header_preproc"
9913 fi
9914 ac_res=`eval echo '${'$as_ac_Header'}'`
9915                { echo "$as_me:$LINENO: result: $ac_res" >&5
9916 echo "${ECHO_T}$ac_res" >&6; }
9917
9918 fi
9919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9920   cat >>confdefs.h <<_ACEOF
9921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9922 _ACEOF
9923
9924 else
9925
9926 for ac_header in readline/readline.h
9927 do
9928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 fi
9935 ac_res=`eval echo '${'$as_ac_Header'}'`
9936                { echo "$as_me:$LINENO: result: $ac_res" >&5
9937 echo "${ECHO_T}$ac_res" >&6; }
9938 else
9939   # Is the header compilable?
9940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948 $ac_includes_default
9949 #include <$ac_header>
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_compile") 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } && {
9965          test -z "$ac_c_werror_flag" ||
9966          test ! -s conftest.err
9967        } && test -s conftest.$ac_objext; then
9968   ac_header_compiler=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         ac_header_compiler=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9978 echo "${ECHO_T}$ac_header_compiler" >&6; }
9979
9980 # Is the header present?
9981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989 #include <$ac_header>
9990 _ACEOF
9991 if { (ac_try="$ac_cpp conftest.$ac_ext"
9992 case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } >/dev/null && {
10004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10005          test ! -s conftest.err
10006        }; then
10007   ac_header_preproc=yes
10008 else
10009   echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10011
10012   ac_header_preproc=no
10013 fi
10014
10015 rm -f conftest.err conftest.$ac_ext
10016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10017 echo "${ECHO_T}$ac_header_preproc" >&6; }
10018
10019 # So?  What about this header?
10020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10021   yes:no: )
10022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10026     ac_header_preproc=yes
10027     ;;
10028   no:yes:* )
10029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10041     ( cat <<\_ASBOX
10042 ## ---------------------------------------- ##
10043 ## Report this to pgsql-bugs@postgresql.org ##
10044 ## ---------------------------------------- ##
10045 _ASBOX
10046      ) | sed "s/^/$as_me: WARNING:     /" >&2
10047     ;;
10048 esac
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052   echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054   eval "$as_ac_Header=\$ac_header_preproc"
10055 fi
10056 ac_res=`eval echo '${'$as_ac_Header'}'`
10057                { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059
10060 fi
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062   cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10064 _ACEOF
10065
10066 else
10067   { { echo "$as_me:$LINENO: error: readline header not found
10068 If you have libedit already installed, see config.log for details on the
10069 failure.  It is possible the compiler isn't looking in the proper directory.
10070 Use --without-readline to disable libedit support." >&5
10071 echo "$as_me: error: readline header not found
10072 If you have libedit already installed, see config.log for details on the
10073 failure.  It is possible the compiler isn't looking in the proper directory.
10074 Use --without-readline to disable libedit support." >&2;}
10075    { (exit 1); exit 1; }; }
10076 fi
10077
10078 done
10079
10080 fi
10081
10082 done
10083
10084 fi
10085
10086 done
10087
10088 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10089 # not be there at all.  Hence, don't complain if not found.  We must check
10090 # though, since in yet other versions it is an independent header.
10091
10092 for ac_header in editline/history.h
10093 do
10094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 fi
10101 ac_res=`eval echo '${'$as_ac_Header'}'`
10102                { echo "$as_me:$LINENO: result: $ac_res" >&5
10103 echo "${ECHO_T}$ac_res" >&6; }
10104 else
10105   # Is the header compilable?
10106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114 $ac_includes_default
10115 #include <$ac_header>
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (ac_try="$ac_compile"
10119 case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124   (eval "$ac_compile") 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } && {
10131          test -z "$ac_c_werror_flag" ||
10132          test ! -s conftest.err
10133        } && test -s conftest.$ac_objext; then
10134   ac_header_compiler=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139         ac_header_compiler=no
10140 fi
10141
10142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10144 echo "${ECHO_T}$ac_header_compiler" >&6; }
10145
10146 # Is the header present?
10147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155 #include <$ac_header>
10156 _ACEOF
10157 if { (ac_try="$ac_cpp conftest.$ac_ext"
10158 case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10164   ac_status=$?
10165   grep -v '^ *+' conftest.er1 >conftest.err
10166   rm -f conftest.er1
10167   cat conftest.err >&5
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } >/dev/null && {
10170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10171          test ! -s conftest.err
10172        }; then
10173   ac_header_preproc=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178   ac_header_preproc=no
10179 fi
10180
10181 rm -f conftest.err conftest.$ac_ext
10182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10183 echo "${ECHO_T}$ac_header_preproc" >&6; }
10184
10185 # So?  What about this header?
10186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10187   yes:no: )
10188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10192     ac_header_preproc=yes
10193     ;;
10194   no:yes:* )
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10207     ( cat <<\_ASBOX
10208 ## ---------------------------------------- ##
10209 ## Report this to pgsql-bugs@postgresql.org ##
10210 ## ---------------------------------------- ##
10211 _ASBOX
10212      ) | sed "s/^/$as_me: WARNING:     /" >&2
10213     ;;
10214 esac
10215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   eval "$as_ac_Header=\$ac_header_preproc"
10221 fi
10222 ac_res=`eval echo '${'$as_ac_Header'}'`
10223                { echo "$as_me:$LINENO: result: $ac_res" >&5
10224 echo "${ECHO_T}$ac_res" >&6; }
10225
10226 fi
10227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10228   cat >>confdefs.h <<_ACEOF
10229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10230 _ACEOF
10231
10232 else
10233
10234 for ac_header in history.h
10235 do
10236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10238   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 fi
10243 ac_res=`eval echo '${'$as_ac_Header'}'`
10244                { echo "$as_me:$LINENO: result: $ac_res" >&5
10245 echo "${ECHO_T}$ac_res" >&6; }
10246 else
10247   # Is the header compilable?
10248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 $ac_includes_default
10257 #include <$ac_header>
10258 _ACEOF
10259 rm -f conftest.$ac_objext
10260 if { (ac_try="$ac_compile"
10261 case "(($ac_try" in
10262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263   *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266   (eval "$ac_compile") 2>conftest.er1
10267   ac_status=$?
10268   grep -v '^ *+' conftest.er1 >conftest.err
10269   rm -f conftest.er1
10270   cat conftest.err >&5
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); } && {
10273          test -z "$ac_c_werror_flag" ||
10274          test ! -s conftest.err
10275        } && test -s conftest.$ac_objext; then
10276   ac_header_compiler=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281         ac_header_compiler=no
10282 fi
10283
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286 echo "${ECHO_T}$ac_header_compiler" >&6; }
10287
10288 # Is the header present?
10289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 #include <$ac_header>
10298 _ACEOF
10299 if { (ac_try="$ac_cpp conftest.$ac_ext"
10300 case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } >/dev/null && {
10312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10313          test ! -s conftest.err
10314        }; then
10315   ac_header_preproc=yes
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320   ac_header_preproc=no
10321 fi
10322
10323 rm -f conftest.err conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10325 echo "${ECHO_T}$ac_header_preproc" >&6; }
10326
10327 # So?  What about this header?
10328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10329   yes:no: )
10330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10334     ac_header_preproc=yes
10335     ;;
10336   no:yes:* )
10337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10349     ( cat <<\_ASBOX
10350 ## ---------------------------------------- ##
10351 ## Report this to pgsql-bugs@postgresql.org ##
10352 ## ---------------------------------------- ##
10353 _ASBOX
10354      ) | sed "s/^/$as_me: WARNING:     /" >&2
10355     ;;
10356 esac
10357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   eval "$as_ac_Header=\$ac_header_preproc"
10363 fi
10364 ac_res=`eval echo '${'$as_ac_Header'}'`
10365                { echo "$as_me:$LINENO: result: $ac_res" >&5
10366 echo "${ECHO_T}$ac_res" >&6; }
10367
10368 fi
10369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10370   cat >>confdefs.h <<_ACEOF
10371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10372 _ACEOF
10373
10374 else
10375
10376 for ac_header in readline/history.h
10377 do
10378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 fi
10385 ac_res=`eval echo '${'$as_ac_Header'}'`
10386                { echo "$as_me:$LINENO: result: $ac_res" >&5
10387 echo "${ECHO_T}$ac_res" >&6; }
10388 else
10389   # Is the header compilable?
10390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 $ac_includes_default
10399 #include <$ac_header>
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408   (eval "$ac_compile") 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } && {
10415          test -z "$ac_c_werror_flag" ||
10416          test ! -s conftest.err
10417        } && test -s conftest.$ac_objext; then
10418   ac_header_compiler=yes
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423         ac_header_compiler=no
10424 fi
10425
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10428 echo "${ECHO_T}$ac_header_compiler" >&6; }
10429
10430 # Is the header present?
10431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439 #include <$ac_header>
10440 _ACEOF
10441 if { (ac_try="$ac_cpp conftest.$ac_ext"
10442 case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10448   ac_status=$?
10449   grep -v '^ *+' conftest.er1 >conftest.err
10450   rm -f conftest.er1
10451   cat conftest.err >&5
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } >/dev/null && {
10454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10455          test ! -s conftest.err
10456        }; then
10457   ac_header_preproc=yes
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462   ac_header_preproc=no
10463 fi
10464
10465 rm -f conftest.err conftest.$ac_ext
10466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10467 echo "${ECHO_T}$ac_header_preproc" >&6; }
10468
10469 # So?  What about this header?
10470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10471   yes:no: )
10472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10476     ac_header_preproc=yes
10477     ;;
10478   no:yes:* )
10479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10491     ( cat <<\_ASBOX
10492 ## ---------------------------------------- ##
10493 ## Report this to pgsql-bugs@postgresql.org ##
10494 ## ---------------------------------------- ##
10495 _ASBOX
10496      ) | sed "s/^/$as_me: WARNING:     /" >&2
10497     ;;
10498 esac
10499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   eval "$as_ac_Header=\$ac_header_preproc"
10505 fi
10506 ac_res=`eval echo '${'$as_ac_Header'}'`
10507                { echo "$as_me:$LINENO: result: $ac_res" >&5
10508 echo "${ECHO_T}$ac_res" >&6; }
10509
10510 fi
10511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10512   cat >>confdefs.h <<_ACEOF
10513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10514 _ACEOF
10515
10516 fi
10517
10518 done
10519
10520 fi
10521
10522 done
10523
10524 fi
10525
10526 done
10527
10528 fi
10529
10530 if test "$with_zlib" = yes; then
10531   if test "${ac_cv_header_zlib_h+set}" = set; then
10532   { echo "$as_me:$LINENO: checking for zlib.h" >&5
10533 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10534 if test "${ac_cv_header_zlib_h+set}" = set; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 fi
10537 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10538 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10539 else
10540   # Is the header compilable?
10541 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10542 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h.  */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h.  */
10549 $ac_includes_default
10550 #include <zlib.h>
10551 _ACEOF
10552 rm -f conftest.$ac_objext
10553 if { (ac_try="$ac_compile"
10554 case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_compile") 2>conftest.er1
10560   ac_status=$?
10561   grep -v '^ *+' conftest.er1 >conftest.err
10562   rm -f conftest.er1
10563   cat conftest.err >&5
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } && {
10566          test -z "$ac_c_werror_flag" ||
10567          test ! -s conftest.err
10568        } && test -s conftest.$ac_objext; then
10569   ac_header_compiler=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574         ac_header_compiler=no
10575 fi
10576
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6; }
10580
10581 # Is the header present?
10582 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10583 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <zlib.h>
10591 _ACEOF
10592 if { (ac_try="$ac_cpp conftest.$ac_ext"
10593 case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10599   ac_status=$?
10600   grep -v '^ *+' conftest.er1 >conftest.err
10601   rm -f conftest.er1
10602   cat conftest.err >&5
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } >/dev/null && {
10605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10606          test ! -s conftest.err
10607        }; then
10608   ac_header_preproc=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613   ac_header_preproc=no
10614 fi
10615
10616 rm -f conftest.err conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10618 echo "${ECHO_T}$ac_header_preproc" >&6; }
10619
10620 # So?  What about this header?
10621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10622   yes:no: )
10623     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10624 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10626 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10627     ac_header_preproc=yes
10628     ;;
10629   no:yes:* )
10630     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10631 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
10633 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
10634     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10635 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10636     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
10637 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10638     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10639 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10641 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10642     ( cat <<\_ASBOX
10643 ## ---------------------------------------- ##
10644 ## Report this to pgsql-bugs@postgresql.org ##
10645 ## ---------------------------------------- ##
10646 _ASBOX
10647      ) | sed "s/^/$as_me: WARNING:     /" >&2
10648     ;;
10649 esac
10650 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10651 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10652 if test "${ac_cv_header_zlib_h+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   ac_cv_header_zlib_h=$ac_header_preproc
10656 fi
10657 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10659
10660 fi
10661 if test $ac_cv_header_zlib_h = yes; then
10662   :
10663 else
10664   { { echo "$as_me:$LINENO: error: zlib header not found
10665 If you have zlib already installed, see config.log for details on the
10666 failure.  It is possible the compiler isn't looking in the proper directory.
10667 Use --without-zlib to disable zlib support." >&5
10668 echo "$as_me: error: zlib header not found
10669 If you have zlib already installed, see config.log for details on the
10670 failure.  It is possible the compiler isn't looking in the proper directory.
10671 Use --without-zlib to disable zlib support." >&2;}
10672    { (exit 1); exit 1; }; }
10673 fi
10674
10675
10676 fi
10677
10678 if test "$with_gssapi" = yes ; then
10679
10680 for ac_header in gssapi/gssapi.h
10681 do
10682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 fi
10689 ac_res=`eval echo '${'$as_ac_Header'}'`
10690                { echo "$as_me:$LINENO: result: $ac_res" >&5
10691 echo "${ECHO_T}$ac_res" >&6; }
10692 else
10693   # Is the header compilable?
10694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 $ac_includes_default
10703 #include <$ac_header>
10704 _ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_compile") 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } && {
10719          test -z "$ac_c_werror_flag" ||
10720          test ! -s conftest.err
10721        } && test -s conftest.$ac_objext; then
10722   ac_header_compiler=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_header_compiler=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 echo "${ECHO_T}$ac_header_compiler" >&6; }
10733
10734 # Is the header present?
10735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #include <$ac_header>
10744 _ACEOF
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752   ac_status=$?
10753   grep -v '^ *+' conftest.er1 >conftest.err
10754   rm -f conftest.er1
10755   cat conftest.err >&5
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } >/dev/null && {
10758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10759          test ! -s conftest.err
10760        }; then
10761   ac_header_preproc=yes
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766   ac_header_preproc=no
10767 fi
10768
10769 rm -f conftest.err conftest.$ac_ext
10770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771 echo "${ECHO_T}$ac_header_preproc" >&6; }
10772
10773 # So?  What about this header?
10774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775   yes:no: )
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780     ac_header_preproc=yes
10781     ;;
10782   no:yes:* )
10783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795     ( cat <<\_ASBOX
10796 ## ---------------------------------------- ##
10797 ## Report this to pgsql-bugs@postgresql.org ##
10798 ## ---------------------------------------- ##
10799 _ASBOX
10800      ) | sed "s/^/$as_me: WARNING:     /" >&2
10801     ;;
10802 esac
10803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   eval "$as_ac_Header=\$ac_header_preproc"
10809 fi
10810 ac_res=`eval echo '${'$as_ac_Header'}'`
10811                { echo "$as_me:$LINENO: result: $ac_res" >&5
10812 echo "${ECHO_T}$ac_res" >&6; }
10813
10814 fi
10815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10816   cat >>confdefs.h <<_ACEOF
10817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818 _ACEOF
10819
10820 else
10821
10822 for ac_header in gssapi.h
10823 do
10824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 fi
10831 ac_res=`eval echo '${'$as_ac_Header'}'`
10832                { echo "$as_me:$LINENO: result: $ac_res" >&5
10833 echo "${ECHO_T}$ac_res" >&6; }
10834 else
10835   # Is the header compilable?
10836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 $ac_includes_default
10845 #include <$ac_header>
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_compile") 2>conftest.er1
10855   ac_status=$?
10856   grep -v '^ *+' conftest.er1 >conftest.err
10857   rm -f conftest.er1
10858   cat conftest.err >&5
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } && {
10861          test -z "$ac_c_werror_flag" ||
10862          test ! -s conftest.err
10863        } && test -s conftest.$ac_objext; then
10864   ac_header_compiler=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869         ac_header_compiler=no
10870 fi
10871
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10875
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #include <$ac_header>
10886 _ACEOF
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890   *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894   ac_status=$?
10895   grep -v '^ *+' conftest.er1 >conftest.err
10896   rm -f conftest.er1
10897   cat conftest.err >&5
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } >/dev/null && {
10900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10901          test ! -s conftest.err
10902        }; then
10903   ac_header_preproc=yes
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908   ac_header_preproc=no
10909 fi
10910
10911 rm -f conftest.err conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10913 echo "${ECHO_T}$ac_header_preproc" >&6; }
10914
10915 # So?  What about this header?
10916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10917   yes:no: )
10918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10922     ac_header_preproc=yes
10923     ;;
10924   no:yes:* )
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10937     ( cat <<\_ASBOX
10938 ## ---------------------------------------- ##
10939 ## Report this to pgsql-bugs@postgresql.org ##
10940 ## ---------------------------------------- ##
10941 _ASBOX
10942      ) | sed "s/^/$as_me: WARNING:     /" >&2
10943     ;;
10944 esac
10945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950   eval "$as_ac_Header=\$ac_header_preproc"
10951 fi
10952 ac_res=`eval echo '${'$as_ac_Header'}'`
10953                { echo "$as_me:$LINENO: result: $ac_res" >&5
10954 echo "${ECHO_T}$ac_res" >&6; }
10955
10956 fi
10957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10958   cat >>confdefs.h <<_ACEOF
10959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10960 _ACEOF
10961
10962 else
10963   { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10964 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10965    { (exit 1); exit 1; }; }
10966 fi
10967
10968 done
10969
10970 fi
10971
10972 done
10973
10974 fi
10975
10976 if test "$with_krb5" = yes ; then
10977   if test "${ac_cv_header_krb5_h+set}" = set; then
10978   { echo "$as_me:$LINENO: checking for krb5.h" >&5
10979 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10980 if test "${ac_cv_header_krb5_h+set}" = set; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 fi
10983 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10984 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10985 else
10986   # Is the header compilable?
10987 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10988 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h.  */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h.  */
10995 $ac_includes_default
10996 #include <krb5.h>
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_compile") 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } && {
11012          test -z "$ac_c_werror_flag" ||
11013          test ! -s conftest.err
11014        } && test -s conftest.$ac_objext; then
11015   ac_header_compiler=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020         ac_header_compiler=no
11021 fi
11022
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11025 echo "${ECHO_T}$ac_header_compiler" >&6; }
11026
11027 # Is the header present?
11028 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11029 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <krb5.h>
11037 _ACEOF
11038 if { (ac_try="$ac_cpp conftest.$ac_ext"
11039 case "(($ac_try" in
11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041   *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } >/dev/null && {
11051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11052          test ! -s conftest.err
11053        }; then
11054   ac_header_preproc=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059   ac_header_preproc=no
11060 fi
11061
11062 rm -f conftest.err conftest.$ac_ext
11063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11064 echo "${ECHO_T}$ac_header_preproc" >&6; }
11065
11066 # So?  What about this header?
11067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11068   yes:no: )
11069     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11070 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11071     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11072 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11073     ac_header_preproc=yes
11074     ;;
11075   no:yes:* )
11076     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11077 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
11079 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
11080     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11081 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
11083 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11084     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11085 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11086     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11087 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11088     ( cat <<\_ASBOX
11089 ## ---------------------------------------- ##
11090 ## Report this to pgsql-bugs@postgresql.org ##
11091 ## ---------------------------------------- ##
11092 _ASBOX
11093      ) | sed "s/^/$as_me: WARNING:     /" >&2
11094     ;;
11095 esac
11096 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11097 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11098 if test "${ac_cv_header_krb5_h+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   ac_cv_header_krb5_h=$ac_header_preproc
11102 fi
11103 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11104 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11105
11106 fi
11107 if test $ac_cv_header_krb5_h = yes; then
11108   :
11109 else
11110   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11111 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11112    { (exit 1); exit 1; }; }
11113 fi
11114
11115
11116 fi
11117
11118 if test "$with_openssl" = yes ; then
11119   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11120   { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11121 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11122 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 fi
11125 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11126 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11127 else
11128   # Is the header compilable?
11129 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11130 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 $ac_includes_default
11138 #include <openssl/ssl.h>
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_compile") 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } && {
11154          test -z "$ac_c_werror_flag" ||
11155          test ! -s conftest.err
11156        } && test -s conftest.$ac_objext; then
11157   ac_header_compiler=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162         ac_header_compiler=no
11163 fi
11164
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11167 echo "${ECHO_T}$ac_header_compiler" >&6; }
11168
11169 # Is the header present?
11170 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11171 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 #include <openssl/ssl.h>
11179 _ACEOF
11180 if { (ac_try="$ac_cpp conftest.$ac_ext"
11181 case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } >/dev/null && {
11193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11194          test ! -s conftest.err
11195        }; then
11196   ac_header_preproc=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ---------------------------------------- ##
11232 ## Report this to pgsql-bugs@postgresql.org ##
11233 ## ---------------------------------------- ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11239 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11240 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   ac_cv_header_openssl_ssl_h=$ac_header_preproc
11244 fi
11245 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11246 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11247
11248 fi
11249 if test $ac_cv_header_openssl_ssl_h = yes; then
11250   :
11251 else
11252   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11253 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11254    { (exit 1); exit 1; }; }
11255 fi
11256
11257
11258   if test "${ac_cv_header_openssl_err_h+set}" = set; then
11259   { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11260 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11261 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 fi
11264 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11265 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11266 else
11267   # Is the header compilable?
11268 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11269 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11270 cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 $ac_includes_default
11277 #include <openssl/err.h>
11278 _ACEOF
11279 rm -f conftest.$ac_objext
11280 if { (ac_try="$ac_compile"
11281 case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286   (eval "$ac_compile") 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && {
11293          test -z "$ac_c_werror_flag" ||
11294          test ! -s conftest.err
11295        } && test -s conftest.$ac_objext; then
11296   ac_header_compiler=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301         ac_header_compiler=no
11302 fi
11303
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 echo "${ECHO_T}$ac_header_compiler" >&6; }
11307
11308 # Is the header present?
11309 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11310 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 #include <openssl/err.h>
11318 _ACEOF
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322   *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } >/dev/null && {
11332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11333          test ! -s conftest.err
11334        }; then
11335   ac_header_preproc=yes
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340   ac_header_preproc=no
11341 fi
11342
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347 # So?  What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349   yes:no: )
11350     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11354     ac_header_preproc=yes
11355     ;;
11356   no:yes:* )
11357     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11365     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11367     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11369     ( cat <<\_ASBOX
11370 ## ---------------------------------------- ##
11371 ## Report this to pgsql-bugs@postgresql.org ##
11372 ## ---------------------------------------- ##
11373 _ASBOX
11374      ) | sed "s/^/$as_me: WARNING:     /" >&2
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11378 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11379 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   ac_cv_header_openssl_err_h=$ac_header_preproc
11383 fi
11384 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11385 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11386
11387 fi
11388 if test $ac_cv_header_openssl_err_h = yes; then
11389   :
11390 else
11391   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11392 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11393    { (exit 1); exit 1; }; }
11394 fi
11395
11396
11397
11398 for ac_func in ERR_set_mark
11399 do
11400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11414 #define $ac_func innocuous_$ac_func
11415
11416 /* System header to define __stub macros and hopefully few prototypes,
11417     which can conflict with char $ac_func (); below.
11418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419     <limits.h> exists even on freestanding compilers.  */
11420
11421 #ifdef __STDC__
11422 # include <limits.h>
11423 #else
11424 # include <assert.h>
11425 #endif
11426
11427 #undef $ac_func
11428
11429 /* Override any GCC internal prototype to avoid an error.
11430    Use char because int might match the return type of a GCC
11431    builtin and then its argument prototype would still apply.  */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char $ac_func ();
11436 /* The GNU C library defines this for functions which it implements
11437     to always fail with ENOSYS.  Some functions are actually named
11438     something starting with __ and the normal name is an alias.  */
11439 #if defined __stub_$ac_func || defined __stub___$ac_func
11440 choke me
11441 #endif
11442
11443 int
11444 main ()
11445 {
11446 return $ac_func ();
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455   *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458   (eval "$ac_link") 2>conftest.er1
11459   ac_status=$?
11460   grep -v '^ *+' conftest.er1 >conftest.err
11461   rm -f conftest.er1
11462   cat conftest.err >&5
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } && {
11465          test -z "$ac_c_werror_flag" ||
11466          test ! -s conftest.err
11467        } && test -s conftest$ac_exeext &&
11468        $as_test_x conftest$ac_exeext; then
11469   eval "$as_ac_var=yes"
11470 else
11471   echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474         eval "$as_ac_var=no"
11475 fi
11476
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478       conftest$ac_exeext conftest.$ac_ext
11479 fi
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481                { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484   cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 _ACEOF
11487
11488 fi
11489 done
11490
11491 fi
11492
11493 if test "$with_pam" = yes ; then
11494
11495 for ac_header in security/pam_appl.h
11496 do
11497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 fi
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505                { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507 else
11508   # Is the header compilable?
11509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 $ac_includes_default
11518 #include <$ac_header>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527   (eval "$ac_compile") 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } && {
11534          test -z "$ac_c_werror_flag" ||
11535          test ! -s conftest.err
11536        } && test -s conftest.$ac_objext; then
11537   ac_header_compiler=yes
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542         ac_header_compiler=no
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11547 echo "${ECHO_T}$ac_header_compiler" >&6; }
11548
11549 # Is the header present?
11550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h.  */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h.  */
11558 #include <$ac_header>
11559 _ACEOF
11560 if { (ac_try="$ac_cpp conftest.$ac_ext"
11561 case "(($ac_try" in
11562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563   *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11567   ac_status=$?
11568   grep -v '^ *+' conftest.er1 >conftest.err
11569   rm -f conftest.er1
11570   cat conftest.err >&5
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); } >/dev/null && {
11573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11574          test ! -s conftest.err
11575        }; then
11576   ac_header_preproc=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   ac_header_preproc=no
11582 fi
11583
11584 rm -f conftest.err conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 echo "${ECHO_T}$ac_header_preproc" >&6; }
11587
11588 # So?  What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590   yes:no: )
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595     ac_header_preproc=yes
11596     ;;
11597   no:yes:* )
11598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610     ( cat <<\_ASBOX
11611 ## ---------------------------------------- ##
11612 ## Report this to pgsql-bugs@postgresql.org ##
11613 ## ---------------------------------------- ##
11614 _ASBOX
11615      ) | sed "s/^/$as_me: WARNING:     /" >&2
11616     ;;
11617 esac
11618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   eval "$as_ac_Header=\$ac_header_preproc"
11624 fi
11625 ac_res=`eval echo '${'$as_ac_Header'}'`
11626                { echo "$as_me:$LINENO: result: $ac_res" >&5
11627 echo "${ECHO_T}$ac_res" >&6; }
11628
11629 fi
11630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11631   cat >>confdefs.h <<_ACEOF
11632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 _ACEOF
11634
11635 else
11636
11637 for ac_header in pam/pam_appl.h
11638 do
11639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 fi
11646 ac_res=`eval echo '${'$as_ac_Header'}'`
11647                { echo "$as_me:$LINENO: result: $ac_res" >&5
11648 echo "${ECHO_T}$ac_res" >&6; }
11649 else
11650   # Is the header compilable?
11651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 $ac_includes_default
11660 #include <$ac_header>
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_compile") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } && {
11676          test -z "$ac_c_werror_flag" ||
11677          test ! -s conftest.err
11678        } && test -s conftest.$ac_objext; then
11679   ac_header_compiler=yes
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684         ac_header_compiler=no
11685 fi
11686
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11689 echo "${ECHO_T}$ac_header_compiler" >&6; }
11690
11691 # Is the header present?
11692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700 #include <$ac_header>
11701 _ACEOF
11702 if { (ac_try="$ac_cpp conftest.$ac_ext"
11703 case "(($ac_try" in
11704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705   *) ac_try_echo=$ac_try;;
11706 esac
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } >/dev/null && {
11715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11716          test ! -s conftest.err
11717        }; then
11718   ac_header_preproc=yes
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723   ac_header_preproc=no
11724 fi
11725
11726 rm -f conftest.err conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11728 echo "${ECHO_T}$ac_header_preproc" >&6; }
11729
11730 # So?  What about this header?
11731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11732   yes:no: )
11733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11737     ac_header_preproc=yes
11738     ;;
11739   no:yes:* )
11740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11752     ( cat <<\_ASBOX
11753 ## ---------------------------------------- ##
11754 ## Report this to pgsql-bugs@postgresql.org ##
11755 ## ---------------------------------------- ##
11756 _ASBOX
11757      ) | sed "s/^/$as_me: WARNING:     /" >&2
11758     ;;
11759 esac
11760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   eval "$as_ac_Header=\$ac_header_preproc"
11766 fi
11767 ac_res=`eval echo '${'$as_ac_Header'}'`
11768                { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770
11771 fi
11772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11773   cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11775 _ACEOF
11776
11777 else
11778   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11779 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11780    { (exit 1); exit 1; }; }
11781 fi
11782
11783 done
11784
11785 fi
11786
11787 done
11788
11789 fi
11790
11791 if test "$with_libxml" = yes ; then
11792   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11793   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11794 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11795 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 fi
11798 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11799 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11800 else
11801   # Is the header compilable?
11802 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11803 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 $ac_includes_default
11811 #include <libxml/parser.h>
11812 _ACEOF
11813 rm -f conftest.$ac_objext
11814 if { (ac_try="$ac_compile"
11815 case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_compile") 2>conftest.er1
11821   ac_status=$?
11822   grep -v '^ *+' conftest.er1 >conftest.err
11823   rm -f conftest.er1
11824   cat conftest.err >&5
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } && {
11827          test -z "$ac_c_werror_flag" ||
11828          test ! -s conftest.err
11829        } && test -s conftest.$ac_objext; then
11830   ac_header_compiler=yes
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835         ac_header_compiler=no
11836 fi
11837
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840 echo "${ECHO_T}$ac_header_compiler" >&6; }
11841
11842 # Is the header present?
11843 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11844 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851 #include <libxml/parser.h>
11852 _ACEOF
11853 if { (ac_try="$ac_cpp conftest.$ac_ext"
11854 case "(($ac_try" in
11855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856   *) ac_try_echo=$ac_try;;
11857 esac
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11860   ac_status=$?
11861   grep -v '^ *+' conftest.er1 >conftest.err
11862   rm -f conftest.er1
11863   cat conftest.err >&5
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); } >/dev/null && {
11866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11867          test ! -s conftest.err
11868        }; then
11869   ac_header_preproc=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874   ac_header_preproc=no
11875 fi
11876
11877 rm -f conftest.err conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11879 echo "${ECHO_T}$ac_header_preproc" >&6; }
11880
11881 # So?  What about this header?
11882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11883   yes:no: )
11884     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11885 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11886     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11887 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11888     ac_header_preproc=yes
11889     ;;
11890   no:yes:* )
11891     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11892 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11893     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
11894 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
11895     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11896 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11897     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
11898 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11899     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11900 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11901     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11902 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11903     ( cat <<\_ASBOX
11904 ## ---------------------------------------- ##
11905 ## Report this to pgsql-bugs@postgresql.org ##
11906 ## ---------------------------------------- ##
11907 _ASBOX
11908      ) | sed "s/^/$as_me: WARNING:     /" >&2
11909     ;;
11910 esac
11911 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11912 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11913 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11914   echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916   ac_cv_header_libxml_parser_h=$ac_header_preproc
11917 fi
11918 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11919 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11920
11921 fi
11922 if test $ac_cv_header_libxml_parser_h = yes; then
11923   :
11924 else
11925   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11926 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11927    { (exit 1); exit 1; }; }
11928 fi
11929
11930
11931 fi
11932
11933 if test "$with_libxslt" = yes ; then
11934   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11935   { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11936 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11937 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11938   echo $ECHO_N "(cached) $ECHO_C" >&6
11939 fi
11940 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11941 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11942 else
11943   # Is the header compilable?
11944 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11945 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 $ac_includes_default
11953 #include <libxslt/xslt.h>
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_compile") 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } && {
11969          test -z "$ac_c_werror_flag" ||
11970          test ! -s conftest.err
11971        } && test -s conftest.$ac_objext; then
11972   ac_header_compiler=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977         ac_header_compiler=no
11978 fi
11979
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11982 echo "${ECHO_T}$ac_header_compiler" >&6; }
11983
11984 # Is the header present?
11985 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11986 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993 #include <libxslt/xslt.h>
11994 _ACEOF
11995 if { (ac_try="$ac_cpp conftest.$ac_ext"
11996 case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
12005   cat conftest.err >&5
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } >/dev/null && {
12008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12009          test ! -s conftest.err
12010        }; then
12011   ac_header_preproc=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016   ac_header_preproc=no
12017 fi
12018
12019 rm -f conftest.err conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 echo "${ECHO_T}$ac_header_preproc" >&6; }
12022
12023 # So?  What about this header?
12024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12025   yes:no: )
12026     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12027 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12029 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12030     ac_header_preproc=yes
12031     ;;
12032   no:yes:* )
12033     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12034 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12035     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
12036 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
12037     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12038 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12039     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
12040 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12041     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12042 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12043     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12044 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12045     ( cat <<\_ASBOX
12046 ## ---------------------------------------- ##
12047 ## Report this to pgsql-bugs@postgresql.org ##
12048 ## ---------------------------------------- ##
12049 _ASBOX
12050      ) | sed "s/^/$as_me: WARNING:     /" >&2
12051     ;;
12052 esac
12053 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12054 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12055 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12059 fi
12060 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12061 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12062
12063 fi
12064 if test $ac_cv_header_libxslt_xslt_h = yes; then
12065   :
12066 else
12067   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12068 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12069    { (exit 1); exit 1; }; }
12070 fi
12071
12072
12073 fi
12074
12075 if test "$with_ldap" = yes ; then
12076   if test "$PORTNAME" != "win32"; then
12077
12078 for ac_header in ldap.h
12079 do
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 fi
12087 ac_res=`eval echo '${'$as_ac_Header'}'`
12088                { echo "$as_me:$LINENO: result: $ac_res" >&5
12089 echo "${ECHO_T}$ac_res" >&6; }
12090 else
12091   # Is the header compilable?
12092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 $ac_includes_default
12101 #include <$ac_header>
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (ac_try="$ac_compile"
12105 case "(($ac_try" in
12106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107   *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110   (eval "$ac_compile") 2>conftest.er1
12111   ac_status=$?
12112   grep -v '^ *+' conftest.er1 >conftest.err
12113   rm -f conftest.er1
12114   cat conftest.err >&5
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } && {
12117          test -z "$ac_c_werror_flag" ||
12118          test ! -s conftest.err
12119        } && test -s conftest.$ac_objext; then
12120   ac_header_compiler=yes
12121 else
12122   echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125         ac_header_compiler=no
12126 fi
12127
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6; }
12131
12132 # Is the header present?
12133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141 #include <$ac_header>
12142 _ACEOF
12143 if { (ac_try="$ac_cpp conftest.$ac_ext"
12144 case "(($ac_try" in
12145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146   *) ac_try_echo=$ac_try;;
12147 esac
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12150   ac_status=$?
12151   grep -v '^ *+' conftest.er1 >conftest.err
12152   rm -f conftest.er1
12153   cat conftest.err >&5
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } >/dev/null && {
12156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12157          test ! -s conftest.err
12158        }; then
12159   ac_header_preproc=yes
12160 else
12161   echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164   ac_header_preproc=no
12165 fi
12166
12167 rm -f conftest.err conftest.$ac_ext
12168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12169 echo "${ECHO_T}$ac_header_preproc" >&6; }
12170
12171 # So?  What about this header?
12172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12173   yes:no: )
12174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12178     ac_header_preproc=yes
12179     ;;
12180   no:yes:* )
12181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12193     ( cat <<\_ASBOX
12194 ## ---------------------------------------- ##
12195 ## Report this to pgsql-bugs@postgresql.org ##
12196 ## ---------------------------------------- ##
12197 _ASBOX
12198      ) | sed "s/^/$as_me: WARNING:     /" >&2
12199     ;;
12200 esac
12201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206   eval "$as_ac_Header=\$ac_header_preproc"
12207 fi
12208 ac_res=`eval echo '${'$as_ac_Header'}'`
12209                { echo "$as_me:$LINENO: result: $ac_res" >&5
12210 echo "${ECHO_T}$ac_res" >&6; }
12211
12212 fi
12213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12214   cat >>confdefs.h <<_ACEOF
12215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12216 _ACEOF
12217
12218 else
12219   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12220 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12221    { (exit 1); exit 1; }; }
12222 fi
12223
12224 done
12225
12226   else
12227
12228 for ac_header in winldap.h
12229 do
12230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h.  */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h.  */
12242 $ac_includes_default
12243 #include <windows.h>
12244
12245
12246 #include <$ac_header>
12247 _ACEOF
12248 rm -f conftest.$ac_objext
12249 if { (ac_try="$ac_compile"
12250 case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255   (eval "$ac_compile") 2>conftest.er1
12256   ac_status=$?
12257   grep -v '^ *+' conftest.er1 >conftest.err
12258   rm -f conftest.er1
12259   cat conftest.err >&5
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } && {
12262          test -z "$ac_c_werror_flag" ||
12263          test ! -s conftest.err
12264        } && test -s conftest.$ac_objext; then
12265   eval "$as_ac_Header=yes"
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270         eval "$as_ac_Header=no"
12271 fi
12272
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 fi
12275 ac_res=`eval echo '${'$as_ac_Header'}'`
12276                { echo "$as_me:$LINENO: result: $ac_res" >&5
12277 echo "${ECHO_T}$ac_res" >&6; }
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 else
12284   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12285 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12286    { (exit 1); exit 1; }; }
12287 fi
12288
12289 done
12290
12291   fi
12292 fi
12293
12294 if test "$with_bonjour" = yes ; then
12295   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12296   { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12297 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12298 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 fi
12301 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12302 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12303 else
12304   # Is the header compilable?
12305 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12306 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313 $ac_includes_default
12314 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12315 _ACEOF
12316 rm -f conftest.$ac_objext
12317 if { (ac_try="$ac_compile"
12318 case "(($ac_try" in
12319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320   *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323   (eval "$ac_compile") 2>conftest.er1
12324   ac_status=$?
12325   grep -v '^ *+' conftest.er1 >conftest.err
12326   rm -f conftest.er1
12327   cat conftest.err >&5
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } && {
12330          test -z "$ac_c_werror_flag" ||
12331          test ! -s conftest.err
12332        } && test -s conftest.$ac_objext; then
12333   ac_header_compiler=yes
12334 else
12335   echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338         ac_header_compiler=no
12339 fi
12340
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343 echo "${ECHO_T}$ac_header_compiler" >&6; }
12344
12345 # Is the header present?
12346 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12347 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h.  */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h.  */
12354 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12355 _ACEOF
12356 if { (ac_try="$ac_cpp conftest.$ac_ext"
12357 case "(($ac_try" in
12358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359   *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } >/dev/null && {
12369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12370          test ! -s conftest.err
12371        }; then
12372   ac_header_preproc=yes
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377   ac_header_preproc=no
12378 fi
12379
12380 rm -f conftest.err conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382 echo "${ECHO_T}$ac_header_preproc" >&6; }
12383
12384 # So?  What about this header?
12385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12386   yes:no: )
12387     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12388 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12390 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12391     ac_header_preproc=yes
12392     ;;
12393   no:yes:* )
12394     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12395 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12396     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
12397 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
12398     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12399 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12400     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
12401 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12402     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12403 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12404     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12405 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12406     ( cat <<\_ASBOX
12407 ## ---------------------------------------- ##
12408 ## Report this to pgsql-bugs@postgresql.org ##
12409 ## ---------------------------------------- ##
12410 _ASBOX
12411      ) | sed "s/^/$as_me: WARNING:     /" >&2
12412     ;;
12413 esac
12414 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12415 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12416 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12417   echo $ECHO_N "(cached) $ECHO_C" >&6
12418 else
12419   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12420 fi
12421 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12422 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12423
12424 fi
12425 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12426   :
12427 else
12428   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12429 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12430    { (exit 1); exit 1; }; }
12431 fi
12432
12433
12434 fi
12435
12436 # for contrib/uuid-ossp
12437 if test "$with_ossp_uuid" = yes ; then
12438
12439 for ac_header in ossp/uuid.h
12440 do
12441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 fi
12448 ac_res=`eval echo '${'$as_ac_Header'}'`
12449                { echo "$as_me:$LINENO: result: $ac_res" >&5
12450 echo "${ECHO_T}$ac_res" >&6; }
12451 else
12452   # Is the header compilable?
12453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h.  */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h.  */
12461 $ac_includes_default
12462 #include <$ac_header>
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_compile") 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } && {
12478          test -z "$ac_c_werror_flag" ||
12479          test ! -s conftest.err
12480        } && test -s conftest.$ac_objext; then
12481   ac_header_compiler=yes
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486         ac_header_compiler=no
12487 fi
12488
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12491 echo "${ECHO_T}$ac_header_compiler" >&6; }
12492
12493 # Is the header present?
12494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502 #include <$ac_header>
12503 _ACEOF
12504 if { (ac_try="$ac_cpp conftest.$ac_ext"
12505 case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } >/dev/null && {
12517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12518          test ! -s conftest.err
12519        }; then
12520   ac_header_preproc=yes
12521 else
12522   echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12524
12525   ac_header_preproc=no
12526 fi
12527
12528 rm -f conftest.err conftest.$ac_ext
12529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12530 echo "${ECHO_T}$ac_header_preproc" >&6; }
12531
12532 # So?  What about this header?
12533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12534   yes:no: )
12535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12539     ac_header_preproc=yes
12540     ;;
12541   no:yes:* )
12542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12544     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12545 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12546     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12548     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12549 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12552     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12554     ( cat <<\_ASBOX
12555 ## ---------------------------------------- ##
12556 ## Report this to pgsql-bugs@postgresql.org ##
12557 ## ---------------------------------------- ##
12558 _ASBOX
12559      ) | sed "s/^/$as_me: WARNING:     /" >&2
12560     ;;
12561 esac
12562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567   eval "$as_ac_Header=\$ac_header_preproc"
12568 fi
12569 ac_res=`eval echo '${'$as_ac_Header'}'`
12570                { echo "$as_me:$LINENO: result: $ac_res" >&5
12571 echo "${ECHO_T}$ac_res" >&6; }
12572
12573 fi
12574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12575   cat >>confdefs.h <<_ACEOF
12576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12577 _ACEOF
12578
12579 else
12580
12581
12582 for ac_header in uuid.h
12583 do
12584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12586   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 fi
12591 ac_res=`eval echo '${'$as_ac_Header'}'`
12592                { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12594 else
12595   # Is the header compilable?
12596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604 $ac_includes_default
12605 #include <$ac_header>
12606 _ACEOF
12607 rm -f conftest.$ac_objext
12608 if { (ac_try="$ac_compile"
12609 case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_compile") 2>conftest.er1
12615   ac_status=$?
12616   grep -v '^ *+' conftest.er1 >conftest.err
12617   rm -f conftest.er1
12618   cat conftest.err >&5
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } && {
12621          test -z "$ac_c_werror_flag" ||
12622          test ! -s conftest.err
12623        } && test -s conftest.$ac_objext; then
12624   ac_header_compiler=yes
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629         ac_header_compiler=no
12630 fi
12631
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12634 echo "${ECHO_T}$ac_header_compiler" >&6; }
12635
12636 # Is the header present?
12637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645 #include <$ac_header>
12646 _ACEOF
12647 if { (ac_try="$ac_cpp conftest.$ac_ext"
12648 case "(($ac_try" in
12649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650   *) ac_try_echo=$ac_try;;
12651 esac
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } >/dev/null && {
12660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12661          test ! -s conftest.err
12662        }; then
12663   ac_header_preproc=yes
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668   ac_header_preproc=no
12669 fi
12670
12671 rm -f conftest.err conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6; }
12674
12675 # So?  What about this header?
12676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12677   yes:no: )
12678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12682     ac_header_preproc=yes
12683     ;;
12684   no:yes:* )
12685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12697     ( cat <<\_ASBOX
12698 ## ---------------------------------------- ##
12699 ## Report this to pgsql-bugs@postgresql.org ##
12700 ## ---------------------------------------- ##
12701 _ASBOX
12702      ) | sed "s/^/$as_me: WARNING:     /" >&2
12703     ;;
12704 esac
12705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   eval "$as_ac_Header=\$ac_header_preproc"
12711 fi
12712 ac_res=`eval echo '${'$as_ac_Header'}'`
12713                { echo "$as_me:$LINENO: result: $ac_res" >&5
12714 echo "${ECHO_T}$ac_res" >&6; }
12715
12716 fi
12717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12718   cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12720 _ACEOF
12721
12722 else
12723   { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12724 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12725    { (exit 1); exit 1; }; }
12726 fi
12727
12728 done
12729
12730 fi
12731
12732 done
12733
12734 fi
12735
12736
12737 ##
12738 ## Types, structures, compiler characteristics
12739 ##
12740
12741  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12743 if test "${ac_cv_c_bigendian+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   # See if sys/param.h defines the BYTE_ORDER macro.
12747 cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h.  */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h.  */
12753 #include <sys/types.h>
12754 #include <sys/param.h>
12755
12756 int
12757 main ()
12758 {
12759 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12760         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12761  bogus endian macros
12762 #endif
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775   (eval "$ac_compile") 2>conftest.er1
12776   ac_status=$?
12777   grep -v '^ *+' conftest.er1 >conftest.err
12778   rm -f conftest.er1
12779   cat conftest.err >&5
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); } && {
12782          test -z "$ac_c_werror_flag" ||
12783          test ! -s conftest.err
12784        } && test -s conftest.$ac_objext; then
12785   # It does; now see whether it defined to BIG_ENDIAN or not.
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792 #include <sys/types.h>
12793 #include <sys/param.h>
12794
12795 int
12796 main ()
12797 {
12798 #if BYTE_ORDER != BIG_ENDIAN
12799  not big endian
12800 #endif
12801
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 rm -f conftest.$ac_objext
12807 if { (ac_try="$ac_compile"
12808 case "(($ac_try" in
12809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810   *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813   (eval "$ac_compile") 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } && {
12820          test -z "$ac_c_werror_flag" ||
12821          test ! -s conftest.err
12822        } && test -s conftest.$ac_objext; then
12823   ac_cv_c_bigendian=yes
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828         ac_cv_c_bigendian=no
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836         # It does not; compile a test program.
12837 if test "$cross_compiling" = yes; then
12838   # try to guess the endianness by grepping values into an object file
12839   ac_cv_c_bigendian=unknown
12840   cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12847 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12849 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12850 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12852 int
12853 main ()
12854 {
12855  _ascii (); _ebcdic ();
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864   *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867   (eval "$ac_compile") 2>conftest.er1
12868   ac_status=$?
12869   grep -v '^ *+' conftest.er1 >conftest.err
12870   rm -f conftest.er1
12871   cat conftest.err >&5
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } && {
12874          test -z "$ac_c_werror_flag" ||
12875          test ! -s conftest.err
12876        } && test -s conftest.$ac_objext; then
12877   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12878   ac_cv_c_bigendian=yes
12879 fi
12880 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12881   if test "$ac_cv_c_bigendian" = unknown; then
12882     ac_cv_c_bigendian=no
12883   else
12884     # finding both strings is unlikely to happen, but who knows?
12885     ac_cv_c_bigendian=unknown
12886   fi
12887 fi
12888 else
12889   echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892
12893 fi
12894
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 else
12897   cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 $ac_includes_default
12904 int
12905 main ()
12906 {
12907
12908   /* Are we little or big endian?  From Harbison&Steele.  */
12909   union
12910   {
12911     long int l;
12912     char c[sizeof (long int)];
12913   } u;
12914   u.l = 1;
12915   return u.c[sizeof (long int) - 1] == 1;
12916
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 rm -f conftest$ac_exeext
12922 if { (ac_try="$ac_link"
12923 case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928   (eval "$ac_link") 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12932   { (case "(($ac_try" in
12933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934   *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937   (eval "$ac_try") 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; }; then
12941   ac_cv_c_bigendian=no
12942 else
12943   echo "$as_me: program exited with status $ac_status" >&5
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12946
12947 ( exit $ac_status )
12948 ac_cv_c_bigendian=yes
12949 fi
12950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12951 fi
12952
12953
12954 fi
12955
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 fi
12958 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12959 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12960 case $ac_cv_c_bigendian in
12961   yes)
12962
12963 cat >>confdefs.h <<\_ACEOF
12964 #define WORDS_BIGENDIAN 1
12965 _ACEOF
12966  ;;
12967   no)
12968      ;;
12969   *)
12970     { { echo "$as_me:$LINENO: error: unknown endianness
12971 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12972 echo "$as_me: error: unknown endianness
12973 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12974    { (exit 1); exit 1; }; } ;;
12975 esac
12976
12977 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12978 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12979 if test "${ac_cv_c_const+set}" = set; then
12980   echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982   cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988
12989 int
12990 main ()
12991 {
12992 /* FIXME: Include the comments suggested by Paul. */
12993 #ifndef __cplusplus
12994   /* Ultrix mips cc rejects this.  */
12995   typedef int charset[2];
12996   const charset cs;
12997   /* SunOS 4.1.1 cc rejects this.  */
12998   char const *const *pcpcc;
12999   char **ppc;
13000   /* NEC SVR4.0.2 mips cc rejects this.  */
13001   struct point {int x, y;};
13002   static struct point const zero = {0,0};
13003   /* AIX XL C 1.02.0.0 rejects this.
13004      It does not let you subtract one const X* pointer from another in
13005      an arm of an if-expression whose if-part is not a constant
13006      expression */
13007   const char *g = "string";
13008   pcpcc = &g + (g ? g-g : 0);
13009   /* HPUX 7.0 cc rejects these. */
13010   ++pcpcc;
13011   ppc = (char**) pcpcc;
13012   pcpcc = (char const *const *) ppc;
13013   { /* SCO 3.2v4 cc rejects this.  */
13014     char *t;
13015     char const *s = 0 ? (char *) 0 : (char const *) 0;
13016
13017     *t++ = 0;
13018     if (s) return 0;
13019   }
13020   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13021     int x[] = {25, 17};
13022     const int *foo = &x[0];
13023     ++foo;
13024   }
13025   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13026     typedef const int *iptr;
13027     iptr p = 0;
13028     ++p;
13029   }
13030   { /* AIX XL C 1.02.0.0 rejects this saying
13031        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13032     struct s { int j; const int *ap[3]; };
13033     struct s *b; b->j = 5;
13034   }
13035   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13036     const int foo = 10;
13037     if (!foo) return 0;
13038   }
13039   return !cs[0] && !zero.x;
13040 #endif
13041
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (ac_try="$ac_compile"
13048 case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_compile") 2>conftest.er1
13054   ac_status=$?
13055   grep -v '^ *+' conftest.er1 >conftest.err
13056   rm -f conftest.er1
13057   cat conftest.err >&5
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } && {
13060          test -z "$ac_c_werror_flag" ||
13061          test ! -s conftest.err
13062        } && test -s conftest.$ac_objext; then
13063   ac_cv_c_const=yes
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068         ac_cv_c_const=no
13069 fi
13070
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 fi
13073 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13074 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13075 if test $ac_cv_c_const = no; then
13076
13077 cat >>confdefs.h <<\_ACEOF
13078 #define const
13079 _ACEOF
13080
13081 fi
13082
13083 { echo "$as_me:$LINENO: checking for inline" >&5
13084 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13085 if test "${ac_cv_c_inline+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   ac_cv_c_inline=no
13089 for ac_kw in inline __inline__ __inline; do
13090   cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 #ifndef __cplusplus
13097 typedef int foo_t;
13098 static $ac_kw foo_t static_foo () {return 0; }
13099 $ac_kw foo_t foo () {return 0; }
13100 #endif
13101
13102 _ACEOF
13103 rm -f conftest.$ac_objext
13104 if { (ac_try="$ac_compile"
13105 case "(($ac_try" in
13106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107   *) ac_try_echo=$ac_try;;
13108 esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110   (eval "$ac_compile") 2>conftest.er1
13111   ac_status=$?
13112   grep -v '^ *+' conftest.er1 >conftest.err
13113   rm -f conftest.er1
13114   cat conftest.err >&5
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } && {
13117          test -z "$ac_c_werror_flag" ||
13118          test ! -s conftest.err
13119        } && test -s conftest.$ac_objext; then
13120   ac_cv_c_inline=$ac_kw
13121 else
13122   echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13124
13125
13126 fi
13127
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129   test "$ac_cv_c_inline" != no && break
13130 done
13131
13132 fi
13133 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13134 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13135
13136
13137 case $ac_cv_c_inline in
13138   inline | yes) ;;
13139   *)
13140     case $ac_cv_c_inline in
13141       no) ac_val=;;
13142       *) ac_val=$ac_cv_c_inline;;
13143     esac
13144     cat >>confdefs.h <<_ACEOF
13145 #ifndef __cplusplus
13146 #define inline $ac_val
13147 #endif
13148 _ACEOF
13149     ;;
13150 esac
13151
13152 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13153 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13154 if test "${ac_cv_c_stringize+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h.  */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h.  */
13163 #define x(y) #y
13164
13165 char *s = x(teststring);
13166 _ACEOF
13167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13168   $EGREP "#teststring" >/dev/null 2>&1; then
13169   ac_cv_c_stringize=no
13170 else
13171   ac_cv_c_stringize=yes
13172 fi
13173 rm -f conftest*
13174
13175 fi
13176 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13177 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13178 if test $ac_cv_c_stringize = yes; then
13179
13180 cat >>confdefs.h <<\_ACEOF
13181 #define HAVE_STRINGIZE 1
13182 _ACEOF
13183
13184 fi
13185
13186 { echo "$as_me:$LINENO: checking for signed types" >&5
13187 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13188 if test "${pgac_cv_c_signed+set}" = set; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191   cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 int
13199 main ()
13200 {
13201 signed char c; signed short s; signed int i;
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213   (eval "$ac_compile") 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } && {
13220          test -z "$ac_c_werror_flag" ||
13221          test ! -s conftest.err
13222        } && test -s conftest.$ac_objext; then
13223   pgac_cv_c_signed=yes
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228         pgac_cv_c_signed=no
13229 fi
13230
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 fi
13233 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13234 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13235 if test x"$pgac_cv_c_signed" = xno ; then
13236
13237 cat >>confdefs.h <<\_ACEOF
13238 #define signed
13239 _ACEOF
13240
13241 fi
13242 { echo "$as_me:$LINENO: checking for working volatile" >&5
13243 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13244 if test "${ac_cv_c_volatile+set}" = set; then
13245   echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247   cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h.  */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h.  */
13253
13254 int
13255 main ()
13256 {
13257
13258 volatile int x;
13259 int * volatile y = (int *) 0;
13260 return !x && !y;
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (ac_try="$ac_compile"
13267 case "(($ac_try" in
13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269   *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272   (eval "$ac_compile") 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } && {
13279          test -z "$ac_c_werror_flag" ||
13280          test ! -s conftest.err
13281        } && test -s conftest.$ac_objext; then
13282   ac_cv_c_volatile=yes
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287         ac_cv_c_volatile=no
13288 fi
13289
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13293 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13294 if test $ac_cv_c_volatile = no; then
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define volatile
13298 _ACEOF
13299
13300 fi
13301
13302 { echo "$as_me:$LINENO: checking for __func__" >&5
13303 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13304 if test "${pgac_cv_funcname_func_support+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313 #include <stdio.h>
13314 int
13315 main ()
13316 {
13317 printf("%s\n", __func__);
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext
13323 if { (ac_try="$ac_compile"
13324 case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_compile") 2>conftest.er1
13330   ac_status=$?
13331   grep -v '^ *+' conftest.er1 >conftest.err
13332   rm -f conftest.er1
13333   cat conftest.err >&5
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); } && {
13336          test -z "$ac_c_werror_flag" ||
13337          test ! -s conftest.err
13338        } && test -s conftest.$ac_objext; then
13339   pgac_cv_funcname_func_support=yes
13340 else
13341   echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344         pgac_cv_funcname_func_support=no
13345 fi
13346
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13350 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13351 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13352
13353 cat >>confdefs.h <<\_ACEOF
13354 #define HAVE_FUNCNAME__FUNC 1
13355 _ACEOF
13356
13357 else
13358 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13359 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13360 if test "${pgac_cv_funcname_function_support+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 #include <stdio.h>
13370 int
13371 main ()
13372 {
13373 printf("%s\n", __FUNCTION__);
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_compile") 2>conftest.er1
13386   ac_status=$?
13387   grep -v '^ *+' conftest.er1 >conftest.err
13388   rm -f conftest.er1
13389   cat conftest.err >&5
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } && {
13392          test -z "$ac_c_werror_flag" ||
13393          test ! -s conftest.err
13394        } && test -s conftest.$ac_objext; then
13395   pgac_cv_funcname_function_support=yes
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400         pgac_cv_funcname_function_support=no
13401 fi
13402
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13406 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13407 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13408
13409 cat >>confdefs.h <<\_ACEOF
13410 #define HAVE_FUNCNAME__FUNCTION 1
13411 _ACEOF
13412
13413 fi
13414 fi
13415 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13416 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_struct_tm+set}" = set; then
13418   echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420   cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426 #include <sys/types.h>
13427 #include <time.h>
13428
13429 int
13430 main ()
13431 {
13432 struct tm tm;
13433                                      int *p = &tm.tm_sec;
13434                                      return !p;
13435   ;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_compile") 2>conftest.er1
13447   ac_status=$?
13448   grep -v '^ *+' conftest.er1 >conftest.err
13449   rm -f conftest.er1
13450   cat conftest.err >&5
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } && {
13453          test -z "$ac_c_werror_flag" ||
13454          test ! -s conftest.err
13455        } && test -s conftest.$ac_objext; then
13456   ac_cv_struct_tm=time.h
13457 else
13458   echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461         ac_cv_struct_tm=sys/time.h
13462 fi
13463
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465 fi
13466 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13467 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13468 if test $ac_cv_struct_tm = sys/time.h; then
13469
13470 cat >>confdefs.h <<\_ACEOF
13471 #define TM_IN_SYS_TIME 1
13472 _ACEOF
13473
13474 fi
13475
13476 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13477 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13478 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13479   echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481   cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487 #include <sys/types.h>
13488 #include <$ac_cv_struct_tm>
13489
13490
13491 int
13492 main ()
13493 {
13494 static struct tm ac_aggr;
13495 if (ac_aggr.tm_zone)
13496 return 0;
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_compile") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } && {
13515          test -z "$ac_c_werror_flag" ||
13516          test ! -s conftest.err
13517        } && test -s conftest.$ac_objext; then
13518   ac_cv_member_struct_tm_tm_zone=yes
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523         cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 #include <sys/types.h>
13530 #include <$ac_cv_struct_tm>
13531
13532
13533 int
13534 main ()
13535 {
13536 static struct tm ac_aggr;
13537 if (sizeof ac_aggr.tm_zone)
13538 return 0;
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_compile") 2>conftest.er1
13551   ac_status=$?
13552   grep -v '^ *+' conftest.er1 >conftest.err
13553   rm -f conftest.er1
13554   cat conftest.err >&5
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } && {
13557          test -z "$ac_c_werror_flag" ||
13558          test ! -s conftest.err
13559        } && test -s conftest.$ac_objext; then
13560   ac_cv_member_struct_tm_tm_zone=yes
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565         ac_cv_member_struct_tm_tm_zone=no
13566 fi
13567
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 fi
13570
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 fi
13573 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13574 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13575 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13576
13577 cat >>confdefs.h <<_ACEOF
13578 #define HAVE_STRUCT_TM_TM_ZONE 1
13579 _ACEOF
13580
13581
13582 fi
13583
13584 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13585
13586 cat >>confdefs.h <<\_ACEOF
13587 #define HAVE_TM_ZONE 1
13588 _ACEOF
13589
13590 fi
13591 { echo "$as_me:$LINENO: checking for tzname" >&5
13592 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13593 if test "${ac_cv_var_tzname+set}" = set; then
13594   echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596   cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602 #include <time.h>
13603 #ifndef tzname /* For SGI.  */
13604 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
13605 #endif
13606
13607 int
13608 main ()
13609 {
13610 atoi(*tzname);
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (ac_try="$ac_link"
13617 case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_link") 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } && {
13629          test -z "$ac_c_werror_flag" ||
13630          test ! -s conftest.err
13631        } && test -s conftest$ac_exeext &&
13632        $as_test_x conftest$ac_exeext; then
13633   ac_cv_var_tzname=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638         ac_cv_var_tzname=no
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13642       conftest$ac_exeext conftest.$ac_ext
13643 fi
13644 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13645 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13646 if test $ac_cv_var_tzname = yes; then
13647
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_TZNAME 1
13650 _ACEOF
13651
13652 fi
13653
13654 { echo "$as_me:$LINENO: checking for union semun" >&5
13655 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13656 if test "${ac_cv_type_union_semun+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 <sys/ipc.h>
13667 #include <sys/sem.h>
13668
13669 typedef union semun ac__type_new_;
13670 int
13671 main ()
13672 {
13673 if ((ac__type_new_ *) 0)
13674   return 0;
13675 if (sizeof (ac__type_new_))
13676   return 0;
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685   *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688   (eval "$ac_compile") 2>conftest.er1
13689   ac_status=$?
13690   grep -v '^ *+' conftest.er1 >conftest.err
13691   rm -f conftest.er1
13692   cat conftest.err >&5
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } && {
13695          test -z "$ac_c_werror_flag" ||
13696          test ! -s conftest.err
13697        } && test -s conftest.$ac_objext; then
13698   ac_cv_type_union_semun=yes
13699 else
13700   echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703         ac_cv_type_union_semun=no
13704 fi
13705
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 fi
13708 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13709 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13710 if test $ac_cv_type_union_semun = yes; then
13711
13712 cat >>confdefs.h <<_ACEOF
13713 #define HAVE_UNION_SEMUN 1
13714 _ACEOF
13715
13716
13717 fi
13718
13719 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13720 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13721 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 #include <sys/types.h>
13731 #ifdef HAVE_SYS_UN_H
13732 #include <sys/un.h>
13733 #endif
13734
13735
13736 typedef struct sockaddr_un ac__type_new_;
13737 int
13738 main ()
13739 {
13740 if ((ac__type_new_ *) 0)
13741   return 0;
13742 if (sizeof (ac__type_new_))
13743   return 0;
13744   ;
13745   return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext
13749 if { (ac_try="$ac_compile"
13750 case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_compile") 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } && {
13762          test -z "$ac_c_werror_flag" ||
13763          test ! -s conftest.err
13764        } && test -s conftest.$ac_objext; then
13765   ac_cv_type_struct_sockaddr_un=yes
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770         ac_cv_type_struct_sockaddr_un=no
13771 fi
13772
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13776 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13777 if test $ac_cv_type_struct_sockaddr_un = yes; then
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_STRUCT_SOCKADDR_UN 1
13781 _ACEOF
13782
13783
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_UNIX_SOCKETS 1
13786 _ACEOF
13787
13788 fi
13789
13790 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13791 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13792 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13793   echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795   cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h.  */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h.  */
13801 #include <sys/types.h>
13802 #ifdef HAVE_SYS_SOCKET_H
13803 #include <sys/socket.h>
13804 #endif
13805
13806
13807 typedef struct sockaddr_storage ac__type_new_;
13808 int
13809 main ()
13810 {
13811 if ((ac__type_new_ *) 0)
13812   return 0;
13813 if (sizeof (ac__type_new_))
13814   return 0;
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext
13820 if { (ac_try="$ac_compile"
13821 case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_compile") 2>conftest.er1
13827   ac_status=$?
13828   grep -v '^ *+' conftest.er1 >conftest.err
13829   rm -f conftest.er1
13830   cat conftest.err >&5
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } && {
13833          test -z "$ac_c_werror_flag" ||
13834          test ! -s conftest.err
13835        } && test -s conftest.$ac_objext; then
13836   ac_cv_type_struct_sockaddr_storage=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841         ac_cv_type_struct_sockaddr_storage=no
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13847 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13848 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13849
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13852 _ACEOF
13853
13854
13855 fi
13856
13857 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13858 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13859 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 #include <sys/types.h>
13869 #ifdef HAVE_SYS_SOCKET_H
13870 #include <sys/socket.h>
13871 #endif
13872
13873
13874 int
13875 main ()
13876 {
13877 static struct sockaddr_storage ac_aggr;
13878 if (ac_aggr.ss_family)
13879 return 0;
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_compile") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } && {
13898          test -z "$ac_c_werror_flag" ||
13899          test ! -s conftest.err
13900        } && test -s conftest.$ac_objext; then
13901   ac_cv_member_struct_sockaddr_storage_ss_family=yes
13902 else
13903   echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906         cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912 #include <sys/types.h>
13913 #ifdef HAVE_SYS_SOCKET_H
13914 #include <sys/socket.h>
13915 #endif
13916
13917
13918 int
13919 main ()
13920 {
13921 static struct sockaddr_storage ac_aggr;
13922 if (sizeof ac_aggr.ss_family)
13923 return 0;
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext
13929 if { (ac_try="$ac_compile"
13930 case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_compile") 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } && {
13942          test -z "$ac_c_werror_flag" ||
13943          test ! -s conftest.err
13944        } && test -s conftest.$ac_objext; then
13945   ac_cv_member_struct_sockaddr_storage_ss_family=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950         ac_cv_member_struct_sockaddr_storage_ss_family=no
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957 fi
13958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13959 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13960 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13961
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13964 _ACEOF
13965
13966
13967 fi
13968 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13969 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13970 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979 #include <sys/types.h>
13980 #ifdef HAVE_SYS_SOCKET_H
13981 #include <sys/socket.h>
13982 #endif
13983
13984
13985 int
13986 main ()
13987 {
13988 static struct sockaddr_storage ac_aggr;
13989 if (ac_aggr.__ss_family)
13990 return 0;
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_compile") 2>conftest.er1
14003   ac_status=$?
14004   grep -v '^ *+' conftest.er1 >conftest.err
14005   rm -f conftest.er1
14006   cat conftest.err >&5
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); } && {
14009          test -z "$ac_c_werror_flag" ||
14010          test ! -s conftest.err
14011        } && test -s conftest.$ac_objext; then
14012   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017         cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 #include <sys/types.h>
14024 #ifdef HAVE_SYS_SOCKET_H
14025 #include <sys/socket.h>
14026 #endif
14027
14028
14029 int
14030 main ()
14031 {
14032 static struct sockaddr_storage ac_aggr;
14033 if (sizeof ac_aggr.__ss_family)
14034 return 0;
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext
14040 if { (ac_try="$ac_compile"
14041 case "(($ac_try" in
14042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043   *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046   (eval "$ac_compile") 2>conftest.er1
14047   ac_status=$?
14048   grep -v '^ *+' conftest.er1 >conftest.err
14049   rm -f conftest.er1
14050   cat conftest.err >&5
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } && {
14053          test -z "$ac_c_werror_flag" ||
14054          test ! -s conftest.err
14055        } && test -s conftest.$ac_objext; then
14056   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061         ac_cv_member_struct_sockaddr_storage___ss_family=no
14062 fi
14063
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065 fi
14066
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 fi
14069 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14070 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14071 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14072
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14075 _ACEOF
14076
14077
14078 fi
14079 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14080 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14081 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084   cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h.  */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h.  */
14090 #include <sys/types.h>
14091 #ifdef HAVE_SYS_SOCKET_H
14092 #include <sys/socket.h>
14093 #endif
14094
14095
14096 int
14097 main ()
14098 {
14099 static struct sockaddr_storage ac_aggr;
14100 if (ac_aggr.ss_len)
14101 return 0;
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_compile") 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } && {
14120          test -z "$ac_c_werror_flag" ||
14121          test ! -s conftest.err
14122        } && test -s conftest.$ac_objext; then
14123   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128         cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134 #include <sys/types.h>
14135 #ifdef HAVE_SYS_SOCKET_H
14136 #include <sys/socket.h>
14137 #endif
14138
14139
14140 int
14141 main ()
14142 {
14143 static struct sockaddr_storage ac_aggr;
14144 if (sizeof ac_aggr.ss_len)
14145 return 0;
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 rm -f conftest.$ac_objext
14151 if { (ac_try="$ac_compile"
14152 case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_compile") 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } && {
14164          test -z "$ac_c_werror_flag" ||
14165          test ! -s conftest.err
14166        } && test -s conftest.$ac_objext; then
14167   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14168 else
14169   echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172         ac_cv_member_struct_sockaddr_storage_ss_len=no
14173 fi
14174
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 fi
14177
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 fi
14180 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14181 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14182 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14183
14184 cat >>confdefs.h <<_ACEOF
14185 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14186 _ACEOF
14187
14188
14189 fi
14190 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14191 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14192 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 #include <sys/types.h>
14202 #ifdef HAVE_SYS_SOCKET_H
14203 #include <sys/socket.h>
14204 #endif
14205
14206
14207 int
14208 main ()
14209 {
14210 static struct sockaddr_storage ac_aggr;
14211 if (ac_aggr.__ss_len)
14212 return 0;
14213   ;
14214   return 0;
14215 }
14216 _ACEOF
14217 rm -f conftest.$ac_objext
14218 if { (ac_try="$ac_compile"
14219 case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_compile") 2>conftest.er1
14225   ac_status=$?
14226   grep -v '^ *+' conftest.er1 >conftest.err
14227   rm -f conftest.er1
14228   cat conftest.err >&5
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } && {
14231          test -z "$ac_c_werror_flag" ||
14232          test ! -s conftest.err
14233        } && test -s conftest.$ac_objext; then
14234   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239         cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h.  */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h.  */
14245 #include <sys/types.h>
14246 #ifdef HAVE_SYS_SOCKET_H
14247 #include <sys/socket.h>
14248 #endif
14249
14250
14251 int
14252 main ()
14253 {
14254 static struct sockaddr_storage ac_aggr;
14255 if (sizeof ac_aggr.__ss_len)
14256 return 0;
14257   ;
14258   return 0;
14259 }
14260 _ACEOF
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265   *) ac_try_echo=$ac_try;;
14266 esac
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268   (eval "$ac_compile") 2>conftest.er1
14269   ac_status=$?
14270   grep -v '^ *+' conftest.er1 >conftest.err
14271   rm -f conftest.er1
14272   cat conftest.err >&5
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); } && {
14275          test -z "$ac_c_werror_flag" ||
14276          test ! -s conftest.err
14277        } && test -s conftest.$ac_objext; then
14278   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283         ac_cv_member_struct_sockaddr_storage___ss_len=no
14284 fi
14285
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 fi
14288
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 fi
14291 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14292 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14293 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14294
14295 cat >>confdefs.h <<_ACEOF
14296 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14297 _ACEOF
14298
14299
14300 fi
14301 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14302 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14303 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 #include <sys/types.h>
14313 #ifdef HAVE_SYS_SOCKET_H
14314 #include <sys/socket.h>
14315 #endif
14316
14317
14318 int
14319 main ()
14320 {
14321 static struct sockaddr ac_aggr;
14322 if (ac_aggr.sa_len)
14323 return 0;
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_compile") 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } && {
14342          test -z "$ac_c_werror_flag" ||
14343          test ! -s conftest.err
14344        } && test -s conftest.$ac_objext; then
14345   ac_cv_member_struct_sockaddr_sa_len=yes
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14349
14350         cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h.  */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h.  */
14356 #include <sys/types.h>
14357 #ifdef HAVE_SYS_SOCKET_H
14358 #include <sys/socket.h>
14359 #endif
14360
14361
14362 int
14363 main ()
14364 {
14365 static struct sockaddr ac_aggr;
14366 if (sizeof ac_aggr.sa_len)
14367 return 0;
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_compile") 2>conftest.er1
14380   ac_status=$?
14381   grep -v '^ *+' conftest.er1 >conftest.err
14382   rm -f conftest.er1
14383   cat conftest.err >&5
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } && {
14386          test -z "$ac_c_werror_flag" ||
14387          test ! -s conftest.err
14388        } && test -s conftest.$ac_objext; then
14389   ac_cv_member_struct_sockaddr_sa_len=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394         ac_cv_member_struct_sockaddr_sa_len=no
14395 fi
14396
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 fi
14402 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14403 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14404 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14405
14406 cat >>confdefs.h <<_ACEOF
14407 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14408 _ACEOF
14409
14410
14411 fi
14412
14413 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14414 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14415 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 #include <sys/types.h>
14425 #include <sys/socket.h>
14426 #include <netdb.h>
14427
14428
14429 typedef struct addrinfo ac__type_new_;
14430 int
14431 main ()
14432 {
14433 if ((ac__type_new_ *) 0)
14434   return 0;
14435 if (sizeof (ac__type_new_))
14436   return 0;
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (ac_try="$ac_compile"
14443 case "(($ac_try" in
14444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445   *) ac_try_echo=$ac_try;;
14446 esac
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448   (eval "$ac_compile") 2>conftest.er1
14449   ac_status=$?
14450   grep -v '^ *+' conftest.er1 >conftest.err
14451   rm -f conftest.er1
14452   cat conftest.err >&5
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); } && {
14455          test -z "$ac_c_werror_flag" ||
14456          test ! -s conftest.err
14457        } && test -s conftest.$ac_objext; then
14458   ac_cv_type_struct_addrinfo=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463         ac_cv_type_struct_addrinfo=no
14464 fi
14465
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 fi
14468 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14469 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14470 if test $ac_cv_type_struct_addrinfo = yes; then
14471
14472 cat >>confdefs.h <<_ACEOF
14473 #define HAVE_STRUCT_ADDRINFO 1
14474 _ACEOF
14475
14476
14477 fi
14478
14479
14480 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14481 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14482 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h.  */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h.  */
14491 #include <sys/param.h>
14492 #include <sys/types.h>
14493 #include <sys/socket.h>
14494 #include <sys/ucred.h>
14495
14496 typedef struct cmsgcred ac__type_new_;
14497 int
14498 main ()
14499 {
14500 if ((ac__type_new_ *) 0)
14501   return 0;
14502 if (sizeof (ac__type_new_))
14503   return 0;
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_compile") 2>conftest.er1
14516   ac_status=$?
14517   grep -v '^ *+' conftest.er1 >conftest.err
14518   rm -f conftest.er1
14519   cat conftest.err >&5
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } && {
14522          test -z "$ac_c_werror_flag" ||
14523          test ! -s conftest.err
14524        } && test -s conftest.$ac_objext; then
14525   ac_cv_type_struct_cmsgcred=yes
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530         ac_cv_type_struct_cmsgcred=no
14531 fi
14532
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 fi
14535 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14536 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14537 if test $ac_cv_type_struct_cmsgcred = yes; then
14538
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_STRUCT_CMSGCRED 1
14541 _ACEOF
14542
14543
14544 fi
14545 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14546 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14547 if test "${ac_cv_type_struct_fcred+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 #include <sys/param.h>
14557 #include <sys/types.h>
14558 #include <sys/socket.h>
14559 #include <sys/ucred.h>
14560
14561 typedef struct fcred ac__type_new_;
14562 int
14563 main ()
14564 {
14565 if ((ac__type_new_ *) 0)
14566   return 0;
14567 if (sizeof (ac__type_new_))
14568   return 0;
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580   (eval "$ac_compile") 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } && {
14587          test -z "$ac_c_werror_flag" ||
14588          test ! -s conftest.err
14589        } && test -s conftest.$ac_objext; then
14590   ac_cv_type_struct_fcred=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595         ac_cv_type_struct_fcred=no
14596 fi
14597
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 fi
14600 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14601 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14602 if test $ac_cv_type_struct_fcred = yes; then
14603
14604 cat >>confdefs.h <<_ACEOF
14605 #define HAVE_STRUCT_FCRED 1
14606 _ACEOF
14607
14608
14609 fi
14610 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14611 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14612 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621 #include <sys/param.h>
14622 #include <sys/types.h>
14623 #include <sys/socket.h>
14624 #include <sys/ucred.h>
14625
14626 typedef struct sockcred ac__type_new_;
14627 int
14628 main ()
14629 {
14630 if ((ac__type_new_ *) 0)
14631   return 0;
14632 if (sizeof (ac__type_new_))
14633   return 0;
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (ac_try="$ac_compile"
14640 case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645   (eval "$ac_compile") 2>conftest.er1
14646   ac_status=$?
14647   grep -v '^ *+' conftest.er1 >conftest.err
14648   rm -f conftest.er1
14649   cat conftest.err >&5
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); } && {
14652          test -z "$ac_c_werror_flag" ||
14653          test ! -s conftest.err
14654        } && test -s conftest.$ac_objext; then
14655   ac_cv_type_struct_sockcred=yes
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660         ac_cv_type_struct_sockcred=no
14661 fi
14662
14663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664 fi
14665 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14666 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14667 if test $ac_cv_type_struct_sockcred = yes; then
14668
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_STRUCT_SOCKCRED 1
14671 _ACEOF
14672
14673
14674 fi
14675
14676
14677 { echo "$as_me:$LINENO: checking for struct option" >&5
14678 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14679 if test "${ac_cv_type_struct_option+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688 #ifdef HAVE_GETOPT_H
14689 #include <getopt.h>
14690 #endif
14691
14692 typedef struct option ac__type_new_;
14693 int
14694 main ()
14695 {
14696 if ((ac__type_new_ *) 0)
14697   return 0;
14698 if (sizeof (ac__type_new_))
14699   return 0;
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_compile") 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } && {
14718          test -z "$ac_c_werror_flag" ||
14719          test ! -s conftest.err
14720        } && test -s conftest.$ac_objext; then
14721   ac_cv_type_struct_option=yes
14722 else
14723   echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726         ac_cv_type_struct_option=no
14727 fi
14728
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 fi
14731 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14732 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14733 if test $ac_cv_type_struct_option = yes; then
14734
14735 cat >>confdefs.h <<_ACEOF
14736 #define HAVE_STRUCT_OPTION 1
14737 _ACEOF
14738
14739
14740 fi
14741
14742
14743 if test "$with_zlib" = yes; then
14744   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14745   # did not).  While we could work around the lack of z_streamp, it
14746   # seems unwise to encourage people to use such old zlib versions...
14747   { echo "$as_me:$LINENO: checking for z_streamp" >&5
14748 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14749 if test "${ac_cv_type_z_streamp+set}" = set; then
14750   echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752   cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h.  */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h.  */
14758 #include <zlib.h>
14759
14760 typedef z_streamp ac__type_new_;
14761 int
14762 main ()
14763 {
14764 if ((ac__type_new_ *) 0)
14765   return 0;
14766 if (sizeof (ac__type_new_))
14767   return 0;
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (ac_try="$ac_compile"
14774 case "(($ac_try" in
14775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776   *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779   (eval "$ac_compile") 2>conftest.er1
14780   ac_status=$?
14781   grep -v '^ *+' conftest.er1 >conftest.err
14782   rm -f conftest.er1
14783   cat conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } && {
14786          test -z "$ac_c_werror_flag" ||
14787          test ! -s conftest.err
14788        } && test -s conftest.$ac_objext; then
14789   ac_cv_type_z_streamp=yes
14790 else
14791   echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794         ac_cv_type_z_streamp=no
14795 fi
14796
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798 fi
14799 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14800 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14801 if test $ac_cv_type_z_streamp = yes; then
14802   :
14803 else
14804   { { echo "$as_me:$LINENO: error: zlib version is too old
14805 Use --without-zlib to disable zlib support." >&5
14806 echo "$as_me: error: zlib version is too old
14807 Use --without-zlib to disable zlib support." >&2;}
14808    { (exit 1); exit 1; }; }
14809 fi
14810
14811 fi
14812
14813 if test "$with_krb5" = yes; then
14814 # Check for differences between MIT and Heimdal (KTH) releases
14815   { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14816 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14817 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 #include <krb5.h>
14827
14828 int
14829 main ()
14830 {
14831 static krb5_ticket ac_aggr;
14832 if (ac_aggr.enc_part2)
14833 return 0;
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842   *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845   (eval "$ac_compile") 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } && {
14852          test -z "$ac_c_werror_flag" ||
14853          test ! -s conftest.err
14854        } && test -s conftest.$ac_objext; then
14855   ac_cv_member_krb5_ticket_enc_part2=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860         cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <krb5.h>
14867
14868 int
14869 main ()
14870 {
14871 static krb5_ticket ac_aggr;
14872 if (sizeof ac_aggr.enc_part2)
14873 return 0;
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_compile") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && {
14892          test -z "$ac_c_werror_flag" ||
14893          test ! -s conftest.err
14894        } && test -s conftest.$ac_objext; then
14895   ac_cv_member_krb5_ticket_enc_part2=yes
14896 else
14897   echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900         ac_cv_member_krb5_ticket_enc_part2=no
14901 fi
14902
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 fi
14905
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907 fi
14908 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14909 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14910 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14911
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_KRB5_TICKET_ENC_PART2 1
14914 _ACEOF
14915
14916
14917 else
14918   { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14919 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14920 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   cat >conftest.$ac_ext <<_ACEOF
14924 /* confdefs.h.  */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h.  */
14929 #include <krb5.h>
14930
14931 int
14932 main ()
14933 {
14934 static krb5_ticket ac_aggr;
14935 if (ac_aggr.client)
14936 return 0;
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (ac_try="$ac_compile"
14943 case "(($ac_try" in
14944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945   *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948   (eval "$ac_compile") 2>conftest.er1
14949   ac_status=$?
14950   grep -v '^ *+' conftest.er1 >conftest.err
14951   rm -f conftest.er1
14952   cat conftest.err >&5
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } && {
14955          test -z "$ac_c_werror_flag" ||
14956          test ! -s conftest.err
14957        } && test -s conftest.$ac_objext; then
14958   ac_cv_member_krb5_ticket_client=yes
14959 else
14960   echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963         cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969 #include <krb5.h>
14970
14971 int
14972 main ()
14973 {
14974 static krb5_ticket ac_aggr;
14975 if (sizeof ac_aggr.client)
14976 return 0;
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (ac_try="$ac_compile"
14983 case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_compile") 2>conftest.er1
14989   ac_status=$?
14990   grep -v '^ *+' conftest.er1 >conftest.err
14991   rm -f conftest.er1
14992   cat conftest.err >&5
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } && {
14995          test -z "$ac_c_werror_flag" ||
14996          test ! -s conftest.err
14997        } && test -s conftest.$ac_objext; then
14998   ac_cv_member_krb5_ticket_client=yes
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003         ac_cv_member_krb5_ticket_client=no
15004 fi
15005
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 fi
15008
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 fi
15011 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15012 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15013 if test $ac_cv_member_krb5_ticket_client = yes; then
15014
15015 cat >>confdefs.h <<_ACEOF
15016 #define HAVE_KRB5_TICKET_CLIENT 1
15017 _ACEOF
15018
15019
15020 else
15021   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15022 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15023    { (exit 1); exit 1; }; }
15024 fi
15025
15026 fi
15027
15028   { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15029 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15030 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 #include <krb5.h>
15040
15041 int
15042 main ()
15043 {
15044 static krb5_error ac_aggr;
15045 if (ac_aggr.text.data)
15046 return 0;
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055   *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058   (eval "$ac_compile") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } && {
15065          test -z "$ac_c_werror_flag" ||
15066          test ! -s conftest.err
15067        } && test -s conftest.$ac_objext; then
15068   ac_cv_member_krb5_error_text_data=yes
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073         cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079 #include <krb5.h>
15080
15081 int
15082 main ()
15083 {
15084 static krb5_error ac_aggr;
15085 if (sizeof ac_aggr.text.data)
15086 return 0;
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_compile") 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } && {
15105          test -z "$ac_c_werror_flag" ||
15106          test ! -s conftest.err
15107        } && test -s conftest.$ac_objext; then
15108   ac_cv_member_krb5_error_text_data=yes
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113         ac_cv_member_krb5_error_text_data=no
15114 fi
15115
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 fi
15118
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 fi
15121 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15122 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15123 if test $ac_cv_member_krb5_error_text_data = yes; then
15124
15125 cat >>confdefs.h <<_ACEOF
15126 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15127 _ACEOF
15128
15129
15130 else
15131   { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15132 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15133 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142 #include <krb5.h>
15143
15144 int
15145 main ()
15146 {
15147 static krb5_error ac_aggr;
15148 if (ac_aggr.e_data)
15149 return 0;
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_compile") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } && {
15168          test -z "$ac_c_werror_flag" ||
15169          test ! -s conftest.err
15170        } && test -s conftest.$ac_objext; then
15171   ac_cv_member_krb5_error_e_data=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176         cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 #include <krb5.h>
15183
15184 int
15185 main ()
15186 {
15187 static krb5_error ac_aggr;
15188 if (sizeof ac_aggr.e_data)
15189 return 0;
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198   *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201   (eval "$ac_compile") 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
15205   cat conftest.err >&5
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } && {
15208          test -z "$ac_c_werror_flag" ||
15209          test ! -s conftest.err
15210        } && test -s conftest.$ac_objext; then
15211   ac_cv_member_krb5_error_e_data=yes
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216         ac_cv_member_krb5_error_e_data=no
15217 fi
15218
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 fi
15221
15222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223 fi
15224 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15225 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15226 if test $ac_cv_member_krb5_error_e_data = yes; then
15227
15228 cat >>confdefs.h <<_ACEOF
15229 #define HAVE_KRB5_ERROR_E_DATA 1
15230 _ACEOF
15231
15232
15233 else
15234   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15235 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15236    { (exit 1); exit 1; }; }
15237 fi
15238
15239 fi
15240
15241
15242 # Win32 requires headers to be loaded for __stdcall, so can't use
15243 # AC_CHECK_FUNCS here.
15244   { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15245 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15246   cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252 #include <krb5.h>
15253 int
15254 main ()
15255 {
15256 krb5_free_unparsed_name(NULL,NULL);
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_link") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } && {
15275          test -z "$ac_c_werror_flag" ||
15276          test ! -s conftest.err
15277        } && test -s conftest$ac_exeext &&
15278        $as_test_x conftest$ac_exeext; then
15279
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15282 _ACEOF
15283
15284 { echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6; }
15286 else
15287   echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290         { echo "$as_me:$LINENO: result: no" >&5
15291 echo "${ECHO_T}no" >&6; }
15292 fi
15293
15294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15295       conftest$ac_exeext conftest.$ac_ext
15296 fi
15297
15298
15299 ##
15300 ## Functions, global variables
15301 ##
15302
15303 { echo "$as_me:$LINENO: checking for int timezone" >&5
15304 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15305 if test "${pgac_cv_var_int_timezone+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 #include <time.h>
15315 int res;
15316 int
15317 main ()
15318 {
15319 #ifndef __CYGWIN__
15320 res = timezone / 60;
15321 #else
15322 res = _timezone / 60;
15323 #endif
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (ac_try="$ac_link"
15330 case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_link") 2>conftest.er1
15336   ac_status=$?
15337   grep -v '^ *+' conftest.er1 >conftest.err
15338   rm -f conftest.er1
15339   cat conftest.err >&5
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } && {
15342          test -z "$ac_c_werror_flag" ||
15343          test ! -s conftest.err
15344        } && test -s conftest$ac_exeext &&
15345        $as_test_x conftest$ac_exeext; then
15346   pgac_cv_var_int_timezone=yes
15347 else
15348   echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351         pgac_cv_var_int_timezone=no
15352 fi
15353
15354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15355       conftest$ac_exeext conftest.$ac_ext
15356 fi
15357 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15358 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15359 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15360
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_INT_TIMEZONE
15363 _ACEOF
15364
15365 fi
15366 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15367 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15368  if test "${ac_cv_func_accept_return+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371    if test "${ac_cv_func_accept_arg1+set}" = set; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374     if test "${ac_cv_func_accept_arg2+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377      if test "${ac_cv_func_accept_arg3+set}" = set; then
15378   echo $ECHO_N "(cached) $ECHO_C" >&6
15379 else
15380       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15381       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15382        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15383         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15384          cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390 #ifdef HAVE_SYS_TYPES_H
15391 #include <sys/types.h>
15392 #endif
15393 #ifdef HAVE_SYS_SOCKET_H
15394 #include <sys/socket.h>
15395 #endif
15396 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15397 int
15398 main ()
15399 {
15400
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext
15406 if { (ac_try="$ac_compile"
15407 case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_compile") 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } && {
15419          test -z "$ac_c_werror_flag" ||
15420          test ! -s conftest.err
15421        } && test -s conftest.$ac_objext; then
15422   ac_not_found=no; break 4
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427         ac_not_found=yes
15428 fi
15429
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15431        done
15432       done
15433      done
15434     done
15435     if test "$ac_not_found" = yes; then
15436       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15437 echo "$as_me: error: could not determine argument types" >&2;}
15438    { (exit 1); exit 1; }; }
15439     fi
15440     if test "$ac_cv_func_accept_arg3" = "void"; then
15441       ac_cv_func_accept_arg3=int
15442     fi
15443
15444 fi
15445
15446 fi
15447
15448 fi
15449
15450 fi
15451  { 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
15452 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15453
15454 cat >>confdefs.h <<_ACEOF
15455 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15456 _ACEOF
15457
15458
15459 cat >>confdefs.h <<_ACEOF
15460 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15461 _ACEOF
15462
15463
15464 cat >>confdefs.h <<_ACEOF
15465 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15466 _ACEOF
15467
15468
15469 cat >>confdefs.h <<_ACEOF
15470 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15471 _ACEOF
15472
15473
15474 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15475 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15476 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15477   echo $ECHO_N "(cached) $ECHO_C" >&6
15478 else
15479   cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 #include <sys/time.h>
15486 int
15487 main ()
15488 {
15489 struct timeval *tp;
15490 struct timezone *tzp;
15491 gettimeofday(tp,tzp);
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext
15497 if { (ac_try="$ac_compile"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_compile") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && {
15510          test -z "$ac_c_werror_flag" ||
15511          test ! -s conftest.err
15512        } && test -s conftest.$ac_objext; then
15513   pgac_cv_func_gettimeofday_1arg=no
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518         pgac_cv_func_gettimeofday_1arg=yes
15519 fi
15520
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522 fi
15523 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15524 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15525 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15526
15527 cat >>confdefs.h <<\_ACEOF
15528 #define GETTIMEOFDAY_1ARG
15529 _ACEOF
15530
15531 fi
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15556 do
15557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h.  */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h.  */
15569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15571 #define $ac_func innocuous_$ac_func
15572
15573 /* System header to define __stub macros and hopefully few prototypes,
15574     which can conflict with char $ac_func (); below.
15575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15576     <limits.h> exists even on freestanding compilers.  */
15577
15578 #ifdef __STDC__
15579 # include <limits.h>
15580 #else
15581 # include <assert.h>
15582 #endif
15583
15584 #undef $ac_func
15585
15586 /* Override any GCC internal prototype to avoid an error.
15587    Use char because int might match the return type of a GCC
15588    builtin and then its argument prototype would still apply.  */
15589 #ifdef __cplusplus
15590 extern "C"
15591 #endif
15592 char $ac_func ();
15593 /* The GNU C library defines this for functions which it implements
15594     to always fail with ENOSYS.  Some functions are actually named
15595     something starting with __ and the normal name is an alias.  */
15596 #if defined __stub_$ac_func || defined __stub___$ac_func
15597 choke me
15598 #endif
15599
15600 int
15601 main ()
15602 {
15603 return $ac_func ();
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (ac_try="$ac_link"
15610 case "(($ac_try" in
15611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612   *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615   (eval "$ac_link") 2>conftest.er1
15616   ac_status=$?
15617   grep -v '^ *+' conftest.er1 >conftest.err
15618   rm -f conftest.er1
15619   cat conftest.err >&5
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } && {
15622          test -z "$ac_c_werror_flag" ||
15623          test ! -s conftest.err
15624        } && test -s conftest$ac_exeext &&
15625        $as_test_x conftest$ac_exeext; then
15626   eval "$as_ac_var=yes"
15627 else
15628   echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15630
15631         eval "$as_ac_var=no"
15632 fi
15633
15634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15635       conftest$ac_exeext conftest.$ac_ext
15636 fi
15637 ac_res=`eval echo '${'$as_ac_var'}'`
15638                { echo "$as_me:$LINENO: result: $ac_res" >&5
15639 echo "${ECHO_T}$ac_res" >&6; }
15640 if test `eval echo '${'$as_ac_var'}'` = yes; then
15641   cat >>confdefs.h <<_ACEOF
15642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15643 _ACEOF
15644
15645 fi
15646 done
15647
15648
15649 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15650 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15651 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654   cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660 #include <unistd.h>
15661
15662 int
15663 main ()
15664 {
15665 #ifndef fdatasync
15666   (void) fdatasync;
15667 #endif
15668
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (ac_try="$ac_compile"
15675 case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_compile") 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } && {
15687          test -z "$ac_c_werror_flag" ||
15688          test ! -s conftest.err
15689        } && test -s conftest.$ac_objext; then
15690   ac_cv_have_decl_fdatasync=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         ac_cv_have_decl_fdatasync=no
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 fi
15700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15701 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15702 if test $ac_cv_have_decl_fdatasync = yes; then
15703
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_DECL_FDATASYNC 1
15706 _ACEOF
15707
15708
15709 else
15710   cat >>confdefs.h <<_ACEOF
15711 #define HAVE_DECL_FDATASYNC 0
15712 _ACEOF
15713
15714
15715 fi
15716
15717
15718 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15719 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15720 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15721   echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723   cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h.  */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h.  */
15729 #include <fcntl.h>
15730
15731 int
15732 main ()
15733 {
15734 #ifndef posix_fadvise
15735   (void) posix_fadvise;
15736 #endif
15737
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_compile") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } && {
15756          test -z "$ac_c_werror_flag" ||
15757          test ! -s conftest.err
15758        } && test -s conftest.$ac_objext; then
15759   ac_cv_have_decl_posix_fadvise=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764         ac_cv_have_decl_posix_fadvise=no
15765 fi
15766
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 fi
15769 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15770 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15771 if test $ac_cv_have_decl_posix_fadvise = yes; then
15772
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_DECL_POSIX_FADVISE 1
15775 _ACEOF
15776
15777
15778 else
15779   cat >>confdefs.h <<_ACEOF
15780 #define HAVE_DECL_POSIX_FADVISE 0
15781 _ACEOF
15782
15783
15784 fi
15785
15786
15787 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15788 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15789 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798 $ac_includes_default
15799 int
15800 main ()
15801 {
15802 #ifndef strlcat
15803   (void) strlcat;
15804 #endif
15805
15806   ;
15807   return 0;
15808 }
15809 _ACEOF
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_compile") 2>conftest.er1
15818   ac_status=$?
15819   grep -v '^ *+' conftest.er1 >conftest.err
15820   rm -f conftest.er1
15821   cat conftest.err >&5
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } && {
15824          test -z "$ac_c_werror_flag" ||
15825          test ! -s conftest.err
15826        } && test -s conftest.$ac_objext; then
15827   ac_cv_have_decl_strlcat=yes
15828 else
15829   echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832         ac_cv_have_decl_strlcat=no
15833 fi
15834
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 fi
15837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15838 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15839 if test $ac_cv_have_decl_strlcat = yes; then
15840
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_DECL_STRLCAT 1
15843 _ACEOF
15844
15845
15846 else
15847   cat >>confdefs.h <<_ACEOF
15848 #define HAVE_DECL_STRLCAT 0
15849 _ACEOF
15850
15851
15852 fi
15853 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15854 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15855 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15856   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858   cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864 $ac_includes_default
15865 int
15866 main ()
15867 {
15868 #ifndef strlcpy
15869   (void) strlcpy;
15870 #endif
15871
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext
15877 if { (ac_try="$ac_compile"
15878 case "(($ac_try" in
15879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880   *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883   (eval "$ac_compile") 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } && {
15890          test -z "$ac_c_werror_flag" ||
15891          test ! -s conftest.err
15892        } && test -s conftest.$ac_objext; then
15893   ac_cv_have_decl_strlcpy=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898         ac_cv_have_decl_strlcpy=no
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15904 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15905 if test $ac_cv_have_decl_strlcpy = yes; then
15906
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_DECL_STRLCPY 1
15909 _ACEOF
15910
15911
15912 else
15913   cat >>confdefs.h <<_ACEOF
15914 #define HAVE_DECL_STRLCPY 0
15915 _ACEOF
15916
15917
15918 fi
15919
15920
15921 # This is probably only present on Darwin, but may as well check always
15922 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15923 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15924 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927   cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 #include <fcntl.h>
15934
15935 int
15936 main ()
15937 {
15938 #ifndef F_FULLFSYNC
15939   (void) F_FULLFSYNC;
15940 #endif
15941
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
15948 case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_compile") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } && {
15960          test -z "$ac_c_werror_flag" ||
15961          test ! -s conftest.err
15962        } && test -s conftest.$ac_objext; then
15963   ac_cv_have_decl_F_FULLFSYNC=yes
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968         ac_cv_have_decl_F_FULLFSYNC=no
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15972 fi
15973 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15974 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15975 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15976
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_DECL_F_FULLFSYNC 1
15979 _ACEOF
15980
15981
15982 else
15983   cat >>confdefs.h <<_ACEOF
15984 #define HAVE_DECL_F_FULLFSYNC 0
15985 _ACEOF
15986
15987
15988 fi
15989
15990
15991
15992 HAVE_IPV6=no
15993 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15994 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15995 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15996   echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15998   cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h.  */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h.  */
16004 $ac_includes_default
16005 #include <netinet/in.h>
16006
16007 typedef struct sockaddr_in6 ac__type_new_;
16008 int
16009 main ()
16010 {
16011 if ((ac__type_new_ *) 0)
16012   return 0;
16013 if (sizeof (ac__type_new_))
16014   return 0;
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest.$ac_objext
16020 if { (ac_try="$ac_compile"
16021 case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_compile") 2>conftest.er1
16027   ac_status=$?
16028   grep -v '^ *+' conftest.er1 >conftest.err
16029   rm -f conftest.er1
16030   cat conftest.err >&5
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } && {
16033          test -z "$ac_c_werror_flag" ||
16034          test ! -s conftest.err
16035        } && test -s conftest.$ac_objext; then
16036   ac_cv_type_struct_sockaddr_in6=yes
16037 else
16038   echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16040
16041         ac_cv_type_struct_sockaddr_in6=no
16042 fi
16043
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 fi
16046 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16047 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16048 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16049
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_IPV6 1
16052 _ACEOF
16053
16054          HAVE_IPV6=yes
16055 fi
16056
16057
16058
16059 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16060 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16061 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064   cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 #include <machine/vmparam.h>
16071 #include <sys/exec.h>
16072
16073 int
16074 main ()
16075 {
16076 PS_STRINGS->ps_nargvstr = 1;
16077 PS_STRINGS->ps_argvstr = "foo";
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_link") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } && {
16096          test -z "$ac_c_werror_flag" ||
16097          test ! -s conftest.err
16098        } && test -s conftest$ac_exeext &&
16099        $as_test_x conftest$ac_exeext; then
16100   pgac_cv_var_PS_STRINGS=yes
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105         pgac_cv_var_PS_STRINGS=no
16106 fi
16107
16108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16109       conftest$ac_exeext conftest.$ac_ext
16110 fi
16111 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16112 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16113 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16114
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_PS_STRINGS
16117 _ACEOF
16118
16119 fi
16120
16121
16122 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16123 # is missing.  Yes, there are machines that have only one.  We may
16124 # also decide to use snprintf.c if snprintf() is present but does not
16125 # have all the features we need --- see below.
16126
16127 if test "$PORTNAME" = "win32"; then
16128   # Win32 gets snprintf.c built unconditionally.
16129   #
16130   # To properly translate all NLS languages strings, we must support the
16131   # *printf() %$ format, which allows *printf() arguments to be selected
16132   # by position in the translated string.
16133   #
16134   # libintl versions < 0.13 use the native *printf() functions, and Win32
16135   # *printf() doesn't understand %$, so we must use our /port versions,
16136   # which do understand %$. libintl versions >= 0.13 include their own
16137   # *printf versions on Win32.  The libintl 0.13 release note text is:
16138   #
16139   #   C format strings with positions, as they arise when a translator
16140   #   needs to reorder a sentence, are now supported on all platforms.
16141   #   On those few platforms (NetBSD and Woe32) for which the native
16142   #   printf()/fprintf()/... functions don't support such format
16143   #   strings, replacements are provided through <libintl.h>.
16144   #
16145   # We could use libintl >= 0.13's *printf() if we were sure that we had
16146   # a litint >= 0.13 at runtime, but seeing that there is no clean way
16147   # to guarantee that, it is best to just use our own, so we are sure to
16148   # get %$ support. In include/port.h we disable the *printf() macros
16149   # that might have been defined by libintl.
16150   #
16151   # We do this unconditionally whether NLS is used or not so we are sure
16152   # that all Win32 libraries and binaries behave the same.
16153   pgac_need_repl_snprintf=yes
16154 else
16155   pgac_need_repl_snprintf=no
16156
16157 for ac_func in snprintf
16158 do
16159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16163   echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165   cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h.  */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h.  */
16171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16173 #define $ac_func innocuous_$ac_func
16174
16175 /* System header to define __stub macros and hopefully few prototypes,
16176     which can conflict with char $ac_func (); below.
16177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16178     <limits.h> exists even on freestanding compilers.  */
16179
16180 #ifdef __STDC__
16181 # include <limits.h>
16182 #else
16183 # include <assert.h>
16184 #endif
16185
16186 #undef $ac_func
16187
16188 /* Override any GCC internal prototype to avoid an error.
16189    Use char because int might match the return type of a GCC
16190    builtin and then its argument prototype would still apply.  */
16191 #ifdef __cplusplus
16192 extern "C"
16193 #endif
16194 char $ac_func ();
16195 /* The GNU C library defines this for functions which it implements
16196     to always fail with ENOSYS.  Some functions are actually named
16197     something starting with __ and the normal name is an alias.  */
16198 #if defined __stub_$ac_func || defined __stub___$ac_func
16199 choke me
16200 #endif
16201
16202 int
16203 main ()
16204 {
16205 return $ac_func ();
16206   ;
16207   return 0;
16208 }
16209 _ACEOF
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_link") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && {
16224          test -z "$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        } && test -s conftest$ac_exeext &&
16227        $as_test_x conftest$ac_exeext; then
16228   eval "$as_ac_var=yes"
16229 else
16230   echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233         eval "$as_ac_var=no"
16234 fi
16235
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16237       conftest$ac_exeext conftest.$ac_ext
16238 fi
16239 ac_res=`eval echo '${'$as_ac_var'}'`
16240                { echo "$as_me:$LINENO: result: $ac_res" >&5
16241 echo "${ECHO_T}$ac_res" >&6; }
16242 if test `eval echo '${'$as_ac_var'}'` = yes; then
16243   cat >>confdefs.h <<_ACEOF
16244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16245 _ACEOF
16246
16247 else
16248   pgac_need_repl_snprintf=yes
16249 fi
16250 done
16251
16252
16253 for ac_func in vsnprintf
16254 do
16255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16259   echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261   cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h.  */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h.  */
16267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16269 #define $ac_func innocuous_$ac_func
16270
16271 /* System header to define __stub macros and hopefully few prototypes,
16272     which can conflict with char $ac_func (); below.
16273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16274     <limits.h> exists even on freestanding compilers.  */
16275
16276 #ifdef __STDC__
16277 # include <limits.h>
16278 #else
16279 # include <assert.h>
16280 #endif
16281
16282 #undef $ac_func
16283
16284 /* Override any GCC internal prototype to avoid an error.
16285    Use char because int might match the return type of a GCC
16286    builtin and then its argument prototype would still apply.  */
16287 #ifdef __cplusplus
16288 extern "C"
16289 #endif
16290 char $ac_func ();
16291 /* The GNU C library defines this for functions which it implements
16292     to always fail with ENOSYS.  Some functions are actually named
16293     something starting with __ and the normal name is an alias.  */
16294 #if defined __stub_$ac_func || defined __stub___$ac_func
16295 choke me
16296 #endif
16297
16298 int
16299 main ()
16300 {
16301 return $ac_func ();
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (ac_try="$ac_link"
16308 case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_link") 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } && {
16320          test -z "$ac_c_werror_flag" ||
16321          test ! -s conftest.err
16322        } && test -s conftest$ac_exeext &&
16323        $as_test_x conftest$ac_exeext; then
16324   eval "$as_ac_var=yes"
16325 else
16326   echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16328
16329         eval "$as_ac_var=no"
16330 fi
16331
16332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16333       conftest$ac_exeext conftest.$ac_ext
16334 fi
16335 ac_res=`eval echo '${'$as_ac_var'}'`
16336                { echo "$as_me:$LINENO: result: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16338 if test `eval echo '${'$as_ac_var'}'` = yes; then
16339   cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16341 _ACEOF
16342
16343 else
16344   pgac_need_repl_snprintf=yes
16345 fi
16346 done
16347
16348 fi
16349
16350
16351 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16352 # include/c.h will provide declarations.  Note this is a separate test
16353 # from whether the functions exist in the C library --- there are
16354 # systems that have the functions but don't bother to declare them :-(
16355
16356 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16357 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16358 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 $ac_includes_default
16368 int
16369 main ()
16370 {
16371 #ifndef snprintf
16372   (void) snprintf;
16373 #endif
16374
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (ac_try="$ac_compile"
16381 case "(($ac_try" in
16382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383   *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386   (eval "$ac_compile") 2>conftest.er1
16387   ac_status=$?
16388   grep -v '^ *+' conftest.er1 >conftest.err
16389   rm -f conftest.er1
16390   cat conftest.err >&5
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } && {
16393          test -z "$ac_c_werror_flag" ||
16394          test ! -s conftest.err
16395        } && test -s conftest.$ac_objext; then
16396   ac_cv_have_decl_snprintf=yes
16397 else
16398   echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401         ac_cv_have_decl_snprintf=no
16402 fi
16403
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 fi
16406 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16407 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16408 if test $ac_cv_have_decl_snprintf = yes; then
16409
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_DECL_SNPRINTF 1
16412 _ACEOF
16413
16414
16415 else
16416   cat >>confdefs.h <<_ACEOF
16417 #define HAVE_DECL_SNPRINTF 0
16418 _ACEOF
16419
16420
16421 fi
16422 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16423 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16424 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 $ac_includes_default
16434 int
16435 main ()
16436 {
16437 #ifndef vsnprintf
16438   (void) vsnprintf;
16439 #endif
16440
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext
16446 if { (ac_try="$ac_compile"
16447 case "(($ac_try" in
16448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449   *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452   (eval "$ac_compile") 2>conftest.er1
16453   ac_status=$?
16454   grep -v '^ *+' conftest.er1 >conftest.err
16455   rm -f conftest.er1
16456   cat conftest.err >&5
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); } && {
16459          test -z "$ac_c_werror_flag" ||
16460          test ! -s conftest.err
16461        } && test -s conftest.$ac_objext; then
16462   ac_cv_have_decl_vsnprintf=yes
16463 else
16464   echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467         ac_cv_have_decl_vsnprintf=no
16468 fi
16469
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 fi
16472 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16473 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16474 if test $ac_cv_have_decl_vsnprintf = yes; then
16475
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_DECL_VSNPRINTF 1
16478 _ACEOF
16479
16480
16481 else
16482   cat >>confdefs.h <<_ACEOF
16483 #define HAVE_DECL_VSNPRINTF 0
16484 _ACEOF
16485
16486
16487 fi
16488
16489
16490
16491
16492 { echo "$as_me:$LINENO: checking for isinf" >&5
16493 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16494 if test "${ac_cv_func_isinf+set}" = set; then
16495   echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497   cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503
16504 #include <math.h>
16505 double glob_double;
16506
16507 int
16508 main ()
16509 {
16510 return isinf(glob_double) ? 0 : 1;
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_link") 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } && {
16529          test -z "$ac_c_werror_flag" ||
16530          test ! -s conftest.err
16531        } && test -s conftest$ac_exeext &&
16532        $as_test_x conftest$ac_exeext; then
16533   ac_cv_func_isinf=yes
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538         ac_cv_func_isinf=no
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542       conftest$ac_exeext conftest.$ac_ext
16543 fi
16544 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16545 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16546
16547 if test $ac_cv_func_isinf = yes ; then
16548
16549 cat >>confdefs.h <<\_ACEOF
16550 #define HAVE_ISINF 1
16551 _ACEOF
16552
16553 else
16554   case " $LIBOBJS " in
16555   *" isinf.$ac_objext "* ) ;;
16556   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16557  ;;
16558 esac
16559
16560   # Look for a way to implement a substitute for isinf()
16561
16562
16563
16564
16565 for ac_func in fpclass fp_class fp_class_d class
16566 do
16567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16571   echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573   cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h.  */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h.  */
16579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16581 #define $ac_func innocuous_$ac_func
16582
16583 /* System header to define __stub macros and hopefully few prototypes,
16584     which can conflict with char $ac_func (); below.
16585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16586     <limits.h> exists even on freestanding compilers.  */
16587
16588 #ifdef __STDC__
16589 # include <limits.h>
16590 #else
16591 # include <assert.h>
16592 #endif
16593
16594 #undef $ac_func
16595
16596 /* Override any GCC internal prototype to avoid an error.
16597    Use char because int might match the return type of a GCC
16598    builtin and then its argument prototype would still apply.  */
16599 #ifdef __cplusplus
16600 extern "C"
16601 #endif
16602 char $ac_func ();
16603 /* The GNU C library defines this for functions which it implements
16604     to always fail with ENOSYS.  Some functions are actually named
16605     something starting with __ and the normal name is an alias.  */
16606 #if defined __stub_$ac_func || defined __stub___$ac_func
16607 choke me
16608 #endif
16609
16610 int
16611 main ()
16612 {
16613 return $ac_func ();
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (ac_try="$ac_link"
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_link") 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_exeext &&
16635        $as_test_x conftest$ac_exeext; then
16636   eval "$as_ac_var=yes"
16637 else
16638   echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641         eval "$as_ac_var=no"
16642 fi
16643
16644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16645       conftest$ac_exeext conftest.$ac_ext
16646 fi
16647 ac_res=`eval echo '${'$as_ac_var'}'`
16648                { echo "$as_me:$LINENO: result: $ac_res" >&5
16649 echo "${ECHO_T}$ac_res" >&6; }
16650 if test `eval echo '${'$as_ac_var'}'` = yes; then
16651   cat >>confdefs.h <<_ACEOF
16652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16653 _ACEOF
16654  break
16655 fi
16656 done
16657
16658 fi
16659
16660 # Some versions of libedit contain strlcpy(); so disregard that library while
16661 # checking for these standard libc functions.
16662 pgac_save_LIBS="$LIBS"
16663 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16680 do
16681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16695 #define $ac_func innocuous_$ac_func
16696
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char $ac_func (); below.
16699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700     <limits.h> exists even on freestanding compilers.  */
16701
16702 #ifdef __STDC__
16703 # include <limits.h>
16704 #else
16705 # include <assert.h>
16706 #endif
16707
16708 #undef $ac_func
16709
16710 /* Override any GCC internal prototype to avoid an error.
16711    Use char because int might match the return type of a GCC
16712    builtin and then its argument prototype would still apply.  */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 char $ac_func ();
16717 /* The GNU C library defines this for functions which it implements
16718     to always fail with ENOSYS.  Some functions are actually named
16719     something starting with __ and the normal name is an alias.  */
16720 #if defined __stub_$ac_func || defined __stub___$ac_func
16721 choke me
16722 #endif
16723
16724 int
16725 main ()
16726 {
16727 return $ac_func ();
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_link") 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } && {
16746          test -z "$ac_c_werror_flag" ||
16747          test ! -s conftest.err
16748        } && test -s conftest$ac_exeext &&
16749        $as_test_x conftest$ac_exeext; then
16750   eval "$as_ac_var=yes"
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755         eval "$as_ac_var=no"
16756 fi
16757
16758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16759       conftest$ac_exeext conftest.$ac_ext
16760 fi
16761 ac_res=`eval echo '${'$as_ac_var'}'`
16762                { echo "$as_me:$LINENO: result: $ac_res" >&5
16763 echo "${ECHO_T}$ac_res" >&6; }
16764 if test `eval echo '${'$as_ac_var'}'` = yes; then
16765   cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16767 _ACEOF
16768
16769 else
16770   case " $LIBOBJS " in
16771   *" $ac_func.$ac_objext "* ) ;;
16772   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16773  ;;
16774 esac
16775
16776 fi
16777 done
16778
16779
16780
16781 LIBS="$pgac_save_LIBS"
16782
16783 # System's version of getaddrinfo(), if any, may be used only if we found
16784 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16785 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16786 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
16787 # because we want to use our own getaddrinfo.c on Windows anyway.)
16788 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16789
16790 for ac_func in getaddrinfo
16791 do
16792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16806 #define $ac_func innocuous_$ac_func
16807
16808 /* System header to define __stub macros and hopefully few prototypes,
16809     which can conflict with char $ac_func (); below.
16810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811     <limits.h> exists even on freestanding compilers.  */
16812
16813 #ifdef __STDC__
16814 # include <limits.h>
16815 #else
16816 # include <assert.h>
16817 #endif
16818
16819 #undef $ac_func
16820
16821 /* Override any GCC internal prototype to avoid an error.
16822    Use char because int might match the return type of a GCC
16823    builtin and then its argument prototype would still apply.  */
16824 #ifdef __cplusplus
16825 extern "C"
16826 #endif
16827 char $ac_func ();
16828 /* The GNU C library defines this for functions which it implements
16829     to always fail with ENOSYS.  Some functions are actually named
16830     something starting with __ and the normal name is an alias.  */
16831 #if defined __stub_$ac_func || defined __stub___$ac_func
16832 choke me
16833 #endif
16834
16835 int
16836 main ()
16837 {
16838 return $ac_func ();
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847   *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850   (eval "$ac_link") 2>conftest.er1
16851   ac_status=$?
16852   grep -v '^ *+' conftest.er1 >conftest.err
16853   rm -f conftest.er1
16854   cat conftest.err >&5
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } && {
16857          test -z "$ac_c_werror_flag" ||
16858          test ! -s conftest.err
16859        } && test -s conftest$ac_exeext &&
16860        $as_test_x conftest$ac_exeext; then
16861   eval "$as_ac_var=yes"
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866         eval "$as_ac_var=no"
16867 fi
16868
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870       conftest$ac_exeext conftest.$ac_ext
16871 fi
16872 ac_res=`eval echo '${'$as_ac_var'}'`
16873                { echo "$as_me:$LINENO: result: $ac_res" >&5
16874 echo "${ECHO_T}$ac_res" >&6; }
16875 if test `eval echo '${'$as_ac_var'}'` = yes; then
16876   cat >>confdefs.h <<_ACEOF
16877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16878 _ACEOF
16879
16880 else
16881   case " $LIBOBJS " in
16882   *" $ac_func.$ac_objext "* ) ;;
16883   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16884  ;;
16885 esac
16886
16887 fi
16888 done
16889
16890
16891 else
16892   case " $LIBOBJS " in
16893   *" getaddrinfo.$ac_objext "* ) ;;
16894   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16895  ;;
16896 esac
16897
16898 fi
16899
16900 # Similarly, use system's getopt_long() only if system provides struct option.
16901 # Solaris' getopt() doesn't do what we want for long options, so always use
16902 # our versions on that platform.
16903 if test "$PORTNAME" = "solaris"; then
16904   case " $LIBOBJS " in
16905   *" getopt.$ac_objext "* ) ;;
16906   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16907  ;;
16908 esac
16909
16910   case " $LIBOBJS " in
16911   *" getopt_long.$ac_objext "* ) ;;
16912   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16913  ;;
16914 esac
16915
16916 elif test x"$ac_cv_type_struct_option" = xyes ; then
16917
16918 for ac_func in getopt_long
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 else
17020   case " $LIBOBJS " in
17021   *" getopt_long.$ac_objext "* ) ;;
17022   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17023  ;;
17024 esac
17025
17026 fi
17027
17028 # Win32 support
17029 if test "$PORTNAME" = "win32"; then
17030
17031 for ac_func in gettimeofday
17032 do
17033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17037   echo $ECHO_N "(cached) $ECHO_C" >&6
17038 else
17039   cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17047 #define $ac_func innocuous_$ac_func
17048
17049 /* System header to define __stub macros and hopefully few prototypes,
17050     which can conflict with char $ac_func (); below.
17051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17052     <limits.h> exists even on freestanding compilers.  */
17053
17054 #ifdef __STDC__
17055 # include <limits.h>
17056 #else
17057 # include <assert.h>
17058 #endif
17059
17060 #undef $ac_func
17061
17062 /* Override any GCC internal prototype to avoid an error.
17063    Use char because int might match the return type of a GCC
17064    builtin and then its argument prototype would still apply.  */
17065 #ifdef __cplusplus
17066 extern "C"
17067 #endif
17068 char $ac_func ();
17069 /* The GNU C library defines this for functions which it implements
17070     to always fail with ENOSYS.  Some functions are actually named
17071     something starting with __ and the normal name is an alias.  */
17072 #if defined __stub_$ac_func || defined __stub___$ac_func
17073 choke me
17074 #endif
17075
17076 int
17077 main ()
17078 {
17079 return $ac_func ();
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (ac_try="$ac_link"
17086 case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_link") 2>conftest.er1
17092   ac_status=$?
17093   grep -v '^ *+' conftest.er1 >conftest.err
17094   rm -f conftest.er1
17095   cat conftest.err >&5
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } && {
17098          test -z "$ac_c_werror_flag" ||
17099          test ! -s conftest.err
17100        } && test -s conftest$ac_exeext &&
17101        $as_test_x conftest$ac_exeext; then
17102   eval "$as_ac_var=yes"
17103 else
17104   echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17106
17107         eval "$as_ac_var=no"
17108 fi
17109
17110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17111       conftest$ac_exeext conftest.$ac_ext
17112 fi
17113 ac_res=`eval echo '${'$as_ac_var'}'`
17114                { echo "$as_me:$LINENO: result: $ac_res" >&5
17115 echo "${ECHO_T}$ac_res" >&6; }
17116 if test `eval echo '${'$as_ac_var'}'` = yes; then
17117   cat >>confdefs.h <<_ACEOF
17118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17119 _ACEOF
17120
17121 else
17122   case " $LIBOBJS " in
17123   *" $ac_func.$ac_objext "* ) ;;
17124   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17125  ;;
17126 esac
17127
17128 fi
17129 done
17130
17131
17132 case " $LIBOBJS " in
17133   *" kill.$ac_objext "* ) ;;
17134   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17135  ;;
17136 esac
17137
17138 case " $LIBOBJS " in
17139   *" open.$ac_objext "* ) ;;
17140   *) LIBOBJS="$LIBOBJS open.$ac_objext"
17141  ;;
17142 esac
17143
17144 case " $LIBOBJS " in
17145   *" rand.$ac_objext "* ) ;;
17146   *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17147  ;;
17148 esac
17149
17150 case " $LIBOBJS " in
17151   *" win32error.$ac_objext "* ) ;;
17152   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17153  ;;
17154 esac
17155
17156
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_SYMLINK 1
17159 _ACEOF
17160
17161 fi
17162
17163 if test "$with_readline" = yes; then
17164   { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17165 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17166 cat >conftest.$ac_ext <<_ACEOF
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172 #include <stdio.h>
17173 #ifdef HAVE_READLINE_READLINE_H
17174 # include <readline/readline.h>
17175 #elif defined(HAVE_READLINE_H)
17176 # include <readline.h>
17177 #endif
17178
17179 int
17180 main ()
17181 {
17182 rl_completion_append_character = 'x';
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191   *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194   (eval "$ac_link") 2>conftest.er1
17195   ac_status=$?
17196   grep -v '^ *+' conftest.er1 >conftest.err
17197   rm -f conftest.er1
17198   cat conftest.err >&5
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); } && {
17201          test -z "$ac_c_werror_flag" ||
17202          test ! -s conftest.err
17203        } && test -s conftest$ac_exeext &&
17204        $as_test_x conftest$ac_exeext; then
17205   { echo "$as_me:$LINENO: result: yes" >&5
17206 echo "${ECHO_T}yes" >&6; }
17207
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17210 _ACEOF
17211
17212 else
17213   echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216         { echo "$as_me:$LINENO: result: no" >&5
17217 echo "${ECHO_T}no" >&6; }
17218 fi
17219
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221       conftest$ac_exeext conftest.$ac_ext
17222
17223
17224 for ac_func in rl_completion_matches rl_filename_completion_function
17225 do
17226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17230   echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232   cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17240 #define $ac_func innocuous_$ac_func
17241
17242 /* System header to define __stub macros and hopefully few prototypes,
17243     which can conflict with char $ac_func (); below.
17244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17245     <limits.h> exists even on freestanding compilers.  */
17246
17247 #ifdef __STDC__
17248 # include <limits.h>
17249 #else
17250 # include <assert.h>
17251 #endif
17252
17253 #undef $ac_func
17254
17255 /* Override any GCC internal prototype to avoid an error.
17256    Use char because int might match the return type of a GCC
17257    builtin and then its argument prototype would still apply.  */
17258 #ifdef __cplusplus
17259 extern "C"
17260 #endif
17261 char $ac_func ();
17262 /* The GNU C library defines this for functions which it implements
17263     to always fail with ENOSYS.  Some functions are actually named
17264     something starting with __ and the normal name is an alias.  */
17265 #if defined __stub_$ac_func || defined __stub___$ac_func
17266 choke me
17267 #endif
17268
17269 int
17270 main ()
17271 {
17272 return $ac_func ();
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_link") 2>conftest.er1
17285   ac_status=$?
17286   grep -v '^ *+' conftest.er1 >conftest.err
17287   rm -f conftest.er1
17288   cat conftest.err >&5
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); } && {
17291          test -z "$ac_c_werror_flag" ||
17292          test ! -s conftest.err
17293        } && test -s conftest$ac_exeext &&
17294        $as_test_x conftest$ac_exeext; then
17295   eval "$as_ac_var=yes"
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300         eval "$as_ac_var=no"
17301 fi
17302
17303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17304       conftest$ac_exeext conftest.$ac_ext
17305 fi
17306 ac_res=`eval echo '${'$as_ac_var'}'`
17307                { echo "$as_me:$LINENO: result: $ac_res" >&5
17308 echo "${ECHO_T}$ac_res" >&6; }
17309 if test `eval echo '${'$as_ac_var'}'` = yes; then
17310   cat >>confdefs.h <<_ACEOF
17311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17312 _ACEOF
17313
17314 fi
17315 done
17316
17317
17318 for ac_func in replace_history_entry
17319 do
17320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17334 #define $ac_func innocuous_$ac_func
17335
17336 /* System header to define __stub macros and hopefully few prototypes,
17337     which can conflict with char $ac_func (); below.
17338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339     <limits.h> exists even on freestanding compilers.  */
17340
17341 #ifdef __STDC__
17342 # include <limits.h>
17343 #else
17344 # include <assert.h>
17345 #endif
17346
17347 #undef $ac_func
17348
17349 /* Override any GCC internal prototype to avoid an error.
17350    Use char because int might match the return type of a GCC
17351    builtin and then its argument prototype would still apply.  */
17352 #ifdef __cplusplus
17353 extern "C"
17354 #endif
17355 char $ac_func ();
17356 /* The GNU C library defines this for functions which it implements
17357     to always fail with ENOSYS.  Some functions are actually named
17358     something starting with __ and the normal name is an alias.  */
17359 #if defined __stub_$ac_func || defined __stub___$ac_func
17360 choke me
17361 #endif
17362
17363 int
17364 main ()
17365 {
17366 return $ac_func ();
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_link") 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } && {
17385          test -z "$ac_c_werror_flag" ||
17386          test ! -s conftest.err
17387        } && test -s conftest$ac_exeext &&
17388        $as_test_x conftest$ac_exeext; then
17389   eval "$as_ac_var=yes"
17390 else
17391   echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394         eval "$as_ac_var=no"
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398       conftest$ac_exeext conftest.$ac_ext
17399 fi
17400 ac_res=`eval echo '${'$as_ac_var'}'`
17401                { echo "$as_me:$LINENO: result: $ac_res" >&5
17402 echo "${ECHO_T}$ac_res" >&6; }
17403 if test `eval echo '${'$as_ac_var'}'` = yes; then
17404   cat >>confdefs.h <<_ACEOF
17405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17406 _ACEOF
17407
17408 fi
17409 done
17410
17411 fi
17412
17413
17414 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17415 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17416 cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h.  */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h.  */
17422 #include <setjmp.h>
17423 int
17424 main ()
17425 {
17426 sigjmp_buf x; sigsetjmp(x, 1);
17427   ;
17428   return 0;
17429 }
17430 _ACEOF
17431 rm -f conftest.$ac_objext conftest$ac_exeext
17432 if { (ac_try="$ac_link"
17433 case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_link") 2>conftest.er1
17439   ac_status=$?
17440   grep -v '^ *+' conftest.er1 >conftest.err
17441   rm -f conftest.er1
17442   cat conftest.err >&5
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); } && {
17445          test -z "$ac_c_werror_flag" ||
17446          test ! -s conftest.err
17447        } && test -s conftest$ac_exeext &&
17448        $as_test_x conftest$ac_exeext; then
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_SIGSETJMP 1
17452 _ACEOF
17453
17454 { echo "$as_me:$LINENO: result: yes" >&5
17455 echo "${ECHO_T}yes" >&6; }
17456 else
17457   echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460         { echo "$as_me:$LINENO: result: no" >&5
17461 echo "${ECHO_T}no" >&6; }
17462 fi
17463
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465       conftest$ac_exeext conftest.$ac_ext
17466
17467 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17468 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17469 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478 #include <signal.h>
17479 /* NetBSD declares sys_siglist in unistd.h.  */
17480 #ifdef HAVE_UNISTD_H
17481 # include <unistd.h>
17482 #endif
17483
17484
17485 int
17486 main ()
17487 {
17488 #ifndef sys_siglist
17489   (void) sys_siglist;
17490 #endif
17491
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_compile") 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } && {
17510          test -z "$ac_c_werror_flag" ||
17511          test ! -s conftest.err
17512        } && test -s conftest.$ac_objext; then
17513   ac_cv_have_decl_sys_siglist=yes
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518         ac_cv_have_decl_sys_siglist=no
17519 fi
17520
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 fi
17523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17524 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17525 if test $ac_cv_have_decl_sys_siglist = yes; then
17526
17527 cat >>confdefs.h <<_ACEOF
17528 #define HAVE_DECL_SYS_SIGLIST 1
17529 _ACEOF
17530
17531
17532 else
17533   cat >>confdefs.h <<_ACEOF
17534 #define HAVE_DECL_SYS_SIGLIST 0
17535 _ACEOF
17536
17537
17538 fi
17539
17540
17541
17542
17543 { echo "$as_me:$LINENO: checking for syslog" >&5
17544 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17545 if test "${ac_cv_func_syslog+set}" = set; then
17546   echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548   cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17556 #define syslog innocuous_syslog
17557
17558 /* System header to define __stub macros and hopefully few prototypes,
17559     which can conflict with char syslog (); below.
17560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17561     <limits.h> exists even on freestanding compilers.  */
17562
17563 #ifdef __STDC__
17564 # include <limits.h>
17565 #else
17566 # include <assert.h>
17567 #endif
17568
17569 #undef syslog
17570
17571 /* Override any GCC internal prototype to avoid an error.
17572    Use char because int might match the return type of a GCC
17573    builtin and then its argument prototype would still apply.  */
17574 #ifdef __cplusplus
17575 extern "C"
17576 #endif
17577 char syslog ();
17578 /* The GNU C library defines this for functions which it implements
17579     to always fail with ENOSYS.  Some functions are actually named
17580     something starting with __ and the normal name is an alias.  */
17581 #if defined __stub_syslog || defined __stub___syslog
17582 choke me
17583 #endif
17584
17585 int
17586 main ()
17587 {
17588 return syslog ();
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_link") 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && {
17607          test -z "$ac_c_werror_flag" ||
17608          test ! -s conftest.err
17609        } && test -s conftest$ac_exeext &&
17610        $as_test_x conftest$ac_exeext; then
17611   ac_cv_func_syslog=yes
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616         ac_cv_func_syslog=no
17617 fi
17618
17619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17620       conftest$ac_exeext conftest.$ac_ext
17621 fi
17622 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17623 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17624 if test $ac_cv_func_syslog = yes; then
17625   if test "${ac_cv_header_syslog_h+set}" = set; then
17626   { echo "$as_me:$LINENO: checking for syslog.h" >&5
17627 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17628 if test "${ac_cv_header_syslog_h+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 fi
17631 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17632 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17633 else
17634   # Is the header compilable?
17635 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17636 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 $ac_includes_default
17644 #include <syslog.h>
17645 _ACEOF
17646 rm -f conftest.$ac_objext
17647 if { (ac_try="$ac_compile"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_compile") 2>conftest.er1
17654   ac_status=$?
17655   grep -v '^ *+' conftest.er1 >conftest.err
17656   rm -f conftest.er1
17657   cat conftest.err >&5
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); } && {
17660          test -z "$ac_c_werror_flag" ||
17661          test ! -s conftest.err
17662        } && test -s conftest.$ac_objext; then
17663   ac_header_compiler=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         ac_header_compiler=no
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 echo "${ECHO_T}$ac_header_compiler" >&6; }
17674
17675 # Is the header present?
17676 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17677 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 #include <syslog.h>
17685 _ACEOF
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } >/dev/null && {
17699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17700          test ! -s conftest.err
17701        }; then
17702   ac_header_preproc=yes
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707   ac_header_preproc=no
17708 fi
17709
17710 rm -f conftest.err conftest.$ac_ext
17711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17712 echo "${ECHO_T}$ac_header_preproc" >&6; }
17713
17714 # So?  What about this header?
17715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17716   yes:no: )
17717     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17718 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17719     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17720 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17721     ac_header_preproc=yes
17722     ;;
17723   no:yes:* )
17724     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17725 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17726     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
17727 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
17728     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17729 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17730     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
17731 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17732     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17733 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17734     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17735 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17736     ( cat <<\_ASBOX
17737 ## ---------------------------------------- ##
17738 ## Report this to pgsql-bugs@postgresql.org ##
17739 ## ---------------------------------------- ##
17740 _ASBOX
17741      ) | sed "s/^/$as_me: WARNING:     /" >&2
17742     ;;
17743 esac
17744 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17745 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17746 if test "${ac_cv_header_syslog_h+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   ac_cv_header_syslog_h=$ac_header_preproc
17750 fi
17751 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17752 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17753
17754 fi
17755 if test $ac_cv_header_syslog_h = yes; then
17756
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_SYSLOG 1
17759 _ACEOF
17760
17761 fi
17762
17763
17764 fi
17765
17766
17767 { echo "$as_me:$LINENO: checking for optreset" >&5
17768 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17769 if test "${pgac_cv_var_int_optreset+set}" = set; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778 #include <unistd.h>
17779 int
17780 main ()
17781 {
17782 extern int optreset; optreset = 1;
17783   ;
17784   return 0;
17785 }
17786 _ACEOF
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (ac_try="$ac_link"
17789 case "(($ac_try" in
17790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791   *) ac_try_echo=$ac_try;;
17792 esac
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794   (eval "$ac_link") 2>conftest.er1
17795   ac_status=$?
17796   grep -v '^ *+' conftest.er1 >conftest.err
17797   rm -f conftest.er1
17798   cat conftest.err >&5
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); } && {
17801          test -z "$ac_c_werror_flag" ||
17802          test ! -s conftest.err
17803        } && test -s conftest$ac_exeext &&
17804        $as_test_x conftest$ac_exeext; then
17805   pgac_cv_var_int_optreset=yes
17806 else
17807   echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810         pgac_cv_var_int_optreset=no
17811 fi
17812
17813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17814       conftest$ac_exeext conftest.$ac_ext
17815 fi
17816 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17817 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17818 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17819
17820 cat >>confdefs.h <<\_ACEOF
17821 #define HAVE_INT_OPTRESET 1
17822 _ACEOF
17823
17824 fi
17825
17826
17827
17828 for ac_func in strtoll strtoq
17829 do
17830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17834   echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836   cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17844 #define $ac_func innocuous_$ac_func
17845
17846 /* System header to define __stub macros and hopefully few prototypes,
17847     which can conflict with char $ac_func (); below.
17848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17849     <limits.h> exists even on freestanding compilers.  */
17850
17851 #ifdef __STDC__
17852 # include <limits.h>
17853 #else
17854 # include <assert.h>
17855 #endif
17856
17857 #undef $ac_func
17858
17859 /* Override any GCC internal prototype to avoid an error.
17860    Use char because int might match the return type of a GCC
17861    builtin and then its argument prototype would still apply.  */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char $ac_func ();
17866 /* The GNU C library defines this for functions which it implements
17867     to always fail with ENOSYS.  Some functions are actually named
17868     something starting with __ and the normal name is an alias.  */
17869 #if defined __stub_$ac_func || defined __stub___$ac_func
17870 choke me
17871 #endif
17872
17873 int
17874 main ()
17875 {
17876 return $ac_func ();
17877   ;
17878   return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest.$ac_objext conftest$ac_exeext
17882 if { (ac_try="$ac_link"
17883 case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_link") 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } && {
17895          test -z "$ac_c_werror_flag" ||
17896          test ! -s conftest.err
17897        } && test -s conftest$ac_exeext &&
17898        $as_test_x conftest$ac_exeext; then
17899   eval "$as_ac_var=yes"
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904         eval "$as_ac_var=no"
17905 fi
17906
17907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17908       conftest$ac_exeext conftest.$ac_ext
17909 fi
17910 ac_res=`eval echo '${'$as_ac_var'}'`
17911                { echo "$as_me:$LINENO: result: $ac_res" >&5
17912 echo "${ECHO_T}$ac_res" >&6; }
17913 if test `eval echo '${'$as_ac_var'}'` = yes; then
17914   cat >>confdefs.h <<_ACEOF
17915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17916 _ACEOF
17917  break
17918 fi
17919 done
17920
17921
17922
17923 for ac_func in strtoull strtouq
17924 do
17925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931   cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h.  */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h.  */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17939 #define $ac_func innocuous_$ac_func
17940
17941 /* System header to define __stub macros and hopefully few prototypes,
17942     which can conflict with char $ac_func (); below.
17943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944     <limits.h> exists even on freestanding compilers.  */
17945
17946 #ifdef __STDC__
17947 # include <limits.h>
17948 #else
17949 # include <assert.h>
17950 #endif
17951
17952 #undef $ac_func
17953
17954 /* Override any GCC internal prototype to avoid an error.
17955    Use char because int might match the return type of a GCC
17956    builtin and then its argument prototype would still apply.  */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 char $ac_func ();
17961 /* The GNU C library defines this for functions which it implements
17962     to always fail with ENOSYS.  Some functions are actually named
17963     something starting with __ and the normal name is an alias.  */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17965 choke me
17966 #endif
17967
17968 int
17969 main ()
17970 {
17971 return $ac_func ();
17972   ;
17973   return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (ac_try="$ac_link"
17978 case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983   (eval "$ac_link") 2>conftest.er1
17984   ac_status=$?
17985   grep -v '^ *+' conftest.er1 >conftest.err
17986   rm -f conftest.er1
17987   cat conftest.err >&5
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); } && {
17990          test -z "$ac_c_werror_flag" ||
17991          test ! -s conftest.err
17992        } && test -s conftest$ac_exeext &&
17993        $as_test_x conftest$ac_exeext; then
17994   eval "$as_ac_var=yes"
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999         eval "$as_ac_var=no"
18000 fi
18001
18002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18003       conftest$ac_exeext conftest.$ac_ext
18004 fi
18005 ac_res=`eval echo '${'$as_ac_var'}'`
18006                { echo "$as_me:$LINENO: result: $ac_res" >&5
18007 echo "${ECHO_T}$ac_res" >&6; }
18008 if test `eval echo '${'$as_ac_var'}'` = yes; then
18009   cat >>confdefs.h <<_ACEOF
18010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18011 _ACEOF
18012  break
18013 fi
18014 done
18015
18016
18017 # Check for one of atexit() or on_exit()
18018
18019 for ac_func in atexit
18020 do
18021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18035 #define $ac_func innocuous_$ac_func
18036
18037 /* System header to define __stub macros and hopefully few prototypes,
18038     which can conflict with char $ac_func (); below.
18039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040     <limits.h> exists even on freestanding compilers.  */
18041
18042 #ifdef __STDC__
18043 # include <limits.h>
18044 #else
18045 # include <assert.h>
18046 #endif
18047
18048 #undef $ac_func
18049
18050 /* Override any GCC internal prototype to avoid an error.
18051    Use char because int might match the return type of a GCC
18052    builtin and then its argument prototype would still apply.  */
18053 #ifdef __cplusplus
18054 extern "C"
18055 #endif
18056 char $ac_func ();
18057 /* The GNU C library defines this for functions which it implements
18058     to always fail with ENOSYS.  Some functions are actually named
18059     something starting with __ and the normal name is an alias.  */
18060 #if defined __stub_$ac_func || defined __stub___$ac_func
18061 choke me
18062 #endif
18063
18064 int
18065 main ()
18066 {
18067 return $ac_func ();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079   (eval "$ac_link") 2>conftest.er1
18080   ac_status=$?
18081   grep -v '^ *+' conftest.er1 >conftest.err
18082   rm -f conftest.er1
18083   cat conftest.err >&5
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } && {
18086          test -z "$ac_c_werror_flag" ||
18087          test ! -s conftest.err
18088        } && test -s conftest$ac_exeext &&
18089        $as_test_x conftest$ac_exeext; then
18090   eval "$as_ac_var=yes"
18091 else
18092   echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095         eval "$as_ac_var=no"
18096 fi
18097
18098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18099       conftest$ac_exeext conftest.$ac_ext
18100 fi
18101 ac_res=`eval echo '${'$as_ac_var'}'`
18102                { echo "$as_me:$LINENO: result: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18104 if test `eval echo '${'$as_ac_var'}'` = yes; then
18105   cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18107 _ACEOF
18108
18109 else
18110
18111 for ac_func in on_exit
18112 do
18113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119   cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h.  */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h.  */
18125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18127 #define $ac_func innocuous_$ac_func
18128
18129 /* System header to define __stub macros and hopefully few prototypes,
18130     which can conflict with char $ac_func (); below.
18131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18132     <limits.h> exists even on freestanding compilers.  */
18133
18134 #ifdef __STDC__
18135 # include <limits.h>
18136 #else
18137 # include <assert.h>
18138 #endif
18139
18140 #undef $ac_func
18141
18142 /* Override any GCC internal prototype to avoid an error.
18143    Use char because int might match the return type of a GCC
18144    builtin and then its argument prototype would still apply.  */
18145 #ifdef __cplusplus
18146 extern "C"
18147 #endif
18148 char $ac_func ();
18149 /* The GNU C library defines this for functions which it implements
18150     to always fail with ENOSYS.  Some functions are actually named
18151     something starting with __ and the normal name is an alias.  */
18152 #if defined __stub_$ac_func || defined __stub___$ac_func
18153 choke me
18154 #endif
18155
18156 int
18157 main ()
18158 {
18159 return $ac_func ();
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_link") 2>conftest.er1
18172   ac_status=$?
18173   grep -v '^ *+' conftest.er1 >conftest.err
18174   rm -f conftest.er1
18175   cat conftest.err >&5
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } && {
18178          test -z "$ac_c_werror_flag" ||
18179          test ! -s conftest.err
18180        } && test -s conftest$ac_exeext &&
18181        $as_test_x conftest$ac_exeext; then
18182   eval "$as_ac_var=yes"
18183 else
18184   echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187         eval "$as_ac_var=no"
18188 fi
18189
18190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18191       conftest$ac_exeext conftest.$ac_ext
18192 fi
18193 ac_res=`eval echo '${'$as_ac_var'}'`
18194                { echo "$as_me:$LINENO: result: $ac_res" >&5
18195 echo "${ECHO_T}$ac_res" >&6; }
18196 if test `eval echo '${'$as_ac_var'}'` = yes; then
18197   cat >>confdefs.h <<_ACEOF
18198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18199 _ACEOF
18200
18201 else
18202   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18203 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18204    { (exit 1); exit 1; }; }
18205 fi
18206 done
18207
18208 fi
18209 done
18210
18211
18212
18213 for ac_func in fseeko
18214 do
18215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18219   echo $ECHO_N "(cached) $ECHO_C" >&6
18220 else
18221   cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18229 #define $ac_func innocuous_$ac_func
18230
18231 /* System header to define __stub macros and hopefully few prototypes,
18232     which can conflict with char $ac_func (); below.
18233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234     <limits.h> exists even on freestanding compilers.  */
18235
18236 #ifdef __STDC__
18237 # include <limits.h>
18238 #else
18239 # include <assert.h>
18240 #endif
18241
18242 #undef $ac_func
18243
18244 /* Override any GCC internal prototype to avoid an error.
18245    Use char because int might match the return type of a GCC
18246    builtin and then its argument prototype would still apply.  */
18247 #ifdef __cplusplus
18248 extern "C"
18249 #endif
18250 char $ac_func ();
18251 /* The GNU C library defines this for functions which it implements
18252     to always fail with ENOSYS.  Some functions are actually named
18253     something starting with __ and the normal name is an alias.  */
18254 #if defined __stub_$ac_func || defined __stub___$ac_func
18255 choke me
18256 #endif
18257
18258 int
18259 main ()
18260 {
18261 return $ac_func ();
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_link") 2>conftest.er1
18274   ac_status=$?
18275   grep -v '^ *+' conftest.er1 >conftest.err
18276   rm -f conftest.er1
18277   cat conftest.err >&5
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } && {
18280          test -z "$ac_c_werror_flag" ||
18281          test ! -s conftest.err
18282        } && test -s conftest$ac_exeext &&
18283        $as_test_x conftest$ac_exeext; then
18284   eval "$as_ac_var=yes"
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289         eval "$as_ac_var=no"
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293       conftest$ac_exeext conftest.$ac_ext
18294 fi
18295 ac_res=`eval echo '${'$as_ac_var'}'`
18296                { echo "$as_me:$LINENO: result: $ac_res" >&5
18297 echo "${ECHO_T}$ac_res" >&6; }
18298 if test `eval echo '${'$as_ac_var'}'` = yes; then
18299   cat >>confdefs.h <<_ACEOF
18300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18301 _ACEOF
18302
18303 else
18304   case " $LIBOBJS " in
18305   *" $ac_func.$ac_objext "* ) ;;
18306   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18307  ;;
18308 esac
18309
18310 fi
18311 done
18312
18313
18314 case $host_os in
18315         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18316         bsdi*|netbsd*)
18317
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_FSEEKO 1
18320 _ACEOF
18321
18322                 ac_cv_func_fseeko=yes;;
18323         *)
18324                 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18325 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18326 if test "${ac_cv_sys_largefile_source+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   while :; do
18330   cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336 #include <sys/types.h> /* for off_t */
18337      #include <stdio.h>
18338 int
18339 main ()
18340 {
18341 int (*fp) (FILE *, off_t, int) = fseeko;
18342      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18343   ;
18344   return 0;
18345 }
18346 _ACEOF
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (ac_try="$ac_link"
18349 case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_link") 2>conftest.er1
18355   ac_status=$?
18356   grep -v '^ *+' conftest.er1 >conftest.err
18357   rm -f conftest.er1
18358   cat conftest.err >&5
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } && {
18361          test -z "$ac_c_werror_flag" ||
18362          test ! -s conftest.err
18363        } && test -s conftest$ac_exeext &&
18364        $as_test_x conftest$ac_exeext; then
18365   ac_cv_sys_largefile_source=no; break
18366 else
18367   echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370
18371 fi
18372
18373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18374       conftest$ac_exeext conftest.$ac_ext
18375   cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381 #define _LARGEFILE_SOURCE 1
18382 #include <sys/types.h> /* for off_t */
18383      #include <stdio.h>
18384 int
18385 main ()
18386 {
18387 int (*fp) (FILE *, off_t, int) = fseeko;
18388      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (ac_try="$ac_link"
18395 case "(($ac_try" in
18396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397   *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400   (eval "$ac_link") 2>conftest.er1
18401   ac_status=$?
18402   grep -v '^ *+' conftest.er1 >conftest.err
18403   rm -f conftest.er1
18404   cat conftest.err >&5
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); } && {
18407          test -z "$ac_c_werror_flag" ||
18408          test ! -s conftest.err
18409        } && test -s conftest$ac_exeext &&
18410        $as_test_x conftest$ac_exeext; then
18411   ac_cv_sys_largefile_source=1; break
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416
18417 fi
18418
18419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18420       conftest$ac_exeext conftest.$ac_ext
18421   ac_cv_sys_largefile_source=unknown
18422   break
18423 done
18424 fi
18425 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18426 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18427 case $ac_cv_sys_largefile_source in #(
18428   no | unknown) ;;
18429   *)
18430 cat >>confdefs.h <<_ACEOF
18431 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18432 _ACEOF
18433 ;;
18434 esac
18435 rm -f conftest*
18436
18437 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18438 # in glibc 2.1.3, but that breaks too many other things.
18439 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18440 if test $ac_cv_sys_largefile_source != unknown; then
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE_FSEEKO 1
18444 _ACEOF
18445
18446 fi
18447 ;;
18448 esac
18449
18450
18451 #
18452 # Pthreads
18453 #
18454 # For each platform, we need to know about any special compile and link
18455 # libraries, and whether the normal C function names are thread-safe.
18456 # See the comment at the top of src/port/thread.c for more information.
18457 # WIN32 doesn't need the pthread tests;  it always uses threads
18458 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18459
18460
18461
18462 ac_ext=c
18463 ac_cpp='$CPP $CPPFLAGS'
18464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18467
18468 acx_pthread_ok=no
18469
18470 # We used to check for pthread.h first, but this fails if pthread.h
18471 # requires special compiler flags (e.g. on True64 or Sequent).
18472 # It gets checked for in the link test anyway.
18473
18474 # First of all, check if the user has set any of the PTHREAD_LIBS,
18475 # etcetera environment variables, and if threads linking works using
18476 # them:
18477 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18478         save_CFLAGS="$CFLAGS"
18479         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18480         save_LIBS="$LIBS"
18481         LIBS="$PTHREAD_LIBS $LIBS"
18482         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18483 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18484         cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490
18491 /* Override any GCC internal prototype to avoid an error.
18492    Use char because int might match the return type of a GCC
18493    builtin and then its argument prototype would still apply.  */
18494 #ifdef __cplusplus
18495 extern "C"
18496 #endif
18497 char pthread_join ();
18498 int
18499 main ()
18500 {
18501 return pthread_join ();
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513   (eval "$ac_link") 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } && {
18520          test -z "$ac_c_werror_flag" ||
18521          test ! -s conftest.err
18522        } && test -s conftest$ac_exeext &&
18523        $as_test_x conftest$ac_exeext; then
18524   acx_pthread_ok=yes
18525 else
18526   echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529
18530 fi
18531
18532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18533       conftest$ac_exeext conftest.$ac_ext
18534         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18535 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18536         if test x"$acx_pthread_ok" = xno; then
18537                 PTHREAD_LIBS=""
18538                 PTHREAD_CFLAGS=""
18539         fi
18540         LIBS="$save_LIBS"
18541         CFLAGS="$save_CFLAGS"
18542 fi
18543
18544 # We must check for the threads library under a number of different
18545 # names; the ordering is very important because some systems
18546 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18547 # libraries is broken (non-POSIX).
18548
18549 # Create a list of thread flags to try.  Items starting with a "-" are
18550 # C compiler flags, and other items are library names, except for "none"
18551 # which indicates that we try without any flags at all, and "pthread-config"
18552 # which is a program returning the flags for the Pth emulation library.
18553
18554 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18555
18556 # The ordering *is* (sometimes) important.  Some notes on the
18557 # individual items follow:
18558
18559 # pthreads: AIX (must check this before -lpthread)
18560 # none: in case threads are in libc; should be tried before -Kthread and
18561 #       other compiler flags to prevent continual compiler warnings
18562 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18563 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18564 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18565 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18566 # -pthreads: Solaris/gcc
18567 # -mthreads: Mingw32/gcc, Lynx/gcc
18568 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18569 #      doesn't hurt to check since this sometimes defines pthreads too;
18570 #      also defines -D_REENTRANT)
18571 # pthread: Linux, etcetera
18572 # --thread-safe: KAI C++
18573 # pthread-config: use pthread-config program (for GNU Pth library)
18574
18575 case "${host_cpu}-${host_os}" in
18576         *solaris*)
18577
18578         # On Solaris (at least, for some versions), libc contains stubbed
18579         # (non-functional) versions of the pthreads routines, so link-based
18580         # tests will erroneously succeed.  (We need to link with -pthread or
18581         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18582         # a function called by this macro, so we could check for that, but
18583         # who knows whether they'll stub that too in a future libc.)  So,
18584         # we'll just look for -pthreads and -lpthread first:
18585
18586         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18587         ;;
18588 esac
18589
18590 if test x"$acx_pthread_ok" = xno; then
18591 for flag in $acx_pthread_flags; do
18592
18593         tryPTHREAD_CFLAGS=""
18594         tryPTHREAD_LIBS=""
18595         case $flag in
18596                 none)
18597                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18598 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18599                 ;;
18600
18601                 -*)
18602                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18603 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18604                 tryPTHREAD_CFLAGS="$flag"
18605                 ;;
18606
18607                 pthread-config)
18608                 # skip this if we already have flags defined, for PostgreSQL
18609                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18610                 # Extract the first word of "pthread-config", so it can be a program name with args.
18611 set dummy pthread-config; ac_word=$2
18612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18614 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   if test -n "$acx_pthread_config"; then
18618   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18619 else
18620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18621 for as_dir in $PATH
18622 do
18623   IFS=$as_save_IFS
18624   test -z "$as_dir" && as_dir=.
18625   for ac_exec_ext in '' $ac_executable_extensions; do
18626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18627     ac_cv_prog_acx_pthread_config="yes"
18628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18629     break 2
18630   fi
18631 done
18632 done
18633 IFS=$as_save_IFS
18634
18635   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18636 fi
18637 fi
18638 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18639 if test -n "$acx_pthread_config"; then
18640   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18641 echo "${ECHO_T}$acx_pthread_config" >&6; }
18642 else
18643   { echo "$as_me:$LINENO: result: no" >&5
18644 echo "${ECHO_T}no" >&6; }
18645 fi
18646
18647
18648                 if test x"$acx_pthread_config" = xno; then continue; fi
18649                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18650                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18651                 ;;
18652
18653                 *)
18654                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18655 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18656                 tryPTHREAD_LIBS="-l$flag"
18657                 ;;
18658         esac
18659
18660         save_LIBS="$LIBS"
18661         save_CFLAGS="$CFLAGS"
18662         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18663         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18664
18665         # Check for various functions.  We must include pthread.h,
18666         # since some functions may be macros.  (On the Sequent, we
18667         # need a special flag -Kthread to make this header compile.)
18668         # We check for pthread_join because it is in -lpthread on IRIX
18669         # while pthread_create is in libc.  We check for pthread_attr_init
18670         # due to DEC craziness with -lpthreads.  We check for
18671         # pthread_cleanup_push because it is one of the few pthread
18672         # functions on Solaris that doesn't have a non-functional libc stub.
18673         # We try pthread_create on general principles.
18674         cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h.  */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h.  */
18680 #include <pthread.h>
18681 int
18682 main ()
18683 {
18684 pthread_t th; pthread_join(th, 0);
18685                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18686                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_link") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_c_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest$ac_exeext &&
18708        $as_test_x conftest$ac_exeext; then
18709   acx_pthread_ok=yes
18710 else
18711   echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714         acx_pthread_ok=no
18715 fi
18716
18717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718       conftest$ac_exeext conftest.$ac_ext
18719
18720         if test "x$acx_pthread_ok" = xyes; then
18721             # Don't use options that are ignored by the compiler.
18722             # We find them by checking stderror.
18723             cat >conftest.$ac_ext <<_ACEOF
18724 int
18725 main (int argc, char **argv)
18726 {
18727   (void) argc;
18728   (void) argv;
18729   return 0;
18730 }
18731 _ACEOF
18732             rm -f conftest.$ac_objext conftest$ac_exeext
18733             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18734                 # we continue with more flags because Linux needs -lpthread
18735                 # for libpq builds on PostgreSQL.  The test above only
18736                 # tests for building binaries, not shared libraries.
18737                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18738                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18739             else   acx_pthread_ok=no
18740             fi
18741         fi
18742
18743         LIBS="$save_LIBS"
18744         CFLAGS="$save_CFLAGS"
18745
18746         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18747 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18748 done
18749 fi
18750
18751 # Various other checks:
18752 if test "x$acx_pthread_ok" = xyes; then
18753         save_LIBS="$LIBS"
18754         LIBS="$PTHREAD_LIBS $LIBS"
18755         save_CFLAGS="$CFLAGS"
18756         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18757
18758         # Detect AIX lossage: threads are created detached by default
18759         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18760         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18761 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18762         cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768 #include <pthread.h>
18769 int
18770 main ()
18771 {
18772 int attr=PTHREAD_CREATE_JOINABLE;
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_link") 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } && {
18791          test -z "$ac_c_werror_flag" ||
18792          test ! -s conftest.err
18793        } && test -s conftest$ac_exeext &&
18794        $as_test_x conftest$ac_exeext; then
18795   ok=PTHREAD_CREATE_JOINABLE
18796 else
18797   echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800         ok=unknown
18801 fi
18802
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804       conftest$ac_exeext conftest.$ac_ext
18805         if test x"$ok" = xunknown; then
18806                 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h.  */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h.  */
18812 #include <pthread.h>
18813 int
18814 main ()
18815 {
18816 int attr=PTHREAD_CREATE_UNDETACHED;
18817   ;
18818   return 0;
18819 }
18820 _ACEOF
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825   *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828   (eval "$ac_link") 2>conftest.er1
18829   ac_status=$?
18830   grep -v '^ *+' conftest.er1 >conftest.err
18831   rm -f conftest.er1
18832   cat conftest.err >&5
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); } && {
18835          test -z "$ac_c_werror_flag" ||
18836          test ! -s conftest.err
18837        } && test -s conftest$ac_exeext &&
18838        $as_test_x conftest$ac_exeext; then
18839   ok=PTHREAD_CREATE_UNDETACHED
18840 else
18841   echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844         ok=unknown
18845 fi
18846
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848       conftest$ac_exeext conftest.$ac_ext
18849         fi
18850         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18851
18852 cat >>confdefs.h <<\_ACEOF
18853 #define PTHREAD_CREATE_JOINABLE $ok
18854 _ACEOF
18855
18856         fi
18857         { echo "$as_me:$LINENO: result: ${ok}" >&5
18858 echo "${ECHO_T}${ok}" >&6; }
18859         if test x"$ok" = xunknown; then
18860                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18861 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18862         fi
18863
18864         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18865 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18866         flag=no
18867 # We always add these in PostgreSQL
18868 #       case "${host_cpu}-${host_os}" in
18869 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18870 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18871 #       esac
18872         { echo "$as_me:$LINENO: result: ${flag}" >&5
18873 echo "${ECHO_T}${flag}" >&6; }
18874         if test "x$flag" != xno; then
18875                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18876         fi
18877
18878         LIBS="$save_LIBS"
18879         CFLAGS="$save_CFLAGS"
18880
18881 # Supporting cc_r would require a special CC in all places that
18882 # use libpq, and that is ugly, so we don't do it.  Users can still
18883 # define their compiler as cc_r to do thread builds of everything.
18884         # More AIX lossage: must compile with cc_r
18885         # Extract the first word of "cc_r", so it can be a program name with args.
18886 set dummy cc_r; ac_word=$2
18887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18889 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18890   echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892   if test -n "$PTHREAD_CC"; then
18893   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18894 else
18895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18897 do
18898   IFS=$as_save_IFS
18899   test -z "$as_dir" && as_dir=.
18900   for ac_exec_ext in '' $ac_executable_extensions; do
18901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18902     ac_cv_prog_PTHREAD_CC="cc_r"
18903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904     break 2
18905   fi
18906 done
18907 done
18908 IFS=$as_save_IFS
18909
18910   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18911 fi
18912 fi
18913 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18914 if test -n "$PTHREAD_CC"; then
18915   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18916 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18917 else
18918   { echo "$as_me:$LINENO: result: no" >&5
18919 echo "${ECHO_T}no" >&6; }
18920 fi
18921
18922
18923 else
18924         PTHREAD_CC="$CC"
18925 fi
18926
18927
18928
18929
18930
18931 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18932 if test x"$acx_pthread_ok" = xyes; then
18933
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_PTHREAD 1
18936 _ACEOF
18937
18938         :
18939 else
18940         acx_pthread_ok=no
18941
18942 fi
18943 ac_ext=c
18944 ac_cpp='$CPP $CPPFLAGS'
18945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18948
18949         # set thread flags
18950
18951 # Some platforms use these, so just defineed them.  They can't hurt if they
18952 # are not supported.
18953 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18954
18955
18956 # At this point, we don't want to muck with the compiler name for threading.
18957 # Let's see who fails, perhaps AIX.  2004-04-23
18958 if test "$PTHREAD_CC" != "$CC"; then
18959 { { echo "$as_me:$LINENO: error:
18960 PostgreSQL does not support platforms that require a special compiler
18961 for thread safety." >&5
18962 echo "$as_me: error:
18963 PostgreSQL does not support platforms that require a special compiler
18964 for thread safety." >&2;}
18965    { (exit 1); exit 1; }; }
18966 fi
18967
18968 if test "$THREAD_SUPPORT" = no; then
18969 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18970 This platform is known to not support thread-safe programs.  For details,
18971 compile and run src/bin/pg_thread_test." >&5
18972 echo "$as_me: error: cannot enable threads on this platform
18973 This platform is known to not support thread-safe programs.  For details,
18974 compile and run src/bin/pg_thread_test." >&2;}
18975    { (exit 1); exit 1; }; }
18976 fi
18977
18978 # Check for *_r functions
18979 _CFLAGS="$CFLAGS"
18980 _LIBS="$LIBS"
18981 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18982 LIBS="$LIBS $PTHREAD_LIBS"
18983
18984 if test "$PORTNAME" != "win32"; then
18985 if test "${ac_cv_header_pthread_h+set}" = set; then
18986   { echo "$as_me:$LINENO: checking for pthread.h" >&5
18987 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18988 if test "${ac_cv_header_pthread_h+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 fi
18991 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18992 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18993 else
18994   # Is the header compilable?
18995 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18996 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003 $ac_includes_default
19004 #include <pthread.h>
19005 _ACEOF
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_compile") 2>conftest.er1
19014   ac_status=$?
19015   grep -v '^ *+' conftest.er1 >conftest.err
19016   rm -f conftest.er1
19017   cat conftest.err >&5
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); } && {
19020          test -z "$ac_c_werror_flag" ||
19021          test ! -s conftest.err
19022        } && test -s conftest.$ac_objext; then
19023   ac_header_compiler=yes
19024 else
19025   echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028         ac_header_compiler=no
19029 fi
19030
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19033 echo "${ECHO_T}$ac_header_compiler" >&6; }
19034
19035 # Is the header present?
19036 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19037 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 #include <pthread.h>
19045 _ACEOF
19046 if { (ac_try="$ac_cpp conftest.$ac_ext"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } >/dev/null && {
19059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19060          test ! -s conftest.err
19061        }; then
19062   ac_header_preproc=yes
19063 else
19064   echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067   ac_header_preproc=no
19068 fi
19069
19070 rm -f conftest.err conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19072 echo "${ECHO_T}$ac_header_preproc" >&6; }
19073
19074 # So?  What about this header?
19075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19076   yes:no: )
19077     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19078 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19079     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19080 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19081     ac_header_preproc=yes
19082     ;;
19083   no:yes:* )
19084     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19085 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19086     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
19087 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
19088     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19089 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19090     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
19091 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19092     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19093 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19094     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19095 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19096     ( cat <<\_ASBOX
19097 ## ---------------------------------------- ##
19098 ## Report this to pgsql-bugs@postgresql.org ##
19099 ## ---------------------------------------- ##
19100 _ASBOX
19101      ) | sed "s/^/$as_me: WARNING:     /" >&2
19102     ;;
19103 esac
19104 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19105 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19106 if test "${ac_cv_header_pthread_h+set}" = set; then
19107   echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109   ac_cv_header_pthread_h=$ac_header_preproc
19110 fi
19111 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19112 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19113
19114 fi
19115 if test $ac_cv_header_pthread_h = yes; then
19116   :
19117 else
19118   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19119 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19120    { (exit 1); exit 1; }; }
19121 fi
19122
19123
19124 fi
19125
19126
19127
19128
19129 for ac_func in strerror_r getpwuid_r gethostbyname_r
19130 do
19131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19145 #define $ac_func innocuous_$ac_func
19146
19147 /* System header to define __stub macros and hopefully few prototypes,
19148     which can conflict with char $ac_func (); below.
19149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150     <limits.h> exists even on freestanding compilers.  */
19151
19152 #ifdef __STDC__
19153 # include <limits.h>
19154 #else
19155 # include <assert.h>
19156 #endif
19157
19158 #undef $ac_func
19159
19160 /* Override any GCC internal prototype to avoid an error.
19161    Use char because int might match the return type of a GCC
19162    builtin and then its argument prototype would still apply.  */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 char $ac_func ();
19167 /* The GNU C library defines this for functions which it implements
19168     to always fail with ENOSYS.  Some functions are actually named
19169     something starting with __ and the normal name is an alias.  */
19170 #if defined __stub_$ac_func || defined __stub___$ac_func
19171 choke me
19172 #endif
19173
19174 int
19175 main ()
19176 {
19177 return $ac_func ();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_link") 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } && {
19196          test -z "$ac_c_werror_flag" ||
19197          test ! -s conftest.err
19198        } && test -s conftest$ac_exeext &&
19199        $as_test_x conftest$ac_exeext; then
19200   eval "$as_ac_var=yes"
19201 else
19202   echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205         eval "$as_ac_var=no"
19206 fi
19207
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209       conftest$ac_exeext conftest.$ac_ext
19210 fi
19211 ac_res=`eval echo '${'$as_ac_var'}'`
19212                { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_var'}'` = yes; then
19215   cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19217 _ACEOF
19218
19219 fi
19220 done
19221
19222
19223 # Do test here with the proper thread flags
19224 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19225 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19226 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19227   echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229   cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h.  */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h.  */
19235 #include <sys/types.h>
19236 #include <pwd.h>
19237 int
19238 main ()
19239 {
19240 uid_t uid;
19241 struct passwd *space;
19242 char *buf;
19243 size_t bufsize;
19244 struct passwd **result;
19245 getpwuid_r(uid, space, buf, bufsize, result);
19246   ;
19247   return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_compile") 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } && {
19264          test -z "$ac_c_werror_flag" ||
19265          test ! -s conftest.err
19266        } && test -s conftest.$ac_objext; then
19267   pgac_func_getpwuid_r_5arg=yes
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272         pgac_func_getpwuid_r_5arg=no
19273 fi
19274
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 fi
19277 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19278 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19279 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19280
19281 cat >>confdefs.h <<\_ACEOF
19282 #define GETPWUID_R_5ARG
19283 _ACEOF
19284
19285 fi
19286
19287 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19288 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19289 if test "${pgac_func_strerror_r_int+set}" = set; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298 #include <string.h>
19299 int
19300 main ()
19301 {
19302 #ifndef _AIX
19303 int strerror_r(int, char *, size_t);
19304 #else
19305 /* Older AIX has 'int' for the third argument so we don't test the args. */
19306 int strerror_r();
19307 #endif
19308   ;
19309   return 0;
19310 }
19311 _ACEOF
19312 rm -f conftest.$ac_objext
19313 if { (ac_try="$ac_compile"
19314 case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_compile") 2>conftest.er1
19320   ac_status=$?
19321   grep -v '^ *+' conftest.er1 >conftest.err
19322   rm -f conftest.er1
19323   cat conftest.err >&5
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); } && {
19326          test -z "$ac_c_werror_flag" ||
19327          test ! -s conftest.err
19328        } && test -s conftest.$ac_objext; then
19329   pgac_func_strerror_r_int=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334         pgac_func_strerror_r_int=no
19335 fi
19336
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 fi
19339 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19340 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19341 if test x"$pgac_func_strerror_r_int" = xyes ; then
19342
19343 cat >>confdefs.h <<\_ACEOF
19344 #define STRERROR_R_INT
19345 _ACEOF
19346
19347 fi
19348
19349
19350 CFLAGS="$_CFLAGS"
19351 LIBS="$_LIBS"
19352
19353 else
19354 # do not use values from template file
19355 PTHREAD_CFLAGS=
19356 PTHREAD_LIBS=
19357 fi
19358
19359
19360
19361
19362
19363 # We can test for libldap_r only after we know PTHREAD_LIBS
19364 if test "$with_ldap" = yes ; then
19365   _LIBS="$LIBS"
19366   if test "$PORTNAME" != "win32"; then
19367
19368 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19369 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19370 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19371   echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373   ac_check_lib_save_LIBS=$LIBS
19374 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h.  */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h.  */
19381
19382 /* Override any GCC internal prototype to avoid an error.
19383    Use char because int might match the return type of a GCC
19384    builtin and then its argument prototype would still apply.  */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char ldap_bind ();
19389 int
19390 main ()
19391 {
19392 return ldap_bind ();
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 rm -f conftest.$ac_objext conftest$ac_exeext
19398 if { (ac_try="$ac_link"
19399 case "(($ac_try" in
19400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401   *) ac_try_echo=$ac_try;;
19402 esac
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404   (eval "$ac_link") 2>conftest.er1
19405   ac_status=$?
19406   grep -v '^ *+' conftest.er1 >conftest.err
19407   rm -f conftest.er1
19408   cat conftest.err >&5
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); } && {
19411          test -z "$ac_c_werror_flag" ||
19412          test ! -s conftest.err
19413        } && test -s conftest$ac_exeext &&
19414        $as_test_x conftest$ac_exeext; then
19415   ac_cv_lib_ldap_ldap_bind=yes
19416 else
19417   echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19419
19420         ac_cv_lib_ldap_ldap_bind=no
19421 fi
19422
19423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19424       conftest$ac_exeext conftest.$ac_ext
19425 LIBS=$ac_check_lib_save_LIBS
19426 fi
19427 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19428 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19429 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19430   cat >>confdefs.h <<_ACEOF
19431 #define HAVE_LIBLDAP 1
19432 _ACEOF
19433
19434   LIBS="-lldap $LIBS"
19435
19436 else
19437   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19438 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19439    { (exit 1); exit 1; }; }
19440 fi
19441
19442     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19443     if test "$enable_thread_safety" = yes; then
19444       # on some platforms ldap_r fails to link without PTHREAD_LIBS
19445
19446 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19447 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19448 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19449   echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451   ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459
19460 /* Override any GCC internal prototype to avoid an error.
19461    Use char because int might match the return type of a GCC
19462    builtin and then its argument prototype would still apply.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char ldap_simple_bind ();
19467 int
19468 main ()
19469 {
19470 return ldap_simple_bind ();
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (ac_try="$ac_link"
19477 case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_link") 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } && {
19489          test -z "$ac_c_werror_flag" ||
19490          test ! -s conftest.err
19491        } && test -s conftest$ac_exeext &&
19492        $as_test_x conftest$ac_exeext; then
19493   ac_cv_lib_ldap_r_ldap_simple_bind=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         ac_cv_lib_ldap_r_ldap_simple_bind=no
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502       conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19504 fi
19505 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19506 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19507 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19508   cat >>confdefs.h <<_ACEOF
19509 #define HAVE_LIBLDAP_R 1
19510 _ACEOF
19511
19512   LIBS="-lldap_r $LIBS"
19513
19514 else
19515   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19516 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19517    { (exit 1); exit 1; }; }
19518 fi
19519
19520       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19521     else
19522       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19523     fi
19524   else
19525
19526 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19527 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19528 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531   ac_check_lib_save_LIBS=$LIBS
19532 LIBS="-lwldap32  $LIBS"
19533 cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539
19540 /* Override any GCC internal prototype to avoid an error.
19541    Use char because int might match the return type of a GCC
19542    builtin and then its argument prototype would still apply.  */
19543 #ifdef __cplusplus
19544 extern "C"
19545 #endif
19546 char ldap_bind ();
19547 int
19548 main ()
19549 {
19550 return ldap_bind ();
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (ac_try="$ac_link"
19557 case "(($ac_try" in
19558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559   *) ac_try_echo=$ac_try;;
19560 esac
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562   (eval "$ac_link") 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } && {
19569          test -z "$ac_c_werror_flag" ||
19570          test ! -s conftest.err
19571        } && test -s conftest$ac_exeext &&
19572        $as_test_x conftest$ac_exeext; then
19573   ac_cv_lib_wldap32_ldap_bind=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578         ac_cv_lib_wldap32_ldap_bind=no
19579 fi
19580
19581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19582       conftest$ac_exeext conftest.$ac_ext
19583 LIBS=$ac_check_lib_save_LIBS
19584 fi
19585 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19586 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19587 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19588   cat >>confdefs.h <<_ACEOF
19589 #define HAVE_LIBWLDAP32 1
19590 _ACEOF
19591
19592   LIBS="-lwldap32 $LIBS"
19593
19594 else
19595   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19596 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19597    { (exit 1); exit 1; }; }
19598 fi
19599
19600     LDAP_LIBS_FE="-lwldap32"
19601     LDAP_LIBS_BE="-lwldap32"
19602   fi
19603   LIBS="$_LIBS"
19604 fi
19605
19606
19607
19608
19609 # This test makes sure that run tests work at all.  Sometimes a shared
19610 # library is found by the linker, but the runtime linker can't find it.
19611 # This check should come after all modifications of compiler or linker
19612 # variables, and before any other run tests.
19613 { echo "$as_me:$LINENO: checking test program" >&5
19614 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19615 if test "$cross_compiling" = yes; then
19616   { echo "$as_me:$LINENO: result: cross-compiling" >&5
19617 echo "${ECHO_T}cross-compiling" >&6; }
19618 else
19619   cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625 int main() { return 0; }
19626 _ACEOF
19627 rm -f conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_link") 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19638   { (case "(($ac_try" in
19639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640   *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643   (eval "$ac_try") 2>&5
19644   ac_status=$?
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); }; }; then
19647   { echo "$as_me:$LINENO: result: ok" >&5
19648 echo "${ECHO_T}ok" >&6; }
19649 else
19650   echo "$as_me: program exited with status $ac_status" >&5
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 ( exit $ac_status )
19655 { echo "$as_me:$LINENO: result: failed" >&5
19656 echo "${ECHO_T}failed" >&6; }
19657 { { echo "$as_me:$LINENO: error:
19658 Could not execute a simple test program.  This may be a problem
19659 related to locating shared libraries.  Check the file 'config.log'
19660 for the exact reason." >&5
19661 echo "$as_me: error:
19662 Could not execute a simple test program.  This may be a problem
19663 related to locating shared libraries.  Check the file 'config.log'
19664 for the exact reason." >&2;}
19665    { (exit 1); exit 1; }; }
19666 fi
19667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19668 fi
19669
19670
19671
19672 # --------------------
19673 # Run tests below here
19674 # --------------------
19675
19676 # Force use of our snprintf if system's doesn't do arg control
19677 # See comment above at snprintf test for details.
19678 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19679   { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19680 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19681 if test "${pgac_cv_printf_arg_control+set}" = set; then
19682   echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684   if test "$cross_compiling" = yes; then
19685   pgac_cv_printf_arg_control=cross
19686 else
19687   cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693 #include <stdio.h>
19694 #include <string.h>
19695
19696 int main()
19697 {
19698   char buf[100];
19699
19700   /* can it swap arguments? */
19701   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19702   if (strcmp(buf, "4 3") != 0)
19703     return 1;
19704   return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest$ac_exeext
19708 if { (ac_try="$ac_link"
19709 case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_link") 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19718   { (case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_try") 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; }; then
19727   pgac_cv_printf_arg_control=yes
19728 else
19729   echo "$as_me: program exited with status $ac_status" >&5
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19732
19733 ( exit $ac_status )
19734 pgac_cv_printf_arg_control=no
19735 fi
19736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19737 fi
19738
19739
19740
19741 fi
19742 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19743 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19744
19745   if test $pgac_cv_printf_arg_control != yes ; then
19746     pgac_need_repl_snprintf=yes
19747   fi
19748 fi
19749
19750
19751
19752 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19753 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19754 if test "${pgac_cv_type_long_int_64+set}" = set; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   if test "$cross_compiling" = yes; then
19758   # If cross-compiling, check the size reported by the compiler and
19759 # trust that the arithmetic works.
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766
19767 int
19768 main ()
19769 {
19770 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19771 test_array [0] = 0
19772
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_compile") 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } && {
19791          test -z "$ac_c_werror_flag" ||
19792          test ! -s conftest.err
19793        } && test -s conftest.$ac_objext; then
19794   pgac_cv_type_long_int_64=yes
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799         pgac_cv_type_long_int_64=no
19800 fi
19801
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19803 else
19804   cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 typedef long int ac_int64;
19811
19812 /*
19813  * These are globals to discourage the compiler from folding all the
19814  * arithmetic tests down to compile-time constants.
19815  */
19816 ac_int64 a = 20000001;
19817 ac_int64 b = 40000005;
19818
19819 int does_int64_work()
19820 {
19821   ac_int64 c,d;
19822
19823   if (sizeof(ac_int64) != 8)
19824     return 0;                   /* definitely not the right size */
19825
19826   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19827   c = a * b;
19828   d = (c + b) / b;
19829   if (d != a+1)
19830     return 0;
19831   return 1;
19832 }
19833 main() {
19834   exit(! does_int64_work());
19835 }
19836 _ACEOF
19837 rm -f conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841   *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844   (eval "$ac_link") 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19848   { (case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_try") 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; }; then
19857   pgac_cv_type_long_int_64=yes
19858 else
19859   echo "$as_me: program exited with status $ac_status" >&5
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 ( exit $ac_status )
19864 pgac_cv_type_long_int_64=no
19865 fi
19866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19867 fi
19868
19869
19870 fi
19871 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19872 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19873
19874 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19875 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19876
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_LONG_INT_64 1
19879 _ACEOF
19880
19881 fi
19882
19883
19884 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19885   { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19886 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19887 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19888   echo $ECHO_N "(cached) $ECHO_C" >&6
19889 else
19890   if test "$cross_compiling" = yes; then
19891   # If cross-compiling, check the size reported by the compiler and
19892 # trust that the arithmetic works.
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899
19900 int
19901 main ()
19902 {
19903 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19904 test_array [0] = 0
19905
19906   ;
19907   return 0;
19908 }
19909 _ACEOF
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914   *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917   (eval "$ac_compile") 2>conftest.er1
19918   ac_status=$?
19919   grep -v '^ *+' conftest.er1 >conftest.err
19920   rm -f conftest.er1
19921   cat conftest.err >&5
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); } && {
19924          test -z "$ac_c_werror_flag" ||
19925          test ! -s conftest.err
19926        } && test -s conftest.$ac_objext; then
19927   pgac_cv_type_long_long_int_64=yes
19928 else
19929   echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932         pgac_cv_type_long_long_int_64=no
19933 fi
19934
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936 else
19937   cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943 typedef long long int ac_int64;
19944
19945 /*
19946  * These are globals to discourage the compiler from folding all the
19947  * arithmetic tests down to compile-time constants.
19948  */
19949 ac_int64 a = 20000001;
19950 ac_int64 b = 40000005;
19951
19952 int does_int64_work()
19953 {
19954   ac_int64 c,d;
19955
19956   if (sizeof(ac_int64) != 8)
19957     return 0;                   /* definitely not the right size */
19958
19959   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19960   c = a * b;
19961   d = (c + b) / b;
19962   if (d != a+1)
19963     return 0;
19964   return 1;
19965 }
19966 main() {
19967   exit(! does_int64_work());
19968 }
19969 _ACEOF
19970 rm -f conftest$ac_exeext
19971 if { (ac_try="$ac_link"
19972 case "(($ac_try" in
19973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974   *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977   (eval "$ac_link") 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; }; then
19990   pgac_cv_type_long_long_int_64=yes
19991 else
19992   echo "$as_me: program exited with status $ac_status" >&5
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 ( exit $ac_status )
19997 pgac_cv_type_long_long_int_64=no
19998 fi
19999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20000 fi
20001
20002
20003 fi
20004 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20005 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20006
20007 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20008 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20009
20010 cat >>confdefs.h <<\_ACEOF
20011 #define HAVE_LONG_LONG_INT_64 1
20012 _ACEOF
20013
20014 fi
20015
20016 fi
20017
20018
20019
20020 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20021   cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028 #define INT64CONST(x)  x##LL
20029 long long int foo = INT64CONST(0x1234567890123456);
20030
20031 int
20032 main ()
20033 {
20034
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043   *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046   (eval "$ac_compile") 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } && {
20053          test -z "$ac_c_werror_flag" ||
20054          test ! -s conftest.err
20055        } && test -s conftest.$ac_objext; then
20056
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_LL_CONSTANTS 1
20059 _ACEOF
20060
20061 else
20062   echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20064
20065
20066 fi
20067
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20069 fi
20070
20071
20072 # If we found "long int" is 64 bits, assume snprintf handles it.  If
20073 # we found we need to use "long long int", better check.  We cope with
20074 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
20075 # work, fall back to our own snprintf emulation (which we know uses %lld).
20076
20077 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20078   if test $pgac_need_repl_snprintf = no; then
20079     { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20080 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20081 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084   for pgac_format in '%lld' '%qd' '%I64d'; do
20085 if test "$cross_compiling" = yes; then
20086   pgac_cv_snprintf_long_long_int_format=cross; break
20087 else
20088   cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #include <stdio.h>
20095 typedef long long int ac_int64;
20096 #define INT64_FORMAT "$pgac_format"
20097
20098 ac_int64 a = 20000001;
20099 ac_int64 b = 40000005;
20100
20101 int does_int64_snprintf_work()
20102 {
20103   ac_int64 c;
20104   char buf[100];
20105
20106   if (sizeof(ac_int64) != 8)
20107     return 0;                   /* doesn't look like the right size */
20108
20109   c = a * b;
20110   snprintf(buf, 100, INT64_FORMAT, c);
20111   if (strcmp(buf, "800000140000005") != 0)
20112     return 0;                   /* either multiply or snprintf is busted */
20113   return 1;
20114 }
20115 main() {
20116   exit(! does_int64_snprintf_work());
20117 }
20118 _ACEOF
20119 rm -f conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_link") 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20130   { (case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_try") 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; }; then
20139   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20140 else
20141   echo "$as_me: program exited with status $ac_status" >&5
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145 fi
20146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20147 fi
20148
20149
20150 done
20151 fi
20152
20153 LONG_LONG_INT_FORMAT=''
20154
20155 case $pgac_cv_snprintf_long_long_int_format in
20156   cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20157 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20158   ?*)    { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20159 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20160          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20161   *)     { echo "$as_me:$LINENO: result: none" >&5
20162 echo "${ECHO_T}none" >&6; };;
20163 esac
20164     if test "$LONG_LONG_INT_FORMAT" = ""; then
20165       # Force usage of our own snprintf, since system snprintf is broken
20166       pgac_need_repl_snprintf=yes
20167       LONG_LONG_INT_FORMAT='%lld'
20168     fi
20169   else
20170     # Here if we previously decided we needed to use our own snprintf
20171     LONG_LONG_INT_FORMAT='%lld'
20172   fi
20173   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20174   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20175   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20176 else
20177   # Here if we are not using 'long long int' at all
20178   INT64_FORMAT='"%ld"'
20179   UINT64_FORMAT='"%lu"'
20180 fi
20181
20182
20183 cat >>confdefs.h <<_ACEOF
20184 #define INT64_FORMAT $INT64_FORMAT
20185 _ACEOF
20186
20187
20188
20189 cat >>confdefs.h <<_ACEOF
20190 #define UINT64_FORMAT $UINT64_FORMAT
20191 _ACEOF
20192
20193
20194 # Now we have checked all the reasons to replace snprintf
20195 if test $pgac_need_repl_snprintf = yes; then
20196
20197 cat >>confdefs.h <<\_ACEOF
20198 #define USE_REPL_SNPRINTF 1
20199 _ACEOF
20200
20201   case " $LIBOBJS " in
20202   *" snprintf.$ac_objext "* ) ;;
20203   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20204  ;;
20205 esac
20206
20207 fi
20208
20209 # Need a #define for the size of Datum (unsigned long)
20210 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20211 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20212 if test "${ac_cv_type_unsigned_long+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 $ac_includes_default
20222 typedef unsigned long ac__type_new_;
20223 int
20224 main ()
20225 {
20226 if ((ac__type_new_ *) 0)
20227   return 0;
20228 if (sizeof (ac__type_new_))
20229   return 0;
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 rm -f conftest.$ac_objext
20235 if { (ac_try="$ac_compile"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_compile") 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } && {
20248          test -z "$ac_c_werror_flag" ||
20249          test ! -s conftest.err
20250        } && test -s conftest.$ac_objext; then
20251   ac_cv_type_unsigned_long=yes
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256         ac_cv_type_unsigned_long=no
20257 fi
20258
20259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 fi
20261 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20262 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20263
20264 # The cast to long int works around a bug in the HP C Compiler
20265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20267 # This bug is HP SR number 8606223364.
20268 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20269 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20270 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20271   echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273   if test "$cross_compiling" = yes; then
20274   # Depending upon the size, compute the lo and hi bounds.
20275 cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h.  */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h.  */
20281 $ac_includes_default
20282    typedef unsigned long ac__type_sizeof_;
20283 int
20284 main ()
20285 {
20286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20287 test_array [0] = 0
20288
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.$ac_objext
20294 if { (ac_try="$ac_compile"
20295 case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300   (eval "$ac_compile") 2>conftest.er1
20301   ac_status=$?
20302   grep -v '^ *+' conftest.er1 >conftest.err
20303   rm -f conftest.er1
20304   cat conftest.err >&5
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); } && {
20307          test -z "$ac_c_werror_flag" ||
20308          test ! -s conftest.err
20309        } && test -s conftest.$ac_objext; then
20310   ac_lo=0 ac_mid=0
20311   while :; do
20312     cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 $ac_includes_default
20319    typedef unsigned long ac__type_sizeof_;
20320 int
20321 main ()
20322 {
20323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20324 test_array [0] = 0
20325
20326   ;
20327   return 0;
20328 }
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334   *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337   (eval "$ac_compile") 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } && {
20344          test -z "$ac_c_werror_flag" ||
20345          test ! -s conftest.err
20346        } && test -s conftest.$ac_objext; then
20347   ac_hi=$ac_mid; break
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352         ac_lo=`expr $ac_mid + 1`
20353                         if test $ac_lo -le $ac_mid; then
20354                           ac_lo= ac_hi=
20355                           break
20356                         fi
20357                         ac_mid=`expr 2 '*' $ac_mid + 1`
20358 fi
20359
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361   done
20362 else
20363   echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366         cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 $ac_includes_default
20373    typedef unsigned long ac__type_sizeof_;
20374 int
20375 main ()
20376 {
20377 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20378 test_array [0] = 0
20379
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (ac_try="$ac_compile"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_compile") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } && {
20398          test -z "$ac_c_werror_flag" ||
20399          test ! -s conftest.err
20400        } && test -s conftest.$ac_objext; then
20401   ac_hi=-1 ac_mid=-1
20402   while :; do
20403     cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 $ac_includes_default
20410    typedef unsigned long ac__type_sizeof_;
20411 int
20412 main ()
20413 {
20414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20415 test_array [0] = 0
20416
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (ac_try="$ac_compile"
20423 case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_compile") 2>conftest.er1
20429   ac_status=$?
20430   grep -v '^ *+' conftest.er1 >conftest.err
20431   rm -f conftest.er1
20432   cat conftest.err >&5
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } && {
20435          test -z "$ac_c_werror_flag" ||
20436          test ! -s conftest.err
20437        } && test -s conftest.$ac_objext; then
20438   ac_lo=$ac_mid; break
20439 else
20440   echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443         ac_hi=`expr '(' $ac_mid ')' - 1`
20444                         if test $ac_mid -le $ac_hi; then
20445                           ac_lo= ac_hi=
20446                           break
20447                         fi
20448                         ac_mid=`expr 2 '*' $ac_mid`
20449 fi
20450
20451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452   done
20453 else
20454   echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457         ac_lo= ac_hi=
20458 fi
20459
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 fi
20462
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 # Binary search between lo and hi bounds.
20465 while test "x$ac_lo" != "x$ac_hi"; do
20466   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20467   cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473 $ac_includes_default
20474    typedef unsigned long ac__type_sizeof_;
20475 int
20476 main ()
20477 {
20478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20479 test_array [0] = 0
20480
20481   ;
20482   return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest.$ac_objext
20486 if { (ac_try="$ac_compile"
20487 case "(($ac_try" in
20488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489   *) ac_try_echo=$ac_try;;
20490 esac
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492   (eval "$ac_compile") 2>conftest.er1
20493   ac_status=$?
20494   grep -v '^ *+' conftest.er1 >conftest.err
20495   rm -f conftest.er1
20496   cat conftest.err >&5
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } && {
20499          test -z "$ac_c_werror_flag" ||
20500          test ! -s conftest.err
20501        } && test -s conftest.$ac_objext; then
20502   ac_hi=$ac_mid
20503 else
20504   echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507         ac_lo=`expr '(' $ac_mid ')' + 1`
20508 fi
20509
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511 done
20512 case $ac_lo in
20513 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20514 '') if test "$ac_cv_type_unsigned_long" = yes; then
20515      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20516 See \`config.log' for more details." >&5
20517 echo "$as_me: error: cannot compute sizeof (unsigned long)
20518 See \`config.log' for more details." >&2;}
20519    { (exit 77); exit 77; }; }
20520    else
20521      ac_cv_sizeof_unsigned_long=0
20522    fi ;;
20523 esac
20524 else
20525   cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 $ac_includes_default
20532    typedef unsigned long ac__type_sizeof_;
20533 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20534 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20535 #include <stdio.h>
20536 #include <stdlib.h>
20537 int
20538 main ()
20539 {
20540
20541   FILE *f = fopen ("conftest.val", "w");
20542   if (! f)
20543     return 1;
20544   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20545     {
20546       long int i = longval ();
20547       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20548         return 1;
20549       fprintf (f, "%ld\n", i);
20550     }
20551   else
20552     {
20553       unsigned long int i = ulongval ();
20554       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20555         return 1;
20556       fprintf (f, "%lu\n", i);
20557     }
20558   return ferror (f) || fclose (f) != 0;
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest$ac_exeext
20565 if { (ac_try="$ac_link"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_link") 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20575   { (case "(($ac_try" in
20576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577   *) ac_try_echo=$ac_try;;
20578 esac
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580   (eval "$ac_try") 2>&5
20581   ac_status=$?
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); }; }; then
20584   ac_cv_sizeof_unsigned_long=`cat conftest.val`
20585 else
20586   echo "$as_me: program exited with status $ac_status" >&5
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590 ( exit $ac_status )
20591 if test "$ac_cv_type_unsigned_long" = yes; then
20592      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20593 See \`config.log' for more details." >&5
20594 echo "$as_me: error: cannot compute sizeof (unsigned long)
20595 See \`config.log' for more details." >&2;}
20596    { (exit 77); exit 77; }; }
20597    else
20598      ac_cv_sizeof_unsigned_long=0
20599    fi
20600 fi
20601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 rm -f conftest.val
20604 fi
20605 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20606 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20607
20608
20609
20610 cat >>confdefs.h <<_ACEOF
20611 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20612 _ACEOF
20613
20614
20615
20616 # And one for the size of size_t (enables tweaks for > 32bit address space)
20617 { echo "$as_me:$LINENO: checking for size_t" >&5
20618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20619 if test "${ac_cv_type_size_t+set}" = set; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 $ac_includes_default
20629 typedef size_t ac__type_new_;
20630 int
20631 main ()
20632 {
20633 if ((ac__type_new_ *) 0)
20634   return 0;
20635 if (sizeof (ac__type_new_))
20636   return 0;
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648   (eval "$ac_compile") 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } && {
20655          test -z "$ac_c_werror_flag" ||
20656          test ! -s conftest.err
20657        } && test -s conftest.$ac_objext; then
20658   ac_cv_type_size_t=yes
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663         ac_cv_type_size_t=no
20664 fi
20665
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20669 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20670
20671 # The cast to long int works around a bug in the HP C Compiler
20672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20674 # This bug is HP SR number 8606223364.
20675 { echo "$as_me:$LINENO: checking size of size_t" >&5
20676 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20677 if test "${ac_cv_sizeof_size_t+set}" = set; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680   if test "$cross_compiling" = yes; then
20681   # Depending upon the size, compute the lo and hi bounds.
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 $ac_includes_default
20689    typedef size_t ac__type_sizeof_;
20690 int
20691 main ()
20692 {
20693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20694 test_array [0] = 0
20695
20696   ;
20697   return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext
20701 if { (ac_try="$ac_compile"
20702 case "(($ac_try" in
20703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704   *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707   (eval "$ac_compile") 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } && {
20714          test -z "$ac_c_werror_flag" ||
20715          test ! -s conftest.err
20716        } && test -s conftest.$ac_objext; then
20717   ac_lo=0 ac_mid=0
20718   while :; do
20719     cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 $ac_includes_default
20726    typedef size_t ac__type_sizeof_;
20727 int
20728 main ()
20729 {
20730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20731 test_array [0] = 0
20732
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_compile") 2>conftest.er1
20745   ac_status=$?
20746   grep -v '^ *+' conftest.er1 >conftest.err
20747   rm -f conftest.er1
20748   cat conftest.err >&5
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } && {
20751          test -z "$ac_c_werror_flag" ||
20752          test ! -s conftest.err
20753        } && test -s conftest.$ac_objext; then
20754   ac_hi=$ac_mid; break
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759         ac_lo=`expr $ac_mid + 1`
20760                         if test $ac_lo -le $ac_mid; then
20761                           ac_lo= ac_hi=
20762                           break
20763                         fi
20764                         ac_mid=`expr 2 '*' $ac_mid + 1`
20765 fi
20766
20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768   done
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773         cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779 $ac_includes_default
20780    typedef size_t ac__type_sizeof_;
20781 int
20782 main ()
20783 {
20784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20785 test_array [0] = 0
20786
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest.$ac_objext
20792 if { (ac_try="$ac_compile"
20793 case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_compile") 2>conftest.er1
20799   ac_status=$?
20800   grep -v '^ *+' conftest.er1 >conftest.err
20801   rm -f conftest.er1
20802   cat conftest.err >&5
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } && {
20805          test -z "$ac_c_werror_flag" ||
20806          test ! -s conftest.err
20807        } && test -s conftest.$ac_objext; then
20808   ac_hi=-1 ac_mid=-1
20809   while :; do
20810     cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 $ac_includes_default
20817    typedef size_t ac__type_sizeof_;
20818 int
20819 main ()
20820 {
20821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20822 test_array [0] = 0
20823
20824   ;
20825   return 0;
20826 }
20827 _ACEOF
20828 rm -f conftest.$ac_objext
20829 if { (ac_try="$ac_compile"
20830 case "(($ac_try" in
20831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832   *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835   (eval "$ac_compile") 2>conftest.er1
20836   ac_status=$?
20837   grep -v '^ *+' conftest.er1 >conftest.err
20838   rm -f conftest.er1
20839   cat conftest.err >&5
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); } && {
20842          test -z "$ac_c_werror_flag" ||
20843          test ! -s conftest.err
20844        } && test -s conftest.$ac_objext; then
20845   ac_lo=$ac_mid; break
20846 else
20847   echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20849
20850         ac_hi=`expr '(' $ac_mid ')' - 1`
20851                         if test $ac_mid -le $ac_hi; then
20852                           ac_lo= ac_hi=
20853                           break
20854                         fi
20855                         ac_mid=`expr 2 '*' $ac_mid`
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859   done
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864         ac_lo= ac_hi=
20865 fi
20866
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 fi
20869
20870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871 # Binary search between lo and hi bounds.
20872 while test "x$ac_lo" != "x$ac_hi"; do
20873   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20874   cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880 $ac_includes_default
20881    typedef size_t ac__type_sizeof_;
20882 int
20883 main ()
20884 {
20885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20886 test_array [0] = 0
20887
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_compile") 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } && {
20906          test -z "$ac_c_werror_flag" ||
20907          test ! -s conftest.err
20908        } && test -s conftest.$ac_objext; then
20909   ac_hi=$ac_mid
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_lo=`expr '(' $ac_mid ')' + 1`
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 done
20919 case $ac_lo in
20920 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20921 '') if test "$ac_cv_type_size_t" = yes; then
20922      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20923 See \`config.log' for more details." >&5
20924 echo "$as_me: error: cannot compute sizeof (size_t)
20925 See \`config.log' for more details." >&2;}
20926    { (exit 77); exit 77; }; }
20927    else
20928      ac_cv_sizeof_size_t=0
20929    fi ;;
20930 esac
20931 else
20932   cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 $ac_includes_default
20939    typedef size_t ac__type_sizeof_;
20940 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20941 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20942 #include <stdio.h>
20943 #include <stdlib.h>
20944 int
20945 main ()
20946 {
20947
20948   FILE *f = fopen ("conftest.val", "w");
20949   if (! f)
20950     return 1;
20951   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20952     {
20953       long int i = longval ();
20954       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20955         return 1;
20956       fprintf (f, "%ld\n", i);
20957     }
20958   else
20959     {
20960       unsigned long int i = ulongval ();
20961       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20962         return 1;
20963       fprintf (f, "%lu\n", i);
20964     }
20965   return ferror (f) || fclose (f) != 0;
20966
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975   *) ac_try_echo=$ac_try;;
20976 esac
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978   (eval "$ac_link") 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20982   { (case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_try") 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   ac_cv_sizeof_size_t=`cat conftest.val`
20992 else
20993   echo "$as_me: program exited with status $ac_status" >&5
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 ( exit $ac_status )
20998 if test "$ac_cv_type_size_t" = yes; then
20999      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21000 See \`config.log' for more details." >&5
21001 echo "$as_me: error: cannot compute sizeof (size_t)
21002 See \`config.log' for more details." >&2;}
21003    { (exit 77); exit 77; }; }
21004    else
21005      ac_cv_sizeof_size_t=0
21006    fi
21007 fi
21008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21009 fi
21010 rm -f conftest.val
21011 fi
21012 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21013 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21014
21015
21016
21017 cat >>confdefs.h <<_ACEOF
21018 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21019 _ACEOF
21020
21021
21022
21023 # Decide whether float4 is passed by value: user-selectable, enabled by default
21024 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21025 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21026
21027 pgac_args="$pgac_args enable_float4_byval"
21028
21029 # Check whether --enable-float4-byval was given.
21030 if test "${enable_float4_byval+set}" = set; then
21031   enableval=$enable_float4_byval;
21032   case $enableval in
21033     yes)
21034
21035 cat >>confdefs.h <<\_ACEOF
21036 #define USE_FLOAT4_BYVAL 1
21037 _ACEOF
21038
21039                float4passbyval=true
21040       ;;
21041     no)
21042       float4passbyval=false
21043       ;;
21044     *)
21045       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21046 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21047    { (exit 1); exit 1; }; }
21048       ;;
21049   esac
21050
21051 else
21052   enable_float4_byval=yes
21053
21054 cat >>confdefs.h <<\_ACEOF
21055 #define USE_FLOAT4_BYVAL 1
21056 _ACEOF
21057
21058                float4passbyval=true
21059 fi
21060
21061
21062 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21063 echo "${ECHO_T}$enable_float4_byval" >&6; }
21064
21065 cat >>confdefs.h <<_ACEOF
21066 #define FLOAT4PASSBYVAL $float4passbyval
21067 _ACEOF
21068
21069
21070 # Decide whether float8 is passed by value.
21071 # Note: this setting also controls int8 and related types such as timestamp.
21072 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21073 # If not, trying to select it is an error.
21074 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21075 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21076 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21077
21078 pgac_args="$pgac_args enable_float8_byval"
21079
21080 # Check whether --enable-float8-byval was given.
21081 if test "${enable_float8_byval+set}" = set; then
21082   enableval=$enable_float8_byval;
21083   case $enableval in
21084     yes)
21085       :
21086       ;;
21087     no)
21088       :
21089       ;;
21090     *)
21091       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21092 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21093    { (exit 1); exit 1; }; }
21094       ;;
21095   esac
21096
21097 else
21098   enable_float8_byval=yes
21099
21100 fi
21101
21102
21103 else
21104
21105 pgac_args="$pgac_args enable_float8_byval"
21106
21107 # Check whether --enable-float8-byval was given.
21108 if test "${enable_float8_byval+set}" = set; then
21109   enableval=$enable_float8_byval;
21110   case $enableval in
21111     yes)
21112       :
21113       ;;
21114     no)
21115       :
21116       ;;
21117     *)
21118       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21119 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21120    { (exit 1); exit 1; }; }
21121       ;;
21122   esac
21123
21124 else
21125   enable_float8_byval=no
21126
21127 fi
21128
21129
21130   if test "$enable_float8_byval" = yes ; then
21131     { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21132 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21133    { (exit 1); exit 1; }; }
21134   fi
21135 fi
21136 if test "$enable_float8_byval" = yes ; then
21137
21138 cat >>confdefs.h <<\_ACEOF
21139 #define USE_FLOAT8_BYVAL 1
21140 _ACEOF
21141
21142   float8passbyval=true
21143 else
21144   float8passbyval=false
21145 fi
21146 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21147 echo "${ECHO_T}$enable_float8_byval" >&6; }
21148
21149 cat >>confdefs.h <<_ACEOF
21150 #define FLOAT8PASSBYVAL $float8passbyval
21151 _ACEOF
21152
21153
21154 # Determine memory alignment requirements for the basic C data types.
21155
21156 { echo "$as_me:$LINENO: checking for short" >&5
21157 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21158 if test "${ac_cv_type_short+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161   cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 $ac_includes_default
21168 typedef short ac__type_new_;
21169 int
21170 main ()
21171 {
21172 if ((ac__type_new_ *) 0)
21173   return 0;
21174 if (sizeof (ac__type_new_))
21175   return 0;
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 rm -f conftest.$ac_objext
21181 if { (ac_try="$ac_compile"
21182 case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_compile") 2>conftest.er1
21188   ac_status=$?
21189   grep -v '^ *+' conftest.er1 >conftest.err
21190   rm -f conftest.er1
21191   cat conftest.err >&5
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); } && {
21194          test -z "$ac_c_werror_flag" ||
21195          test ! -s conftest.err
21196        } && test -s conftest.$ac_objext; then
21197   ac_cv_type_short=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202         ac_cv_type_short=no
21203 fi
21204
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 fi
21207 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21208 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21209
21210 # The cast to long int works around a bug in the HP C Compiler,
21211 # see AC_CHECK_SIZEOF for more information.
21212 { echo "$as_me:$LINENO: checking alignment of short" >&5
21213 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21214 if test "${ac_cv_alignof_short+set}" = set; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217   if test "$cross_compiling" = yes; then
21218   # Depending upon the size, compute the lo and hi bounds.
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 $ac_includes_default
21226 #ifndef offsetof
21227 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21228 #endif
21229 typedef struct { char x; short y; } ac__type_alignof_;
21230 int
21231 main ()
21232 {
21233 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21234 test_array [0] = 0
21235
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_compile") 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } && {
21254          test -z "$ac_c_werror_flag" ||
21255          test ! -s conftest.err
21256        } && test -s conftest.$ac_objext; then
21257   ac_lo=0 ac_mid=0
21258   while :; do
21259     cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 $ac_includes_default
21266 #ifndef offsetof
21267 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21268 #endif
21269 typedef struct { char x; short y; } ac__type_alignof_;
21270 int
21271 main ()
21272 {
21273 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21274 test_array [0] = 0
21275
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_compile") 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } && {
21294          test -z "$ac_c_werror_flag" ||
21295          test ! -s conftest.err
21296        } && test -s conftest.$ac_objext; then
21297   ac_hi=$ac_mid; break
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         ac_lo=`expr $ac_mid + 1`
21303                         if test $ac_lo -le $ac_mid; then
21304                           ac_lo= ac_hi=
21305                           break
21306                         fi
21307                         ac_mid=`expr 2 '*' $ac_mid + 1`
21308 fi
21309
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311   done
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316         cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 $ac_includes_default
21323 #ifndef offsetof
21324 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21325 #endif
21326 typedef struct { char x; short y; } ac__type_alignof_;
21327 int
21328 main ()
21329 {
21330 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21331 test_array [0] = 0
21332
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344   (eval "$ac_compile") 2>conftest.er1
21345   ac_status=$?
21346   grep -v '^ *+' conftest.er1 >conftest.err
21347   rm -f conftest.er1
21348   cat conftest.err >&5
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); } && {
21351          test -z "$ac_c_werror_flag" ||
21352          test ! -s conftest.err
21353        } && test -s conftest.$ac_objext; then
21354   ac_hi=-1 ac_mid=-1
21355   while :; do
21356     cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 $ac_includes_default
21363 #ifndef offsetof
21364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21365 #endif
21366 typedef struct { char x; short y; } ac__type_alignof_;
21367 int
21368 main ()
21369 {
21370 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21371 test_array [0] = 0
21372
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381   *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384   (eval "$ac_compile") 2>conftest.er1
21385   ac_status=$?
21386   grep -v '^ *+' conftest.er1 >conftest.err
21387   rm -f conftest.er1
21388   cat conftest.err >&5
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } && {
21391          test -z "$ac_c_werror_flag" ||
21392          test ! -s conftest.err
21393        } && test -s conftest.$ac_objext; then
21394   ac_lo=$ac_mid; break
21395 else
21396   echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399         ac_hi=`expr '(' $ac_mid ')' - 1`
21400                         if test $ac_mid -le $ac_hi; then
21401                           ac_lo= ac_hi=
21402                           break
21403                         fi
21404                         ac_mid=`expr 2 '*' $ac_mid`
21405 fi
21406
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408   done
21409 else
21410   echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21412
21413         ac_lo= ac_hi=
21414 fi
21415
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 # Binary search between lo and hi bounds.
21421 while test "x$ac_lo" != "x$ac_hi"; do
21422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21423   cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 $ac_includes_default
21430 #ifndef offsetof
21431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21432 #endif
21433 typedef struct { char x; short y; } ac__type_alignof_;
21434 int
21435 main ()
21436 {
21437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21438 test_array [0] = 0
21439
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448   *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451   (eval "$ac_compile") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && {
21458          test -z "$ac_c_werror_flag" ||
21459          test ! -s conftest.err
21460        } && test -s conftest.$ac_objext; then
21461   ac_hi=$ac_mid
21462 else
21463   echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466         ac_lo=`expr '(' $ac_mid ')' + 1`
21467 fi
21468
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 done
21471 case $ac_lo in
21472 ?*) ac_cv_alignof_short=$ac_lo;;
21473 '') if test "$ac_cv_type_short" = yes; then
21474      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21475 See \`config.log' for more details." >&5
21476 echo "$as_me: error: cannot compute alignment of short
21477 See \`config.log' for more details." >&2;}
21478    { (exit 77); exit 77; }; }
21479    else
21480      ac_cv_alignof_short=0
21481    fi ;;
21482 esac
21483 else
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 $ac_includes_default
21491 #ifndef offsetof
21492 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21493 #endif
21494 typedef struct { char x; short y; } ac__type_alignof_;
21495 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21496 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21497 #include <stdio.h>
21498 #include <stdlib.h>
21499 int
21500 main ()
21501 {
21502
21503   FILE *f = fopen ("conftest.val", "w");
21504   if (! f)
21505     return 1;
21506   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21507     {
21508       long int i = longval ();
21509       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21510         return 1;
21511       fprintf (f, "%ld\n", i);
21512     }
21513   else
21514     {
21515       unsigned long int i = ulongval ();
21516       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21517         return 1;
21518       fprintf (f, "%lu\n", i);
21519     }
21520   return ferror (f) || fclose (f) != 0;
21521
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest$ac_exeext
21527 if { (ac_try="$ac_link"
21528 case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_link") 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21537   { (case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_try") 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); }; }; then
21546   ac_cv_alignof_short=`cat conftest.val`
21547 else
21548   echo "$as_me: program exited with status $ac_status" >&5
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 ( exit $ac_status )
21553 if test "$ac_cv_type_short" = yes; then
21554      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21555 See \`config.log' for more details." >&5
21556 echo "$as_me: error: cannot compute alignment of short
21557 See \`config.log' for more details." >&2;}
21558    { (exit 77); exit 77; }; }
21559    else
21560      ac_cv_alignof_short=0
21561    fi
21562 fi
21563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21564 fi
21565 rm -f conftest.val
21566 fi
21567 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21568 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21569
21570
21571
21572 cat >>confdefs.h <<_ACEOF
21573 #define ALIGNOF_SHORT $ac_cv_alignof_short
21574 _ACEOF
21575
21576
21577 { echo "$as_me:$LINENO: checking for int" >&5
21578 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21579 if test "${ac_cv_type_int+set}" = set; then
21580   echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 $ac_includes_default
21589 typedef int ac__type_new_;
21590 int
21591 main ()
21592 {
21593 if ((ac__type_new_ *) 0)
21594   return 0;
21595 if (sizeof (ac__type_new_))
21596   return 0;
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_compile") 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } && {
21615          test -z "$ac_c_werror_flag" ||
21616          test ! -s conftest.err
21617        } && test -s conftest.$ac_objext; then
21618   ac_cv_type_int=yes
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         ac_cv_type_int=no
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21629 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21630
21631 # The cast to long int works around a bug in the HP C Compiler,
21632 # see AC_CHECK_SIZEOF for more information.
21633 { echo "$as_me:$LINENO: checking alignment of int" >&5
21634 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21635 if test "${ac_cv_alignof_int+set}" = set; then
21636   echo $ECHO_N "(cached) $ECHO_C" >&6
21637 else
21638   if test "$cross_compiling" = yes; then
21639   # Depending upon the size, compute the lo and hi bounds.
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646 $ac_includes_default
21647 #ifndef offsetof
21648 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21649 #endif
21650 typedef struct { char x; int y; } ac__type_alignof_;
21651 int
21652 main ()
21653 {
21654 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21655 test_array [0] = 0
21656
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665   *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668   (eval "$ac_compile") 2>conftest.er1
21669   ac_status=$?
21670   grep -v '^ *+' conftest.er1 >conftest.err
21671   rm -f conftest.er1
21672   cat conftest.err >&5
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } && {
21675          test -z "$ac_c_werror_flag" ||
21676          test ! -s conftest.err
21677        } && test -s conftest.$ac_objext; then
21678   ac_lo=0 ac_mid=0
21679   while :; do
21680     cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686 $ac_includes_default
21687 #ifndef offsetof
21688 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21689 #endif
21690 typedef struct { char x; int y; } ac__type_alignof_;
21691 int
21692 main ()
21693 {
21694 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21695 test_array [0] = 0
21696
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708   (eval "$ac_compile") 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } && {
21715          test -z "$ac_c_werror_flag" ||
21716          test ! -s conftest.err
21717        } && test -s conftest.$ac_objext; then
21718   ac_hi=$ac_mid; break
21719 else
21720   echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723         ac_lo=`expr $ac_mid + 1`
21724                         if test $ac_lo -le $ac_mid; then
21725                           ac_lo= ac_hi=
21726                           break
21727                         fi
21728                         ac_mid=`expr 2 '*' $ac_mid + 1`
21729 fi
21730
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732   done
21733 else
21734   echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737         cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h.  */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h.  */
21743 $ac_includes_default
21744 #ifndef offsetof
21745 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21746 #endif
21747 typedef struct { char x; int y; } ac__type_alignof_;
21748 int
21749 main ()
21750 {
21751 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21752 test_array [0] = 0
21753
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 rm -f conftest.$ac_objext
21759 if { (ac_try="$ac_compile"
21760 case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765   (eval "$ac_compile") 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } && {
21772          test -z "$ac_c_werror_flag" ||
21773          test ! -s conftest.err
21774        } && test -s conftest.$ac_objext; then
21775   ac_hi=-1 ac_mid=-1
21776   while :; do
21777     cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h.  */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h.  */
21783 $ac_includes_default
21784 #ifndef offsetof
21785 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21786 #endif
21787 typedef struct { char x; int y; } ac__type_alignof_;
21788 int
21789 main ()
21790 {
21791 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21792 test_array [0] = 0
21793
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_compile") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } && {
21812          test -z "$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        } && test -s conftest.$ac_objext; then
21815   ac_lo=$ac_mid; break
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820         ac_hi=`expr '(' $ac_mid ')' - 1`
21821                         if test $ac_mid -le $ac_hi; then
21822                           ac_lo= ac_hi=
21823                           break
21824                         fi
21825                         ac_mid=`expr 2 '*' $ac_mid`
21826 fi
21827
21828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829   done
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834         ac_lo= ac_hi=
21835 fi
21836
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838 fi
21839
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841 # Binary search between lo and hi bounds.
21842 while test "x$ac_lo" != "x$ac_hi"; do
21843   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21844   cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h.  */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h.  */
21850 $ac_includes_default
21851 #ifndef offsetof
21852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21853 #endif
21854 typedef struct { char x; int y; } ac__type_alignof_;
21855 int
21856 main ()
21857 {
21858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21859 test_array [0] = 0
21860
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_compile") 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } && {
21879          test -z "$ac_c_werror_flag" ||
21880          test ! -s conftest.err
21881        } && test -s conftest.$ac_objext; then
21882   ac_hi=$ac_mid
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887         ac_lo=`expr '(' $ac_mid ')' + 1`
21888 fi
21889
21890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891 done
21892 case $ac_lo in
21893 ?*) ac_cv_alignof_int=$ac_lo;;
21894 '') if test "$ac_cv_type_int" = yes; then
21895      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21896 See \`config.log' for more details." >&5
21897 echo "$as_me: error: cannot compute alignment of int
21898 See \`config.log' for more details." >&2;}
21899    { (exit 77); exit 77; }; }
21900    else
21901      ac_cv_alignof_int=0
21902    fi ;;
21903 esac
21904 else
21905   cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 $ac_includes_default
21912 #ifndef offsetof
21913 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21914 #endif
21915 typedef struct { char x; int y; } ac__type_alignof_;
21916 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21917 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21918 #include <stdio.h>
21919 #include <stdlib.h>
21920 int
21921 main ()
21922 {
21923
21924   FILE *f = fopen ("conftest.val", "w");
21925   if (! f)
21926     return 1;
21927   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21928     {
21929       long int i = longval ();
21930       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21931         return 1;
21932       fprintf (f, "%ld\n", i);
21933     }
21934   else
21935     {
21936       unsigned long int i = ulongval ();
21937       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21938         return 1;
21939       fprintf (f, "%lu\n", i);
21940     }
21941   return ferror (f) || fclose (f) != 0;
21942
21943   ;
21944   return 0;
21945 }
21946 _ACEOF
21947 rm -f conftest$ac_exeext
21948 if { (ac_try="$ac_link"
21949 case "(($ac_try" in
21950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951   *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954   (eval "$ac_link") 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21958   { (case "(($ac_try" in
21959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960   *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963   (eval "$ac_try") 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; }; then
21967   ac_cv_alignof_int=`cat conftest.val`
21968 else
21969   echo "$as_me: program exited with status $ac_status" >&5
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ( exit $ac_status )
21974 if test "$ac_cv_type_int" = yes; then
21975      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21976 See \`config.log' for more details." >&5
21977 echo "$as_me: error: cannot compute alignment of int
21978 See \`config.log' for more details." >&2;}
21979    { (exit 77); exit 77; }; }
21980    else
21981      ac_cv_alignof_int=0
21982    fi
21983 fi
21984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21985 fi
21986 rm -f conftest.val
21987 fi
21988 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21989 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21990
21991
21992
21993 cat >>confdefs.h <<_ACEOF
21994 #define ALIGNOF_INT $ac_cv_alignof_int
21995 _ACEOF
21996
21997
21998 { echo "$as_me:$LINENO: checking for long" >&5
21999 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22000 if test "${ac_cv_type_long+set}" = set; then
22001   echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003   cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009 $ac_includes_default
22010 typedef long ac__type_new_;
22011 int
22012 main ()
22013 {
22014 if ((ac__type_new_ *) 0)
22015   return 0;
22016 if (sizeof (ac__type_new_))
22017   return 0;
22018   ;
22019   return 0;
22020 }
22021 _ACEOF
22022 rm -f conftest.$ac_objext
22023 if { (ac_try="$ac_compile"
22024 case "(($ac_try" in
22025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026   *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029   (eval "$ac_compile") 2>conftest.er1
22030   ac_status=$?
22031   grep -v '^ *+' conftest.er1 >conftest.err
22032   rm -f conftest.er1
22033   cat conftest.err >&5
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); } && {
22036          test -z "$ac_c_werror_flag" ||
22037          test ! -s conftest.err
22038        } && test -s conftest.$ac_objext; then
22039   ac_cv_type_long=yes
22040 else
22041   echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22043
22044         ac_cv_type_long=no
22045 fi
22046
22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048 fi
22049 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22050 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22051
22052 # The cast to long int works around a bug in the HP C Compiler,
22053 # see AC_CHECK_SIZEOF for more information.
22054 { echo "$as_me:$LINENO: checking alignment of long" >&5
22055 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22056 if test "${ac_cv_alignof_long+set}" = set; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   if test "$cross_compiling" = yes; then
22060   # Depending upon the size, compute the lo and hi bounds.
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 $ac_includes_default
22068 #ifndef offsetof
22069 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22070 #endif
22071 typedef struct { char x; long y; } ac__type_alignof_;
22072 int
22073 main ()
22074 {
22075 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22076 test_array [0] = 0
22077
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_compile") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_c_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest.$ac_objext; then
22099   ac_lo=0 ac_mid=0
22100   while :; do
22101     cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h.  */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h.  */
22107 $ac_includes_default
22108 #ifndef offsetof
22109 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22110 #endif
22111 typedef struct { char x; long y; } ac__type_alignof_;
22112 int
22113 main ()
22114 {
22115 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22116 test_array [0] = 0
22117
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext
22123 if { (ac_try="$ac_compile"
22124 case "(($ac_try" in
22125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126   *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129   (eval "$ac_compile") 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } && {
22136          test -z "$ac_c_werror_flag" ||
22137          test ! -s conftest.err
22138        } && test -s conftest.$ac_objext; then
22139   ac_hi=$ac_mid; break
22140 else
22141   echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144         ac_lo=`expr $ac_mid + 1`
22145                         if test $ac_lo -le $ac_mid; then
22146                           ac_lo= ac_hi=
22147                           break
22148                         fi
22149                         ac_mid=`expr 2 '*' $ac_mid + 1`
22150 fi
22151
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153   done
22154 else
22155   echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158         cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 $ac_includes_default
22165 #ifndef offsetof
22166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22167 #endif
22168 typedef struct { char x; long y; } ac__type_alignof_;
22169 int
22170 main ()
22171 {
22172 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22173 test_array [0] = 0
22174
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 rm -f conftest.$ac_objext
22180 if { (ac_try="$ac_compile"
22181 case "(($ac_try" in
22182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183   *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186   (eval "$ac_compile") 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } && {
22193          test -z "$ac_c_werror_flag" ||
22194          test ! -s conftest.err
22195        } && test -s conftest.$ac_objext; then
22196   ac_hi=-1 ac_mid=-1
22197   while :; do
22198     cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 $ac_includes_default
22205 #ifndef offsetof
22206 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22207 #endif
22208 typedef struct { char x; long y; } ac__type_alignof_;
22209 int
22210 main ()
22211 {
22212 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22213 test_array [0] = 0
22214
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_compile") 2>conftest.er1
22227   ac_status=$?
22228   grep -v '^ *+' conftest.er1 >conftest.err
22229   rm -f conftest.er1
22230   cat conftest.err >&5
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } && {
22233          test -z "$ac_c_werror_flag" ||
22234          test ! -s conftest.err
22235        } && test -s conftest.$ac_objext; then
22236   ac_lo=$ac_mid; break
22237 else
22238   echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241         ac_hi=`expr '(' $ac_mid ')' - 1`
22242                         if test $ac_mid -le $ac_hi; then
22243                           ac_lo= ac_hi=
22244                           break
22245                         fi
22246                         ac_mid=`expr 2 '*' $ac_mid`
22247 fi
22248
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250   done
22251 else
22252   echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22254
22255         ac_lo= ac_hi=
22256 fi
22257
22258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259 fi
22260
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 # Binary search between lo and hi bounds.
22263 while test "x$ac_lo" != "x$ac_hi"; do
22264   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22265   cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271 $ac_includes_default
22272 #ifndef offsetof
22273 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22274 #endif
22275 typedef struct { char x; long y; } ac__type_alignof_;
22276 int
22277 main ()
22278 {
22279 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22280 test_array [0] = 0
22281
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
22288 case "(($ac_try" in
22289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290   *) ac_try_echo=$ac_try;;
22291 esac
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293   (eval "$ac_compile") 2>conftest.er1
22294   ac_status=$?
22295   grep -v '^ *+' conftest.er1 >conftest.err
22296   rm -f conftest.er1
22297   cat conftest.err >&5
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && {
22300          test -z "$ac_c_werror_flag" ||
22301          test ! -s conftest.err
22302        } && test -s conftest.$ac_objext; then
22303   ac_hi=$ac_mid
22304 else
22305   echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22307
22308         ac_lo=`expr '(' $ac_mid ')' + 1`
22309 fi
22310
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 done
22313 case $ac_lo in
22314 ?*) ac_cv_alignof_long=$ac_lo;;
22315 '') if test "$ac_cv_type_long" = yes; then
22316      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22317 See \`config.log' for more details." >&5
22318 echo "$as_me: error: cannot compute alignment of long
22319 See \`config.log' for more details." >&2;}
22320    { (exit 77); exit 77; }; }
22321    else
22322      ac_cv_alignof_long=0
22323    fi ;;
22324 esac
22325 else
22326   cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332 $ac_includes_default
22333 #ifndef offsetof
22334 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22335 #endif
22336 typedef struct { char x; long y; } ac__type_alignof_;
22337 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22338 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22339 #include <stdio.h>
22340 #include <stdlib.h>
22341 int
22342 main ()
22343 {
22344
22345   FILE *f = fopen ("conftest.val", "w");
22346   if (! f)
22347     return 1;
22348   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22349     {
22350       long int i = longval ();
22351       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22352         return 1;
22353       fprintf (f, "%ld\n", i);
22354     }
22355   else
22356     {
22357       unsigned long int i = ulongval ();
22358       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22359         return 1;
22360       fprintf (f, "%lu\n", i);
22361     }
22362   return ferror (f) || fclose (f) != 0;
22363
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375   (eval "$ac_link") 2>&5
22376   ac_status=$?
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22379   { (case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_try") 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; }; then
22388   ac_cv_alignof_long=`cat conftest.val`
22389 else
22390   echo "$as_me: program exited with status $ac_status" >&5
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ( exit $ac_status )
22395 if test "$ac_cv_type_long" = yes; then
22396      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: cannot compute alignment of long
22399 See \`config.log' for more details." >&2;}
22400    { (exit 77); exit 77; }; }
22401    else
22402      ac_cv_alignof_long=0
22403    fi
22404 fi
22405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22406 fi
22407 rm -f conftest.val
22408 fi
22409 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22410 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22411
22412
22413
22414 cat >>confdefs.h <<_ACEOF
22415 #define ALIGNOF_LONG $ac_cv_alignof_long
22416 _ACEOF
22417
22418
22419 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22420   { echo "$as_me:$LINENO: checking for long long int" >&5
22421 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22422 if test "${ac_cv_type_long_long_int+set}" = set; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h.  */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h.  */
22431 $ac_includes_default
22432 typedef long long int ac__type_new_;
22433 int
22434 main ()
22435 {
22436 if ((ac__type_new_ *) 0)
22437   return 0;
22438 if (sizeof (ac__type_new_))
22439   return 0;
22440   ;
22441   return 0;
22442 }
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448   *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451   (eval "$ac_compile") 2>conftest.er1
22452   ac_status=$?
22453   grep -v '^ *+' conftest.er1 >conftest.err
22454   rm -f conftest.er1
22455   cat conftest.err >&5
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } && {
22458          test -z "$ac_c_werror_flag" ||
22459          test ! -s conftest.err
22460        } && test -s conftest.$ac_objext; then
22461   ac_cv_type_long_long_int=yes
22462 else
22463   echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466         ac_cv_type_long_long_int=no
22467 fi
22468
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22472 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22473
22474 # The cast to long int works around a bug in the HP C Compiler,
22475 # see AC_CHECK_SIZEOF for more information.
22476 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22477 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22478 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22479   echo $ECHO_N "(cached) $ECHO_C" >&6
22480 else
22481   if test "$cross_compiling" = yes; then
22482   # Depending upon the size, compute the lo and hi bounds.
22483 cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 $ac_includes_default
22490 #ifndef offsetof
22491 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22492 #endif
22493 typedef struct { char x; long long int y; } ac__type_alignof_;
22494 int
22495 main ()
22496 {
22497 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22498 test_array [0] = 0
22499
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508   *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511   (eval "$ac_compile") 2>conftest.er1
22512   ac_status=$?
22513   grep -v '^ *+' conftest.er1 >conftest.err
22514   rm -f conftest.er1
22515   cat conftest.err >&5
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); } && {
22518          test -z "$ac_c_werror_flag" ||
22519          test ! -s conftest.err
22520        } && test -s conftest.$ac_objext; then
22521   ac_lo=0 ac_mid=0
22522   while :; do
22523     cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 $ac_includes_default
22530 #ifndef offsetof
22531 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22532 #endif
22533 typedef struct { char x; long long int y; } ac__type_alignof_;
22534 int
22535 main ()
22536 {
22537 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22538 test_array [0] = 0
22539
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (ac_try="$ac_compile"
22546 case "(($ac_try" in
22547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548   *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551   (eval "$ac_compile") 2>conftest.er1
22552   ac_status=$?
22553   grep -v '^ *+' conftest.er1 >conftest.err
22554   rm -f conftest.er1
22555   cat conftest.err >&5
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } && {
22558          test -z "$ac_c_werror_flag" ||
22559          test ! -s conftest.err
22560        } && test -s conftest.$ac_objext; then
22561   ac_hi=$ac_mid; break
22562 else
22563   echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22565
22566         ac_lo=`expr $ac_mid + 1`
22567                         if test $ac_lo -le $ac_mid; then
22568                           ac_lo= ac_hi=
22569                           break
22570                         fi
22571                         ac_mid=`expr 2 '*' $ac_mid + 1`
22572 fi
22573
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575   done
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580         cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h.  */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h.  */
22586 $ac_includes_default
22587 #ifndef offsetof
22588 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22589 #endif
22590 typedef struct { char x; long long int y; } ac__type_alignof_;
22591 int
22592 main ()
22593 {
22594 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22595 test_array [0] = 0
22596
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605   *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608   (eval "$ac_compile") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } && {
22615          test -z "$ac_c_werror_flag" ||
22616          test ! -s conftest.err
22617        } && test -s conftest.$ac_objext; then
22618   ac_hi=-1 ac_mid=-1
22619   while :; do
22620     cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h.  */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h.  */
22626 $ac_includes_default
22627 #ifndef offsetof
22628 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22629 #endif
22630 typedef struct { char x; long long int y; } ac__type_alignof_;
22631 int
22632 main ()
22633 {
22634 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22635 test_array [0] = 0
22636
22637   ;
22638   return 0;
22639 }
22640 _ACEOF
22641 rm -f conftest.$ac_objext
22642 if { (ac_try="$ac_compile"
22643 case "(($ac_try" in
22644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645   *) ac_try_echo=$ac_try;;
22646 esac
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648   (eval "$ac_compile") 2>conftest.er1
22649   ac_status=$?
22650   grep -v '^ *+' conftest.er1 >conftest.err
22651   rm -f conftest.er1
22652   cat conftest.err >&5
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } && {
22655          test -z "$ac_c_werror_flag" ||
22656          test ! -s conftest.err
22657        } && test -s conftest.$ac_objext; then
22658   ac_lo=$ac_mid; break
22659 else
22660   echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663         ac_hi=`expr '(' $ac_mid ')' - 1`
22664                         if test $ac_mid -le $ac_hi; then
22665                           ac_lo= ac_hi=
22666                           break
22667                         fi
22668                         ac_mid=`expr 2 '*' $ac_mid`
22669 fi
22670
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672   done
22673 else
22674   echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677         ac_lo= ac_hi=
22678 fi
22679
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681 fi
22682
22683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 # Binary search between lo and hi bounds.
22685 while test "x$ac_lo" != "x$ac_hi"; do
22686   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22687   cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h.  */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h.  */
22693 $ac_includes_default
22694 #ifndef offsetof
22695 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22696 #endif
22697 typedef struct { char x; long long int y; } ac__type_alignof_;
22698 int
22699 main ()
22700 {
22701 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22702 test_array [0] = 0
22703
22704   ;
22705   return 0;
22706 }
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712   *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715   (eval "$ac_compile") 2>conftest.er1
22716   ac_status=$?
22717   grep -v '^ *+' conftest.er1 >conftest.err
22718   rm -f conftest.er1
22719   cat conftest.err >&5
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); } && {
22722          test -z "$ac_c_werror_flag" ||
22723          test ! -s conftest.err
22724        } && test -s conftest.$ac_objext; then
22725   ac_hi=$ac_mid
22726 else
22727   echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22729
22730         ac_lo=`expr '(' $ac_mid ')' + 1`
22731 fi
22732
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734 done
22735 case $ac_lo in
22736 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22737 '') if test "$ac_cv_type_long_long_int" = yes; then
22738      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22739 See \`config.log' for more details." >&5
22740 echo "$as_me: error: cannot compute alignment of long long int
22741 See \`config.log' for more details." >&2;}
22742    { (exit 77); exit 77; }; }
22743    else
22744      ac_cv_alignof_long_long_int=0
22745    fi ;;
22746 esac
22747 else
22748   cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h.  */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h.  */
22754 $ac_includes_default
22755 #ifndef offsetof
22756 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22757 #endif
22758 typedef struct { char x; long long int y; } ac__type_alignof_;
22759 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22760 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22761 #include <stdio.h>
22762 #include <stdlib.h>
22763 int
22764 main ()
22765 {
22766
22767   FILE *f = fopen ("conftest.val", "w");
22768   if (! f)
22769     return 1;
22770   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22771     {
22772       long int i = longval ();
22773       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22774         return 1;
22775       fprintf (f, "%ld\n", i);
22776     }
22777   else
22778     {
22779       unsigned long int i = ulongval ();
22780       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22781         return 1;
22782       fprintf (f, "%lu\n", i);
22783     }
22784   return ferror (f) || fclose (f) != 0;
22785
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794   *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797   (eval "$ac_link") 2>&5
22798   ac_status=$?
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22801   { (case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_try") 2>&5
22807   ac_status=$?
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); }; }; then
22810   ac_cv_alignof_long_long_int=`cat conftest.val`
22811 else
22812   echo "$as_me: program exited with status $ac_status" >&5
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816 ( exit $ac_status )
22817 if test "$ac_cv_type_long_long_int" = yes; then
22818      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22819 See \`config.log' for more details." >&5
22820 echo "$as_me: error: cannot compute alignment of long long int
22821 See \`config.log' for more details." >&2;}
22822    { (exit 77); exit 77; }; }
22823    else
22824      ac_cv_alignof_long_long_int=0
22825    fi
22826 fi
22827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22828 fi
22829 rm -f conftest.val
22830 fi
22831 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22832 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22833
22834
22835
22836 cat >>confdefs.h <<_ACEOF
22837 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22838 _ACEOF
22839
22840
22841 fi
22842 { echo "$as_me:$LINENO: checking for double" >&5
22843 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22844 if test "${ac_cv_type_double+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847   cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853 $ac_includes_default
22854 typedef double ac__type_new_;
22855 int
22856 main ()
22857 {
22858 if ((ac__type_new_ *) 0)
22859   return 0;
22860 if (sizeof (ac__type_new_))
22861   return 0;
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext
22867 if { (ac_try="$ac_compile"
22868 case "(($ac_try" in
22869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870   *) ac_try_echo=$ac_try;;
22871 esac
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873   (eval "$ac_compile") 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } && {
22880          test -z "$ac_c_werror_flag" ||
22881          test ! -s conftest.err
22882        } && test -s conftest.$ac_objext; then
22883   ac_cv_type_double=yes
22884 else
22885   echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888         ac_cv_type_double=no
22889 fi
22890
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892 fi
22893 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22894 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22895
22896 # The cast to long int works around a bug in the HP C Compiler,
22897 # see AC_CHECK_SIZEOF for more information.
22898 { echo "$as_me:$LINENO: checking alignment of double" >&5
22899 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22900 if test "${ac_cv_alignof_double+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   if test "$cross_compiling" = yes; then
22904   # Depending upon the size, compute the lo and hi bounds.
22905 cat >conftest.$ac_ext <<_ACEOF
22906 /* confdefs.h.  */
22907 _ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h.  */
22911 $ac_includes_default
22912 #ifndef offsetof
22913 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22914 #endif
22915 typedef struct { char x; double y; } ac__type_alignof_;
22916 int
22917 main ()
22918 {
22919 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22920 test_array [0] = 0
22921
22922   ;
22923   return 0;
22924 }
22925 _ACEOF
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930   *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933   (eval "$ac_compile") 2>conftest.er1
22934   ac_status=$?
22935   grep -v '^ *+' conftest.er1 >conftest.err
22936   rm -f conftest.er1
22937   cat conftest.err >&5
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); } && {
22940          test -z "$ac_c_werror_flag" ||
22941          test ! -s conftest.err
22942        } && test -s conftest.$ac_objext; then
22943   ac_lo=0 ac_mid=0
22944   while :; do
22945     cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951 $ac_includes_default
22952 #ifndef offsetof
22953 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22954 #endif
22955 typedef struct { char x; double y; } ac__type_alignof_;
22956 int
22957 main ()
22958 {
22959 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22960 test_array [0] = 0
22961
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_compile") 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } && {
22980          test -z "$ac_c_werror_flag" ||
22981          test ! -s conftest.err
22982        } && test -s conftest.$ac_objext; then
22983   ac_hi=$ac_mid; break
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988         ac_lo=`expr $ac_mid + 1`
22989                         if test $ac_lo -le $ac_mid; then
22990                           ac_lo= ac_hi=
22991                           break
22992                         fi
22993                         ac_mid=`expr 2 '*' $ac_mid + 1`
22994 fi
22995
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997   done
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008 $ac_includes_default
23009 #ifndef offsetof
23010 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23011 #endif
23012 typedef struct { char x; double y; } ac__type_alignof_;
23013 int
23014 main ()
23015 {
23016 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23017 test_array [0] = 0
23018
23019   ;
23020   return 0;
23021 }
23022 _ACEOF
23023 rm -f conftest.$ac_objext
23024 if { (ac_try="$ac_compile"
23025 case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030   (eval "$ac_compile") 2>conftest.er1
23031   ac_status=$?
23032   grep -v '^ *+' conftest.er1 >conftest.err
23033   rm -f conftest.er1
23034   cat conftest.err >&5
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); } && {
23037          test -z "$ac_c_werror_flag" ||
23038          test ! -s conftest.err
23039        } && test -s conftest.$ac_objext; then
23040   ac_hi=-1 ac_mid=-1
23041   while :; do
23042     cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h.  */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h.  */
23048 $ac_includes_default
23049 #ifndef offsetof
23050 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23051 #endif
23052 typedef struct { char x; double y; } ac__type_alignof_;
23053 int
23054 main ()
23055 {
23056 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23057 test_array [0] = 0
23058
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 rm -f conftest.$ac_objext
23064 if { (ac_try="$ac_compile"
23065 case "(($ac_try" in
23066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067   *) ac_try_echo=$ac_try;;
23068 esac
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070   (eval "$ac_compile") 2>conftest.er1
23071   ac_status=$?
23072   grep -v '^ *+' conftest.er1 >conftest.err
23073   rm -f conftest.er1
23074   cat conftest.err >&5
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); } && {
23077          test -z "$ac_c_werror_flag" ||
23078          test ! -s conftest.err
23079        } && test -s conftest.$ac_objext; then
23080   ac_lo=$ac_mid; break
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085         ac_hi=`expr '(' $ac_mid ')' - 1`
23086                         if test $ac_mid -le $ac_hi; then
23087                           ac_lo= ac_hi=
23088                           break
23089                         fi
23090                         ac_mid=`expr 2 '*' $ac_mid`
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094   done
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099         ac_lo= ac_hi=
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 fi
23104
23105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 # Binary search between lo and hi bounds.
23107 while test "x$ac_lo" != "x$ac_hi"; do
23108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23109   cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h.  */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h.  */
23115 $ac_includes_default
23116 #ifndef offsetof
23117 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23118 #endif
23119 typedef struct { char x; double y; } ac__type_alignof_;
23120 int
23121 main ()
23122 {
23123 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23124 test_array [0] = 0
23125
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_compile") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest.$ac_objext; then
23147   ac_hi=$ac_mid
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152         ac_lo=`expr '(' $ac_mid ')' + 1`
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 done
23157 case $ac_lo in
23158 ?*) ac_cv_alignof_double=$ac_lo;;
23159 '') if test "$ac_cv_type_double" = yes; then
23160      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23161 See \`config.log' for more details." >&5
23162 echo "$as_me: error: cannot compute alignment of double
23163 See \`config.log' for more details." >&2;}
23164    { (exit 77); exit 77; }; }
23165    else
23166      ac_cv_alignof_double=0
23167    fi ;;
23168 esac
23169 else
23170   cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176 $ac_includes_default
23177 #ifndef offsetof
23178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23179 #endif
23180 typedef struct { char x; double y; } ac__type_alignof_;
23181 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23182 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23183 #include <stdio.h>
23184 #include <stdlib.h>
23185 int
23186 main ()
23187 {
23188
23189   FILE *f = fopen ("conftest.val", "w");
23190   if (! f)
23191     return 1;
23192   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23193     {
23194       long int i = longval ();
23195       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23196         return 1;
23197       fprintf (f, "%ld\n", i);
23198     }
23199   else
23200     {
23201       unsigned long int i = ulongval ();
23202       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23203         return 1;
23204       fprintf (f, "%lu\n", i);
23205     }
23206   return ferror (f) || fclose (f) != 0;
23207
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_link") 2>&5
23220   ac_status=$?
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23223   { (case "(($ac_try" in
23224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225   *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228   (eval "$ac_try") 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; }; then
23232   ac_cv_alignof_double=`cat conftest.val`
23233 else
23234   echo "$as_me: program exited with status $ac_status" >&5
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238 ( exit $ac_status )
23239 if test "$ac_cv_type_double" = yes; then
23240      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23241 See \`config.log' for more details." >&5
23242 echo "$as_me: error: cannot compute alignment of double
23243 See \`config.log' for more details." >&2;}
23244    { (exit 77); exit 77; }; }
23245    else
23246      ac_cv_alignof_double=0
23247    fi
23248 fi
23249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23250 fi
23251 rm -f conftest.val
23252 fi
23253 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23254 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23255
23256
23257
23258 cat >>confdefs.h <<_ACEOF
23259 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23260 _ACEOF
23261
23262
23263
23264 # Compute maximum alignment of any basic type.
23265 # We assume long's alignment is at least as strong as char, short, or int;
23266 # but we must check long long (if it exists) and double.
23267
23268 MAX_ALIGNOF=$ac_cv_alignof_long
23269 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23270   MAX_ALIGNOF=$ac_cv_alignof_double
23271 fi
23272 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23273   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23274 fi
23275
23276 cat >>confdefs.h <<_ACEOF
23277 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23278 _ACEOF
23279
23280
23281
23282 # Some platforms predefine the types int8, int16, etc.  Only check
23283 # a (hopefully) representative subset.
23284 { echo "$as_me:$LINENO: checking for int8" >&5
23285 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23286 if test "${ac_cv_type_int8+set}" = set; then
23287   echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289   cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295 #include <stdio.h>
23296 #ifdef HAVE_SUPPORTDEFS_H
23297 #include <SupportDefs.h>
23298 #endif
23299
23300 typedef int8 ac__type_new_;
23301 int
23302 main ()
23303 {
23304 if ((ac__type_new_ *) 0)
23305   return 0;
23306 if (sizeof (ac__type_new_))
23307   return 0;
23308   ;
23309   return 0;
23310 }
23311 _ACEOF
23312 rm -f conftest.$ac_objext
23313 if { (ac_try="$ac_compile"
23314 case "(($ac_try" in
23315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316   *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319   (eval "$ac_compile") 2>conftest.er1
23320   ac_status=$?
23321   grep -v '^ *+' conftest.er1 >conftest.err
23322   rm -f conftest.er1
23323   cat conftest.err >&5
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); } && {
23326          test -z "$ac_c_werror_flag" ||
23327          test ! -s conftest.err
23328        } && test -s conftest.$ac_objext; then
23329   ac_cv_type_int8=yes
23330 else
23331   echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23333
23334         ac_cv_type_int8=no
23335 fi
23336
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 fi
23339 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23340 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23341 if test $ac_cv_type_int8 = yes; then
23342
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_INT8 1
23345 _ACEOF
23346
23347
23348 fi
23349 { echo "$as_me:$LINENO: checking for uint8" >&5
23350 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23351 if test "${ac_cv_type_uint8+set}" = set; then
23352   echo $ECHO_N "(cached) $ECHO_C" >&6
23353 else
23354   cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h.  */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h.  */
23360 #include <stdio.h>
23361 #ifdef HAVE_SUPPORTDEFS_H
23362 #include <SupportDefs.h>
23363 #endif
23364
23365 typedef uint8 ac__type_new_;
23366 int
23367 main ()
23368 {
23369 if ((ac__type_new_ *) 0)
23370   return 0;
23371 if (sizeof (ac__type_new_))
23372   return 0;
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_compile") 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } && {
23391          test -z "$ac_c_werror_flag" ||
23392          test ! -s conftest.err
23393        } && test -s conftest.$ac_objext; then
23394   ac_cv_type_uint8=yes
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399         ac_cv_type_uint8=no
23400 fi
23401
23402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23403 fi
23404 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23405 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23406 if test $ac_cv_type_uint8 = yes; then
23407
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_UINT8 1
23410 _ACEOF
23411
23412
23413 fi
23414 { echo "$as_me:$LINENO: checking for int64" >&5
23415 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23416 if test "${ac_cv_type_int64+set}" = set; then
23417   echo $ECHO_N "(cached) $ECHO_C" >&6
23418 else
23419   cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 #include <stdio.h>
23426 #ifdef HAVE_SUPPORTDEFS_H
23427 #include <SupportDefs.h>
23428 #endif
23429
23430 typedef int64 ac__type_new_;
23431 int
23432 main ()
23433 {
23434 if ((ac__type_new_ *) 0)
23435   return 0;
23436 if (sizeof (ac__type_new_))
23437   return 0;
23438   ;
23439   return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext
23443 if { (ac_try="$ac_compile"
23444 case "(($ac_try" in
23445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446   *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449   (eval "$ac_compile") 2>conftest.er1
23450   ac_status=$?
23451   grep -v '^ *+' conftest.er1 >conftest.err
23452   rm -f conftest.er1
23453   cat conftest.err >&5
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); } && {
23456          test -z "$ac_c_werror_flag" ||
23457          test ! -s conftest.err
23458        } && test -s conftest.$ac_objext; then
23459   ac_cv_type_int64=yes
23460 else
23461   echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463
23464         ac_cv_type_int64=no
23465 fi
23466
23467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 fi
23469 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23470 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23471 if test $ac_cv_type_int64 = yes; then
23472
23473 cat >>confdefs.h <<_ACEOF
23474 #define HAVE_INT64 1
23475 _ACEOF
23476
23477
23478 fi
23479 { echo "$as_me:$LINENO: checking for uint64" >&5
23480 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23481 if test "${ac_cv_type_uint64+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484   cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490 #include <stdio.h>
23491 #ifdef HAVE_SUPPORTDEFS_H
23492 #include <SupportDefs.h>
23493 #endif
23494
23495 typedef uint64 ac__type_new_;
23496 int
23497 main ()
23498 {
23499 if ((ac__type_new_ *) 0)
23500   return 0;
23501 if (sizeof (ac__type_new_))
23502   return 0;
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511   *) ac_try_echo=$ac_try;;
23512 esac
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514   (eval "$ac_compile") 2>conftest.er1
23515   ac_status=$?
23516   grep -v '^ *+' conftest.er1 >conftest.err
23517   rm -f conftest.er1
23518   cat conftest.err >&5
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } && {
23521          test -z "$ac_c_werror_flag" ||
23522          test ! -s conftest.err
23523        } && test -s conftest.$ac_objext; then
23524   ac_cv_type_uint64=yes
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529         ac_cv_type_uint64=no
23530 fi
23531
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 fi
23534 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23535 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23536 if test $ac_cv_type_uint64 = yes; then
23537
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_UINT64 1
23540 _ACEOF
23541
23542
23543 fi
23544
23545
23546 # We also check for sig_atomic_t, which *should* be defined per ANSI
23547 # C, but is missing on some old platforms.
23548 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23549 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23550 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23551   echo $ECHO_N "(cached) $ECHO_C" >&6
23552 else
23553   cat >conftest.$ac_ext <<_ACEOF
23554 /* confdefs.h.  */
23555 _ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h.  */
23559 #include <signal.h>
23560
23561 typedef sig_atomic_t ac__type_new_;
23562 int
23563 main ()
23564 {
23565 if ((ac__type_new_ *) 0)
23566   return 0;
23567 if (sizeof (ac__type_new_))
23568   return 0;
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577   *) ac_try_echo=$ac_try;;
23578 esac
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580   (eval "$ac_compile") 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } && {
23587          test -z "$ac_c_werror_flag" ||
23588          test ! -s conftest.err
23589        } && test -s conftest.$ac_objext; then
23590   ac_cv_type_sig_atomic_t=yes
23591 else
23592   echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595         ac_cv_type_sig_atomic_t=no
23596 fi
23597
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 fi
23600 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23601 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23602 if test $ac_cv_type_sig_atomic_t = yes; then
23603
23604 cat >>confdefs.h <<_ACEOF
23605 #define HAVE_SIG_ATOMIC_T 1
23606 _ACEOF
23607
23608
23609 fi
23610
23611
23612
23613 # If the user did not disable integer datetimes, check that
23614 # there is a working 64-bit integral type to use.
23615 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23616    test x"$HAVE_LONG_INT_64" = x"no" &&
23617    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23618    test x"$HAVE_INT64" = x"no" ; then
23619   { { echo "$as_me:$LINENO: error:
23620 Integer-based datetime support requires a 64-bit integer type,
23621 but no such type could be found. The --disable-integer-datetimes
23622 configure option can be used to disable integer-based storage
23623 of datetime values." >&5
23624 echo "$as_me: error:
23625 Integer-based datetime support requires a 64-bit integer type,
23626 but no such type could be found. The --disable-integer-datetimes
23627 configure option can be used to disable integer-based storage
23628 of datetime values." >&2;}
23629    { (exit 1); exit 1; }; }
23630 fi
23631
23632
23633 if test "$PORTNAME" != "win32"
23634 then
23635 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23636 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23637 if test "${pgac_cv_func_posix_signals+set}" = set; then
23638   echo $ECHO_N "(cached) $ECHO_C" >&6
23639 else
23640   cat >conftest.$ac_ext <<_ACEOF
23641 /* confdefs.h.  */
23642 _ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h.  */
23646 #include <signal.h>
23647
23648 int
23649 main ()
23650 {
23651 struct sigaction act, oact;
23652 sigemptyset(&act.sa_mask);
23653 act.sa_flags = SA_RESTART;
23654 sigaction(0, &act, &oact);
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext conftest$ac_exeext
23660 if { (ac_try="$ac_link"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666   (eval "$ac_link") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest$ac_exeext &&
23676        $as_test_x conftest$ac_exeext; then
23677   pgac_cv_func_posix_signals=yes
23678 else
23679   echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682         pgac_cv_func_posix_signals=no
23683 fi
23684
23685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23686       conftest$ac_exeext conftest.$ac_ext
23687 fi
23688 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23689 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23690 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23691
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_POSIX_SIGNALS
23694 _ACEOF
23695
23696 fi
23697 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23698
23699 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23700   { { echo "$as_me:$LINENO: error:
23701 Thread-safety requires POSIX signals, which are not supported by this
23702 operating system." >&5
23703 echo "$as_me: error:
23704 Thread-safety requires POSIX signals, which are not supported by this
23705 operating system." >&2;}
23706    { (exit 1); exit 1; }; }
23707 fi
23708 fi
23709
23710 if test $ac_cv_func_fseeko = yes; then
23711 # Check whether --enable-largefile was given.
23712 if test "${enable_largefile+set}" = set; then
23713   enableval=$enable_largefile;
23714 fi
23715
23716 if test "$enable_largefile" != no; then
23717
23718   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23719 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23720 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   ac_cv_sys_largefile_CC=no
23724      if test "$GCC" != yes; then
23725        ac_save_CC=$CC
23726        while :; do
23727          # IRIX 6.2 and later do not support large files by default,
23728          # so use the C compiler's -n32 option if that helps.
23729          cat >conftest.$ac_ext <<_ACEOF
23730 /* confdefs.h.  */
23731 _ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h.  */
23735 #include <sys/types.h>
23736  /* Check that off_t can represent 2**63 - 1 correctly.
23737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23738     since some C++ compilers masquerading as C compilers
23739     incorrectly reject 9223372036854775807.  */
23740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23742                        && LARGE_OFF_T % 2147483647 == 1)
23743                       ? 1 : -1];
23744 int
23745 main ()
23746 {
23747
23748   ;
23749   return 0;
23750 }
23751 _ACEOF
23752          rm -f conftest.$ac_objext
23753 if { (ac_try="$ac_compile"
23754 case "(($ac_try" in
23755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756   *) ac_try_echo=$ac_try;;
23757 esac
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759   (eval "$ac_compile") 2>conftest.er1
23760   ac_status=$?
23761   grep -v '^ *+' conftest.er1 >conftest.err
23762   rm -f conftest.er1
23763   cat conftest.err >&5
23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); } && {
23766          test -z "$ac_c_werror_flag" ||
23767          test ! -s conftest.err
23768        } && test -s conftest.$ac_objext; then
23769   break
23770 else
23771   echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774
23775 fi
23776
23777 rm -f core conftest.err conftest.$ac_objext
23778          CC="$CC -n32"
23779          rm -f conftest.$ac_objext
23780 if { (ac_try="$ac_compile"
23781 case "(($ac_try" in
23782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783   *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786   (eval "$ac_compile") 2>conftest.er1
23787   ac_status=$?
23788   grep -v '^ *+' conftest.er1 >conftest.err
23789   rm -f conftest.er1
23790   cat conftest.err >&5
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); } && {
23793          test -z "$ac_c_werror_flag" ||
23794          test ! -s conftest.err
23795        } && test -s conftest.$ac_objext; then
23796   ac_cv_sys_largefile_CC=' -n32'; break
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext
23805          break
23806        done
23807        CC=$ac_save_CC
23808        rm -f conftest.$ac_ext
23809     fi
23810 fi
23811 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23812 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23813   if test "$ac_cv_sys_largefile_CC" != no; then
23814     CC=$CC$ac_cv_sys_largefile_CC
23815   fi
23816
23817   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23818 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23820   echo $ECHO_N "(cached) $ECHO_C" >&6
23821 else
23822   while :; do
23823   cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829 #include <sys/types.h>
23830  /* Check that off_t can represent 2**63 - 1 correctly.
23831     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23832     since some C++ compilers masquerading as C compilers
23833     incorrectly reject 9223372036854775807.  */
23834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23835   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23836                        && LARGE_OFF_T % 2147483647 == 1)
23837                       ? 1 : -1];
23838 int
23839 main ()
23840 {
23841
23842   ;
23843   return 0;
23844 }
23845 _ACEOF
23846 rm -f conftest.$ac_objext
23847 if { (ac_try="$ac_compile"
23848 case "(($ac_try" in
23849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850   *) ac_try_echo=$ac_try;;
23851 esac
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853   (eval "$ac_compile") 2>conftest.er1
23854   ac_status=$?
23855   grep -v '^ *+' conftest.er1 >conftest.err
23856   rm -f conftest.er1
23857   cat conftest.err >&5
23858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859   (exit $ac_status); } && {
23860          test -z "$ac_c_werror_flag" ||
23861          test ! -s conftest.err
23862        } && test -s conftest.$ac_objext; then
23863   ac_cv_sys_file_offset_bits=no; break
23864 else
23865   echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23867
23868
23869 fi
23870
23871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23872   cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h.  */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h.  */
23878 #define _FILE_OFFSET_BITS 64
23879 #include <sys/types.h>
23880  /* Check that off_t can represent 2**63 - 1 correctly.
23881     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23882     since some C++ compilers masquerading as C compilers
23883     incorrectly reject 9223372036854775807.  */
23884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23885   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23886                        && LARGE_OFF_T % 2147483647 == 1)
23887                       ? 1 : -1];
23888 int
23889 main ()
23890 {
23891
23892   ;
23893   return 0;
23894 }
23895 _ACEOF
23896 rm -f conftest.$ac_objext
23897 if { (ac_try="$ac_compile"
23898 case "(($ac_try" in
23899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900   *) ac_try_echo=$ac_try;;
23901 esac
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903   (eval "$ac_compile") 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } && {
23910          test -z "$ac_c_werror_flag" ||
23911          test ! -s conftest.err
23912        } && test -s conftest.$ac_objext; then
23913   ac_cv_sys_file_offset_bits=64; break
23914 else
23915   echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918
23919 fi
23920
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922   ac_cv_sys_file_offset_bits=unknown
23923   break
23924 done
23925 fi
23926 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23927 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23928 case $ac_cv_sys_file_offset_bits in #(
23929   no | unknown) ;;
23930   *)
23931 cat >>confdefs.h <<_ACEOF
23932 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23933 _ACEOF
23934 ;;
23935 esac
23936 rm -f conftest*
23937   if test $ac_cv_sys_file_offset_bits = unknown; then
23938     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23939 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23940 if test "${ac_cv_sys_large_files+set}" = set; then
23941   echo $ECHO_N "(cached) $ECHO_C" >&6
23942 else
23943   while :; do
23944   cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h.  */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h.  */
23950 #include <sys/types.h>
23951  /* Check that off_t can represent 2**63 - 1 correctly.
23952     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23953     since some C++ compilers masquerading as C compilers
23954     incorrectly reject 9223372036854775807.  */
23955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23956   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23957                        && LARGE_OFF_T % 2147483647 == 1)
23958                       ? 1 : -1];
23959 int
23960 main ()
23961 {
23962
23963   ;
23964   return 0;
23965 }
23966 _ACEOF
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971   *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974   (eval "$ac_compile") 2>conftest.er1
23975   ac_status=$?
23976   grep -v '^ *+' conftest.er1 >conftest.err
23977   rm -f conftest.er1
23978   cat conftest.err >&5
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); } && {
23981          test -z "$ac_c_werror_flag" ||
23982          test ! -s conftest.err
23983        } && test -s conftest.$ac_objext; then
23984   ac_cv_sys_large_files=no; break
23985 else
23986   echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23988
23989
23990 fi
23991
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993   cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h.  */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h.  */
23999 #define _LARGE_FILES 1
24000 #include <sys/types.h>
24001  /* Check that off_t can represent 2**63 - 1 correctly.
24002     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24003     since some C++ compilers masquerading as C compilers
24004     incorrectly reject 9223372036854775807.  */
24005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24006   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24007                        && LARGE_OFF_T % 2147483647 == 1)
24008                       ? 1 : -1];
24009 int
24010 main ()
24011 {
24012
24013   ;
24014   return 0;
24015 }
24016 _ACEOF
24017 rm -f conftest.$ac_objext
24018 if { (ac_try="$ac_compile"
24019 case "(($ac_try" in
24020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021   *) ac_try_echo=$ac_try;;
24022 esac
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024   (eval "$ac_compile") 2>conftest.er1
24025   ac_status=$?
24026   grep -v '^ *+' conftest.er1 >conftest.err
24027   rm -f conftest.er1
24028   cat conftest.err >&5
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); } && {
24031          test -z "$ac_c_werror_flag" ||
24032          test ! -s conftest.err
24033        } && test -s conftest.$ac_objext; then
24034   ac_cv_sys_large_files=1; break
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039
24040 fi
24041
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043   ac_cv_sys_large_files=unknown
24044   break
24045 done
24046 fi
24047 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24048 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24049 case $ac_cv_sys_large_files in #(
24050   no | unknown) ;;
24051   *)
24052 cat >>confdefs.h <<_ACEOF
24053 #define _LARGE_FILES $ac_cv_sys_large_files
24054 _ACEOF
24055 ;;
24056 esac
24057 rm -f conftest*
24058   fi
24059 fi
24060
24061 fi
24062
24063 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24064 { echo "$as_me:$LINENO: checking for off_t" >&5
24065 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24066 if test "${ac_cv_type_off_t+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 else
24069   cat >conftest.$ac_ext <<_ACEOF
24070 /* confdefs.h.  */
24071 _ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h.  */
24075 $ac_includes_default
24076 typedef off_t ac__type_new_;
24077 int
24078 main ()
24079 {
24080 if ((ac__type_new_ *) 0)
24081   return 0;
24082 if (sizeof (ac__type_new_))
24083   return 0;
24084   ;
24085   return 0;
24086 }
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092   *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095   (eval "$ac_compile") 2>conftest.er1
24096   ac_status=$?
24097   grep -v '^ *+' conftest.er1 >conftest.err
24098   rm -f conftest.er1
24099   cat conftest.err >&5
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); } && {
24102          test -z "$ac_c_werror_flag" ||
24103          test ! -s conftest.err
24104        } && test -s conftest.$ac_objext; then
24105   ac_cv_type_off_t=yes
24106 else
24107   echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24109
24110         ac_cv_type_off_t=no
24111 fi
24112
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24114 fi
24115 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24116 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24117
24118 # The cast to long int works around a bug in the HP C Compiler
24119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24121 # This bug is HP SR number 8606223364.
24122 { echo "$as_me:$LINENO: checking size of off_t" >&5
24123 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24124 if test "${ac_cv_sizeof_off_t+set}" = set; then
24125   echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127   if test "$cross_compiling" = yes; then
24128   # Depending upon the size, compute the lo and hi bounds.
24129 cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 $ac_includes_default
24136    typedef off_t ac__type_sizeof_;
24137 int
24138 main ()
24139 {
24140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24141 test_array [0] = 0
24142
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151   *) ac_try_echo=$ac_try;;
24152 esac
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154   (eval "$ac_compile") 2>conftest.er1
24155   ac_status=$?
24156   grep -v '^ *+' conftest.er1 >conftest.err
24157   rm -f conftest.er1
24158   cat conftest.err >&5
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); } && {
24161          test -z "$ac_c_werror_flag" ||
24162          test ! -s conftest.err
24163        } && test -s conftest.$ac_objext; then
24164   ac_lo=0 ac_mid=0
24165   while :; do
24166     cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h.  */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h.  */
24172 $ac_includes_default
24173    typedef off_t ac__type_sizeof_;
24174 int
24175 main ()
24176 {
24177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24178 test_array [0] = 0
24179
24180   ;
24181   return 0;
24182 }
24183 _ACEOF
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188   *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191   (eval "$ac_compile") 2>conftest.er1
24192   ac_status=$?
24193   grep -v '^ *+' conftest.er1 >conftest.err
24194   rm -f conftest.er1
24195   cat conftest.err >&5
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); } && {
24198          test -z "$ac_c_werror_flag" ||
24199          test ! -s conftest.err
24200        } && test -s conftest.$ac_objext; then
24201   ac_hi=$ac_mid; break
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206         ac_lo=`expr $ac_mid + 1`
24207                         if test $ac_lo -le $ac_mid; then
24208                           ac_lo= ac_hi=
24209                           break
24210                         fi
24211                         ac_mid=`expr 2 '*' $ac_mid + 1`
24212 fi
24213
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215   done
24216 else
24217   echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220         cat >conftest.$ac_ext <<_ACEOF
24221 /* confdefs.h.  */
24222 _ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h.  */
24226 $ac_includes_default
24227    typedef off_t ac__type_sizeof_;
24228 int
24229 main ()
24230 {
24231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24232 test_array [0] = 0
24233
24234   ;
24235   return 0;
24236 }
24237 _ACEOF
24238 rm -f conftest.$ac_objext
24239 if { (ac_try="$ac_compile"
24240 case "(($ac_try" in
24241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242   *) ac_try_echo=$ac_try;;
24243 esac
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245   (eval "$ac_compile") 2>conftest.er1
24246   ac_status=$?
24247   grep -v '^ *+' conftest.er1 >conftest.err
24248   rm -f conftest.er1
24249   cat conftest.err >&5
24250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251   (exit $ac_status); } && {
24252          test -z "$ac_c_werror_flag" ||
24253          test ! -s conftest.err
24254        } && test -s conftest.$ac_objext; then
24255   ac_hi=-1 ac_mid=-1
24256   while :; do
24257     cat >conftest.$ac_ext <<_ACEOF
24258 /* confdefs.h.  */
24259 _ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h.  */
24263 $ac_includes_default
24264    typedef off_t ac__type_sizeof_;
24265 int
24266 main ()
24267 {
24268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24269 test_array [0] = 0
24270
24271   ;
24272   return 0;
24273 }
24274 _ACEOF
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279   *) ac_try_echo=$ac_try;;
24280 esac
24281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282   (eval "$ac_compile") 2>conftest.er1
24283   ac_status=$?
24284   grep -v '^ *+' conftest.er1 >conftest.err
24285   rm -f conftest.er1
24286   cat conftest.err >&5
24287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288   (exit $ac_status); } && {
24289          test -z "$ac_c_werror_flag" ||
24290          test ! -s conftest.err
24291        } && test -s conftest.$ac_objext; then
24292   ac_lo=$ac_mid; break
24293 else
24294   echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24296
24297         ac_hi=`expr '(' $ac_mid ')' - 1`
24298                         if test $ac_mid -le $ac_hi; then
24299                           ac_lo= ac_hi=
24300                           break
24301                         fi
24302                         ac_mid=`expr 2 '*' $ac_mid`
24303 fi
24304
24305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24306   done
24307 else
24308   echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24310
24311         ac_lo= ac_hi=
24312 fi
24313
24314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24315 fi
24316
24317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 # Binary search between lo and hi bounds.
24319 while test "x$ac_lo" != "x$ac_hi"; do
24320   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24321   cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327 $ac_includes_default
24328    typedef off_t ac__type_sizeof_;
24329 int
24330 main ()
24331 {
24332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24333 test_array [0] = 0
24334
24335   ;
24336   return 0;
24337 }
24338 _ACEOF
24339 rm -f conftest.$ac_objext
24340 if { (ac_try="$ac_compile"
24341 case "(($ac_try" in
24342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343   *) ac_try_echo=$ac_try;;
24344 esac
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346   (eval "$ac_compile") 2>conftest.er1
24347   ac_status=$?
24348   grep -v '^ *+' conftest.er1 >conftest.err
24349   rm -f conftest.er1
24350   cat conftest.err >&5
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); } && {
24353          test -z "$ac_c_werror_flag" ||
24354          test ! -s conftest.err
24355        } && test -s conftest.$ac_objext; then
24356   ac_hi=$ac_mid
24357 else
24358   echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24360
24361         ac_lo=`expr '(' $ac_mid ')' + 1`
24362 fi
24363
24364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24365 done
24366 case $ac_lo in
24367 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24368 '') if test "$ac_cv_type_off_t" = yes; then
24369      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24370 See \`config.log' for more details." >&5
24371 echo "$as_me: error: cannot compute sizeof (off_t)
24372 See \`config.log' for more details." >&2;}
24373    { (exit 77); exit 77; }; }
24374    else
24375      ac_cv_sizeof_off_t=0
24376    fi ;;
24377 esac
24378 else
24379   cat >conftest.$ac_ext <<_ACEOF
24380 /* confdefs.h.  */
24381 _ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h.  */
24385 $ac_includes_default
24386    typedef off_t ac__type_sizeof_;
24387 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24388 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24389 #include <stdio.h>
24390 #include <stdlib.h>
24391 int
24392 main ()
24393 {
24394
24395   FILE *f = fopen ("conftest.val", "w");
24396   if (! f)
24397     return 1;
24398   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24399     {
24400       long int i = longval ();
24401       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24402         return 1;
24403       fprintf (f, "%ld\n", i);
24404     }
24405   else
24406     {
24407       unsigned long int i = ulongval ();
24408       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24409         return 1;
24410       fprintf (f, "%lu\n", i);
24411     }
24412   return ferror (f) || fclose (f) != 0;
24413
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 rm -f conftest$ac_exeext
24419 if { (ac_try="$ac_link"
24420 case "(($ac_try" in
24421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422   *) ac_try_echo=$ac_try;;
24423 esac
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425   (eval "$ac_link") 2>&5
24426   ac_status=$?
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24429   { (case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434   (eval "$ac_try") 2>&5
24435   ac_status=$?
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); }; }; then
24438   ac_cv_sizeof_off_t=`cat conftest.val`
24439 else
24440   echo "$as_me: program exited with status $ac_status" >&5
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444 ( exit $ac_status )
24445 if test "$ac_cv_type_off_t" = yes; then
24446      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24447 See \`config.log' for more details." >&5
24448 echo "$as_me: error: cannot compute sizeof (off_t)
24449 See \`config.log' for more details." >&2;}
24450    { (exit 77); exit 77; }; }
24451    else
24452      ac_cv_sizeof_off_t=0
24453    fi
24454 fi
24455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24456 fi
24457 rm -f conftest.val
24458 fi
24459 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24460 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24461
24462
24463
24464 cat >>confdefs.h <<_ACEOF
24465 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24466 _ACEOF
24467
24468
24469
24470 # If we don't have largefile support, can't handle segsize >= 2GB.
24471 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24472    { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24473 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24474    { (exit 1); exit 1; }; }
24475 fi
24476
24477 # SunOS doesn't handle negative byte comparisons properly with +/- return
24478 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24479 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24480 if test "${ac_cv_func_memcmp_working+set}" = set; then
24481   echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483   if test "$cross_compiling" = yes; then
24484   ac_cv_func_memcmp_working=no
24485 else
24486   cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h.  */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h.  */
24492 $ac_includes_default
24493 int
24494 main ()
24495 {
24496
24497   /* Some versions of memcmp are not 8-bit clean.  */
24498   char c0 = '\100', c1 = '\200', c2 = '\201';
24499   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24500     return 1;
24501
24502   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24503      or more and with at least one buffer not starting on a 4-byte boundary.
24504      William Lewis provided this test program.   */
24505   {
24506     char foo[21];
24507     char bar[21];
24508     int i;
24509     for (i = 0; i < 4; i++)
24510       {
24511         char *a = foo + i;
24512         char *b = bar + i;
24513         strcpy (a, "--------01111111");
24514         strcpy (b, "--------10000000");
24515         if (memcmp (a, b, 16) >= 0)
24516           return 1;
24517       }
24518     return 0;
24519   }
24520
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529   *) ac_try_echo=$ac_try;;
24530 esac
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532   (eval "$ac_link") 2>&5
24533   ac_status=$?
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24536   { (case "(($ac_try" in
24537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538   *) ac_try_echo=$ac_try;;
24539 esac
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541   (eval "$ac_try") 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; }; then
24545   ac_cv_func_memcmp_working=yes
24546 else
24547   echo "$as_me: program exited with status $ac_status" >&5
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551 ( exit $ac_status )
24552 ac_cv_func_memcmp_working=no
24553 fi
24554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24555 fi
24556
24557
24558 fi
24559 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24560 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24561 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24562   *" memcmp.$ac_objext "* ) ;;
24563   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24564  ;;
24565 esac
24566
24567
24568
24569
24570 # Select semaphore implementation type.
24571 if test "$PORTNAME" != "win32"; then
24572   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24573
24574 cat >>confdefs.h <<\_ACEOF
24575 #define USE_NAMED_POSIX_SEMAPHORES 1
24576 _ACEOF
24577
24578     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24579   else
24580     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24581
24582 cat >>confdefs.h <<\_ACEOF
24583 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24584 _ACEOF
24585
24586       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24587     else
24588
24589 cat >>confdefs.h <<\_ACEOF
24590 #define USE_SYSV_SEMAPHORES 1
24591 _ACEOF
24592
24593       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24594     fi
24595   fi
24596 else
24597
24598 cat >>confdefs.h <<\_ACEOF
24599 #define USE_WIN32_SEMAPHORES 1
24600 _ACEOF
24601
24602   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24603 fi
24604
24605
24606 # Select shared-memory implementation type.
24607 if test "$PORTNAME" != "win32"; then
24608
24609 cat >>confdefs.h <<\_ACEOF
24610 #define USE_SYSV_SHARED_MEMORY 1
24611 _ACEOF
24612
24613   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24614 else
24615
24616 cat >>confdefs.h <<\_ACEOF
24617 #define USE_WIN32_SHARED_MEMORY 1
24618 _ACEOF
24619
24620   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24621 fi
24622
24623 # If not set in template file, set bytes to use libc memset()
24624 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24625   MEMSET_LOOP_LIMIT=1024
24626 fi
24627
24628 cat >>confdefs.h <<_ACEOF
24629 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24630 _ACEOF
24631
24632
24633
24634 if test "$enable_nls" = yes ; then
24635
24636   { echo "$as_me:$LINENO: checking for library containing gettext" >&5
24637 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
24638 if test "${ac_cv_search_gettext+set}" = set; then
24639   echo $ECHO_N "(cached) $ECHO_C" >&6
24640 else
24641   ac_func_search_save_LIBS=$LIBS
24642 cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648
24649 /* Override any GCC internal prototype to avoid an error.
24650    Use char because int might match the return type of a GCC
24651    builtin and then its argument prototype would still apply.  */
24652 #ifdef __cplusplus
24653 extern "C"
24654 #endif
24655 char gettext ();
24656 int
24657 main ()
24658 {
24659 return gettext ();
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 for ac_lib in '' intl; do
24665   if test -z "$ac_lib"; then
24666     ac_res="none required"
24667   else
24668     ac_res=-l$ac_lib
24669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24670   fi
24671   rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (ac_try="$ac_link"
24673 case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_link") 2>conftest.er1
24679   ac_status=$?
24680   grep -v '^ *+' conftest.er1 >conftest.err
24681   rm -f conftest.er1
24682   cat conftest.err >&5
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && {
24685          test -z "$ac_c_werror_flag" ||
24686          test ! -s conftest.err
24687        } && test -s conftest$ac_exeext &&
24688        $as_test_x conftest$ac_exeext; then
24689   ac_cv_search_gettext=$ac_res
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694
24695 fi
24696
24697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24698       conftest$ac_exeext
24699   if test "${ac_cv_search_gettext+set}" = set; then
24700   break
24701 fi
24702 done
24703 if test "${ac_cv_search_gettext+set}" = set; then
24704   :
24705 else
24706   ac_cv_search_gettext=no
24707 fi
24708 rm conftest.$ac_ext
24709 LIBS=$ac_func_search_save_LIBS
24710 fi
24711 { echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
24712 echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
24713 ac_res=$ac_cv_search_gettext
24714 if test "$ac_res" != no; then
24715   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24716
24717 else
24718   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24719 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24720    { (exit 1); exit 1; }; }
24721 fi
24722
24723   if test "${ac_cv_header_libintl_h+set}" = set; then
24724   { echo "$as_me:$LINENO: checking for libintl.h" >&5
24725 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24726 if test "${ac_cv_header_libintl_h+set}" = set; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 fi
24729 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24730 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24731 else
24732   # Is the header compilable?
24733 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24734 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24735 cat >conftest.$ac_ext <<_ACEOF
24736 /* confdefs.h.  */
24737 _ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h.  */
24741 $ac_includes_default
24742 #include <libintl.h>
24743 _ACEOF
24744 rm -f conftest.$ac_objext
24745 if { (ac_try="$ac_compile"
24746 case "(($ac_try" in
24747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748   *) ac_try_echo=$ac_try;;
24749 esac
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751   (eval "$ac_compile") 2>conftest.er1
24752   ac_status=$?
24753   grep -v '^ *+' conftest.er1 >conftest.err
24754   rm -f conftest.er1
24755   cat conftest.err >&5
24756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757   (exit $ac_status); } && {
24758          test -z "$ac_c_werror_flag" ||
24759          test ! -s conftest.err
24760        } && test -s conftest.$ac_objext; then
24761   ac_header_compiler=yes
24762 else
24763   echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766         ac_header_compiler=no
24767 fi
24768
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24771 echo "${ECHO_T}$ac_header_compiler" >&6; }
24772
24773 # Is the header present?
24774 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24775 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24776 cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782 #include <libintl.h>
24783 _ACEOF
24784 if { (ac_try="$ac_cpp conftest.$ac_ext"
24785 case "(($ac_try" in
24786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787   *) ac_try_echo=$ac_try;;
24788 esac
24789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24791   ac_status=$?
24792   grep -v '^ *+' conftest.er1 >conftest.err
24793   rm -f conftest.er1
24794   cat conftest.err >&5
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); } >/dev/null && {
24797          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24798          test ! -s conftest.err
24799        }; then
24800   ac_header_preproc=yes
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805   ac_header_preproc=no
24806 fi
24807
24808 rm -f conftest.err conftest.$ac_ext
24809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24810 echo "${ECHO_T}$ac_header_preproc" >&6; }
24811
24812 # So?  What about this header?
24813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24814   yes:no: )
24815     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24816 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24817     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24818 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24819     ac_header_preproc=yes
24820     ;;
24821   no:yes:* )
24822     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24823 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24824     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
24825 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
24826     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24827 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24828     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
24829 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24830     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24831 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24832     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24833 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24834     ( cat <<\_ASBOX
24835 ## ---------------------------------------- ##
24836 ## Report this to pgsql-bugs@postgresql.org ##
24837 ## ---------------------------------------- ##
24838 _ASBOX
24839      ) | sed "s/^/$as_me: WARNING:     /" >&2
24840     ;;
24841 esac
24842 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24843 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24844 if test "${ac_cv_header_libintl_h+set}" = set; then
24845   echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847   ac_cv_header_libintl_h=$ac_header_preproc
24848 fi
24849 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24850 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24851
24852 fi
24853 if test $ac_cv_header_libintl_h = yes; then
24854   :
24855 else
24856   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24857 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24858    { (exit 1); exit 1; }; }
24859 fi
24860
24861
24862   for ac_prog in msgfmt
24863 do
24864   # Extract the first word of "$ac_prog", so it can be a program name with args.
24865 set dummy $ac_prog; ac_word=$2
24866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24868 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24869   echo $ECHO_N "(cached) $ECHO_C" >&6
24870 else
24871   if test -n "$MSGFMT"; then
24872   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24873 else
24874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24875 for as_dir in $PATH
24876 do
24877   IFS=$as_save_IFS
24878   test -z "$as_dir" && as_dir=.
24879   for ac_exec_ext in '' $ac_executable_extensions; do
24880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24881     ac_cv_prog_MSGFMT="$ac_prog"
24882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24883     break 2
24884   fi
24885 done
24886 done
24887 IFS=$as_save_IFS
24888
24889 fi
24890 fi
24891 MSGFMT=$ac_cv_prog_MSGFMT
24892 if test -n "$MSGFMT"; then
24893   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24894 echo "${ECHO_T}$MSGFMT" >&6; }
24895 else
24896   { echo "$as_me:$LINENO: result: no" >&5
24897 echo "${ECHO_T}no" >&6; }
24898 fi
24899
24900
24901   test -n "$MSGFMT" && break
24902 done
24903
24904   if test -z "$MSGFMT"; then
24905     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24906 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24907    { (exit 1); exit 1; }; }
24908   fi
24909   for ac_prog in msgmerge
24910 do
24911   # Extract the first word of "$ac_prog", so it can be a program name with args.
24912 set dummy $ac_prog; ac_word=$2
24913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24915 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918   if test -n "$MSGMERGE"; then
24919   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24920 else
24921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24922 for as_dir in $PATH
24923 do
24924   IFS=$as_save_IFS
24925   test -z "$as_dir" && as_dir=.
24926   for ac_exec_ext in '' $ac_executable_extensions; do
24927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24928     ac_cv_prog_MSGMERGE="$ac_prog"
24929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24930     break 2
24931   fi
24932 done
24933 done
24934 IFS=$as_save_IFS
24935
24936 fi
24937 fi
24938 MSGMERGE=$ac_cv_prog_MSGMERGE
24939 if test -n "$MSGMERGE"; then
24940   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24941 echo "${ECHO_T}$MSGMERGE" >&6; }
24942 else
24943   { echo "$as_me:$LINENO: result: no" >&5
24944 echo "${ECHO_T}no" >&6; }
24945 fi
24946
24947
24948   test -n "$MSGMERGE" && break
24949 done
24950
24951   for ac_prog in xgettext
24952 do
24953   # Extract the first word of "$ac_prog", so it can be a program name with args.
24954 set dummy $ac_prog; ac_word=$2
24955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24957 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24958   echo $ECHO_N "(cached) $ECHO_C" >&6
24959 else
24960   if test -n "$XGETTEXT"; then
24961   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24962 else
24963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24964 for as_dir in $PATH
24965 do
24966   IFS=$as_save_IFS
24967   test -z "$as_dir" && as_dir=.
24968   for ac_exec_ext in '' $ac_executable_extensions; do
24969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24970     ac_cv_prog_XGETTEXT="$ac_prog"
24971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24972     break 2
24973   fi
24974 done
24975 done
24976 IFS=$as_save_IFS
24977
24978 fi
24979 fi
24980 XGETTEXT=$ac_cv_prog_XGETTEXT
24981 if test -n "$XGETTEXT"; then
24982   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24983 echo "${ECHO_T}$XGETTEXT" >&6; }
24984 else
24985   { echo "$as_me:$LINENO: result: no" >&5
24986 echo "${ECHO_T}no" >&6; }
24987 fi
24988
24989
24990   test -n "$XGETTEXT" && break
24991 done
24992
24993
24994 fi
24995
24996 # Check for Tcl configuration script tclConfig.sh
24997 if test "$with_tcl" = yes; then
24998     for ac_prog in tclsh tcl
24999 do
25000   # Extract the first word of "$ac_prog", so it can be a program name with args.
25001 set dummy $ac_prog; ac_word=$2
25002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25004 if test "${ac_cv_path_TCLSH+set}" = set; then
25005   echo $ECHO_N "(cached) $ECHO_C" >&6
25006 else
25007   case $TCLSH in
25008   [\\/]* | ?:[\\/]*)
25009   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25010   ;;
25011   *)
25012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25013 for as_dir in $PATH
25014 do
25015   IFS=$as_save_IFS
25016   test -z "$as_dir" && as_dir=.
25017   for ac_exec_ext in '' $ac_executable_extensions; do
25018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25019     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25021     break 2
25022   fi
25023 done
25024 done
25025 IFS=$as_save_IFS
25026
25027   ;;
25028 esac
25029 fi
25030 TCLSH=$ac_cv_path_TCLSH
25031 if test -n "$TCLSH"; then
25032   { echo "$as_me:$LINENO: result: $TCLSH" >&5
25033 echo "${ECHO_T}$TCLSH" >&6; }
25034 else
25035   { echo "$as_me:$LINENO: result: no" >&5
25036 echo "${ECHO_T}no" >&6; }
25037 fi
25038
25039
25040   test -n "$TCLSH" && break
25041 done
25042
25043 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25044 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25045 # Let user override test
25046 if test -z "$TCL_CONFIG_SH"; then
25047     pgac_test_dirs="$with_tclconfig"
25048
25049     set X $pgac_test_dirs; shift
25050     if test $# -eq 0; then
25051         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25052 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25053    { (exit 1); exit 1; }; }
25054         set X `echo 'puts $auto_path' | $TCLSH`; shift
25055     fi
25056
25057     for pgac_dir do
25058         if test -r "$pgac_dir/tclConfig.sh"; then
25059             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25060             break
25061         fi
25062     done
25063 fi
25064
25065 if test -z "$TCL_CONFIG_SH"; then
25066     { echo "$as_me:$LINENO: result: no" >&5
25067 echo "${ECHO_T}no" >&6; }
25068     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25069 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25070    { (exit 1); exit 1; }; }
25071 else
25072     { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25073 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25074 fi
25075
25076
25077
25078     . "$TCL_CONFIG_SH"
25079 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25080 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25081 eval TCL_LIBS=\"$TCL_LIBS\"
25082 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25083 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25084
25085         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25086     ac_save_CPPFLAGS=$CPPFLAGS
25087     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25088     if test "${ac_cv_header_tcl_h+set}" = set; then
25089   { echo "$as_me:$LINENO: checking for tcl.h" >&5
25090 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25091 if test "${ac_cv_header_tcl_h+set}" = set; then
25092   echo $ECHO_N "(cached) $ECHO_C" >&6
25093 fi
25094 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25095 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25096 else
25097   # Is the header compilable?
25098 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25099 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25100 cat >conftest.$ac_ext <<_ACEOF
25101 /* confdefs.h.  */
25102 _ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h.  */
25106 $ac_includes_default
25107 #include <tcl.h>
25108 _ACEOF
25109 rm -f conftest.$ac_objext
25110 if { (ac_try="$ac_compile"
25111 case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_compile") 2>conftest.er1
25117   ac_status=$?
25118   grep -v '^ *+' conftest.er1 >conftest.err
25119   rm -f conftest.er1
25120   cat conftest.err >&5
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); } && {
25123          test -z "$ac_c_werror_flag" ||
25124          test ! -s conftest.err
25125        } && test -s conftest.$ac_objext; then
25126   ac_header_compiler=yes
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131         ac_header_compiler=no
25132 fi
25133
25134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25136 echo "${ECHO_T}$ac_header_compiler" >&6; }
25137
25138 # Is the header present?
25139 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25140 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147 #include <tcl.h>
25148 _ACEOF
25149 if { (ac_try="$ac_cpp conftest.$ac_ext"
25150 case "(($ac_try" in
25151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25152   *) ac_try_echo=$ac_try;;
25153 esac
25154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25156   ac_status=$?
25157   grep -v '^ *+' conftest.er1 >conftest.err
25158   rm -f conftest.er1
25159   cat conftest.err >&5
25160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161   (exit $ac_status); } >/dev/null && {
25162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25163          test ! -s conftest.err
25164        }; then
25165   ac_header_preproc=yes
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170   ac_header_preproc=no
25171 fi
25172
25173 rm -f conftest.err conftest.$ac_ext
25174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25175 echo "${ECHO_T}$ac_header_preproc" >&6; }
25176
25177 # So?  What about this header?
25178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25179   yes:no: )
25180     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25181 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25182     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25183 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25184     ac_header_preproc=yes
25185     ;;
25186   no:yes:* )
25187     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25188 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25189     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
25190 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
25191     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25192 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25193     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
25194 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25195     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25196 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25197     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25198 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25199     ( cat <<\_ASBOX
25200 ## ---------------------------------------- ##
25201 ## Report this to pgsql-bugs@postgresql.org ##
25202 ## ---------------------------------------- ##
25203 _ASBOX
25204      ) | sed "s/^/$as_me: WARNING:     /" >&2
25205     ;;
25206 esac
25207 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25208 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25209 if test "${ac_cv_header_tcl_h+set}" = set; then
25210   echo $ECHO_N "(cached) $ECHO_C" >&6
25211 else
25212   ac_cv_header_tcl_h=$ac_header_preproc
25213 fi
25214 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25215 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25216
25217 fi
25218 if test $ac_cv_header_tcl_h = yes; then
25219   :
25220 else
25221   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25222 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25223    { (exit 1); exit 1; }; }
25224 fi
25225
25226
25227     CPPFLAGS=$ac_save_CPPFLAGS
25228 fi
25229
25230 #
25231 # Check for DocBook and tools
25232 #
25233 for ac_prog in onsgmls nsgmls
25234 do
25235   # Extract the first word of "$ac_prog", so it can be a program name with args.
25236 set dummy $ac_prog; ac_word=$2
25237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25239 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242   if test -n "$NSGMLS"; then
25243   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25244 else
25245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25246 for as_dir in $PATH
25247 do
25248   IFS=$as_save_IFS
25249   test -z "$as_dir" && as_dir=.
25250   for ac_exec_ext in '' $ac_executable_extensions; do
25251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25252     ac_cv_prog_NSGMLS="$ac_prog"
25253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25254     break 2
25255   fi
25256 done
25257 done
25258 IFS=$as_save_IFS
25259
25260 fi
25261 fi
25262 NSGMLS=$ac_cv_prog_NSGMLS
25263 if test -n "$NSGMLS"; then
25264   { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25265 echo "${ECHO_T}$NSGMLS" >&6; }
25266 else
25267   { echo "$as_me:$LINENO: result: no" >&5
25268 echo "${ECHO_T}no" >&6; }
25269 fi
25270
25271
25272   test -n "$NSGMLS" && break
25273 done
25274
25275 for ac_prog in openjade jade
25276 do
25277   # Extract the first word of "$ac_prog", so it can be a program name with args.
25278 set dummy $ac_prog; ac_word=$2
25279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25281 if test "${ac_cv_prog_JADE+set}" = set; then
25282   echo $ECHO_N "(cached) $ECHO_C" >&6
25283 else
25284   if test -n "$JADE"; then
25285   ac_cv_prog_JADE="$JADE" # Let the user override the test.
25286 else
25287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25288 for as_dir in $PATH
25289 do
25290   IFS=$as_save_IFS
25291   test -z "$as_dir" && as_dir=.
25292   for ac_exec_ext in '' $ac_executable_extensions; do
25293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25294     ac_cv_prog_JADE="$ac_prog"
25295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25296     break 2
25297   fi
25298 done
25299 done
25300 IFS=$as_save_IFS
25301
25302 fi
25303 fi
25304 JADE=$ac_cv_prog_JADE
25305 if test -n "$JADE"; then
25306   { echo "$as_me:$LINENO: result: $JADE" >&5
25307 echo "${ECHO_T}$JADE" >&6; }
25308 else
25309   { echo "$as_me:$LINENO: result: no" >&5
25310 echo "${ECHO_T}no" >&6; }
25311 fi
25312
25313
25314   test -n "$JADE" && break
25315 done
25316
25317
25318 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25319 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25320 if test "${pgac_cv_check_docbook+set}" = set; then
25321   echo $ECHO_N "(cached) $ECHO_C" >&6
25322 else
25323   cat >conftest.sgml <<EOF
25324 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25325 <book>
25326  <title>test</title>
25327  <chapter>
25328   <title>random</title>
25329    <sect1>
25330     <title>testsect</title>
25331     <para>text</para>
25332   </sect1>
25333  </chapter>
25334 </book>
25335 EOF
25336
25337 pgac_cv_check_docbook=no
25338
25339 if test -n "$NSGMLS"; then
25340   $NSGMLS -s conftest.sgml 1>&5 2>&1
25341   if test $? -eq 0; then
25342     pgac_cv_check_docbook=yes
25343   fi
25344 fi
25345 rm -f conftest.sgml
25346 fi
25347 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25348 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25349
25350 have_docbook=$pgac_cv_check_docbook
25351
25352
25353 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25354 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25355 if test "${pgac_cv_path_stylesheets+set}" = set; then
25356   echo $ECHO_N "(cached) $ECHO_C" >&6
25357 else
25358   if test -n "$DOCBOOKSTYLE"; then
25359   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25360 else
25361   for pgac_prefix in /usr /usr/local /opt; do
25362     for pgac_infix in share lib; do
25363       for pgac_postfix in \
25364         sgml/stylesheets/nwalsh-modular \
25365         sgml/stylesheets/docbook \
25366         sgml/stylesheets/dsssl/docbook \
25367         sgml/docbook-dsssl \
25368         sgml/docbook/dsssl/modular \
25369         sgml/docbook/stylesheet/dsssl/modular \
25370         sgml/docbook/dsssl-stylesheets
25371       do
25372         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25373         if test -r "$pgac_candidate/html/docbook.dsl" \
25374            && test -r "$pgac_candidate/print/docbook.dsl"
25375         then
25376           pgac_cv_path_stylesheets=$pgac_candidate
25377           break 3
25378         fi
25379       done
25380     done
25381   done
25382 fi
25383 fi
25384
25385 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25386
25387 if test -n "$DOCBOOKSTYLE"; then
25388   { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25389 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25390 else
25391   { echo "$as_me:$LINENO: result: no" >&5
25392 echo "${ECHO_T}no" >&6; }
25393 fi
25394 if test -n "$DOCBOOKSTYLE"; then
25395   for ac_prog in collateindex.pl
25396 do
25397   # Extract the first word of "$ac_prog", so it can be a program name with args.
25398 set dummy $ac_prog; ac_word=$2
25399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25401 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   case $COLLATEINDEX in
25405   [\\/]* | ?:[\\/]*)
25406   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25407   ;;
25408   *)
25409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25410 for as_dir in $DOCBOOKSTYLE/bin $PATH
25411 do
25412   IFS=$as_save_IFS
25413   test -z "$as_dir" && as_dir=.
25414   for ac_exec_ext in '' $ac_executable_extensions; do
25415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25416     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25418     break 2
25419   fi
25420 done
25421 done
25422 IFS=$as_save_IFS
25423
25424   ;;
25425 esac
25426 fi
25427 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25428 if test -n "$COLLATEINDEX"; then
25429   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25430 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25431 else
25432   { echo "$as_me:$LINENO: result: no" >&5
25433 echo "${ECHO_T}no" >&6; }
25434 fi
25435
25436
25437   test -n "$COLLATEINDEX" && break
25438 done
25439
25440 else
25441   for ac_prog in collateindex.pl
25442 do
25443   # Extract the first word of "$ac_prog", so it can be a program name with args.
25444 set dummy $ac_prog; ac_word=$2
25445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25447 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25448   echo $ECHO_N "(cached) $ECHO_C" >&6
25449 else
25450   case $COLLATEINDEX in
25451   [\\/]* | ?:[\\/]*)
25452   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25453   ;;
25454   *)
25455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25456 for as_dir in $PATH
25457 do
25458   IFS=$as_save_IFS
25459   test -z "$as_dir" && as_dir=.
25460   for ac_exec_ext in '' $ac_executable_extensions; do
25461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25462     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25464     break 2
25465   fi
25466 done
25467 done
25468 IFS=$as_save_IFS
25469
25470   ;;
25471 esac
25472 fi
25473 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25474 if test -n "$COLLATEINDEX"; then
25475   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25476 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25477 else
25478   { echo "$as_me:$LINENO: result: no" >&5
25479 echo "${ECHO_T}no" >&6; }
25480 fi
25481
25482
25483   test -n "$COLLATEINDEX" && break
25484 done
25485
25486 fi
25487 for ac_prog in sgmlspl
25488 do
25489   # Extract the first word of "$ac_prog", so it can be a program name with args.
25490 set dummy $ac_prog; ac_word=$2
25491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25493 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25494   echo $ECHO_N "(cached) $ECHO_C" >&6
25495 else
25496   if test -n "$SGMLSPL"; then
25497   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25498 else
25499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25500 for as_dir in $PATH
25501 do
25502   IFS=$as_save_IFS
25503   test -z "$as_dir" && as_dir=.
25504   for ac_exec_ext in '' $ac_executable_extensions; do
25505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25506     ac_cv_prog_SGMLSPL="$ac_prog"
25507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25508     break 2
25509   fi
25510 done
25511 done
25512 IFS=$as_save_IFS
25513
25514 fi
25515 fi
25516 SGMLSPL=$ac_cv_prog_SGMLSPL
25517 if test -n "$SGMLSPL"; then
25518   { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25519 echo "${ECHO_T}$SGMLSPL" >&6; }
25520 else
25521   { echo "$as_me:$LINENO: result: no" >&5
25522 echo "${ECHO_T}no" >&6; }
25523 fi
25524
25525
25526   test -n "$SGMLSPL" && break
25527 done
25528
25529
25530 # Thread testing
25531
25532 # We have to run the thread test near the end so we have all our symbols
25533 # defined.  Cross compiling throws a warning.
25534 #
25535 if test "$enable_thread_safety_force" = yes; then
25536 if test "$PORTNAME" != "win32"
25537 then
25538   { echo "$as_me:$LINENO: WARNING:
25539 *** Skipping thread test program.  --enable-thread-safety-force was used.
25540 *** Run the program in src/test/thread on the your machine and add proper
25541 *** locking function calls to your applications to guarantee thread safety.
25542 " >&5
25543 echo "$as_me: WARNING:
25544 *** Skipping thread test program.  --enable-thread-safety-force was used.
25545 *** Run the program in src/test/thread on the your machine and add proper
25546 *** locking function calls to your applications to guarantee thread safety.
25547 " >&2;}
25548 else
25549 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25550 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25551 fi
25552 elif test "$enable_thread_safety" = yes; then
25553 if test "$PORTNAME" != "win32"
25554 then
25555 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25556 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25557
25558 _CFLAGS="$CFLAGS"
25559 _LIBS="$LIBS"
25560 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25561 LIBS="$LIBS $PTHREAD_LIBS"
25562 if test "$cross_compiling" = yes; then
25563   { echo "$as_me:$LINENO: result: maybe" >&5
25564 echo "${ECHO_T}maybe" >&6; }
25565   { echo "$as_me:$LINENO: WARNING:
25566 *** Skipping thread test program because of cross-compile build.
25567 *** Run the program in src/test/thread on the target machine.
25568 " >&5
25569 echo "$as_me: WARNING:
25570 *** Skipping thread test program because of cross-compile build.
25571 *** Run the program in src/test/thread on the target machine.
25572 " >&2;}
25573 else
25574   cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h.  */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h.  */
25580 #include "$srcdir/src/test/thread/thread_test.c"
25581 _ACEOF
25582 rm -f conftest$ac_exeext
25583 if { (ac_try="$ac_link"
25584 case "(($ac_try" in
25585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586   *) ac_try_echo=$ac_try;;
25587 esac
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589   (eval "$ac_link") 2>&5
25590   ac_status=$?
25591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25593   { (case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598   (eval "$ac_try") 2>&5
25599   ac_status=$?
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); }; }; then
25602   { echo "$as_me:$LINENO: result: yes" >&5
25603 echo "${ECHO_T}yes" >&6; }
25604 else
25605   echo "$as_me: program exited with status $ac_status" >&5
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25608
25609 ( exit $ac_status )
25610 { echo "$as_me:$LINENO: result: no" >&5
25611 echo "${ECHO_T}no" >&6; }
25612   { { echo "$as_me:$LINENO: error: thread test program failed
25613 This platform is not thread-safe.  Check the file 'config.log'for the
25614 exact reason.
25615
25616 You can use the configure option --enable-thread-safety-force to force
25617 threads to be enabled.  But you must then run the program in
25618 src/test/thread and add locking function calls to your applications to
25619 guarantee thread safety." >&5
25620 echo "$as_me: error: thread test program failed
25621 This platform is not thread-safe.  Check the file 'config.log'for the
25622 exact reason.
25623
25624 You can use the configure option --enable-thread-safety-force to force
25625 threads to be enabled.  But you must then run the program in
25626 src/test/thread and add locking function calls to your applications to
25627 guarantee thread safety." >&2;}
25628    { (exit 1); exit 1; }; }
25629 fi
25630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25631 fi
25632
25633
25634 CFLAGS="$_CFLAGS"
25635 LIBS="$_LIBS"
25636 else
25637 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25638 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25639 fi
25640 fi
25641
25642 # prepare build tree if outside source tree
25643 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25644 # Note 2: /bin/pwd might be better than shell's built-in at getting
25645 #         a symlink-free name.
25646 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25647   vpath_build=no
25648 else
25649   vpath_build=yes
25650   if test "$no_create" != yes; then
25651     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25652     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25653     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25654       || { { echo "$as_me:$LINENO: error: failed" >&5
25655 echo "$as_me: error: failed" >&2;}
25656    { (exit 1); exit 1; }; }
25657     { echo "$as_me:$LINENO: result: done" >&5
25658 echo "${ECHO_T}done" >&6; }
25659   fi
25660 fi
25661
25662
25663
25664 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25665
25666
25667 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}"
25668
25669
25670 if test "$PORTNAME" = "win32"; then
25671 ac_config_commands="$ac_config_commands check_win32_symlinks"
25672
25673 fi
25674
25675 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25676
25677
25678 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25679
25680
25681 cat >confcache <<\_ACEOF
25682 # This file is a shell script that caches the results of configure
25683 # tests run on this system so they can be shared between configure
25684 # scripts and configure runs, see configure's option --config-cache.
25685 # It is not useful on other systems.  If it contains results you don't
25686 # want to keep, you may remove or edit it.
25687 #
25688 # config.status only pays attention to the cache file if you give it
25689 # the --recheck option to rerun configure.
25690 #
25691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25693 # following values.
25694
25695 _ACEOF
25696
25697 # The following way of writing the cache mishandles newlines in values,
25698 # but we know of no workaround that is simple, portable, and efficient.
25699 # So, we kill variables containing newlines.
25700 # Ultrix sh set writes to stderr and can't be redirected directly,
25701 # and sets the high bit in the cache file unless we assign to the vars.
25702 (
25703   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25704     eval ac_val=\$$ac_var
25705     case $ac_val in #(
25706     *${as_nl}*)
25707       case $ac_var in #(
25708       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25710       esac
25711       case $ac_var in #(
25712       _ | IFS | as_nl) ;; #(
25713       *) $as_unset $ac_var ;;
25714       esac ;;
25715     esac
25716   done
25717
25718   (set) 2>&1 |
25719     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25720     *${as_nl}ac_space=\ *)
25721       # `set' does not quote correctly, so add quotes (double-quote
25722       # substitution turns \\\\ into \\, and sed turns \\ into \).
25723       sed -n \
25724         "s/'/'\\\\''/g;
25725           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25726       ;; #(
25727     *)
25728       # `set' quotes correctly as required by POSIX, so do not add quotes.
25729       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25730       ;;
25731     esac |
25732     sort
25733 ) |
25734   sed '
25735      /^ac_cv_env_/b end
25736      t clear
25737      :clear
25738      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25739      t end
25740      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25741      :end' >>confcache
25742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25743   if test -w "$cache_file"; then
25744     test "x$cache_file" != "x/dev/null" &&
25745       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25746 echo "$as_me: updating cache $cache_file" >&6;}
25747     cat confcache >$cache_file
25748   else
25749     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25750 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25751   fi
25752 fi
25753 rm -f confcache
25754
25755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25756 # Let make expand exec_prefix.
25757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25758
25759 DEFS=-DHAVE_CONFIG_H
25760
25761 ac_libobjs=
25762 ac_ltlibobjs=
25763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25764   # 1. Remove the extension, and $U if already installed.
25765   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25766   ac_i=`echo "$ac_i" | sed "$ac_script"`
25767   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25768   #    will be set to the directory where LIBOBJS objects are built.
25769   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25770   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25771 done
25772 LIBOBJS=$ac_libobjs
25773
25774 LTLIBOBJS=$ac_ltlibobjs
25775
25776
25777
25778 : ${CONFIG_STATUS=./config.status}
25779 ac_clean_files_save=$ac_clean_files
25780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25781 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25782 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25783 cat >$CONFIG_STATUS <<_ACEOF
25784 #! $SHELL
25785 # Generated by $as_me.
25786 # Run this file to recreate the current configuration.
25787 # Compiler output produced by configure, useful for debugging
25788 # configure, is in config.log if it exists.
25789
25790 debug=false
25791 ac_cs_recheck=false
25792 ac_cs_silent=false
25793 SHELL=\${CONFIG_SHELL-$SHELL}
25794 _ACEOF
25795
25796 cat >>$CONFIG_STATUS <<\_ACEOF
25797 ## --------------------- ##
25798 ## M4sh Initialization.  ##
25799 ## --------------------- ##
25800
25801 # Be more Bourne compatible
25802 DUALCASE=1; export DUALCASE # for MKS sh
25803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25804   emulate sh
25805   NULLCMD=:
25806   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25807   # is contrary to our usage.  Disable this feature.
25808   alias -g '${1+"$@"}'='"$@"'
25809   setopt NO_GLOB_SUBST
25810 else
25811   case `(set -o) 2>/dev/null` in
25812   *posix*) set -o posix ;;
25813 esac
25814
25815 fi
25816
25817
25818
25819
25820 # PATH needs CR
25821 # Avoid depending upon Character Ranges.
25822 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25823 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25824 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25825 as_cr_digits='0123456789'
25826 as_cr_alnum=$as_cr_Letters$as_cr_digits
25827
25828 # The user is always right.
25829 if test "${PATH_SEPARATOR+set}" != set; then
25830   echo "#! /bin/sh" >conf$$.sh
25831   echo  "exit 0"   >>conf$$.sh
25832   chmod +x conf$$.sh
25833   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25834     PATH_SEPARATOR=';'
25835   else
25836     PATH_SEPARATOR=:
25837   fi
25838   rm -f conf$$.sh
25839 fi
25840
25841 # Support unset when possible.
25842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25843   as_unset=unset
25844 else
25845   as_unset=false
25846 fi
25847
25848
25849 # IFS
25850 # We need space, tab and new line, in precisely that order.  Quoting is
25851 # there to prevent editors from complaining about space-tab.
25852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25853 # splitting by setting IFS to empty value.)
25854 as_nl='
25855 '
25856 IFS=" ""        $as_nl"
25857
25858 # Find who we are.  Look in the path if we contain no directory separator.
25859 case $0 in
25860   *[\\/]* ) as_myself=$0 ;;
25861   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25862 for as_dir in $PATH
25863 do
25864   IFS=$as_save_IFS
25865   test -z "$as_dir" && as_dir=.
25866   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25867 done
25868 IFS=$as_save_IFS
25869
25870      ;;
25871 esac
25872 # We did not find ourselves, most probably we were run as `sh COMMAND'
25873 # in which case we are not to be found in the path.
25874 if test "x$as_myself" = x; then
25875   as_myself=$0
25876 fi
25877 if test ! -f "$as_myself"; then
25878   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25879   { (exit 1); exit 1; }
25880 fi
25881
25882 # Work around bugs in pre-3.0 UWIN ksh.
25883 for as_var in ENV MAIL MAILPATH
25884 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25885 done
25886 PS1='$ '
25887 PS2='> '
25888 PS4='+ '
25889
25890 # NLS nuisances.
25891 for as_var in \
25892   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25893   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25894   LC_TELEPHONE LC_TIME
25895 do
25896   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25897     eval $as_var=C; export $as_var
25898   else
25899     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25900   fi
25901 done
25902
25903 # Required to use basename.
25904 if expr a : '\(a\)' >/dev/null 2>&1 &&
25905    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25906   as_expr=expr
25907 else
25908   as_expr=false
25909 fi
25910
25911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25912   as_basename=basename
25913 else
25914   as_basename=false
25915 fi
25916
25917
25918 # Name of the executable.
25919 as_me=`$as_basename -- "$0" ||
25920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25921          X"$0" : 'X\(//\)$' \| \
25922          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25923 echo X/"$0" |
25924     sed '/^.*\/\([^/][^/]*\)\/*$/{
25925             s//\1/
25926             q
25927           }
25928           /^X\/\(\/\/\)$/{
25929             s//\1/
25930             q
25931           }
25932           /^X\/\(\/\).*/{
25933             s//\1/
25934             q
25935           }
25936           s/.*/./; q'`
25937
25938 # CDPATH.
25939 $as_unset CDPATH
25940
25941
25942
25943   as_lineno_1=$LINENO
25944   as_lineno_2=$LINENO
25945   test "x$as_lineno_1" != "x$as_lineno_2" &&
25946   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25947
25948   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25949   # uniformly replaced by the line number.  The first 'sed' inserts a
25950   # line-number line after each line using $LINENO; the second 'sed'
25951   # does the real work.  The second script uses 'N' to pair each
25952   # line-number line with the line containing $LINENO, and appends
25953   # trailing '-' during substitution so that $LINENO is not a special
25954   # case at line end.
25955   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25956   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25957   # E. McMahon (1931-1989) for sed's syntax.  :-)
25958   sed -n '
25959     p
25960     /[$]LINENO/=
25961   ' <$as_myself |
25962     sed '
25963       s/[$]LINENO.*/&-/
25964       t lineno
25965       b
25966       :lineno
25967       N
25968       :loop
25969       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25970       t loop
25971       s/-\n.*//
25972     ' >$as_me.lineno &&
25973   chmod +x "$as_me.lineno" ||
25974     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25975    { (exit 1); exit 1; }; }
25976
25977   # Don't try to exec as it changes $[0], causing all sort of problems
25978   # (the dirname of $[0] is not the place where we might find the
25979   # original and so on.  Autoconf is especially sensitive to this).
25980   . "./$as_me.lineno"
25981   # Exit status is that of the last command.
25982   exit
25983 }
25984
25985
25986 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25987   as_dirname=dirname
25988 else
25989   as_dirname=false
25990 fi
25991
25992 ECHO_C= ECHO_N= ECHO_T=
25993 case `echo -n x` in
25994 -n*)
25995   case `echo 'x\c'` in
25996   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25997   *)   ECHO_C='\c';;
25998   esac;;
25999 *)
26000   ECHO_N='-n';;
26001 esac
26002
26003 if expr a : '\(a\)' >/dev/null 2>&1 &&
26004    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26005   as_expr=expr
26006 else
26007   as_expr=false
26008 fi
26009
26010 rm -f conf$$ conf$$.exe conf$$.file
26011 if test -d conf$$.dir; then
26012   rm -f conf$$.dir/conf$$.file
26013 else
26014   rm -f conf$$.dir
26015   mkdir conf$$.dir
26016 fi
26017 echo >conf$$.file
26018 if ln -s conf$$.file conf$$ 2>/dev/null; then
26019   as_ln_s='ln -s'
26020   # ... but there are two gotchas:
26021   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26022   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26023   # In both cases, we have to default to `cp -p'.
26024   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26025     as_ln_s='cp -p'
26026 elif ln conf$$.file conf$$ 2>/dev/null; then
26027   as_ln_s=ln
26028 else
26029   as_ln_s='cp -p'
26030 fi
26031 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26032 rmdir conf$$.dir 2>/dev/null
26033
26034 if mkdir -p . 2>/dev/null; then
26035   as_mkdir_p=:
26036 else
26037   test -d ./-p && rmdir ./-p
26038   as_mkdir_p=false
26039 fi
26040
26041 if test -x / >/dev/null 2>&1; then
26042   as_test_x='test -x'
26043 else
26044   if ls -dL / >/dev/null 2>&1; then
26045     as_ls_L_option=L
26046   else
26047     as_ls_L_option=
26048   fi
26049   as_test_x='
26050     eval sh -c '\''
26051       if test -d "$1"; then
26052         test -d "$1/.";
26053       else
26054         case $1 in
26055         -*)set "./$1";;
26056         esac;
26057         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26058         ???[sx]*):;;*)false;;esac;fi
26059     '\'' sh
26060   '
26061 fi
26062 as_executable_p=$as_test_x
26063
26064 # Sed expression to map a string onto a valid CPP name.
26065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26066
26067 # Sed expression to map a string onto a valid variable name.
26068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26069
26070
26071 exec 6>&1
26072
26073 # Save the log message, to keep $[0] and so on meaningful, and to
26074 # report actual input values of CONFIG_FILES etc. instead of their
26075 # values after options handling.
26076 ac_log="
26077 This file was extended by PostgreSQL $as_me 8.4devel, which was
26078 generated by GNU Autoconf 2.61.  Invocation command line was
26079
26080   CONFIG_FILES    = $CONFIG_FILES
26081   CONFIG_HEADERS  = $CONFIG_HEADERS
26082   CONFIG_LINKS    = $CONFIG_LINKS
26083   CONFIG_COMMANDS = $CONFIG_COMMANDS
26084   $ $0 $@
26085
26086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26087 "
26088
26089 _ACEOF
26090
26091 cat >>$CONFIG_STATUS <<_ACEOF
26092 # Files that config.status was made for.
26093 config_files="$ac_config_files"
26094 config_headers="$ac_config_headers"
26095 config_links="$ac_config_links"
26096 config_commands="$ac_config_commands"
26097
26098 _ACEOF
26099
26100 cat >>$CONFIG_STATUS <<\_ACEOF
26101 ac_cs_usage="\
26102 \`$as_me' instantiates files from templates according to the
26103 current configuration.
26104
26105 Usage: $0 [OPTIONS] [FILE]...
26106
26107   -h, --help       print this help, then exit
26108   -V, --version    print version number and configuration settings, then exit
26109   -q, --quiet      do not print progress messages
26110   -d, --debug      don't remove temporary files
26111       --recheck    update $as_me by reconfiguring in the same conditions
26112   --file=FILE[:TEMPLATE]
26113                    instantiate the configuration file FILE
26114   --header=FILE[:TEMPLATE]
26115                    instantiate the configuration header FILE
26116
26117 Configuration files:
26118 $config_files
26119
26120 Configuration headers:
26121 $config_headers
26122
26123 Configuration links:
26124 $config_links
26125
26126 Configuration commands:
26127 $config_commands
26128
26129 Report bugs to <bug-autoconf@gnu.org>."
26130
26131 _ACEOF
26132 cat >>$CONFIG_STATUS <<_ACEOF
26133 ac_cs_version="\\
26134 PostgreSQL config.status 8.4devel
26135 configured by $0, generated by GNU Autoconf 2.61,
26136   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26137
26138 Copyright (C) 2006 Free Software Foundation, Inc.
26139 This config.status script is free software; the Free Software Foundation
26140 gives unlimited permission to copy, distribute and modify it."
26141
26142 ac_pwd='$ac_pwd'
26143 srcdir='$srcdir'
26144 _ACEOF
26145
26146 cat >>$CONFIG_STATUS <<\_ACEOF
26147 # If no file are specified by the user, then we need to provide default
26148 # value.  By we need to know if files were specified by the user.
26149 ac_need_defaults=:
26150 while test $# != 0
26151 do
26152   case $1 in
26153   --*=*)
26154     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26155     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26156     ac_shift=:
26157     ;;
26158   *)
26159     ac_option=$1
26160     ac_optarg=$2
26161     ac_shift=shift
26162     ;;
26163   esac
26164
26165   case $ac_option in
26166   # Handling of the options.
26167   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26168     ac_cs_recheck=: ;;
26169   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26170     echo "$ac_cs_version"; exit ;;
26171   --debug | --debu | --deb | --de | --d | -d )
26172     debug=: ;;
26173   --file | --fil | --fi | --f )
26174     $ac_shift
26175     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26176     ac_need_defaults=false;;
26177   --header | --heade | --head | --hea )
26178     $ac_shift
26179     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26180     ac_need_defaults=false;;
26181   --he | --h)
26182     # Conflict between --help and --header
26183     { echo "$as_me: error: ambiguous option: $1
26184 Try \`$0 --help' for more information." >&2
26185    { (exit 1); exit 1; }; };;
26186   --help | --hel | -h )
26187     echo "$ac_cs_usage"; exit ;;
26188   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26189   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26190     ac_cs_silent=: ;;
26191
26192   # This is an error.
26193   -*) { echo "$as_me: error: unrecognized option: $1
26194 Try \`$0 --help' for more information." >&2
26195    { (exit 1); exit 1; }; } ;;
26196
26197   *) ac_config_targets="$ac_config_targets $1"
26198      ac_need_defaults=false ;;
26199
26200   esac
26201   shift
26202 done
26203
26204 ac_configure_extra_args=
26205
26206 if $ac_cs_silent; then
26207   exec 6>/dev/null
26208   ac_configure_extra_args="$ac_configure_extra_args --silent"
26209 fi
26210
26211 _ACEOF
26212 cat >>$CONFIG_STATUS <<_ACEOF
26213 if \$ac_cs_recheck; then
26214   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26215   CONFIG_SHELL=$SHELL
26216   export CONFIG_SHELL
26217   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26218 fi
26219
26220 _ACEOF
26221 cat >>$CONFIG_STATUS <<\_ACEOF
26222 exec 5>>config.log
26223 {
26224   echo
26225   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26226 ## Running $as_me. ##
26227 _ASBOX
26228   echo "$ac_log"
26229 } >&5
26230
26231 _ACEOF
26232 cat >>$CONFIG_STATUS <<_ACEOF
26233 _ACEOF
26234
26235 cat >>$CONFIG_STATUS <<\_ACEOF
26236
26237 # Handling of arguments.
26238 for ac_config_target in $ac_config_targets
26239 do
26240   case $ac_config_target in
26241     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26242     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26243     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26244     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26245     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26246     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26247     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26248     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26249     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26250     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26251     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26252     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26253
26254   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26255 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26256    { (exit 1); exit 1; }; };;
26257   esac
26258 done
26259
26260
26261 # If the user did not use the arguments to specify the items to instantiate,
26262 # then the envvar interface is used.  Set only those that are not.
26263 # We use the long form for the default assignment because of an extremely
26264 # bizarre bug on SunOS 4.1.3.
26265 if $ac_need_defaults; then
26266   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26267   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26268   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26269   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26270 fi
26271
26272 # Have a temporary directory for convenience.  Make it in the build tree
26273 # simply because there is no reason against having it here, and in addition,
26274 # creating and moving files from /tmp can sometimes cause problems.
26275 # Hook for its removal unless debugging.
26276 # Note that there is a small window in which the directory will not be cleaned:
26277 # after its creation but before its name has been assigned to `$tmp'.
26278 $debug ||
26279 {
26280   tmp=
26281   trap 'exit_status=$?
26282   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26283 ' 0
26284   trap '{ (exit 1); exit 1; }' 1 2 13 15
26285 }
26286 # Create a (secure) tmp directory for tmp files.
26287
26288 {
26289   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26290   test -n "$tmp" && test -d "$tmp"
26291 }  ||
26292 {
26293   tmp=./conf$$-$RANDOM
26294   (umask 077 && mkdir "$tmp")
26295 } ||
26296 {
26297    echo "$me: cannot create a temporary directory in ." >&2
26298    { (exit 1); exit 1; }
26299 }
26300
26301 #
26302 # Set up the sed scripts for CONFIG_FILES section.
26303 #
26304
26305 # No need to generate the scripts if there are no CONFIG_FILES.
26306 # This happens for instance when ./config.status config.h
26307 if test -n "$CONFIG_FILES"; then
26308
26309 _ACEOF
26310
26311
26312
26313 ac_delim='%!_!# '
26314 for ac_last_try in false false false false false :; do
26315   cat >conf$$subs.sed <<_ACEOF
26316 SHELL!$SHELL$ac_delim
26317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26323 exec_prefix!$exec_prefix$ac_delim
26324 prefix!$prefix$ac_delim
26325 program_transform_name!$program_transform_name$ac_delim
26326 bindir!$bindir$ac_delim
26327 sbindir!$sbindir$ac_delim
26328 libexecdir!$libexecdir$ac_delim
26329 datarootdir!$datarootdir$ac_delim
26330 datadir!$datadir$ac_delim
26331 sysconfdir!$sysconfdir$ac_delim
26332 sharedstatedir!$sharedstatedir$ac_delim
26333 localstatedir!$localstatedir$ac_delim
26334 includedir!$includedir$ac_delim
26335 oldincludedir!$oldincludedir$ac_delim
26336 docdir!$docdir$ac_delim
26337 infodir!$infodir$ac_delim
26338 htmldir!$htmldir$ac_delim
26339 dvidir!$dvidir$ac_delim
26340 pdfdir!$pdfdir$ac_delim
26341 psdir!$psdir$ac_delim
26342 libdir!$libdir$ac_delim
26343 localedir!$localedir$ac_delim
26344 mandir!$mandir$ac_delim
26345 DEFS!$DEFS$ac_delim
26346 ECHO_C!$ECHO_C$ac_delim
26347 ECHO_N!$ECHO_N$ac_delim
26348 ECHO_T!$ECHO_T$ac_delim
26349 LIBS!$LIBS$ac_delim
26350 build_alias!$build_alias$ac_delim
26351 host_alias!$host_alias$ac_delim
26352 target_alias!$target_alias$ac_delim
26353 configure_args!$configure_args$ac_delim
26354 build!$build$ac_delim
26355 build_cpu!$build_cpu$ac_delim
26356 build_vendor!$build_vendor$ac_delim
26357 build_os!$build_os$ac_delim
26358 host!$host$ac_delim
26359 host_cpu!$host_cpu$ac_delim
26360 host_vendor!$host_vendor$ac_delim
26361 host_os!$host_os$ac_delim
26362 PORTNAME!$PORTNAME$ac_delim
26363 enable_nls!$enable_nls$ac_delim
26364 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26365 default_port!$default_port$ac_delim
26366 enable_shared!$enable_shared$ac_delim
26367 enable_rpath!$enable_rpath$ac_delim
26368 enable_debug!$enable_debug$ac_delim
26369 enable_profiling!$enable_profiling$ac_delim
26370 DTRACE!$DTRACE$ac_delim
26371 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26372 enable_dtrace!$enable_dtrace$ac_delim
26373 CC!$CC$ac_delim
26374 CFLAGS!$CFLAGS$ac_delim
26375 LDFLAGS!$LDFLAGS$ac_delim
26376 CPPFLAGS!$CPPFLAGS$ac_delim
26377 ac_ct_CC!$ac_ct_CC$ac_delim
26378 EXEEXT!$EXEEXT$ac_delim
26379 OBJEXT!$OBJEXT$ac_delim
26380 CPP!$CPP$ac_delim
26381 GCC!$GCC$ac_delim
26382 TAS!$TAS$ac_delim
26383 autodepend!$autodepend$ac_delim
26384 INCLUDES!$INCLUDES$ac_delim
26385 enable_thread_safety!$enable_thread_safety$ac_delim
26386 with_tcl!$with_tcl$ac_delim
26387 with_perl!$with_perl$ac_delim
26388 with_python!$with_python$ac_delim
26389 with_gssapi!$with_gssapi$ac_delim
26390 with_krb5!$with_krb5$ac_delim
26391 krb_srvtab!$krb_srvtab$ac_delim
26392 with_pam!$with_pam$ac_delim
26393 with_ldap!$with_ldap$ac_delim
26394 with_bonjour!$with_bonjour$ac_delim
26395 with_openssl!$with_openssl$ac_delim
26396 with_ossp_uuid!$with_ossp_uuid$ac_delim
26397 XML2_CONFIG!$XML2_CONFIG$ac_delim
26398 with_libxml!$with_libxml$ac_delim
26399 with_libxslt!$with_libxslt$ac_delim
26400 with_system_tzdata!$with_system_tzdata$ac_delim
26401 with_zlib!$with_zlib$ac_delim
26402 GREP!$GREP$ac_delim
26403 EGREP!$EGREP$ac_delim
26404 ELF_SYS!$ELF_SYS$ac_delim
26405 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26406 LD!$LD$ac_delim
26407 with_gnu_ld!$with_gnu_ld$ac_delim
26408 ld_R_works!$ld_R_works$ac_delim
26409 RANLIB!$RANLIB$ac_delim
26410 STRIP!$STRIP$ac_delim
26411 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26412 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26413 _ACEOF
26414
26415   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26416     break
26417   elif $ac_last_try; then
26418     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26420    { (exit 1); exit 1; }; }
26421   else
26422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26423   fi
26424 done
26425
26426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26427 if test -n "$ac_eof"; then
26428   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26429   ac_eof=`expr $ac_eof + 1`
26430 fi
26431
26432 cat >>$CONFIG_STATUS <<_ACEOF
26433 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26435 _ACEOF
26436 sed '
26437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26438 s/^/s,@/; s/!/@,|#_!!_#|/
26439 :n
26440 t n
26441 s/'"$ac_delim"'$/,g/; t
26442 s/$/\\/; p
26443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26444 ' >>$CONFIG_STATUS <conf$$subs.sed
26445 rm -f conf$$subs.sed
26446 cat >>$CONFIG_STATUS <<_ACEOF
26447 CEOF$ac_eof
26448 _ACEOF
26449
26450
26451 ac_delim='%!_!# '
26452 for ac_last_try in false false false false false :; do
26453   cat >conf$$subs.sed <<_ACEOF
26454 TAR!$TAR$ac_delim
26455 LN_S!$LN_S$ac_delim
26456 AWK!$AWK$ac_delim
26457 YACC!$YACC$ac_delim
26458 YFLAGS!$YFLAGS$ac_delim
26459 FLEX!$FLEX$ac_delim
26460 FLEXFLAGS!$FLEXFLAGS$ac_delim
26461 PERL!$PERL$ac_delim
26462 perl_archlibexp!$perl_archlibexp$ac_delim
26463 perl_privlibexp!$perl_privlibexp$ac_delim
26464 perl_useshrplib!$perl_useshrplib$ac_delim
26465 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26466 PYTHON!$PYTHON$ac_delim
26467 python_version!$python_version$ac_delim
26468 python_configdir!$python_configdir$ac_delim
26469 python_includespec!$python_includespec$ac_delim
26470 python_libdir!$python_libdir$ac_delim
26471 python_libspec!$python_libspec$ac_delim
26472 python_additional_libs!$python_additional_libs$ac_delim
26473 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26474 HAVE_IPV6!$HAVE_IPV6$ac_delim
26475 LIBOBJS!$LIBOBJS$ac_delim
26476 acx_pthread_config!$acx_pthread_config$ac_delim
26477 PTHREAD_CC!$PTHREAD_CC$ac_delim
26478 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26479 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26480 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26481 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26482 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26483 MSGFMT!$MSGFMT$ac_delim
26484 MSGMERGE!$MSGMERGE$ac_delim
26485 XGETTEXT!$XGETTEXT$ac_delim
26486 TCLSH!$TCLSH$ac_delim
26487 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26488 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26489 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26490 TCL_LIBS!$TCL_LIBS$ac_delim
26491 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26492 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26493 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26494 NSGMLS!$NSGMLS$ac_delim
26495 JADE!$JADE$ac_delim
26496 have_docbook!$have_docbook$ac_delim
26497 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26498 COLLATEINDEX!$COLLATEINDEX$ac_delim
26499 SGMLSPL!$SGMLSPL$ac_delim
26500 vpath_build!$vpath_build$ac_delim
26501 LTLIBOBJS!$LTLIBOBJS$ac_delim
26502 _ACEOF
26503
26504   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26505     break
26506   elif $ac_last_try; then
26507     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26508 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26509    { (exit 1); exit 1; }; }
26510   else
26511     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26512   fi
26513 done
26514
26515 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26516 if test -n "$ac_eof"; then
26517   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26518   ac_eof=`expr $ac_eof + 1`
26519 fi
26520
26521 cat >>$CONFIG_STATUS <<_ACEOF
26522 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26524 _ACEOF
26525 sed '
26526 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26527 s/^/s,@/; s/!/@,|#_!!_#|/
26528 :n
26529 t n
26530 s/'"$ac_delim"'$/,g/; t
26531 s/$/\\/; p
26532 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26533 ' >>$CONFIG_STATUS <conf$$subs.sed
26534 rm -f conf$$subs.sed
26535 cat >>$CONFIG_STATUS <<_ACEOF
26536 :end
26537 s/|#_!!_#|//g
26538 CEOF$ac_eof
26539 _ACEOF
26540
26541
26542 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26543 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26544 # trailing colons and then remove the whole line if VPATH becomes empty
26545 # (actually we leave an empty line to preserve line numbers).
26546 if test "x$srcdir" = x.; then
26547   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26548 s/:*\$(srcdir):*/:/
26549 s/:*\${srcdir}:*/:/
26550 s/:*@srcdir@:*/:/
26551 s/^\([^=]*=[     ]*\):*/\1/
26552 s/:*$//
26553 s/^[^=]*=[       ]*$//
26554 }'
26555 fi
26556
26557 cat >>$CONFIG_STATUS <<\_ACEOF
26558 fi # test -n "$CONFIG_FILES"
26559
26560
26561 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
26562 do
26563   case $ac_tag in
26564   :[FHLC]) ac_mode=$ac_tag; continue;;
26565   esac
26566   case $ac_mode$ac_tag in
26567   :[FHL]*:*);;
26568   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26569 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26570    { (exit 1); exit 1; }; };;
26571   :[FH]-) ac_tag=-:-;;
26572   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26573   esac
26574   ac_save_IFS=$IFS
26575   IFS=:
26576   set x $ac_tag
26577   IFS=$ac_save_IFS
26578   shift
26579   ac_file=$1
26580   shift
26581
26582   case $ac_mode in
26583   :L) ac_source=$1;;
26584   :[FH])
26585     ac_file_inputs=
26586     for ac_f
26587     do
26588       case $ac_f in
26589       -) ac_f="$tmp/stdin";;
26590       *) # Look for the file first in the build tree, then in the source tree
26591          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26592          # because $ac_f cannot contain `:'.
26593          test -f "$ac_f" ||
26594            case $ac_f in
26595            [\\/$]*) false;;
26596            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26597            esac ||
26598            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26599 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26600    { (exit 1); exit 1; }; };;
26601       esac
26602       ac_file_inputs="$ac_file_inputs $ac_f"
26603     done
26604
26605     # Let's still pretend it is `configure' which instantiates (i.e., don't
26606     # use $as_me), people would be surprised to read:
26607     #    /* config.h.  Generated by config.status.  */
26608     configure_input="Generated from "`IFS=:
26609           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26610     if test x"$ac_file" != x-; then
26611       configure_input="$ac_file.  $configure_input"
26612       { echo "$as_me:$LINENO: creating $ac_file" >&5
26613 echo "$as_me: creating $ac_file" >&6;}
26614     fi
26615
26616     case $ac_tag in
26617     *:-:* | *:-) cat >"$tmp/stdin";;
26618     esac
26619     ;;
26620   esac
26621
26622   ac_dir=`$as_dirname -- "$ac_file" ||
26623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26624          X"$ac_file" : 'X\(//\)[^/]' \| \
26625          X"$ac_file" : 'X\(//\)$' \| \
26626          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26627 echo X"$ac_file" |
26628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26629             s//\1/
26630             q
26631           }
26632           /^X\(\/\/\)[^/].*/{
26633             s//\1/
26634             q
26635           }
26636           /^X\(\/\/\)$/{
26637             s//\1/
26638             q
26639           }
26640           /^X\(\/\).*/{
26641             s//\1/
26642             q
26643           }
26644           s/.*/./; q'`
26645   { as_dir="$ac_dir"
26646   case $as_dir in #(
26647   -*) as_dir=./$as_dir;;
26648   esac
26649   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26650     as_dirs=
26651     while :; do
26652       case $as_dir in #(
26653       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26654       *) as_qdir=$as_dir;;
26655       esac
26656       as_dirs="'$as_qdir' $as_dirs"
26657       as_dir=`$as_dirname -- "$as_dir" ||
26658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26659          X"$as_dir" : 'X\(//\)[^/]' \| \
26660          X"$as_dir" : 'X\(//\)$' \| \
26661          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26662 echo X"$as_dir" |
26663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26664             s//\1/
26665             q
26666           }
26667           /^X\(\/\/\)[^/].*/{
26668             s//\1/
26669             q
26670           }
26671           /^X\(\/\/\)$/{
26672             s//\1/
26673             q
26674           }
26675           /^X\(\/\).*/{
26676             s//\1/
26677             q
26678           }
26679           s/.*/./; q'`
26680       test -d "$as_dir" && break
26681     done
26682     test -z "$as_dirs" || eval "mkdir $as_dirs"
26683   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26684 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26685    { (exit 1); exit 1; }; }; }
26686   ac_builddir=.
26687
26688 case "$ac_dir" in
26689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26690 *)
26691   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26692   # A ".." for each directory in $ac_dir_suffix.
26693   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26694   case $ac_top_builddir_sub in
26695   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26696   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26697   esac ;;
26698 esac
26699 ac_abs_top_builddir=$ac_pwd
26700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26701 # for backward compatibility:
26702 ac_top_builddir=$ac_top_build_prefix
26703
26704 case $srcdir in
26705   .)  # We are building in place.
26706     ac_srcdir=.
26707     ac_top_srcdir=$ac_top_builddir_sub
26708     ac_abs_top_srcdir=$ac_pwd ;;
26709   [\\/]* | ?:[\\/]* )  # Absolute name.
26710     ac_srcdir=$srcdir$ac_dir_suffix;
26711     ac_top_srcdir=$srcdir
26712     ac_abs_top_srcdir=$srcdir ;;
26713   *) # Relative name.
26714     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26715     ac_top_srcdir=$ac_top_build_prefix$srcdir
26716     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26717 esac
26718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26719
26720
26721   case $ac_mode in
26722   :F)
26723   #
26724   # CONFIG_FILE
26725   #
26726
26727 _ACEOF
26728
26729 cat >>$CONFIG_STATUS <<\_ACEOF
26730 # If the template does not know about datarootdir, expand it.
26731 # FIXME: This hack should be removed a few years after 2.60.
26732 ac_datarootdir_hack=; ac_datarootdir_seen=
26733
26734 case `sed -n '/datarootdir/ {
26735   p
26736   q
26737 }
26738 /@datadir@/p
26739 /@docdir@/p
26740 /@infodir@/p
26741 /@localedir@/p
26742 /@mandir@/p
26743 ' $ac_file_inputs` in
26744 *datarootdir*) ac_datarootdir_seen=yes;;
26745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26746   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26747 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26748 _ACEOF
26749 cat >>$CONFIG_STATUS <<_ACEOF
26750   ac_datarootdir_hack='
26751   s&@datadir@&$datadir&g
26752   s&@docdir@&$docdir&g
26753   s&@infodir@&$infodir&g
26754   s&@localedir@&$localedir&g
26755   s&@mandir@&$mandir&g
26756     s&\\\${datarootdir}&$datarootdir&g' ;;
26757 esac
26758 _ACEOF
26759
26760 # Neutralize VPATH when `$srcdir' = `.'.
26761 # Shell code in configure.ac might set extrasub.
26762 # FIXME: do we really want to maintain this feature?
26763 cat >>$CONFIG_STATUS <<_ACEOF
26764   sed "$ac_vpsub
26765 $extrasub
26766 _ACEOF
26767 cat >>$CONFIG_STATUS <<\_ACEOF
26768 :t
26769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26770 s&@configure_input@&$configure_input&;t t
26771 s&@top_builddir@&$ac_top_builddir_sub&;t t
26772 s&@srcdir@&$ac_srcdir&;t t
26773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26774 s&@top_srcdir@&$ac_top_srcdir&;t t
26775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26776 s&@builddir@&$ac_builddir&;t t
26777 s&@abs_builddir@&$ac_abs_builddir&;t t
26778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26779 $ac_datarootdir_hack
26780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26781
26782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26783   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26784   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26785   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26786 which seems to be undefined.  Please make sure it is defined." >&5
26787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26788 which seems to be undefined.  Please make sure it is defined." >&2;}
26789
26790   rm -f "$tmp/stdin"
26791   case $ac_file in
26792   -) cat "$tmp/out"; rm -f "$tmp/out";;
26793   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26794   esac
26795  ;;
26796   :H)
26797   #
26798   # CONFIG_HEADER
26799   #
26800 _ACEOF
26801
26802 # Transform confdefs.h into a sed script `conftest.defines', that
26803 # substitutes the proper values into config.h.in to produce config.h.
26804 rm -f conftest.defines conftest.tail
26805 # First, append a space to every undef/define line, to ease matching.
26806 echo 's/$/ /' >conftest.defines
26807 # Then, protect against being on the right side of a sed subst, or in
26808 # an unquoted here document, in config.status.  If some macros were
26809 # called several times there might be several #defines for the same
26810 # symbol, which is useless.  But do not sort them, since the last
26811 # AC_DEFINE must be honored.
26812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26815 # PARAMS is the parameter list in the macro definition--in most cases, it's
26816 # just an empty string.
26817 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26818 ac_dB='\\)[      (].*,\\1define\\2'
26819 ac_dC=' '
26820 ac_dD=' ,'
26821
26822 uniq confdefs.h |
26823   sed -n '
26824         t rset
26825         :rset
26826         s/^[     ]*#[    ]*define[       ][      ]*//
26827         t ok
26828         d
26829         :ok
26830         s/[\\&,]/\\&/g
26831         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26832         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26833   ' >>conftest.defines
26834
26835 # Remove the space that was appended to ease matching.
26836 # Then replace #undef with comments.  This is necessary, for
26837 # example, in the case of _POSIX_SOURCE, which is predefined and required
26838 # on some systems where configure will not decide to define it.
26839 # (The regexp can be short, since the line contains either #define or #undef.)
26840 echo 's/ $//
26841 s,^[     #]*u.*,/* & */,' >>conftest.defines
26842
26843 # Break up conftest.defines:
26844 ac_max_sed_lines=50
26845
26846 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26847 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26848 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26849 # et cetera.
26850 ac_in='$ac_file_inputs'
26851 ac_out='"$tmp/out1"'
26852 ac_nxt='"$tmp/out2"'
26853
26854 while :
26855 do
26856   # Write a here document:
26857     cat >>$CONFIG_STATUS <<_ACEOF
26858     # First, check the format of the line:
26859     cat >"\$tmp/defines.sed" <<\\CEOF
26860 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26861 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26862 b
26863 :def
26864 _ACEOF
26865   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26866   echo 'CEOF
26867     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26868   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26869   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26870   grep . conftest.tail >/dev/null || break
26871   rm -f conftest.defines
26872   mv conftest.tail conftest.defines
26873 done
26874 rm -f conftest.defines conftest.tail
26875
26876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26877 cat >>$CONFIG_STATUS <<\_ACEOF
26878   if test x"$ac_file" != x-; then
26879     echo "/* $configure_input  */" >"$tmp/config.h"
26880     cat "$ac_result" >>"$tmp/config.h"
26881     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26882       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26883 echo "$as_me: $ac_file is unchanged" >&6;}
26884     else
26885       rm -f $ac_file
26886       mv "$tmp/config.h" $ac_file
26887     fi
26888   else
26889     echo "/* $configure_input  */"
26890     cat "$ac_result"
26891   fi
26892   rm -f "$tmp/out12"
26893  ;;
26894   :L)
26895   #
26896   # CONFIG_LINK
26897   #
26898
26899   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26900 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26901
26902   if test ! -r "$srcdir/$ac_source"; then
26903     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26904 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26905    { (exit 1); exit 1; }; }
26906   fi
26907   rm -f "$ac_file"
26908
26909   # Try a relative symlink, then a hard link, then a copy.
26910   case $srcdir in
26911   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26912       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
26913   esac
26914   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26915     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
26916     cp -p "$srcdir/$ac_source" "$ac_file" ||
26917     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26918 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26919    { (exit 1); exit 1; }; }
26920  ;;
26921   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26922 echo "$as_me: executing $ac_file commands" >&6;}
26923  ;;
26924   esac
26925
26926
26927   case $ac_file$ac_mode in
26928     "check_win32_symlinks":C)
26929 # Links sometimes fail undetected on Mingw -
26930 # so here we detect it and warn the user
26931 for FILE in $CONFIG_LINKS
26932  do
26933         # test -e works for symlinks in the MinGW console
26934         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26935 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26936  done
26937  ;;
26938     "src/include/pg_config.h":H)
26939 # Update timestamp for pg_config.h (see Makefile.global)
26940 echo >src/include/stamp-h
26941  ;;
26942
26943   esac
26944 done # for ac_tag
26945
26946
26947 { (exit 0); exit 0; }
26948 _ACEOF
26949 chmod +x $CONFIG_STATUS
26950 ac_clean_files=$ac_clean_files_save
26951
26952
26953 # configure is writing to config.log, and then calls config.status.
26954 # config.status does its own redirection, appending to config.log.
26955 # Unfortunately, on DOS this fails, as config.log is still kept open
26956 # by configure, so config.status won't be able to write to it; its
26957 # output is simply discarded.  So we exec the FD to /dev/null,
26958 # effectively closing config.log, so it can be properly (re)opened and
26959 # appended to by config.status.  When coming back to configure, we
26960 # need to make the FD available again.
26961 if test "$no_create" != yes; then
26962   ac_cs_success=:
26963   ac_config_status_args=
26964   test "$silent" = yes &&
26965     ac_config_status_args="$ac_config_status_args --quiet"
26966   exec 5>/dev/null
26967   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26968   exec 5>>config.log
26969   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26970   # would make configure fail if this is the last instruction.
26971   $ac_cs_success || { (exit 1); exit 1; }
26972 fi
26973
26974
26975 # Warn about unknown options
26976 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26977   for pgac_arg in $pgac_args with_gnu_ld; do
26978     if test "$pgac_var" = "$pgac_arg"; then
26979       continue 2
26980     fi
26981   done
26982   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26983   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26984 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
26985 done